:root {
  color-scheme: light dark;
  --canvas: #f4f1eb;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --ink: #132426;
  --muted: #5c6b69;
  --line: #d8d2c8;
  --signal: #a84418;
  --signal-strong: #7f2f0e;
  --signal-soft: #f4d7c8;
  --cool: #2d666f;
  --cool-soft: #d8e9e9;
  --dark: #13272a;
  --paper-on-dark: #f7f7f1;
  --focus: #006ad4;
  --shadow: 0 28px 80px rgba(29, 39, 38, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(45, 102, 111, 0.11), transparent 26rem),
    var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a { color: var(--signal); text-underline-offset: 0.2em; }
a:hover { color: var(--signal-strong); }
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 5px;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  backdrop-filter: blur(18px);
}

.site-header .shell,
.site-footer .shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--dark);
  color: #ff986b;
  box-shadow: 0 8px 18px rgba(19, 39, 42, 0.18);
}

.brand-mark svg { width: 23px; height: 23px; }

nav { display: flex; align-items: center; gap: 23px; }
nav a { color: var(--muted); font-size: 0.93rem; font-weight: 700; text-decoration: none; }
nav a:hover,
nav a[aria-current="page"] { color: var(--ink); }

main { padding: 42px 0 92px; }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(370px, 0.96fr);
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
  padding: clamp(36px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(229, 117, 68, 0.25), transparent 27rem),
    linear-gradient(140deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 { text-wrap: balance; }

h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(3.15rem, 6.9vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.066em;
}

.lead {
  max-width: 710px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.26rem);
  line-height: 1.55;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--signal);
  border-radius: 15px;
  background: var(--signal);
  color: #fff;
  font-weight: 790;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(168, 68, 24, 0.18);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--signal-strong);
  color: #fff;
  box-shadow: 0 16px 30px rgba(127, 47, 14, 0.23);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: none;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li,
.tag {
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--cool) 20%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--cool-soft) 62%, transparent);
  color: var(--dark);
  font-size: 0.79rem;
  font-weight: 760;
}

.app-preview {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(345px, 88%);
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.17);
  border-radius: 42px;
  background: #0d181a;
  box-shadow: 0 36px 72px rgba(19, 39, 42, 0.31);
  transform: rotate(2deg);
}

.screen {
  min-height: 516px;
  padding: 25px 20px 20px;
  border-radius: 33px;
  overflow: hidden;
  background: #f4f1eb;
  color: #132426;
}

