/* Stair Once: the app's design system on the web.
   Navy outline and sky fill from the logo, square corners, ruler ticks, hard offset shadows. */
:root {
  --navy: #011761;
  --sky: #64C6FA;
  --sky-deep: #52BFFA;
  --bg: #F2F7FC;
  --surface: #FFFFFF;
  --fill: #E4F2FD;
  --ink: #011761;
  --ink2: rgba(1, 23, 97, .62);
  --ink3: rgba(1, 23, 97, .3);
  --line: rgba(1, 23, 97, .12);
  --shadow: #011761;
  --warn: #E04A14;
  --warn-fill: #FFE8DE;
  --display: "Archivo", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000822; --surface: #061544; --fill: #0A2161;
    --ink: #E8F5FF; --ink2: rgba(232, 245, 255, .62); --ink3: rgba(232, 245, 255, .32);
    --line: rgba(100, 198, 250, .2); --shadow: #64C6FA; --warn: #FF8257; --warn-fill: #3A1508;
  }
}
:root[data-theme="dark"] {
  --bg: #000822; --surface: #061544; --fill: #0A2161;
  --ink: #E8F5FF; --ink2: rgba(232, 245, 255, .62); --ink3: rgba(232, 245, 255, .32);
  --line: rgba(100, 198, 250, .2); --shadow: #64C6FA; --warn: #FF8257; --warn-fill: #3A1508;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Type */
.display { font-family: var(--display); font-weight: 850; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -.015em; line-height: 1.02; }
.cap { font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.lead { font-size: 19px; color: var(--ink2); max-width: 36em; }

/* Ruler */
.ruler { height: 14px; background:
  repeating-linear-gradient(90deg, var(--ink3) 0 1.5px, transparent 1.5px 56px) 0 0 / 100% 14px no-repeat,
  repeating-linear-gradient(90deg, var(--ink3) 0 1.5px, transparent 1.5px 28px) 0 0 / 100% 9px no-repeat,
  repeating-linear-gradient(90deg, var(--ink3) 0 1.5px, transparent 1.5px 7px) 0 0 / 100% 5px no-repeat;
  border-top: 2px solid var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand span { font-size: 20px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink2); }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.block {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--sky); color: var(--navy); border: 3px solid var(--navy);
  box-shadow: 4px 4px 0 var(--shadow); padding: 14px 22px; text-decoration: none;
  font: 850 16px/1 var(--display); font-stretch: 115%; font-variation-settings: "wdth" 115;
  transition: transform .12s ease, box-shadow .12s ease;
}
.block:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.block:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow); }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 54px; width: auto; }
.nav .block { padding: 10px 16px; font-size: 14px; }

/* Hero */
.hero { padding: 40px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); margin: 18px 0 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sky) 62%); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.fineprint { font-size: 14px; color: var(--ink2); }
.phone, .shot {
  position: relative; background: var(--navy); border: 0; padding: 9px;
  border-radius: 50px; box-shadow: 12px 12px 0 var(--sky);
}
.phone { max-width: 300px; margin-left: auto; }
.phone img, .shot img { width: 100%; height: auto; border-radius: 41px; }
:root[data-theme="dark"] .phone, :root[data-theme="dark"] .shot { outline: 2px solid var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone, :root:not([data-theme="light"]) .shot { outline: 2px solid var(--sky); } }

