/* Layout: one column of full-width bands; hero and sign-up split into text + object, everything else on a 12-col-ish grid. */
:root {
  --page: #f2f6f5;
  --surface: #ffffff;
  --sunk: #e6efed;
  --ink: #10231f;
  --muted: #546a64;
  --line: #d3e1de;
  --teal: #145c5a;
  --teal-ink: #145c5a;
  --teal-deep: #0d3f3d;
  --on-teal: #ffffff;
  --on-teal-soft: #bfdcd8;
  --amber: #e2984b;
  --amber-ink: #8a5216;
  --good: #3f8f5f;
  --fair: #c9822f;
  --low: #b4483a;
  --excellent: #7d5ba6;
  --shadow: 0 1px 2px rgba(13, 63, 61, .06), 0 12px 32px -12px rgba(13, 63, 61, .22);

  --f-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Instrument Sans', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --max: 1120px;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0b1716; --surface: #122220; --sunk: #0f1d1b; --ink: #e3eeeb; --muted: #9db3ad; --line: #24403c;
    --teal: #1d7470; --teal-ink: #6cc3bb; --teal-deep: #082826; --on-teal: #ffffff; --on-teal-soft: #a9d2cd;
    --amber: #eba862; --amber-ink: #f0b679; --good: #63b585; --fair: #e2a056; --low: #e07a6b; --excellent: #b497d8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0b1716; --surface: #122220; --sunk: #0f1d1b; --ink: #e3eeeb; --muted: #9db3ad; --line: #24403c;
  --teal: #1d7470; --teal-ink: #6cc3bb; --teal-deep: #082826; --on-teal: #ffffff; --on-teal-soft: #a9d2cd;
  --amber: #eba862; --amber-ink: #f0b679; --good: #63b585; --fair: #e2a056; --low: #e07a6b; --excellent: #b497d8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.08; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-ink);
  font-weight: 500;
}
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--f-body);
  padding: 15px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #2a1804; }
.btn-primary:hover { background: #eaa65f; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal-ink); }

/* ---- header ---- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--page); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { width: 32px; height: 32px; flex: none; border-radius: 8px; display: block; }
.logo b { font: 700 22px/1 var(--f-display); letter-spacing: -0.02em; }
.logo span { font: 500 12px/1 var(--f-mono); color: var(--muted); letter-spacing: .04em; padding-left: 10px; border-left: 1px solid var(--line); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.head-actions { display: flex; gap: 10px; align-items: center; }
.head-actions .signin { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 6px; }
.head-actions .btn { padding: 11px 18px; font-size: 15px; }

/* ---- hero ---- */
.hero { padding-block: 72px 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 70px); font-weight: 700; margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--teal-ink); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 22px; font-size: 14.5px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero .fine span::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 6px; }

.stage { position: relative; min-height: 600px; display: flex; justify-content: center; }
.stage::before {
  content: ""; position: absolute; inset: 40px -60px 30px 30px; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--teal) 26%, transparent), transparent 72%);
}

