/* Sidestep: Quit Vaping. One stylesheet for every page. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter.woff2") format("woff2-variations"), url("fonts/inter.woff2") format("woff2");
}
:root {
  --navy: #0E1A2B;
  --navy-2: #15243A;
  --navy-3: #1E3049;
  --line: #2A3D58;
  --mint: #7EE0B5;
  --coral: #FF7A59;
  --paper: #F5F2EC;
  --muted: #BAC3CF;
  --ink-muted: #4A5566;
  --radius: 14px;
  --max: 1120px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { 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(--navy);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: var(--mint); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--mint); color: var(--navy);
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700; z-index: 10;
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--paper); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--paper); text-decoration: none; font-size: 0.95rem; display: inline-block; padding: 10px 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--mint); }
@media (max-width: 520px) { .nav .hide-sm { display: none; } }

/* Sections */
section { padding: 4.5rem 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.75rem 1.4rem; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--mint); color: var(--navy); }
.btn-primary:hover { background: #9BEAC7; }

/* ---------- Home page ---------- */
/* Bands alternate navy and paper, like the slideshows people arrive from. */
.band { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.band.paper { background: var(--paper); color: var(--navy); }
.band.paper a { color: #0B6B47; }

.home h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  font-weight: 850; letter-spacing: -0.045em; line-height: 0.98;
  margin-bottom: 1.5rem; text-wrap: balance;
}
.home h1 .accent { color: var(--mint); display: block; }
.home .band h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1.02; }

/* Hero */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); gap: 4rem; }
}
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 2rem 0 0; }
.store-row p { margin: 0; max-width: 21rem; }
.btn-store { background: var(--paper); color: var(--navy); }
.btn-store:hover { background: #fff; }
.btn-store .store-small { display: block; font-size: 0.75rem; font-weight: 600; line-height: 1.1; }
.btn-store .store-big { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.btn-store[aria-disabled="true"] { background: transparent; color: var(--paper); border-color: var(--line); cursor: default; }
.btn-store[aria-disabled="true"] .store-small { color: var(--muted); }

.hero-kicker { color: var(--mint); font-weight: 700; font-size: 1.05rem; margin: 0 0 1rem; }
.btn-cta { min-height: 56px; font-size: 1.05rem; padding: 0.8rem 1.6rem; }
@media (max-width: 520px) { .btn-cta { width: 100%; } .store-row p { max-width: none; } }
@media (max-width: 899px) { .hero-phone { display: none; } }
.btn-ink { background: var(--navy); color: var(--paper); }
.btn-ink:hover { background: var(--navy-3); }
.band.paper .btn-ink { color: var(--paper); }
.closer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.home .closer h2 { margin: 0; }

/* Launch list: its own band between the maths and the features */
.band.launch { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.launch-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 820px) { .launch-grid { grid-template-columns: 1fr minmax(0, 30rem); gap: 3rem; } }
.home .launch h2 { margin-bottom: 1rem; text-wrap: balance; }
.launch-note { font-size: 1.2rem; color: var(--muted); max-width: 26em; margin: 0; }
.launch-form { background: var(--navy-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; }
.launch-form iframe { display: block; border: 0; min-height: 200px; }
.launch-form p { margin: 0.5rem 0 0; }

/* Phone frames around real app screenshots */
.phone {
  margin: 0; justify-self: center; width: min(280px, 74vw);
  padding: 9px; border-radius: 46px; background: #050B14;
  box-shadow: 0 0 0 1px #2A3D58, 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; height: auto; border-radius: 38px; }
.hero-phone { width: min(330px, 80vw); transform: rotate(3deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-phone { animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.15s; }
  @keyframes settle { from { opacity: 0; transform: translateY(40px) rotate(8deg); } to { opacity: 1; transform: rotate(3deg); } }
}

/* Vape maths: one sentence you type into */
.maths-line { font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.25; margin: 0; }
.maths-line label { cursor: text; }
.maths-hint { color: var(--ink-muted); font-weight: 600; margin: 0 0 0.75rem; }
.nowrap { white-space: nowrap; }
.band.paper :focus-visible { outline-color: #B93A1D; }
.spend-field {
  display: inline-flex; align-items: center; margin: 0 0.15em; min-height: 44px;
  padding: 0 0.3em; border: 2px solid var(--navy); border-radius: 10px; background: #fff; font-weight: 850;
}
.spend-field:focus-within { outline: 3px solid #B93A1D; outline-offset: 3px; }
.spend-field input {
  width: 2.6ch; font: inherit; color: inherit; letter-spacing: inherit;
  background: transparent; border: 0; padding: 0; -moz-appearance: textfield; appearance: textfield;
}
.spend-field input::-webkit-outer-spin-button, .spend-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.spend-field input:focus-visible { outline: none; }
.maths-big {
  font-size: clamp(3.6rem, 13vw, 9.5rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.95;
  color: #E8573A; margin: 0.35rem 0 1.5rem; font-variant-numeric: tabular-nums;
}
.maths-big .unit { font-size: max(1.15rem, 0.3em); letter-spacing: -0.03em; color: var(--navy); font-weight: 850; margin-left: 0.15em; white-space: nowrap; }
.maths-more { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: -0.015em; max-width: 30em; margin: 0 0 1rem; }
.maths-more span { font-weight: 850; }
.maths-note { color: var(--ink-muted); max-width: 34em; margin: 0; }

/* Features: copy beside a phone, alternating sides */
.feature { display: grid; gap: 2.5rem; align-items: center; }
.feature + .feature { margin-top: clamp(4.5rem, 10vw, 7.5rem); }
.feature-copy p { font-size: 1.2rem; color: var(--muted); max-width: 30em; margin: 0; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .feature:nth-child(even) .feature-copy { order: 2; }
}

/* Pricing and privacy */
.facts-grid { display: grid; gap: 3rem; }
@media (min-width: 820px) { .facts-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.facts h2 { margin-bottom: 1rem; }
.facts p { font-size: 1.15rem; max-width: 30em; }
.facts p.small { font-size: 0.95rem; color: var(--ink-muted); }
.facts strong { font-weight: 800; }

#faq h2 { margin-bottom: 0; }

/* FAQ */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.4rem; top: 0.95rem; font-size: 1.5rem; color: var(--mint); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1.25rem; color: var(--muted); max-width: 42em; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq strong, .answer strong { color: var(--paper); }

/* Quitlines */
.quitlines { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.quitlines li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0.85rem 1rem; background: var(--navy-2); border: 1px solid var(--line); border-radius: 10px; }
.quitlines a { font-weight: 700; white-space: nowrap; padding: 8px 0; }

/* Long-form pages (privacy, terms, support) */
.doc { padding: 3rem 0 4.5rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2.25rem; letter-spacing: -0.01em; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.45rem; }
.doc .updated { color: var(--muted); font-style: italic; }
.doc .callout { background: var(--navy-2); border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.doc .callout p:last-child { margin-bottom: 0; }
.path { font-weight: 700; color: var(--paper); }
.doc .quitlines { padding-left: 0; }
.doc .quitlines li { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer nav a { color: var(--paper); display: inline-block; padding: 10px 0; }
.site-footer p { margin: 0; }
.site-footer .foot-brand { color: var(--paper); font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem; }
.site-footer .foot-brand svg { width: 22px; height: 22px; }
