:root {
  --paper: #F6F2EC;
  --paper-2: #EDE6DC;
  --ink: #17211C;
  --ink-2: #4A564F;
  --forest: #1F3B2D;
  --coral: #F2643F;
  --coral-dark: #D9502C;
  --mint: #BFE3CF;
  --radius: 16px;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand, .result-num, .step-num { font-family: var(--display); }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 20px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--forest); position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); top: 5px; left: 9px; }
.top-note { font-size: 14px; color: var(--ink-2); }

/* Hero */
.hero {
  max-width: 1120px; margin: 0 auto; padding: 24px 24px 64px;
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 48px; padding-bottom: 96px; }
}
h1 {
  font-size: clamp(42px, 8vw, 74px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 20px; font-weight: 800;
}
.lede { font-size: clamp(18px, 2.2vw, 20px); color: var(--ink-2); margin: 0 0 28px; max-width: 36ch; }

/* Form */
.signup { max-width: 480px; }
.field-row { display: flex; gap: 8px; flex-wrap: wrap; }
.field-row input {
  flex: 1 1 220px; min-width: 0;
  font: inherit; font-size: 17px; padding: 15px 16px;
  border-radius: 12px; border: 1.5px solid #DDD4C7; background: #fff; color: var(--ink);
}
.field-row input:focus { outline: none; border-color: var(--forest); }
.field-row button {
  flex: 0 0 auto; font: inherit; font-size: 17px; font-weight: 700;
  padding: 15px 22px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--coral); color: #fff;
  transition: transform .15s ease, background .15s ease;
}
.field-row button:hover { background: var(--coral-dark); }
.field-row button:active { transform: scale(.98); }
.field-row button[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 520px) { .field-row button { flex: 1 1 100%; } }
.fine { font-size: 13.5px; color: var(--ink-2); margin: 12px 2px 0; }
.form-error { color: var(--coral-dark); font-weight: 600; font-size: 14px; margin: 8px 2px 0; }

/* Visual */
.hero-visual { position: relative; display: flex; justify-content: flex-start; padding: 10px 0 40px 6%; max-width: 520px; width: 100%; justify-self: center; }
.phone {
  width: 268px; aspect-ratio: 9 / 18.5; border-radius: 44px; background: #111;
  padding: 11px; box-shadow: 0 24px 50px rgba(23,33,28,.22);
  transform: rotate(-3deg);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #ccc;
}
.cam-photo, .pose { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-photo { object-fit: cover; object-position: 50% 50%; }
.pose .bones line { stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .9; }
.pose .joints circle { fill: var(--coral); stroke: #fff; stroke-width: 3; }
.cam-label {
  position: absolute; top: 14px; left: 10px; right: 10px; text-align: center;
  color: #fff; font-size: 11.5px; font-weight: 600;
  background: rgba(0,0,0,.38); padding: 6px 8px; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-right: 6px; vertical-align: 1px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.cam-angle {
  position: absolute; top: 31%; right: 10px;
  color: #fff; font-size: 12px; font-weight: 700; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(31,59,45,.85); padding: 4px 8px; border-radius: 6px;
}
.cam-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: 15px; background: rgba(0,0,0,.4); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }

.result-card {
  position: absolute; right: 0; bottom: 0;
  width: 232px; background: #fff; border-radius: var(--radius); padding: 18px;
  box-shadow: 0 16px 40px rgba(23,33,28,.16); transform: rotate(2deg);
}
@media (max-width: 420px) { .result-card { width: 200px; padding: 15px; } .phone { width: 220px; } .hero-visual { padding-left: 2%; } }
.result-tag { position: absolute; top: -10px; left: 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--forest); color: var(--paper); padding: 3px 8px; border-radius: 6px; }
.result-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.result-label { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.result-num { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--coral); }
.result-real { font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--paper); padding: 4px 9px; border-radius: 8px; }
.bars { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.bars li { display: grid; grid-template-columns: 78px 1fr; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.bars i { height: 7px; border-radius: 4px; background: var(--paper-2); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: 4px; background: var(--forest); }
.result-plan { font-size: 12.5px; font-weight: 700; color: var(--forest); background: #EAF5EE; padding: 8px 10px; border-radius: 10px; }

/* Sections */
section h2 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 28px; }
.how, .faq, .final { max-width: 1120px; margin: 0 auto; padding: 64px 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .steps { grid-template-columns: 1.1fr 1fr 1fr; } }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid #ECE4D8; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--paper); font-weight: 800; font-size: 15px; }
.steps h3 { margin: 14px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--ink-2); }

.privacy-band {
  max-width: 1072px; margin: 16px auto; padding: 36px; border-radius: 24px;
  background: var(--forest); color: var(--paper);
  display: flex; gap: 24px; align-items: flex-start;
}
@media (max-width: 1120px) { .privacy-band { margin: 16px 24px; } }
.privacy-band h2 { margin-bottom: 8px; font-size: clamp(24px, 3.5vw, 32px); }
.privacy-band p { margin: 0; opacity: .85; max-width: 60ch; }
.lock { flex: 0 0 40px; width: 40px; height: 40px; fill: none; stroke: var(--mint); stroke-width: 2; }

.faq details { border-bottom: 1px solid #E4DBCD; max-width: 760px; }
.faq details:first-of-type { border-top: 1px solid #E4DBCD; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--coral); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 62ch; }

.final { padding-bottom: 96px; }

.foot { max-width: 1120px; margin: 0 auto; padding: 24px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--paper-2); }

/* Thank you */
.thanks { position: fixed; inset: 0; background: rgba(23,33,28,.55); display: grid; place-items: center; padding: 20px; z-index: 10; }
.thanks[hidden] { display: none; }
.thanks-card { background: var(--paper); border-radius: 24px; padding: 30px 26px; max-width: 440px; width: 100%; text-align: center; }
.thanks-check { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--forest); color: var(--paper); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.thanks-card h2 { font-size: 26px; margin: 0 0 6px; }
.thanks-card > p { color: var(--ink-2); margin: 0 0 20px; }
.survey-q { font-weight: 700; margin: 0 0 10px; }
.survey-options { display: grid; gap: 8px; }
.survey-options button { font: inherit; font-weight: 600; padding: 12px; border-radius: 12px; border: 1.5px solid var(--paper-2); background: #fff; cursor: pointer; }
.survey-options button:hover { border-color: var(--forest); }
.survey-done { font-weight: 700; color: var(--forest); }
.thanks-close { margin-top: 18px; font: inherit; font-size: 16px; font-weight: 700; padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer; background: var(--forest); color: #fff; }

/* Legal page */
.legal { max-width: 720px; margin: 0 auto; padding: 24px 24px 80px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