.screen-top,
.metric-row,
.yield-head,
.coverage,
.formula-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.screen-top strong { font-size: 1.45rem; letter-spacing: -0.04em; }
.screen-top span { color: #66716f; font-size: 0.73rem; font-weight: 750; }

.window-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 17px 0;
  padding: 4px;
  border-radius: 12px;
  background: #e3ded5;
}
.window-tabs span { padding: 6px; border-radius: 9px; text-align: center; font-size: 0.75rem; font-weight: 760; }
.window-tabs .active { background: #fffaf2; box-shadow: 0 2px 7px rgba(35, 39, 38, 0.1); }

.coverage { margin-bottom: 12px; color: #4b5e5d; font-size: 0.72rem; font-weight: 720; }
.coverage-bar { width: 88px; height: 6px; border-radius: 999px; overflow: hidden; background: #d6d2cb; }
.coverage-bar span { display: block; width: 84%; height: 100%; border-radius: inherit; background: #2d666f; }

.yield-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #d8d2c8;
  border-radius: 18px;
  background: #fffaf2;
  box-shadow: 0 10px 24px rgba(22, 36, 37, 0.06);
}
.yield-head strong { font-size: 0.98rem; }
.yield-head span { color: #a84418; font-size: 0.65rem; font-weight: 830; text-transform: uppercase; letter-spacing: 0.07em; }
.metric-row { margin-top: 13px; }
.metric-row div { min-width: 0; }
.metric-row small { display: block; color: #687370; font-size: 0.64rem; }
.metric-row strong { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.formula-row { margin-top: 12px; padding-top: 11px; border-top: 1px solid #e1ddd4; color: #53605f; font-size: 0.62rem; }
.formula-row code { color: #2d666f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.preview-note { position: absolute; right: -2px; bottom: 32px; padding: 9px 13px; border-radius: 13px; background: var(--dark); color: var(--paper-on-dark); font-size: 0.73rem; font-weight: 760; box-shadow: 0 13px 30px rgba(19, 39, 42, 0.24); }

.section { padding: 92px 0 0; }
.section-heading { max-width: 770px; margin-bottom: 30px; }
.section-heading h2,
.band h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.9vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
}
.section-heading p { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  min-height: 255px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface);
}
.feature .number { display: inline-grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: var(--signal-soft); color: var(--signal-strong); font-size: 0.76rem; font-weight: 850; }
.feature h3 { margin: 48px 0 9px; font-size: 1.15rem; letter-spacing: -0.025em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  padding: clamp(34px, 6vw, 66px);
  border-radius: 30px;
  background: var(--dark);
  color: var(--paper-on-dark);
  box-shadow: 0 26px 66px rgba(19, 39, 42, 0.22);
}
.band p { color: #bed0cf; }
.band .eyebrow { color: #ff986b; }
.principles { display: grid; gap: 11px; }
.principle { padding: 15px 16px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 16px; background: rgba(255, 255, 255, 0.06); }
.principle strong { display: block; color: #fff; }
.principle span { display: block; margin-top: 3px; color: #bed0cf; font-size: 0.85rem; }

.plan-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 16px; }
.plan-card { padding: clamp(27px, 4vw, 42px); border: 1px solid var(--line); border-radius: 27px; background: var(--surface); }
.plan-card.signal { background: linear-gradient(145deg, #f2cbb8, #f7e4d9); border-color: #e6b69f; }
.plan-card h3 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -0.04em; }
.plan-card p { color: #4f5f5d; }
.plan-card ul { margin: 20px 0 0; padding-left: 1.2em; }
.plan-card li + li { margin-top: 7px; }

.locale-row { display: flex; flex-wrap: wrap; gap: 9px; }

.page-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(29px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.page-card h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); line-height: 0.98; }
.page-card h2 { margin: 2.05em 0 0.5em; font-size: 1.42rem; line-height: 1.25; letter-spacing: -0.028em; }
.page-card h3 { margin: 1.5em 0 0.4em; font-size: 1.04rem; }
.page-card p,
.page-card li { max-width: 770px; }
.page-card ol,
.page-card ul { padding-left: 1.35em; }
.page-card li + li { margin-top: 0.45em; }
.meta { color: var(--muted); font-size: 0.88rem; }
.notice { margin: 28px 0; padding: 19px 21px; border-left: 5px solid var(--cool); border-radius: 4px 16px 16px 4px; background: var(--cool-soft); color: #17373a; }
.warning { border-left-color: var(--signal); background: var(--signal-soft); color: #4d2413; }
.formula { padding: 17px 19px; border-radius: 15px; background: var(--dark); color: var(--paper-on-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; overflow-wrap: anywhere; }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { padding: 18px 2px; cursor: pointer; color: var(--ink); font-weight: 790; }
details > div { padding: 0 2px 19px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.site-footer .shell { min-height: 96px; font-size: 0.85rem; }
.site-footer a { color: inherit; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .app-preview { min-height: 550px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .band,
  .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 26px, 1160px); }
  .site-header .shell { min-height: 70px; align-items: flex-start; padding: 15px 0; }
  .brand { font-size: 0.98rem; }
  .brand-mark { width: 34px; height: 34px; }
  nav { gap: 13px; padding-top: 6px; }
  nav a { font-size: 0.78rem; }
  main { padding-top: 22px; }
  .hero { min-height: 0; padding: 29px 22px 22px; border-radius: 24px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.1rem); }
  .app-preview { min-height: 520px; }
  .phone { width: min(315px, 96%); }
  .screen { min-height: 490px; }
  .preview-note { right: 0; bottom: 8px; }
  .section { padding-top: 70px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature h3 { margin-top: 31px; }
  .band { padding: 30px 23px; border-radius: 24px; }
  .page-card { padding: 29px 21px; border-radius: 23px; }
  .site-footer .shell { min-height: 120px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0d1517;
    --surface: #142124;
    --surface-strong: #19282b;
    --ink: #f4f6f1;
    --muted: #b5c2bf;
    --line: #314245;
    --signal: #ff9a6d;
    --signal-strong: #ffb291;
    --signal-soft: #4a2a20;
    --cool: #72c2ce;
    --cool-soft: #19383d;
    --dark: #071012;
  }
  .hero { background: radial-gradient(circle at 82% 14%, rgba(255, 137, 88, 0.16), transparent 27rem), linear-gradient(140deg, var(--surface-strong), var(--surface)); }
  .button { color: #251008; }
  .button:hover { color: #251008; }
  .trust-list li,
  .tag { color: var(--ink); }
  .plan-card.signal { background: linear-gradient(145deg, #42271f, #2f2421); border-color: #684033; }
  .plan-card p { color: var(--muted); }
  .notice { color: var(--ink); }
  .warning { color: var(--ink); }
}
