:root {
  color-scheme: light;
  --moss: #4f7f25;
  --moss-deep: #253719;
  --moss-dark: #14200f;
  --clover: #9ccf2f;
  --clover-soft: #edf6d5;
  --newt: #ef4f19;
  --stone: #c7b476;
  --sand: #f7f0d8;
  --paper: #fffaf0;
  --surface: rgba(255, 252, 241, 0.88);
  --surface-solid: #fffaf0;
  --ink: #202614;
  --muted: #64704f;
  --line: rgba(79, 127, 37, 0.2);
  --shadow: 0 24px 70px rgba(44, 57, 25, 0.16);
  --radius: 18px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 79, 25, 0.12), transparent 22rem),
    radial-gradient(circle at 88% 0%, rgba(156, 207, 47, 0.18), transparent 28rem),
    linear-gradient(180deg, #fff8df 0%, #f6f0d9 48%, #edf3d9 100%);
  color: var(--ink);
  line-height: 1.85;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem clamp(1.5rem, 5vw, 3rem);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0.55rem clamp(0.75rem, 3vw, 1.4rem);
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 14px 38px rgba(31, 44, 20, 0.12);
  backdrop-filter: blur(16px);
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: -0.25rem;
  color: var(--moss-deep);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.site-mark__icon {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(39, 52, 23, 0.16);
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  border-radius: 999px;
  color: var(--moss-deep);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.42rem 0.82rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(239, 79, 25, 0.14);
  box-shadow: inset 0 0 0 1px rgba(239, 79, 25, 0.26);
  color: #8f2d0d;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2rem);
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh + 7.375rem);
  overflow: hidden;
  margin-top: -5rem;
  padding: clamp(7.5rem, 14vw, 11rem) clamp(1rem, 4vw, 2rem) clamp(4rem, 9vw, 7rem);
}

.hero__image,
.page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% center;
}

.hero__shade,
.page-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 248, 218, 0.12) 0%, rgba(255, 248, 218, 0.46) 44%, rgba(255, 248, 218, 0.92) 70%, rgba(255, 248, 218, 0.98) 100%),
    linear-gradient(0deg, rgba(31, 42, 16, 0.22), rgba(31, 42, 16, 0.02) 42%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  justify-content: end;
  max-width: 1120px;
  width: 100%;
  margin: auto;
}

.hero__copy {
  max-width: 590px;
  color: var(--moss-dark);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 250, 230, 0.64);
  box-shadow: 0 22px 58px rgba(44, 57, 25, 0.14);
  padding: clamp(1.2rem, 3vw, 2rem);
  text-shadow: none;
  backdrop-filter: blur(8px);
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  display: grid;
  align-items: end;
  padding-top: clamp(7rem, 12vw, 10rem);
}

.page-hero--tall {
  min-height: calc(100vh + 7.375rem);
  margin-top: -5rem;
  padding: clamp(7.5rem, 14vw, 11rem) clamp(1rem, 4vw, 2rem) clamp(4rem, 9vw, 7rem);
}

.page-hero--tall .section-inner {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 250, 230, 0.64);
  box-shadow: 0 22px 58px rgba(44, 57, 25, 0.14);
  padding: clamp(1.2rem, 3vw, 2rem);
  backdrop-filter: blur(8px);
}

.page-hero--compact {
  height: 24rem;
  min-height: 24rem;
  max-height: 24rem;
  align-items: center;
}

.page-hero--compact .page-hero__image {
  object-position: 34% 18%;
}

.page-hero--compact h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

body[data-page="testers"] .page-hero--compact h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.page-hero--compact .lead {
  margin-top: 1rem;
}

.page-hero__shade {
  background:
    linear-gradient(90deg, rgba(255, 248, 218, 0.9), rgba(255, 248, 218, 0.72) 42%, rgba(255, 248, 218, 0.28)),
    linear-gradient(0deg, rgba(255, 248, 218, 0.9), rgba(255, 248, 218, 0.24));
}

.section-light {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.86), rgba(246, 240, 217, 0.78)),
    radial-gradient(circle at 12% 10%, rgba(156, 207, 47, 0.16), transparent 24rem);
}

.section-lab {
  border-block: 1px solid rgba(79, 127, 37, 0.18);
  background:
    radial-gradient(circle at 86% 52%, rgba(156, 207, 47, 0.16), transparent 18rem),
    linear-gradient(90deg, rgba(255, 250, 240, 0.88), rgba(237, 246, 213, 0.7));
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #315817;
  font-size: 0.9rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--moss-dark);
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--moss-dark);
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  line-height: 1.24;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--moss-dark);
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  margin-top: 1.6rem;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.13rem);
}

.lead p,
.lead-text,
.split p {
  margin: 0.72rem 0 0;
  color: var(--muted);
}

.hero .lead p {
  color: rgba(32, 38, 20, 0.88);
  font-weight: 600;
}

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.text-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.text-link {
  color: #315817;
}

.home-apps {
  display: grid;
  justify-items: center;
  gap: 1rem;
  min-width: min(22rem, 100%);
}

.home-apps__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.home-app-icon {
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(156, 207, 47, 0.28), rgba(255, 250, 240, 0.88)),
    radial-gradient(circle at 30% 20%, rgba(239, 79, 25, 0.22), transparent 3rem);
  box-shadow: 0 14px 34px rgba(44, 57, 25, 0.12);
  color: #315817;
  display: grid;
  place-items: center;
  font-weight: 900;
  overflow: hidden;
}

