/* WeTwo — one small stylesheet for every page. Tokens first, then components, then motion. */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --accent: #0066cc;
  --accent-ink: #fff;
  --radius: 20px;
  --pill: 980px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
  /* Light theme tokens (section themes override below) */
  --bg: #fbfbfd;
  --surface: #fff;
  --surface-2: #f5f5f7;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --line: rgba(0, 0, 0, .1);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .35);
}

.theme-dark {
  --bg: #000;
  --surface: #1d1d1f;
  --surface-2: #2c2c2e;
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --line: rgba(255, 255, 255, .14);
  --accent: #2997ff;
  --accent-ink: #000;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}

@media (prefers-color-scheme: dark) {
  :root, .theme-light {
    --bg: #000;
    --surface: #1d1d1f;
    --surface-2: #2c2c2e;
    --fg: #f5f5f7;
    --fg-2: #a1a1a6;
    --line: rgba(255, 255, 255, .14);
    --accent: #2997ff;
    --accent-ink: #000;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  }
  .theme-dark {
    --bg: #161617;
    --surface: #1d1d1f;
    --surface-2: #2c2c2e;
    --accent: #2997ff;
    --accent-ink: #000;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(44px, 8.2vw, 96px); letter-spacing: -.045em; line-height: 1; font-weight: 700; }
h2 { font-size: clamp(34px, 5.2vw, 64px); }
h3 { font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: var(--pill); font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
section, .section { background: var(--bg); color: var(--fg); padding: clamp(72px, 9.5vw, 132px) 0; }
.eyebrow { display: block; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.35; color: var(--fg-2); max-width: 44ch; text-wrap: pretty; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .lead { margin-top: 18px; }
.sec-head .btn { margin-top: 26px; }
.center { text-align: center; }
.center .lead, .sec-head.center { margin-inline: auto; }
.muted { color: var(--fg-2); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--pill);
  font-size: 17px; font-weight: 500; line-height: 1; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .25s var(--ease), filter .25s var(--ease), background .25s var(--ease);
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 19px; }
.btn-ghost { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); }
.btn-ghost:hover { background: color-mix(in srgb, var(--fg) 14%, transparent); filter: none; }
.link { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.link svg { transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.nav-links a { padding: 6px 0; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav .btn { min-height: 34px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .x, .nav[data-open] .menu-btn .bars, .nav .btn .short { display: none; }
.nav[data-open] .menu-btn .x { display: block; }
@media (max-width: 860px) {
  .nav-links, .nav .btn .full { display: none; }
  .nav .wrap { gap: 8px; }
  .nav .btn { margin-left: auto; }
  .nav .btn .short { display: inline; }
  .menu-btn { display: grid; }
  .nav[data-open] .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; inset: 56px 0 auto 0; padding: 12px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; color: var(--fg);
  }
  .nav[data-open] .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(64px, 10vw, 120px); padding-bottom: 0; overflow: hidden; }
.hero .wrap { text-align: center; }
.hero h1 { max-width: 12ch; margin-inline: auto; }
.hero .lead { margin: 26px auto 0; max-width: 40ch; }
.hero .cta-row { justify-content: center; margin-top: 34px; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--fg-2); }
.hero .fine a { color: var(--accent); font-weight: 500; }

.devices {
  position: relative; width: min(100%, 960px); margin: clamp(48px, 7vw, 88px) auto 0;
  padding-bottom: clamp(100px, 16vw, 150px);
}
.devices .laptop { width: 88%; }
.devices .phone { position: absolute; right: 0; bottom: clamp(40px, 6vw, 70px); --w: clamp(130px, 25%, 240px); }

/* Laptop mockup */
.laptop { position: relative; }
.laptop .lid { background: #1a1a1c; border-radius: 22px 22px 0 0; padding: 14px 14px 0; position: relative; box-shadow: var(--shadow); }
.laptop .lid::before { content: ""; position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3a3a3c; }
.laptop .screen { aspect-ratio: 16 / 10; border-radius: 10px 10px 0 0; overflow: hidden; background: #fff; }
.laptop .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop .base { height: 18px; background: linear-gradient(#e2e2e6, #b2b2b8); border-radius: 0 0 14px 14px; position: relative; }
.laptop .base::before { content: ""; position: absolute; top: 0; left: 50%; width: 130px; height: 7px; margin-left: -65px; background: #8f8f95; border-radius: 0 0 7px 7px; }

/* Phone mockup: everything scales from --w */
.phone {
  --w: 390px;
  position: relative; width: var(--w); aspect-ratio: 390 / 844;
  border-radius: calc(var(--w) * .15); background: #1a1a1c; padding: calc(var(--w) * .033);
  box-shadow: inset 0 0 0 2px #3a3a3c, var(--shadow);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; background: #2c2c2e; border-radius: 2px; }
.phone::before { left: -3px; top: 22%; height: 16%; }
.phone::after { right: -3px; top: 25%; height: 11%; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .118); overflow: hidden; background: #fff; }
.phone .island { position: absolute; z-index: 2; top: calc(var(--w) * .03); left: 50%; transform: translateX(-50%); width: calc(var(--w) * .3); height: calc(var(--w) * .09); border-radius: var(--pill); background: #000; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .screen iframe { width: 100%; height: 100%; border: 0; pointer-events: none; background: #fff; }
/* Live screen: a status bar sits behind the island, the iframe fills the rest */
.phone .screen.live { display: grid; grid-template-rows: calc(var(--w) * .128) 1fr; background: #0b1d33; }
.phone .status { display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--w) * .07); color: #fff; font-size: calc(var(--w) * .04); font-weight: 600; }
.phone .status svg { width: calc(var(--w) * .16); height: auto; }

/* ---------- Problem ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols3 > div { border-top: 1px solid var(--line); padding-top: 24px; }
.cols3 h3 { margin-bottom: 10px; }
.cols3 p { color: var(--fg-2); font-size: 17px; text-wrap: pretty; }
@media (max-width: 760px) { .cols3 { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Scroll story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-device { position: sticky; top: 88px; display: flex; justify-content: center; }
.story-device .phone { --w: min(360px, calc((100vh - 130px) / 2.165)); }
.story-steps { padding-top: 8vh; }
.story-step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding-right: 8px; transition: opacity .5s var(--ease); }
.story-step:last-child { min-height: 60vh; }
.story-step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; color: var(--fg-2); margin-bottom: 20px; transition: background .3s, color .3s, border-color .3s; }
.story-step h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.story-step p { font-size: 19px; color: var(--fg-2); max-width: 40ch; text-wrap: pretty; }
.story-steps.js .story-step { opacity: .3; }
.story-steps.js .story-step.is-active { opacity: 1; }
.story-step.is-active .num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-device { display: none; }
  .story-steps { padding-top: 0; }
  .story-step, .story-step:last-child { min-height: 0; padding: 26px 0; border-top: 1px solid var(--line); }
  .story-steps.js .story-step { opacity: 1; }
  .story-step .num { margin-bottom: 14px; }
  .story-step h3 { font-size: 24px; }
  .story-step p { font-size: 17px; }
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; grid-column: span 2; min-height: 240px; padding: 28px; border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  transition: transform .4s var(--ease);
  overflow: hidden;
}
.tile:hover { transform: translateY(-3px); }
.tile svg.ico { width: 32px; height: 32px; color: var(--accent); margin-bottom: auto; }
.tile h3 { font-size: 21px; }
.tile p { color: var(--fg-2); font-size: 15px; text-wrap: pretty; }
.tile-w { grid-column: span 3; }
.tile-xl { grid-column: span 4; }
.tile .big { font-size: clamp(56px, 7vw, 88px); font-weight: 700; letter-spacing: -.05em; line-height: .9; margin-bottom: auto; color: var(--fg); }
.tile .big small { font-size: .4em; font-weight: 600; letter-spacing: -.02em; color: var(--fg-2); margin-left: 4px; }
.call-demo { margin-bottom: auto; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 14px 22px; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 18px; }
.call-demo svg { width: 20px; height: 20px; }
.form-demo { margin-bottom: auto; display: grid; gap: 8px; width: 100%; max-width: 300px; }
.form-demo span { display: block; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.form-demo span:last-child { background: var(--accent); border: 0; height: 44px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile-w, .tile-xl { grid-column: span 1; } .tile-w, .tile-xl { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile, .tile-w, .tile-xl { grid-column: span 1; min-height: 0; gap: 12px; } .tile svg.ico, .tile .big, .call-demo, .form-demo { margin-bottom: 8px; } }

/* ---------- Storm season ---------- */
.storm-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.stat-list { display: grid; gap: 36px; }
.stat-list > li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; border-top: 1px solid var(--line); padding-top: 28px; }
.stat-list .big { font-size: clamp(48px, 6vw, 72px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.stat-list .big small { display: block; font-size: 15px; letter-spacing: 0; font-weight: 500; color: var(--fg-2); margin-top: 6px; }
.stat-list h3 { margin-bottom: 8px; }
.stat-list p { color: var(--fg-2); text-wrap: pretty; }
@media (max-width: 860px) { .storm-grid { grid-template-columns: 1fr; } .stat-list > li { grid-template-columns: 1fr; gap: 8px; } }

/* Storm-mode demo: a mini site that gets a banner when you flip the switch */
.storm-demo { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.storm-demo .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.storm-demo .toggle-row b { font-weight: 600; }
.switch { position: relative; width: 52px; height: 32px; border-radius: var(--pill); background: color-mix(in srgb, var(--fg) 22%, transparent); transition: background .3s var(--ease); flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .3s var(--ease); }
.switch[aria-checked="true"] { background: #34c759; }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.mini-site { border-radius: 14px; overflow: hidden; background: #fff; color: #1d1d1f; border: 1px solid var(--line); font-size: 13px; }
.mini-site .mini-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #e6e9ef; font-weight: 700; }
.mini-site .mini-nav span { padding: 7px 12px; border-radius: 8px; background: #b42318; color: #fff; font-size: 12px; }
.mini-banner { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); background: #fbeae9; color: #7a1b14; }
.mini-banner > div { overflow: hidden; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ease) .1s, transform .4s var(--ease) .1s; }
.mini-banner > div p { padding: 10px 14px; }
.mini-banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-left: 14px; }
.mini-banner.on { grid-template-rows: 1fr; }
.mini-banner.on > div { opacity: 1; transform: none; }
.mini-hero { padding: 20px 14px 22px; background: #0b1d33; color: #fff; }
.mini-hero b { display: block; font-size: 20px; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.mini-hero span { display: inline-block; margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #b42318; font-weight: 700; font-size: 12px; }
.storm-demo .hint { margin-top: 14px; font-size: 14px; color: var(--fg-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 36px; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--fg-2); font-size: 16px; text-wrap: pretty; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step::before { margin-bottom: 16px; } }

/* ---------- Pricing ---------- */
.price-card {
  margin-inline: auto; max-width: 960px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.price-main { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 10px; }
.price { display: flex; align-items: baseline; gap: 6px; font-size: clamp(64px, 9vw, 104px); font-weight: 700; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .cur { font-size: .45em; letter-spacing: -.03em; align-self: flex-start; margin-top: .25em; }
.price-sub { font-size: 19px; color: var(--fg-2); }
.price-sub b { color: var(--fg); font-weight: 600; }
.price-main .btn { align-self: flex-start; margin-top: 18px; }
.price-main .fine { font-size: 14px; color: var(--fg-2); }
.price-list { padding: clamp(32px, 5vw, 56px); background: var(--surface-2); display: grid; align-content: center; gap: 14px; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.price-list li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.price-list .head { font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 4px; }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; } }

/* ---------- Concepts ---------- */
.concepts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.concept { display: flex; flex-direction: column; gap: 8px; position: relative; }
.concept img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 10px; transition: transform .4s var(--ease); }
.concept:hover img { transform: translateY(-4px); }
.concept .tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: var(--pill); background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 600; }
.concept h3 { font-size: 21px; }
.concept p { color: var(--fg-2); font-size: 16px; text-wrap: pretty; }
.concept p b { color: var(--fg); font-weight: 600; }
.fine-note { margin-top: 28px; font-size: 14px; color: var(--fg-2); }
@media (max-width: 860px) { .concepts { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Founding offer ---------- */
.founding { max-width: 960px; margin: 24px auto 0; padding: clamp(24px, 4vw, 40px); border-radius: 28px; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.founding > div { flex: 1 1 420px; }
.founding h3 { margin-bottom: 10px; }
.founding p { color: var(--fg-2); text-wrap: pretty; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--fg); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- Track record ---------- */
.track { margin-top: clamp(40px, 6vw, 72px); }
.track h3 { margin-bottom: 8px; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.work { display: grid; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--surface); }
.work img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; margin-bottom: 6px; }
.work span { color: var(--fg-2); font-size: 15px; }
.work:hover b { color: var(--accent); }
@media (max-width: 760px) { .works { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start; padding: 28px; border-radius: var(--radius); background: var(--surface); }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.person .role { color: var(--accent); font-size: 15px; font-weight: 600; margin: 6px 0 10px; }
.person p { color: var(--fg-2); font-size: 16px; text-wrap: pretty; }
.person .link { margin-top: 12px; font-size: 15px; }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.promises li { border-top: 1px solid var(--line); padding-top: 20px; }
.promises b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.promises span { color: var(--fg-2); font-size: 16px; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; } .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .person { grid-template-columns: 72px 1fr; gap: 16px; padding: 22px; } .person img { width: 72px; height: 72px; } .promises { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--fg-2); transition: transform .35s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--fg-2); font-size: 17px; max-width: 64ch; text-wrap: pretty; }
.faq .a a { color: var(--accent); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .lead { margin-top: 18px; }
.contact .alt { margin-top: 28px; font-size: 16px; color: var(--fg-2); }
.contact .alt a { color: var(--accent); font-weight: 500; }
.ways { margin-top: 30px; display: grid; gap: 16px; }
.ways a { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 500; letter-spacing: -.01em; min-height: 48px; }
.ways svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--accent); }
.ways small { display: block; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--fg-2); }
.ways a:hover { color: var(--accent); }
.form { display: grid; gap: 14px; background: var(--surface); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.field input { font: inherit; font-size: 17px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); min-height: 48px; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.form .btn { margin-top: 6px; }
.form .note { font-size: 14px; color: var(--fg-2); }
.form .note[data-sent] { color: var(--fg); }
.form .note a { color: var(--accent); font-weight: 500; }
.form button[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-2); background: var(--bg); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a:hover { color: var(--fg); }
.footer a[href^="https://wa.me"] { white-space: nowrap; }

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding: clamp(64px, 10vw, 120px) 0; min-height: 60vh; }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 20px; }
.page h2 { font-size: 26px; margin: 40px 0 10px; }
.page p, .page li { font-size: 19px; color: var(--fg-2); margin: 0 0 16px; text-wrap: pretty; }
.page a:not(.btn) { color: var(--accent); }
.page .btn { margin-top: 12px; }

/* ---------- Motion ----------
   Off by default: nothing is hidden unless JS adds html.anim after checking prefers-reduced-motion.
   With CSS scroll-driven animations the reveal is pure CSS (animation-timeline: view());
   otherwise main.js adds html.io and toggles .in with an IntersectionObserver. */
@media (prefers-reduced-motion: no-preference) {
  html.anim .reveal { opacity: 0; transform: translateY(28px); }
  @supports (animation-timeline: view()) {
    html.anim:not(.io) .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry calc(8% + var(--d, 0%)) entry calc(45% + var(--d, 0%));
    }
    html.anim:not(.io) .devices .laptop { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    html.anim:not(.io) .devices .phone { animation: drift-phone linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
  html.io .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--dt, 0s); }
  html.io .reveal.in { opacity: 1; transform: none; }
  html.anim .hero .up { animation: rise 1s var(--ease) both; animation-delay: var(--d, 0s); }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translateY(-40px); } }
@keyframes drift-phone { to { transform: translateY(-90px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .story-steps.js .story-step { opacity: 1; }
}
.person .links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
.person .links .link { margin-top: 0; }

/* Form success panel: replaces the form once FormSubmit accepts the request */
.sent { align-content: start; text-align: center; justify-items: center; padding-block: clamp(36px, 5vw, 56px); outline: none; }
.form[hidden], .sent[hidden] { display: none; }
.sent svg { width: 56px; height: 56px; color: #34c759; }
.sent h3 { margin-top: 4px; }
.sent p { color: var(--fg-2); max-width: 38ch; text-wrap: pretty; }
.sent a { color: var(--accent); font-weight: 500; }
.sent .btn { margin-top: 8px; }
html.anim .sent.reveal, .sent { opacity: 1; transform: none; }