/* Stair build animation */
.build { display: flex; align-items: flex-end; gap: 0; height: 64px; }
.build i { display: block; width: 34px; background: var(--sky); border: 4px solid var(--navy); margin-right: -4px; animation: rise .7s cubic-bezier(.2, .9, .3, 1.25) both; }
.build i:nth-child(1) { height: 30%; animation-delay: .05s; }
.build i:nth-child(2) { height: 62%; animation-delay: .18s; }
.build i:nth-child(3) { height: 100%; animation-delay: .31s; }
@keyframes rise { from { transform: translateY(-120px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 14px 0 16px; }

/* Complaint */
.complaint { background: var(--navy); color: #E8F5FF; }
.complaint .cap { color: var(--sky); }
.complaint .lead { color: rgba(232, 245, 255, .72); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { border: 2px solid rgba(100, 198, 250, .35); padding: 22px; position: relative; background: rgba(255, 255, 255, .03); }
.quote::before { content: ""; position: absolute; left: -2px; top: -2px; width: 16px; height: 16px; background: var(--navy); border-right: 2px solid rgba(100, 198, 250, .35); border-bottom: 2px solid rgba(100, 198, 250, .35); }
.quote p { font-size: 16px; line-height: 1.5; color: rgba(232, 245, 255, .75); }
.quote .pt { font: 850 21px/1.2 var(--display); font-stretch: 115%; font-variation-settings: "wdth" 115; color: #E8F5FF; margin-bottom: 10px; }
.quote .stars { margin-top: 16px; font: 700 12px var(--mono); letter-spacing: .14em; color: #FF8257; }
.answer { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.answer span { border: 2px solid var(--sky); padding: 10px 14px; font: 700 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }

/* Steps: cards rise like stairs */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; align-items: end; }
.step { border: 3px solid var(--ink); background: var(--surface); padding: 26px; margin-right: -3px; }
.step:nth-child(1) { min-height: 260px; }
.step:nth-child(2) { min-height: 320px; background: var(--fill); }
.step:nth-child(3) { min-height: 380px; background: var(--sky); color: var(--navy); }
.step:nth-child(3) .cap, .step:nth-child(3) p { color: rgba(1, 23, 97, .75); }
.step .num { font-size: 64px; }
.step h3 { font-size: 24px; margin: 10px 0 10px; }
.step p { color: var(--ink2); }

/* Features */
.features { display: grid; gap: 90px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature:nth-child(even) .shot { order: -1; }
.feature h3 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 16px; }
.feature ul { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 10px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.feature li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; background:
  linear-gradient(var(--navy), var(--navy)) 3px 12px / 5px 3px no-repeat,
  linear-gradient(var(--navy), var(--navy)) 6px 8px / 3px 7px no-repeat,
  linear-gradient(var(--navy), var(--navy)) 6px 8px / 5px 3px no-repeat,
  linear-gradient(var(--navy), var(--navy)) 9px 3px / 3px 8px no-repeat,
  linear-gradient(var(--navy), var(--navy)) 9px 3px / 6px 3px no-repeat,
  var(--sky); outline: 2px solid var(--navy); outline-offset: -2px; }
.shot { justify-self: center; width: min(310px, 80vw); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.plan { border: 3px solid var(--ink); background: var(--surface); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.plan.pro { background: var(--sky); color: var(--navy); box-shadow: 8px 8px 0 var(--shadow); }
.plan.pro .cap { color: rgba(1, 23, 97, .7); }
.price { font-size: 56px; }
.price small { font: 600 16px var(--body); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-weight: 600; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 10px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); transform-origin: 30% 60%; }
.never { margin-top: 26px; border: 3px dashed var(--ink); padding: 18px 22px; display: flex; gap: 16px; align-items: center; font-weight: 700; }
.never b { font-family: var(--display); font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 20px; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 2px solid var(--line); }
.faq details { border-bottom: 2px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 24px/1 var(--display); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink2); max-width: 46em; }

/* Final CTA */
.final { text-align: center; }
.final h2 { font-size: clamp(36px, 5vw, 60px); margin: 18px auto 18px; max-width: 14em; }
.final .cta-row { justify-content: center; }
.final .lead { margin: 0 auto; }

/* Footer */
footer { padding: 36px 0 50px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; color: var(--ink2); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
footer a { text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); }

/* Doc pages (privacy, support) */
.doc { padding: 60px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 56px); margin: 14px 0 20px; overflow-wrap: break-word; hyphens: auto; }
.doc h2 { font: 850 22px/1.2 var(--display); font-stretch: 115%; font-variation-settings: "wdth" 115; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.card { border: 3px solid var(--ink); background: var(--surface); padding: 22px; margin-top: 24px; box-shadow: 6px 6px 0 var(--shadow); }
.card p { color: var(--ink); }

/* Coming soon */
.soon { display: inline-flex; align-items: center; gap: 10px; border: 3px solid var(--ink); background: var(--surface); padding: 12px 18px; font: 850 16px/1 var(--display); font-stretch: 115%; font-variation-settings: "wdth" 115; box-shadow: 4px 4px 0 var(--shadow); }
.soon i { width: 10px; height: 10px; background: var(--sky); outline: 2px solid var(--navy); }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--surface); padding: 10px 14px; border: 2px solid var(--ink); font-weight: 700; }
.skip:focus { left: 12px; }

/* Guides list on home */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; border: 3px solid var(--ink); background: var(--surface); padding: 24px; text-decoration: none; box-shadow: 4px 4px 0 var(--shadow); transition: transform .12s ease, box-shadow .12s ease; }
.guide-card:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--shadow); }
.guide-card h3 { font-size: 22px; line-height: 1.15; }
.guide-card p { color: var(--ink2); font-size: 16px; }
.guide-card .more { margin-top: auto; font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* Guide pages */
.crumbs { font: 700 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.updated { font-size: 14px; color: var(--ink2); margin-bottom: 18px; }
.doc .lead { font-size: 19px; color: var(--ink); }
.doc h3 { font: 800 18px/1.3 var(--body); margin: 24px 0 8px; }
.doc ol { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--ink); }
.doc a { text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 18px 0 6px; border: 3px solid var(--ink); background: var(--surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc thead th { font: 700 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--fill); }
.doc tbody th { font-weight: 700; }
.doc td { color: var(--ink2); }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 0; }
.formula { font: 700 16px/1.5 var(--mono); background: var(--fill); border-left: 4px solid var(--sky); padding: 12px 16px; margin: 14px 0; overflow-x: auto; }
.diagram { margin: 22px 0 6px; border: 3px solid var(--ink); background: var(--surface); padding: 16px; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { font-size: 14px; color: var(--ink2); margin-top: 8px; }
.note { border: 3px dashed var(--ink); padding: 16px 20px; margin-top: 24px; }
.note p { color: var(--ink); }
.card.app h2 { margin-top: 0; }
.doc .faq { margin-top: 10px; }
.doc .faq summary { font-size: 17px; }
.faq summary h3 { font: inherit; margin: 0; }
.related { margin-top: 32px; }

/* 404 */
.notfound { text-align: center; }
.notfound .cta-row { justify-content: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .build i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .block, .guide-card, .faq summary::after { transition: none; }
}

@media (max-width: 860px) {
  .hero .wrap, .feature, .pricing { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .phone { margin: 10px auto 0; max-width: 300px; }
  .quotes, .guides { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { margin-right: 0; margin-bottom: -3px; min-height: 0 !important; }
  .feature:nth-child(even) .shot { order: 0; }
  .nav-links a:not(.block) { display: none; }
  section { padding: 64px 0; }
}