.home-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, var(--moss), #6c9f23);
  color: #fffdf1;
  padding: 0.68rem 1.18rem;
  box-shadow: 0 12px 32px rgba(79, 127, 37, 0.26);
}

.button:hover {
  background: linear-gradient(135deg, #315817, var(--moss));
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(248, 242, 220, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(156, 207, 47, 0.16), transparent 12rem);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.3rem);
}

.app-icon {
  width: 4.35rem;
  height: 4.35rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.15rem;
  background:
    linear-gradient(145deg, rgba(156, 207, 47, 0.28), rgba(255, 250, 240, 0.88)),
    radial-gradient(circle at 30% 20%, rgba(239, 79, 25, 0.22), transparent 3rem);
  color: #315817;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(79, 127, 37, 0.12);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-body {
  min-width: 0;
}

.app-description {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  border-radius: 999px;
  background: rgba(239, 79, 25, 0.12);
  color: #a3310d;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.15rem 0.65rem;
}

.platform {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 127, 37, 0.2);
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.15rem 0.65rem;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.app-link {
  border: 1px solid rgba(79, 127, 37, 0.24);
  border-radius: 999px;
  color: #315817;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.28rem 0.7rem;
  text-decoration: none;
}

.app-link:hover {
  border-color: var(--moss);
  background: rgba(156, 207, 47, 0.12);
}

.app-link.is-disabled {
  color: var(--muted);
  opacity: 0.72;
  pointer-events: none;
}

.notice {
  border: 1px solid rgba(79, 127, 37, 0.18);
  border-left: 5px solid var(--newt);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.78);
  color: var(--muted);
  margin: 1.6rem 0;
  padding: 1rem 1.1rem;
  box-shadow: 0 16px 42px rgba(44, 57, 25, 0.1);
}

.testing-apps {
  margin-bottom: 2rem;
}

.testing-apps__label {
  margin: 0 0 0.85rem;
  color: var(--moss-deep);
  font-weight: 800;
}

.testing-apps__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.testing-app {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(79, 127, 37, 0.18);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 12px 34px rgba(44, 57, 25, 0.1);
  color: var(--moss-dark);
  font-weight: 800;
  padding: 0.55rem 0.8rem 0.55rem 0.55rem;
  text-decoration: none;
}

.testing-app:hover {
  border-color: rgba(79, 127, 37, 0.38);
  background: rgba(237, 246, 213, 0.82);
}

.testing-app__icon {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(156, 207, 47, 0.28), rgba(255, 250, 240, 0.88)),
    radial-gradient(circle at 30% 20%, rgba(239, 79, 25, 0.22), transparent 3rem);
  color: #315817;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 900;
  overflow: hidden;
}

.testing-app__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid rgba(79, 127, 37, 0.2);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.4rem clamp(1rem, 4vw, 2rem) 2rem;
}

@media (max-width: 900px) {
  .site-header,
  .split {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header::before {
    border-radius: 24px;
  }

  .site-mark {
    margin-left: 0.1rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 43rem;
    padding-top: 11rem;
  }

  .page-hero--tall {
    min-height: 43rem;
    padding-top: 11rem;
  }

  .page-hero--compact {
    height: 24rem;
    min-height: 24rem;
    max-height: 24rem;
  }

  .hero__image,
  .page-hero__image {
    object-position: 24% center;
  }

  .page-hero--compact .page-hero__image {
    object-position: 22% 20%;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(255, 248, 218, 0.12) 0%, rgba(255, 248, 218, 0.68) 38%, rgba(255, 248, 218, 0.98) 100%),
      linear-gradient(90deg, rgba(31, 42, 16, 0.12), rgba(31, 42, 16, 0.02));
  }

  .hero__grid {
    align-items: end;
  }

  .hero__copy {
    max-width: 100%;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .section-lab {
    background:
      radial-gradient(circle at 86% 52%, rgba(156, 207, 47, 0.16), transparent 18rem),
      linear-gradient(180deg, rgba(255, 250, 240, 0.86), rgba(237, 246, 213, 0.82));
  }

  .text-link,
  .button {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .section {
    padding-block: 3.2rem;
  }

  .hero {
    min-height: 42rem;
    align-items: start;
    padding-top: 13.6rem;
  }

  .page-hero--tall {
    min-height: 45.375rem;
    align-items: start;
    padding-top: 13.6rem;
  }

  .page-hero--compact {
    align-items: start;
    padding-top: 9.85rem;
  }

  .hero__image,
  .page-hero__image {
    object-position: 22% center;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(255, 248, 218, 0.08) 0%, rgba(255, 248, 218, 0.72) 34%, rgba(255, 248, 218, 0.99) 100%),
      linear-gradient(90deg, rgba(31, 42, 16, 0.1), rgba(31, 42, 16, 0.02));
  }

  .hero__grid {
    align-items: start;
    margin: 0 auto;
  }

  .site-header::before {
    inset: 0 0.55rem;
  }

  .site-mark__icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 11px;
  }

  body[data-page="testers"] .page-hero--compact h1 {
    font-size: 2.35rem;
    line-height: 1;
  }

  body[data-page="testers"] .page-hero--compact .lead {
    margin-top: 0.75rem;
    font-size: 0.94rem;
  }

  body[data-page="testers"] .page-hero--compact .lead p {
    margin-top: 0.4rem;
    line-height: 1.65;
  }

  .app-card {
    grid-template-columns: 1fr;
  }

  .app-icon {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1rem;
  }
}
