/* Storydials site. Plain CSS, no frameworks. Fonts are self-hosted (SIL OFL, see assets/fonts). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0b0c0e;
  --panel: #111316;
  --panel-2: #16191d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f6f8;
  --muted: #a3abb4;
  --faint: #7c848e;
  --body: #c9cfd6;
  --accent: #8ec8ff;
  --tick: #7dffc3;
  --tick-glow: rgba(125, 255, 195, 0.35);
  --grad: linear-gradient(120deg, #39e36a 0%, #7dffc3 30%, #8ec8ff 65%, #3aa0ff 100%);
  --glow-a: rgba(58, 160, 255, 0.16);
  --glow-b: rgba(125, 255, 195, 0.05);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --radius: 22px;
}

/* Light theme: follows the system unless the visitor picked a theme with the toggle (data-theme on <html>). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f4f1;
    --panel: #fbfbf9;
    --panel-2: #ecece8;
    --line: rgba(15, 17, 20, 0.08);
    --line-2: rgba(15, 17, 20, 0.16);
    --text: #111316;
    --muted: #4b525b;
    --faint: #626a74;
    --body: #2c3138;
    --accent: #1764c0;
    --tick: #0e9f6e;
    --tick-glow: rgba(14, 159, 110, 0.25);
    --grad: linear-gradient(120deg, #0b8f5c 0%, #0c8f8a 35%, #1a78d6 70%, #1f5fd1 100%);
    --glow-a: rgba(58, 160, 255, 0.14);
    --glow-b: rgba(125, 255, 195, 0.12);
    --shadow: 0 30px 60px rgba(17, 19, 22, 0.22);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f4f1;
  --panel: #fbfbf9;
  --panel-2: #ecece8;
  --line: rgba(15, 17, 20, 0.08);
  --line-2: rgba(15, 17, 20, 0.16);
  --text: #111316;
  --muted: #4b525b;
  --faint: #626a74;
  --body: #2c3138;
  --accent: #1764c0;
  --tick: #0e9f6e;
  --tick-glow: rgba(14, 159, 110, 0.25);
  --grad: linear-gradient(120deg, #0b8f5c 0%, #0c8f8a 35%, #1a78d6 70%, #1f5fd1 100%);
  --glow-a: rgba(58, 160, 255, 0.14);
  --glow-b: rgba(125, 255, 195, 0.12);
  --shadow: 0 30px 60px rgba(17, 19, 22, 0.22);
  color-scheme: light;
}

/* Phone screens and dial renders are always dark, like the app. */
.phone, .dark, .gallery figure {
  --bg: #0b0c0e;
  --panel: #111316;
  --panel-2: #16191d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f6f8;
  --muted: #a3abb4;
  --faint: #7c848e;
  --body: #c9cfd6;
  color-scheme: dark;
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
sup.tm { font-size: 0.55em; vertical-align: super; line-height: 0; letter-spacing: 0; margin-left: 0.08em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Spaced capitals, as in the app's dial labels */
.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 13px; font-weight: 500; letter-spacing: 0.24em; color: var(--text); }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Theme toggle: shown only when the inline script has run */
.header-end { display: flex; align-items: center; gap: 28px; }
.theme-toggle { display: none; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; place-items: center; }
.js .theme-toggle { display: grid; }
.theme-toggle:hover { color: var(--text); border-color: var(--faint); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .moon { display: block; }
}

/* Hero */
.hero { position: relative; overflow-x: clip; padding: 24px 0 56px; }
.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -200px;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, var(--glow-a), var(--glow-b) 55%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.hero-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 40px rgba(58, 160, 255, 0.25); margin-bottom: 28px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); font-weight: 500; }
.hero h1 .glow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 33em; margin: 24px 0 36px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}
.soon small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.soon .dot { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 225deg, #39e36a, #7dffc3, #8ec8ff, #3aa0ff, #39e36a); position: relative; flex: none; }
.soon .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--text); }
.text-link { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.text-link:hover { color: var(--text); }
.hero-visual { position: relative; display: flex; justify-content: center; }

/* CSS iPhone frame */
.phone {
  position: relative;
  width: 340px;
  max-width: 100%;
  padding: 11px;
  border-radius: 56px;
  background: linear-gradient(145deg, #2b2e34, #141619 40%, #22252a);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 0 0 1px #000,
    var(--shadow),
    0 0 140px rgba(58, 160, 255, 0.14);
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  translate: -50% 0;
  width: 29%;
  height: 25px;
  border-radius: 999px;
  background: #000;
  z-index: 1;
}
.phone .screen { position: relative; border-radius: 45px; overflow: hidden; background: #000; aspect-ratio: 390 / 844; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone.sm { width: 236px; padding: 8px; border-radius: 42px; }
.phone.sm::before { top: 16px; height: 19px; }
.phone.sm .screen { border-radius: 34px; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.step .num { font-family: var(--display); font-weight: 300; font-size: 44px; line-height: 1; color: var(--accent); }
.step h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.step .phone { margin: auto auto 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.step .phone::before { display: none; }
.step .phone .screen { aspect-ratio: 390 / 680; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.step .phone .screen img { object-fit: cover; object-position: bottom; }
.step .phone .screen.top img { object-position: top; }

/* Export sheet drawn in CSS, as the iPhone app shows it */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 14px 16px;
  background: #15171b;
  border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  display: grid;
  gap: 8px;
}
.sheet b { font-family: var(--display); font-weight: 500; font-size: 16px; }
.sheet span { font-size: 10.5px; color: var(--muted); margin-top: -6px; margin-bottom: 4px; }
.sheet .btn { display: block; text-align: center; font-size: 12px; font-weight: 600; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--text); }
.sheet .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet .btn { font-style: normal; white-space: nowrap; }
.sheet .row2 .btn { padding-inline: 4px; font-size: 11px; }
.sheet .btn.primary { background: var(--text); color: var(--bg); border-color: transparent; }

/* Features */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  grid-column: span 2;
  overflow: hidden;
}
.card.wide { grid-column: span 3; }
.card.full { grid-column: 1 / -1; }
.card h3 { font-size: 26px; margin: 12px 0 10px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.card.flex { display: flex; flex-direction: column; }
.stats { display: flex; gap: 12px 36px; flex-wrap: wrap; margin: auto 0 0; padding-top: 28px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1.1; }
.stats dt { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; padding: 0; }
.chips li { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.chips li.on { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

.looks { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: center; }
.gallery { display: grid; grid-template-columns: 1.15fr 1fr 1.15fr; gap: 14px; }
.gallery .g-focus { grid-column: 1; grid-row: 1 / span 3; }
.gallery .g-grid { grid-column: 3; grid-row: 1 / span 3; }
.gallery figure { margin: 0; background: #0d0e11; color: #f4f6f8; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.gallery figcaption { font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.gallery img { width: 100%; max-height: 260px; object-fit: contain; margin: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; list-style: none; padding: 0; }
.swatches li { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.swatches i { width: 26px; height: 12px; border-radius: 999px; display: inline-block; }

.bg-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.bg-tiles div { aspect-ratio: 9 / 16; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; background: #0b0c0e; }
.bg-tiles .tpl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.bg-tiles .dl { position: relative; width: 88%; }
.bg-tiles .bg-clear .dl { width: 62%; }
.bg-tiles span { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 9px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.bg-tiles .bg-clear { background-color: #1a1c20; background-image: conic-gradient(#25282d 25%, transparent 0 50%, #25282d 0 75%, transparent 0); background-size: 14px 14px; }

.share-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.share-list li { border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.share-list li:first-child { background: var(--text); color: var(--bg); border-color: transparent; }
.share-list li small { font-weight: 400; color: inherit; opacity: 0.6; }

.units { margin-top: 24px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; font-size: 12px; text-align: center; color: var(--muted); }
.seg span { padding: 8px 4px; border-radius: 9px; }
.seg span.on { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.convert { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin-top: 18px; font-family: var(--display); font-size: 30px; font-weight: 500; }
.convert small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.convert em { font-style: normal; font-family: var(--sans); font-size: 14px; color: var(--faint); }

/* Privacy band */
.privacy-band { padding: 0; }
.privacy-band .inner {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(125, 255, 195, 0.1), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(58, 160, 255, 0.12), transparent 70%),
    var(--panel);
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.privacy-band h2 { font-size: clamp(34px, 4.2vw, 50px); margin-top: 14px; }
.privacy-band p.sub { color: var(--muted); margin: 18px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--tick); border-left-color: transparent; transform: rotate(-45deg); box-shadow: 0 0 10px var(--tick-glow); }
.ticks b { display: block; font-weight: 600; }
.ticks span { color: var(--muted); font-size: 15px; }

/* Closing call to action */
.closing { text-align: center; }
.closing img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 26px; box-shadow: 0 10px 50px rgba(58, 160, 255, 0.3); }
.closing h2 { font-size: clamp(34px, 4.6vw, 54px); }
.closing p { color: var(--muted); margin: 16px auto 32px; max-width: 30em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.site-footer nav { display: flex; gap: 26px; }
.site-footer nav a { text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .legal { flex-basis: 100%; font-size: 12px; color: var(--faint); margin: 0; }

/* Text pages: privacy and support */
.doc { padding: 40px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); margin: 14px 0 12px; }
.doc .meta { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.doc .summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 44px; }
.doc .summary p:last-child { margin-bottom: 0; }
.doc h2 { font-size: 26px; margin: 44px 0 14px; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.45em; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc .path { font-family: var(--sans); font-weight: 500; color: var(--text); white-space: nowrap; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-family: var(--sans); font-weight: 300; font-size: 26px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; }
.faq .answer p:last-child { margin-bottom: 0; }
.contact-card { margin-top: 56px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-card h2 { margin-top: 0; }
.contact-card .mail { display: inline-block; margin-top: 6px; font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 56px; }
  .hero-icon { margin-inline: auto; }
  .hero .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .card, .card.wide { grid-column: span 1; }
  .card.full { grid-column: 1 / -1; }
  .looks { grid-template-columns: 1fr; }
  .privacy-band .inner { grid-template-columns: 1fr; padding: 56px 36px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .hero { padding: 8px 0 64px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 52px); }
  .phone { width: 280px; }
  section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .features { grid-template-columns: 1fr; }
  .card, .card.wide, .card.full { grid-column: 1 / -1; padding: 26px 22px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure { grid-column: auto; grid-row: auto; }
  .gallery .g-focus { grid-column: 1 / -1; grid-row: auto; }
  .gallery .g-grid { grid-column: auto; grid-row: auto; }
  .gallery figcaption { font-size: 9px; letter-spacing: 0.12em; }
  .privacy-band .inner { padding: 44px 24px; border-radius: 22px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .faq summary { font-size: 18px; }
  .contact-card { padding: 26px 22px; }
  .contact-card .mail { font-size: 20px; }
}
