:root {
  --ink: #14171c;
  --ink-2: #3d4450;
  --muted: #667085;
  --paper: #f3f5f7;
  --card: #ffffff;
  --line: #dde2e8;
  --accent: #0e8f9b;
  --accent-soft: #e3f4f5;
  --gold: #d9912b;
  --error: #b42318;
  --radius: 14px;
  --maxw: 1080px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border: 2.5px solid var(--accent); border-radius: 50%; }
.tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding-block: 40px 56px; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 3.5rem); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.015em; margin: 0 0 20px; text-wrap: balance; }
.lede { font-size: 1.16rem; color: var(--ink-2); max-width: 46ch; margin: 0; }

/* Signup */
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 520px; }
.signup input[type="email"] { flex: 1 1 240px; min-width: 0; font: inherit; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.signup input[type="email"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
button, .btn { font: 600 1rem/1 var(--body); padding: 15px 22px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: #2a3039; }
button:disabled { opacity: 0.6; cursor: progress; }
.status { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; color: var(--accent); }
.status.error { color: var(--error); }
.fine { font-size: 0.86rem; color: var(--muted); margin: 6px 0 0; }

/* Survey */
.survey { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 560px; }
.survey h3 { font-family: var(--display); font-size: 1.2rem; margin: 0 0 4px; }
.survey > p { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }
.survey fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.survey legend { font-weight: 600; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 7px; font-size: 0.95rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--paper); }
.choices input { accent-color: var(--accent); margin: 0; }
.survey textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-height: 76px; resize: vertical; }

/* Mock */
.mock { margin: 0; justify-self: center; width: min(320px, 100%); }
.phone { background: var(--ink); border-radius: 34px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(20, 23, 28, 0.45); }
.screen { background: var(--card); border-radius: 24px; overflow: hidden; }
.viewfinder { aspect-ratio: 4 / 3; background: #1e242c; position: relative; display: grid; place-items: center; }
.viewfinder .frame { width: 64%; aspect-ratio: 1.6; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 12px; position: relative; }
.viewfinder .frame::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.viewfinder .obj { position: absolute; width: 38%; height: 26%; background: linear-gradient(135deg, #3b4450, #59636f); border-radius: 30% 40% 12% 12%; }
.viewfinder.box .obj { width: 30%; height: 44%; border-radius: 6px; background: linear-gradient(160deg, #3b4450, #59636f); }
.result { padding: 16px 18px 20px; }
.result .kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.result .name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin: 4px 0 10px; }
.rows { display: grid; gap: 6px; font-size: 0.9rem; }
.rows div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.rows span:first-child { color: var(--muted); }
.rows b { font-variant-numeric: tabular-nums; }
.pill { display: inline-block; margin-top: 12px; font-size: 0.8rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: #fdf1e0; color: #8a5a12; }
.mock figcaption { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* Features */
.section { padding-block: 44px; border-top: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-family: var(--display); font-size: 1.12rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; max-width: 760px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 2px; color: var(--ink-2); }

/* Hub */
.choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 12px 56px; }
.choose a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.choose a:hover { border-color: var(--accent); }
.choose h2 { margin-bottom: 8px; }
.choose p { margin: 0; color: var(--ink-2); }

.foot { padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 20px 40px; }
  .features, .choose { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .viewfinder .frame::before { animation: scan 2.4s ease-in-out infinite alternate; }
  @keyframes scan { from { top: 18%; } to { top: 82%; } }
}
