/*
  OneWalk marketing site, phase 1 one-pager (CR-OW-2026-11-18-0023).
  Tokens: DESIGN.md "Marketing site tokens" and docs/brand/README.md. Light only.
  No @import, no third-party URL: fonts are self-hosted under fonts/ (SIL OFL, see fonts/SOURCES.txt).
  Every animation sits inside prefers-reduced-motion: no-preference; the rest state is the final frame.
*/

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/outfit-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --cream: #fff4e8;
  --navy: #14304f;
  --rust: #c2410c;
  --rust-dark: #9a3412;
  --sand: #ead9c8;
  --white: #ffffff;
  --ink: #14304f;
  --ink-2: #4a5a6b; /* navy mixed toward gray for secondary text; 6.53:1 on cream */
  --paper: #ffffff;
  --font-display: "Outfit", "Barlow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --measure: 62ch;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.55 var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; color: var(--navy); }
h1 { font-size: clamp(38px, 6.2vw, 58px); }
h2 { font-size: clamp(30px, 4vw, 40px); }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(19px, 2vw, 21px); line-height: 1.5; color: var(--ink); max-width: var(--measure); }
.muted { color: var(--ink-2); }
.eyebrow { font: 500 14px/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rust); margin-bottom: 14px; }
section { padding: 72px 0; border-top: 1px solid var(--sand); }
@media (min-width: 900px) { section { padding: 96px 0; } }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; font: 600 17px/1 var(--font-body); text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-dark); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--white); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 16px; }

/* Header */
header { padding: 18px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav .logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a.plain { font-weight: 500; text-decoration: none; }
.nav-links a.plain:hover { text-decoration: underline; }
@media (max-width: 520px) { .nav-links .btn { display: none; } }

/* Hero */
.hero { padding-top: 40px; padding-bottom: 72px; border-top: 0; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding-top: 56px; padding-bottom: 96px; } .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 15px; }
.hero-origin { margin-top: 8px; font-size: 15px; max-width: var(--measure); }
.plan-card { background: var(--paper); border: 1px solid var(--sand); border-radius: 12px; padding: 16px; margin: 0; }
.plan-card figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Animated plan (SVG). The final frame is the rest state; motion only under no-preference. */
.plan { width: 100%; height: auto; font-family: var(--font-body); }
.plan .wall { fill: none; stroke: #4b5057; stroke-width: 7; stroke-linecap: square; }
.plan .wall.inner { stroke: #a9adb3; stroke-width: 5; }
.plan .cable { fill: none; stroke: #1d4ed8; stroke-width: 2.5; stroke-linejoin: round; }
.plan .step { fill: var(--rust); }
.plan .dev { fill: #ffffff; stroke-width: 2.5; }
.plan .dev.cam { stroke: #dc2626; }
.plan .dev.net { stroke: #2563eb; }
.plan .lbl { font: 600 12px var(--font-body); fill: #16181b; }
.plan .room { font: 500 13px var(--font-body); fill: #4b5057; }
.plan .chip { fill: #ffffff; stroke: #a9adb3; }
.plan .total { font: 600 18px var(--font-display); fill: var(--rust); letter-spacing: -0.01em; }
.plan .view { fill: #dc2626; fill-opacity: 0.12; stroke: #dc2626; stroke-opacity: 0.6; stroke-dasharray: 4 3; stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  .plan .wall { stroke-dasharray: 1800; stroke-dashoffset: 1800; animation: draw 1.4s ease-out forwards; }
  .plan .wall.inner { stroke-dasharray: 500; stroke-dashoffset: 500; animation-delay: 0.9s; animation-duration: 0.8s; }
  .plan .step { opacity: 0; animation: pop 0.25s ease-out forwards; }
  .plan .dev, .plan .lbl, .plan .view { opacity: 0; animation: pop 0.3s ease-out forwards; }
  .plan .cable { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 0.9s ease-out forwards; }
  .plan .room { opacity: 0; animation: pop 0.4s ease-out 1.6s forwards; }
  .plan .chip, .plan .total { opacity: 0; animation: pop 0.3s ease-out 4.6s forwards; }
  /* Per-node start times. Declared after the rules above so they win at equal specificity. */
  .plan .d-1500 { animation-delay: 1.5s; }
  .plan .d-1650 { animation-delay: 1.65s; }
  .plan .d-1800 { animation-delay: 1.8s; }
  .plan .d-1950 { animation-delay: 1.95s; }
  .plan .d-2100 { animation-delay: 2.1s; }
  .plan .d-2250 { animation-delay: 2.25s; }
  .plan .d-2500 { animation-delay: 2.5s; }
  .plan .d-2800 { animation-delay: 2.8s; }
  .plan .d-3050 { animation-delay: 3.05s; }
  .plan .d-3300 { animation-delay: 3.3s; }
  .plan .d-3550 { animation-delay: 3.55s; }
  .plan .d-3750 { animation-delay: 3.75s; }
  .plan .d-3900 { animation-delay: 3.9s; }
  .plan .d-4050 { animation-delay: 4.05s; }
  .plan .d-4200 { animation-delay: 4.2s; }
  .plan .d-4300 { animation-delay: 4.3s; }
  .plan .d-4400 { animation-delay: 4.4s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* Who */
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.list li { padding-left: 26px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--rust); }

/* Features (real product) */
.feature { display: grid; gap: 24px; align-items: center; margin-top: 56px; }
.feature:first-of-type { margin-top: 48px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 48px; }
  .feature.flip .feature-text { order: 2; }
}
.feature-text p { margin-top: 12px; max-width: 48ch; }
.feature-text ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink); }
.feature-text li { margin: 6px 0; }
.shot { border: 1px solid var(--sand); border-radius: 10px; overflow: hidden; background: var(--white); box-shadow: 0 1px 0 rgba(20, 48, 79, 0.06); }
.shot img { width: 100%; }
figure { margin: 0; }
.shot-caption { display: block; font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* Invite */
.steps { counter-reset: step; list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { background: var(--white); border: 1px solid var(--sand); border-radius: 10px; padding: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--white); font: 600 15px/1 var(--font-display); margin-bottom: 12px; }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.invite-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.addr { font-weight: 600; }

/* Install */
.install-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .install-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.install-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.install-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.install-steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font: 600 14px/1 var(--font-display); margin-top: 2px; }
.why { background: var(--white); border: 1px solid var(--sand); border-radius: 10px; padding: 22px; }
.why h3 { font-size: 20px; }
.why p { margin-top: 10px; font-size: 17px; }
.why p + p { margin-top: 10px; }

/* Support and footer */
.support p { margin-top: 12px; max-width: var(--measure); }
footer { border-top: 1px solid var(--sand); padding: 32px 0 48px; font-size: 15px; color: var(--ink-2); }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--ink-2); }
.foot .logo img { height: 28px; width: auto; }

/* 404 */
.not-found { padding-top: 40px; border-top: 0; }
.not-found p { margin-top: 20px; }
