/* ScrollStep website. Every value mirrors the app's Theme.swift ("Signal"). */

:root {
  color-scheme: dark;
  /* Colours */
  --bg: #000000;
  --surface: #111111;
  --raised: #1c1c1c;
  --hairline: #1c1c1c;
  --text: #f2f2f2;
  --text-2: #8a8a8a;
  --text-3: #5e5e5e;
  --lime: #d4ff3f;
  --on-lime: #000000;
  --lime-deep: #5c7a00;
  --red: #ff3b30;
  --orange: #ff9f0a;
  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  /* Spacing, radius */
  --gutter: 20px;
  --r-s: 6px;
  --r-m: 14px;
  --r-l: 22px;
  --max: 1120px;
  --cta: 54px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lime); color: var(--on-lime); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Type ---------- */

/* Lime uppercase kicker above every headline (app: Kicker). */
.kicker {
  font-size: 12px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 16px;
}
/* Light two-tone headline, -4% tracking (app: TwoToneTitle). */
.title {
  font-weight: 300; letter-spacing: -0.04em; line-height: 1.02;
  font-size: clamp(40px, 6.4vw, 76px);
}
.title.m { font-size: clamp(34px, 4.6vw, 56px); }
.title.s { font-size: clamp(26px, 3vw, 34px); line-height: 1.08; }
.title .dim { color: var(--text-2); display: block; }
.title .lime { color: var(--lime); }
.lead { color: var(--text-2); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; max-width: 34em; }
.small { color: var(--text-3); font-size: 13px; }

/* ---------- Buttons (app: PrimaryButtonStyle, SecondaryButtonStyle) ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--cta); padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--lime); color: var(--on-lime); }
.btn-primary:hover { background: #dcff63; }
.btn-secondary { border: 1px solid var(--raised); color: var(--text); }
.btn-secondary:hover { background: var(--surface); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn .arrow { font-size: 18px; line-height: 1; }

/* ---------- Nav (blurs once you scroll, like the app's status bar) ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,0,0,.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--hairline);
}
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: none; gap: 28px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) { .nav-links { display: flex; } .nav .btn { margin-left: 8px; } }

/* ---------- Phone frame ---------- */

.phone {
  position: relative; width: 300px; aspect-ratio: 603 / 1311;
  border-radius: 48px; padding: 9px;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px #262626, 0 40px 80px -20px rgba(0,0,0,.9), inset 0 0 0 1px #000;
}
.phone img { width: 100%; height: 100%; border-radius: 39px; object-fit: cover; }
.phone.sm { width: 240px; border-radius: 40px; padding: 8px; }
.phone.sm img { border-radius: 32px; }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 96px; position: relative; }
.hero::before {
  /* faint lime glow behind the phones */
  content: ""; position: absolute; right: -10%; top: 10%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(212,255,63,.10), rgba(212,255,63,0) 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; gap: 56px; align-items: center; }
.hero-copy .lead { margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--text-3); font-size: 13px; }
.hero-meta span::before { content: "●"; color: var(--lime); font-size: 8px; vertical-align: 2px; margin-right: 8px; }

.hero-art { position: relative; height: 660px; width: 100%; max-width: 560px; margin: 0 auto; }
.hero-art .phone.front { position: absolute; right: 2%; top: 0; z-index: 2; animation: float 7s ease-in-out infinite; }
.hero-art .phone.back { position: absolute; left: 0; top: 70px; width: 260px; border-radius: 42px; padding: 8px; transform: rotate(-6deg); z-index: 1; filter: brightness(.8); }
.hero-art .phone.back img { border-radius: 34px; }