/* phone mockup of the real app screen */
.phone {
  position: relative; width: 310px; max-width: 100%;
  background: #0c1514; border-radius: 42px; padding: 11px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform: rotate(-2deg);
}
.screen { background: #f4f7f6; border-radius: 32px; overflow: hidden; color: #16241f; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 12.5px; }
.app-top { background: #145c5a; color: #fff; padding: 30px 16px 10px; display: flex; justify-content: space-between; align-items: center; }
.app-top b { font-size: 15px; display: block; }
.app-top small { color: #cfe3e1; font-size: 10.5px; }
.app-pill { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: rgba(255,255,255,.16); }
.app-nav { background: #0d3f3d; display: flex; gap: 2px; padding: 0 8px; }
.app-nav span { color: #cfe3e1; font-weight: 700; font-size: 11.5px; padding: 9px 8px; }
.app-nav span.on { color: #fff; box-shadow: inset 0 -2px 0 #e2984b; }
.app-body { padding: 12px; display: grid; gap: 10px; }
.app-card { background: #fff; border: 1px solid #d8e4e1; border-radius: 8px; padding: 12px; }
.app-status { display: inline-block; font-size: 10px; font-weight: 700; background: #fbe7d1; color: #7a4710; padding: 3px 7px; border-radius: 99px; }
.app-card h4 { margin: 7px 0 2px; font-size: 15px; }
.app-meta { color: #5c6f69; font-size: 11px; }
.app-score { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border-radius: 6px; background: #ecf5ef; }
.app-score .n { font-size: 26px; font-weight: 800; color: #3f8f5f; font-variant-numeric: tabular-nums; }
.app-score .n small { font-size: 12px; color: #5c6f69; font-weight: 600; }
.app-score .l { font-size: 11px; line-height: 1.3; }
.app-rows { margin-top: 8px; display: grid; }
.app-rows div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #edf2f1; }
.app-rows div:last-child { border-bottom: 0; }
.app-rows span:last-child { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.app-chems { font-size: 11.5px; color: #33443f; }
.app-chems b { display: block; font-size: 11px; color: #5c6f69; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.app-btn { background: #145c5a; color: #fff; text-align: center; font-weight: 700; padding: 11px; border-radius: 6px; }

.mail {
  position: absolute; right: -8px; bottom: 6px; width: 270px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px;
  box-shadow: var(--shadow); font-size: 13px; transform: rotate(2.5deg);
}
.mail .from { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.mail .subj { font-weight: 700; margin: 6px 0 8px; line-height: 1.3; }
.mail p { color: var(--muted); line-height: 1.45; }
.mail .link { display: inline-block; margin-top: 8px; color: var(--teal-ink); font-weight: 600; text-decoration: underline; }
.tag {
  position: absolute; left: -12px; top: 200px;
  background: var(--teal-deep); color: var(--on-teal); border-radius: 10px; padding: 10px 14px;
  font-size: 13px; box-shadow: var(--shadow); transform: rotate(-3deg);
}
.tag b { font-family: var(--f-mono); font-weight: 500; color: var(--amber); }

/* ---- sections ---- */
section { scroll-margin-top: 80px; }
.band { padding-block: 96px; }
.sec-head { display: grid; gap: 14px; margin-bottom: 52px; max-width: 760px; }
.sec-head h2 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 700; }

/* how it works: a real three-step sequence */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.step { padding: 28px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .num { font: 500 13px/1 var(--f-mono); color: var(--amber-ink); letter-spacing: .06em; }
.step h3 { font-size: 25px; font-weight: 600; }
.step p { color: var(--muted); }
.step ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.step li { padding-left: 20px; position: relative; }
.step li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--teal-ink); }
.who { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.who::before { content: ""; width: 18px; height: 1px; background: var(--muted); }

/* Ula Score */
.score-band { background: var(--teal-deep); color: var(--on-teal); }
.score-band .sec-head h2 { color: var(--on-teal); }
.score-band .lede { color: var(--on-teal-soft); }
.score-band .eyebrow { color: var(--amber); }
.score-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.formula {
  font-family: var(--f-mono); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.5;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18);
}
.formula b { color: var(--amber); font-weight: 500; }
.score-notes { display: grid; gap: 16px; margin-top: 26px; color: var(--on-teal-soft); font-size: 16px; }
.score-notes strong { color: var(--on-teal); }
.advice { margin-top: 26px; display: grid; gap: 8px; }
.advice div { font-size: 14.5px; background: rgba(255,255,255,.07); border-radius: 8px; padding: 10px 14px; }
.advice div span { font-family: var(--f-mono); font-size: 11px; color: var(--amber); display: block; margin-bottom: 2px; letter-spacing: .05em; text-transform: uppercase; }

.targets-wrap { overflow-x: auto; }
.targets { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.targets th, .targets td { text-align: left; padding: 13px 10px; border-bottom: 1px solid rgba(255,255,255,.14); }
.targets thead th { font: 500 11.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--on-teal-soft); }
.targets td.v { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.targets td.v small { color: var(--on-teal-soft); font-size: 12px; }
.pen { display: flex; align-items: center; gap: 8px; }
.pen i { display: block; height: 6px; border-radius: 3px; background: var(--amber); }
.pen span { font-family: var(--f-mono); font-size: 13px; color: var(--on-teal-soft); }

.scale { margin-top: 34px; }
.scale-bar { display: grid; grid-template-columns: 40fr 30fr 29.5fr 0.5fr; height: 14px; border-radius: 7px; overflow: hidden; }
.scale-bar i:nth-child(1) { background: #c6604f; }
.scale-bar i:nth-child(2) { background: #e2984b; }
.scale-bar i:nth-child(3) { background: #4fa673; }
.scale-bar i:nth-child(4) { background: #a585d1; }
.scale-labels { display: grid; grid-template-columns: 40fr 30fr 30fr; margin-top: 10px; font-size: 13px; color: var(--on-teal-soft); }
.scale-labels span b { display: block; font-family: var(--f-mono); font-weight: 500; color: var(--on-teal); font-size: 12px; }
.scale-note { margin-top: 10px; font-size: 13px; color: var(--on-teal-soft); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.feat { display: grid; gap: 10px; align-content: start; }
.feat svg { width: 30px; height: 30px; color: var(--teal-ink); }
.feat h3 { font-size: 21px; font-weight: 600; }
.feat p { color: var(--muted); font-size: 16px; }
.feat code { font-family: var(--f-mono); font-size: 13.5px; background: var(--sunk); padding: 1px 5px; border-radius: 4px; color: var(--ink); }

/* request access */
.join { background: var(--sunk); border-top: 1px solid var(--line); }
.join .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.next { margin-top: 34px; display: grid; gap: 0; }
.next li { list-style: none; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; position: relative; }
.next li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 4px; width: 1.5px; background: var(--line); }
.next ol { margin: 0; padding: 0; }
.next .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--teal-ink); font: 500 13px/1 var(--f-mono); color: var(--teal-ink); }
.next h3 { font: 600 18px/1.3 var(--f-body); letter-spacing: 0; margin-top: 5px; }
.next p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.contact-line { margin-top: 10px; font-size: 15px; color: var(--muted); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 26px; font-weight: 600; }
.form-card > p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
form { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14.5px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--f-body); color: var(--ink); background: var(--page);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 13px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-ink); background: var(--surface); }
.field input[aria-invalid="true"] { border-color: var(--low); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot .btn { border: 0; }
.form-foot .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-foot small { color: var(--muted); font-size: 13.5px; flex: 1 1 200px; }
.form-msg { grid-column: 1 / -1; font-size: 15px; color: var(--low); }
.done { display: grid; gap: 12px; padding: 20px 0 6px; }
.done .check { width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.done h3 { font-size: 26px; }
.done p { color: var(--muted); }
.demo-note { font-family: var(--f-mono); font-size: 12px; color: var(--amber-ink); }

/* footer */
.site-foot { padding-block: 40px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.site-foot .wrap { display: flex; gap: 20px 32px; flex-wrap: wrap; align-items: center; }
.site-foot .links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .nav { display: none; }
  .head-actions { margin-left: auto; }
  .hero .wrap, .score-grid, .join .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 48px 64px; }
  .stage { min-height: 0; padding-block: 10px 120px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .band { padding-block: 72px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 26px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .features { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  form { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 24px 20px; }
  .logo span { display: none; }
  .tag { left: -4px; top: 30px; }
  .mail { right: -4px; width: 240px; }
}
@media (max-width: 420px) {
  .head-actions .signin { display: none; }
  .phone { width: 280px; }
  .mail { width: 220px; bottom: 0; }
}
