:root {
  --color-bg: #F6F1E7;
  --color-surface: #FFFCF5;
  --color-surface-soft: #EEE7D9;
  --color-forest: #123F35;
  --color-teal: #1F6658;
  --color-teal-soft: #DDE8E2;
  --color-amber: #E7A62E;
  --color-amber-strong: #C98314;
  --color-amber-soft: #F8E7BD;
  --color-sage: #A9BAAB;
  --color-text: #173D36;
  --color-muted: #61716D;
  --color-border: #DCD4C5;
  --color-white: #FFFFFF;
  --color-danger: #7C2E23;

  --shadow-soft: 0 18px 55px rgba(25, 59, 51, 0.10);
  --shadow-card: 0 8px 28px rgba(25, 59, 51, 0.07);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shell: min(1180px, calc(100% - 40px));
  --font-sans: "Segoe UI", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
               Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 4%, rgba(231, 166, 46, 0.09), transparent 25rem),
    radial-gradient(circle at 3% 36%, rgba(31, 102, 88, 0.05), transparent 28rem);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--color-forest);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 212, 197, 0.88);
  background: rgba(246, 241, 231, 0.93);
  backdrop-filter: blur(14px);
}

.nav-shell,
.site-nav,
.brand,
.hero-actions,
.footer-brand {
  display: flex;
  align-items: center;
}

.nav-shell {
  min-height: 76px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 10px;
  text-decoration: none;
  color: var(--color-forest);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
}

.site-nav {
  gap: 24px;
}

.site-nav > a:not(.button) {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav > a:not(.button):hover {
  color: var(--color-forest);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-forest);
  font-size: 1.35rem;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid var(--color-amber-strong);
  border-radius: 999px;
  background: var(--color-amber);
  color: #2B240F;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(201, 131, 20, 0.18);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #ECB13D;
  box-shadow: 0 9px 22px rgba(201, 131, 20, 0.23);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
}

.text-link {
  color: var(--color-forest);
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.muted-link {
  color: var(--color-muted);
  text-decoration: none;
  cursor: default;
}

.hero {
  padding: 92px 0 68px;
  overflow: hidden;
}

.hero-grid,
.split,
.showcase-grid,
.beta-grid {
  display: grid;
  align-items: center;
  gap: 70px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.45fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1,
.section h2,
.beta-section h2 {
  margin: 0;
  color: var(--color-forest);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero-copy h1 {
  max-width: 610px;
  font-size: clamp(3rem, 5.6vw, 5.6rem);
}

.hero-lede {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.65vw, 1.24rem);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--color-teal);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}

.hero-product {
  position: relative;
  padding: 22px 20px 52px 0;
}

.product-frame {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.product-frame::before {
  content: "";
  display: block;
  height: 12px;
  background: linear-gradient(90deg, var(--color-forest), var(--color-teal), var(--color-amber));
  opacity: 0.92;
}

.product-shot {
  width: 100%;
  background: #fff;
}

.hero-mascot {
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: clamp(112px, 13vw, 190px);
  filter: drop-shadow(0 18px 26px rgba(18, 63, 53, 0.16));
  transform: rotate(1deg);
}

.value-strip {
  border-block: 1px solid var(--color-border);
  background: rgba(238, 231, 217, 0.82);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 20px;
  text-align: center;
  color: var(--color-forest);
  font-weight: 800;
}

.value-grid span + span {
  border-left: 1px solid var(--color-border);
}

.section {
  padding: 104px 0;
}

.section-tint {
  background: rgba(238, 231, 217, 0.75);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 42px;
}

.section h2,
.beta-section h2 {
  font-size: clamp(2.2rem, 4.25vw, 4.25rem);
}

.section p,
.beta-section p {
  color: var(--color-muted);
}

.section-copy p:last-child,
.platform-copy {
  font-size: 1.08rem;
}

.split {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.resource-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset;
}

.feature-card {
  min-height: 256px;
  padding: 28px;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #CFC4B2;
  box-shadow: var(--shadow-card);
}

.feature-card h3 {
  margin: 24px 0 8px;
  color: var(--color-forest);
  font-size: 1.2rem;
}

.feature-card p {
  margin-bottom: 0;
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--color-amber-soft);
  color: var(--color-forest);
  font-weight: 900;
}

.showcase-grid {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.55fr);
}