/* Floating iOS-style notification: the 1:00 nudge. */
.notif {
  position: absolute; z-index: 3; right: -4%; top: 170px;
  width: 300px; padding: 13px 14px; border-radius: 22px;
  background: rgba(38,38,38,.78); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 50px -12px rgba(0,0,0,.8);
  display: grid; grid-template-columns: 38px 1fr; gap: 0 11px; align-items: center;
  animation: drop 1s .6s cubic-bezier(.2,.9,.25,1.2) both;
}
.notif img { width: 38px; height: 38px; border-radius: 9px; grid-row: span 2; }
.notif b { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.notif b small { font-weight: 400; color: rgba(242,242,242,.5); font-size: 12px; }
.notif p { font-size: 13.5px; line-height: 1.3; color: rgba(242,242,242,.88); }

@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes drop { from { opacity: 0; translate: 0 -30px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }

@media (min-width: 960px) {
  .hero { padding: 72px 0 120px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
}
@media (max-width: 520px) {
  .hero-art { height: 520px; }
  .hero-art .phone.front { width: 230px; right: 0; }
  .hero-art .phone.back { width: 190px; top: 60px; left: 3%; border-radius: 32px; padding: 6px; }
  .hero-art .phone.back img { border-radius: 27px; }
  .notif { width: 262px; right: 2%; top: 130px; }
}

/* ---------- Sections ---------- */

section { padding: 96px 0; scroll-margin-top: 48px; }
@media (min-width: 960px) { section { padding: 128px 0; } }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lead { margin-top: 20px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }
.hr { height: 1px; background: var(--hairline); }

/* Hairline rows (app: HairlineRow): grey label left, white value right. */
.rows { border-bottom: 1px solid var(--hairline); }
.row {
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  border-top: 1px solid var(--hairline); padding: 16px 0; font-size: 17px;
}
.row .l { color: var(--text-2); }
.row .v { text-align: right; }
.row .v.lime { color: var(--lime); }
.row .v.red { color: var(--red); }

/* ---------- Not a blocker ---------- */

.compare { display: grid; gap: 40px; }
.compare h3 { font-size: 13px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.compare .us h3 { color: var(--lime); }
.compare .them .row { color: var(--text-2); }
.compare .row span:first-child { color: inherit; }
.compare .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; }
.compare .them .mark { border: 1px solid var(--raised); color: var(--text-3); }
.compare .us .mark { background: var(--lime); color: var(--on-lime); }
.compare .row { justify-content: flex-start; gap: 14px; align-items: center; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- How it works ---------- */

.steps { display: grid; gap: 16px; }
.step {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-l);
  padding: 28px 28px 0; display: flex; flex-direction: column; overflow: hidden;
}
.step .num {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--raised);
  display: grid; place-items: center; font-size: 13px; color: var(--text-2); margin-bottom: 22px;
}
.step h3 { font-weight: 300; letter-spacing: -0.03em; font-size: 28px; line-height: 1.1; }
.step h3 .dim { color: var(--text-2); display: block; }
.step p { color: var(--text-2); margin-top: 12px; font-size: 15px; }
.step .shot { margin: 28px -28px 0; padding: 0 20px 20px; margin-top: auto; padding-top: 28px; }
.step .shot img { border-radius: 18px; width: 100%; }
.timeline { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--raised); color: var(--text-2); }
.chip.o { color: var(--orange); border-color: rgba(255,159,10,.35); }
.chip.r { color: var(--red); border-color: rgba(255,59,48,.4); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Pause screen ---------- */

.split { display: grid; gap: 64px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.quote {
  margin-top: 36px; min-height: 2.4em;
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.2;
  color: var(--lime); transition: opacity .45s, transform .45s;
}
.quote.out { opacity: 0; transform: translateY(8px); }
.quote-note { margin-top: 12px; }
.pair { display: flex; justify-content: center; gap: 20px; align-items: flex-start; }
.pair .phone:nth-child(2) { margin-top: 64px; }
@media (max-width: 600px) {
  .pair { gap: 12px; }
  .pair .phone { width: calc(50vw - 26px); border-radius: 30px; padding: 6px; }
  .pair .phone img, .pair .phone .shield { border-radius: 25px; }
}

/* The iOS pause screen ("shield"), drawn in HTML: iOS renders it, so there's no screenshot. */
.shield {
  width: 100%; height: 100%; border-radius: 39px; background: #000;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26% 9% 9%; overflow: hidden; position: relative;
}
.shield .sb { position: absolute; top: 4.2%; left: 12%; font-size: clamp(10px, 1vw, 13px); font-weight: 600; }
.shield svg { width: 18%; height: auto; color: var(--lime); }
.shield .t { font-size: clamp(13px, 1.45vw, 18px); font-weight: 600; line-height: 1.25; margin-top: 10%; letter-spacing: -0.01em; }
.shield .s { font-size: clamp(10.5px, 1.05vw, 13.5px); color: var(--text-2); line-height: 1.35; margin-top: 6%; transition: opacity .45s; }
.shield .s.out { opacity: 0; }
.shield .s em { font-style: normal; display: block; margin-top: 10px; }
.shield .b { margin-top: auto; width: 100%; }
.shield .go { background: var(--lime); color: #000; border-radius: 14px; padding: 4.5% 0; font-weight: 600; font-size: clamp(12px, 1.2vw, 15px); }
.shield .close { color: #a6a6a6; font-size: clamp(12px, 1.2vw, 15px); margin-top: 6%; }

/* ---------- Features ---------- */

.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: 28px; padding: 48px var(--gutter); }
@media (min-width: 768px) { .panel { padding: 64px; } }
.features { display: grid; gap: 40px 48px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature .ico {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--raised);
  display: grid; place-items: center; color: var(--lime); margin-bottom: 18px;
}
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.feature p { color: var(--text-2); font-size: 15px; margin-top: 6px; }

/* ---------- Gallery ---------- */

.gallery {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; scroll-snap-align: center; }
.gallery figcaption { margin-top: 18px; font-size: 14px; color: var(--text-2); max-width: 240px; }
.gallery figcaption b { color: var(--text); font-weight: 500; display: block; }
@media (min-width: 1184px) {
  .gallery { margin: 0 calc((100vw - var(--max)) / -2 - var(--gutter)); padding-left: calc((100vw - var(--max)) / 2 + var(--gutter)); }
}

/* ---------- Calculator ---------- */

.calc { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 1fr; } }
.slider-label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 40px; }
.slider-label .l { color: var(--text-2); }
.slider-label output { font-size: 28px; font-weight: 300; letter-spacing: -0.03em; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin-top: 8px; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--lime) var(--p, 30%), var(--raised) var(--p, 30%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--raised); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--lime); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--text); margin-top: -11px; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--text); border: 0; }
.results { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-l); padding: 32px; }
.results .big { font-size: clamp(56px, 7vw, 84px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--lime); }
.results .big small { font-size: 22px; color: var(--text-2); letter-spacing: -0.02em; margin-left: 6px; }
.results .rows { margin-top: 28px; }