.callouts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.callouts li {
  padding: 18px 20px;
  border-left: 3px solid var(--color-amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 252, 245, 0.69);
}

.callouts strong,
.callouts span {
  display: block;
}

.callouts strong {
  color: var(--color-forest);
}

.callouts span {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.93rem;
}

.product-frame-large {
  transform: perspective(1400px) rotateY(-2deg);
}

.platform-section {
  position: relative;
  overflow: hidden;
  background: var(--color-forest);
}

.platform-section::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -170px;
  border: 50px solid rgba(255,255,255,0.035);
  border-radius: 50%;
}

.platform-section h2,
.platform-section .eyebrow {
  color: var(--color-white);
}

.platform-section .eyebrow {
  opacity: 0.72;
}

.platform-section .platform-copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.two-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.resource-card {
  padding: 38px;
}

.resource-card h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.about-section {
  text-align: center;
}

.about-section .narrow {
  padding-block: 12px;
}

.beta-section {
  padding: 104px 0;
  background: rgba(238, 231, 217, 0.86);
  border-top: 1px solid var(--color-border);
}

.beta-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1fr);
}

.beta-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.beta-form label {
  display: grid;
  gap: 7px;
  color: var(--color-forest);
  font-weight: 750;
}

.beta-form label em {
  color: var(--color-muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 550;
}

.beta-form input,
.beta-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  padding: 12px 14px;
  box-shadow: 0 1px 0 rgba(18,63,53,0.03) inset;
}

.beta-form textarea {
  resize: vertical;
  min-height: 130px;
}

.beta-form input:focus,
.beta-form textarea:focus {
  border-color: var(--color-teal);
  outline: 2px solid rgba(31, 102, 88, 0.16);
  outline-offset: 1px;
}

.form-status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(31, 102, 88, 0.10);
  color: var(--color-forest);
  font-weight: 650;
}

.form-status[data-state="error"] {
  background: rgba(183, 72, 55, 0.10);
  color: var(--color-danger);
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.site-footer {
  padding: 38px 0;
  background: #0B2F28;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  gap: 10px;
  color: var(--color-white);
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.9;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: inherit;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 28px, 820px);
  }

  /* No-JS fallback: keep the primary navigation visible and wrapping. */
  .nav-shell {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex: 1 0 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 0 0 14px;
  }

  /* Progressive enhancement: JavaScript turns the fallback into a menu. */
  .js .nav-shell {
    flex-wrap: nowrap;
  }

  .js .nav-toggle {
    display: grid;
    place-items: center;
  }

  .js .site-nav {
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    display: none;
    align-items: stretch;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
  }

  .js .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav > a {
    padding: 10px 8px;
  }

  .site-nav .button {
    margin-top: 4px;
  }

  .hero {
    padding-top: 68px;
  }

  .hero-grid,
  .split,
  .showcase-grid,
  .beta-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 10vw, 5rem);
  }

  .hero-product {
    padding-inline: 0;
  }

  .hero-mascot {
    right: 3px;
    width: min(29vw, 165px);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-frame-large {
    transform: none;
  }

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

  .site-footer p {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .hero {
    padding: 54px 0 48px;
  }

  .section,
  .beta-section {
    padding: 76px 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4.2rem);
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .value-grid span {
    padding-block: 10px;
  }

  .value-grid span + span {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .feature-grid,
  .two-card-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .resource-card,
  .beta-form {
    padding: 22px;
  }

  .hero-mascot {
    width: 106px;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.legal-copy h1 {
  margin: 0 0 24px;
  color: var(--color-forest);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.legal-copy p {
  max-width: 72ch;
  color: var(--color-muted);
  font-size: 1.04rem;
}