/* ---------- Privacy ---------- */

.privacy { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .privacy { grid-template-columns: auto 1fr auto; gap: 48px; } }
.privacy .ico { width: 72px; height: 72px; border-radius: 22px; background: var(--raised); display: grid; place-items: center; color: var(--lime); }
.privacy .ico svg { width: 32px; height: 32px; }

/* ---------- FAQ (app: OptionCard-style rows) ---------- */

.faq { max-width: 820px; margin: 0 auto; border-bottom: 1px solid var(--hairline); }
.faq details { border-top: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--text-2); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--lime); }
.faq details p, .faq details ul { color: var(--text-2); padding: 0 48px 24px 0; max-width: 680px; }
.faq details ul { list-style: none; }
.faq details li b { color: var(--text); font-weight: 500; }
.faq a { color: var(--lime); }

/* ---------- Final CTA ---------- */

.final { text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%,-50%);
  background: radial-gradient(closest-side, rgba(212,255,63,.12), transparent 70%); pointer-events: none;
}
.final .icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 32px; box-shadow: 0 20px 60px -10px rgba(212,255,63,.25); }
.final .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--hairline); padding: 56px 0 40px; font-size: 14px; }
.foot { display: grid; gap: 40px; }
@media (min-width: 760px) { .foot { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot h4 { font-size: 13px; font-weight: 500; color: var(--text-3); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 10px; color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot .brand { margin-bottom: 12px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--text-3); font-size: 13px; }

/* ---------- Text pages (privacy, terms, FAQ, support) ---------- */

.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc .title { margin-bottom: 12px; }
.doc-body { margin-top: 40px; color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.doc-body h2 { color: var(--text); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 48px 0 14px; scroll-margin-top: 88px; }
.doc-body h3 { color: var(--text); font-size: 17px; font-weight: 500; margin: 28px 0 10px; }
.doc-body p { margin: 0 0 14px; }
.doc-body strong { color: var(--text); font-weight: 500; }
.doc-body a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(212,255,63,.35); text-underline-offset: 3px; }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 22px; }
.doc-body li { margin: 6px 0; }
.doc-body li::marker { color: var(--text-3); }
.doc-body hr { border: 0; height: 1px; background: var(--hairline); margin: 36px 0; }
.doc-body .table { overflow-x: auto; margin: 8px 0 20px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-body th { text-align: left; color: var(--text-3); font-weight: 500; font-size: 13px; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--hairline); }
.doc-body td { padding: 14px 16px 14px 0; border-top: 1px solid var(--hairline); vertical-align: top; }
.doc-body td:first-child { color: var(--text); white-space: nowrap; }
.doc-body details { border-top: 1px solid var(--hairline); }
.doc-body details:last-of-type { border-bottom: 1px solid var(--hairline); }
.doc-body summary { list-style: none; cursor: pointer; padding: 18px 0; color: var(--text); font-size: 17px; display: flex; justify-content: space-between; gap: 24px; }
.doc-body summary::-webkit-details-marker { display: none; }
.doc-body summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--text-2); transition: transform .25s; flex: none; line-height: 1; }
.doc-body details[open] summary::after { transform: rotate(45deg); color: var(--lime); }
.doc-body details > :not(summary) { padding-right: 40px; }
.doc-body details > :last-child { padding-bottom: 10px; }
.doc-faq h2 + details { border-top: 0; }

/* Invite and 404 pages */
.solo { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.solo .code { display: inline-block; margin: 28px 0 8px; padding: 14px 28px; border: 1px dashed var(--lime-deep); border-radius: var(--r-m); color: var(--lime); font-size: 32px; font-weight: 300; letter-spacing: .12em; }
.solo .hero-ctas { justify-content: center; }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
