/* Reebel landing page. Brand: docs/BRAND.md in the app repo ("Ink"). */

:root {
  --background: #F3EEE6;
  --surface: #FBF8F3;
  --text-primary: #161513;
  --text-secondary: #5E5A53;
  --accent: #161513;
  --on-accent: #FBF8F3;
  --success: #2A7241;
  --warning: #9A5A00;
  --danger: #BF3A2B;
  --separator: #D9D2C6;
  /* Mock-up only: soft placeholder tones for fictional posts and avatars. */
  --placeholder-1: #E4DDD1;
  --placeholder-2: #D6CDBF;
  --placeholder-3: #C9BFAF;
  --phone-frame: #161513;

  --radius: 14px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #121110;
    --surface: #1E1C1A;
    --text-primary: #F3EEE6;
    --text-secondary: #A8A39A;
    --accent: #F3EEE6;
    --on-accent: #161513;
    --success: #74CF8F;
    --warning: #F0B44E;
    --danger: #FF8676;
    --separator: #3A3632;
    --placeholder-1: #2A2724;
    --placeholder-2: #353130;
    --placeholder-3: #423D39;
    --phone-frame: #3A3632;
  }
}

:root[data-theme="dark"] {
  --background: #121110;
  --surface: #1E1C1A;
  --text-primary: #F3EEE6;
  --text-secondary: #A8A39A;
  --accent: #F3EEE6;
  --on-accent: #161513;
  --success: #74CF8F;
  --warning: #F0B44E;
  --danger: #FF8676;
  --separator: #3A3632;
  --placeholder-1: #2A2724;
  --placeholder-2: #353130;
  --placeholder-3: #423D39;
  --phone-frame: #3A3632;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17 px, like iOS body text */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--radius);
  text-decoration: none; z-index: 10;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 680px; }

/* Header and logo */

.site-header { padding: 20px 0 8px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.lockup {
  display: inline-flex; align-items: center; gap: 0.32em;
  color: var(--text-primary); text-decoration: none; font-weight: 500;
  font-size: 1.625rem; letter-spacing: -0.01em; line-height: 1;
}
.lockup svg { height: 0.82em; width: auto; fill: currentColor; }
.lockup:hover { text-decoration: none; }

.header-link { font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.header-link:hover { text-decoration: underline; }

/* Hero */

.hero { padding: 32px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--text-secondary);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

h1 {
  margin: 0; font-size: clamp(2.5rem, 9vw, 4.25rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 700;
}

.lede { margin: 20px 0 0; font-size: 1.1875rem; color: var(--text-secondary); max-width: 34em; }
.lede strong { color: var(--text-primary); font-weight: 600; }

/* Waitlist form */

.waitlist { margin-top: 28px; max-width: 30rem; }
.waitlist-row { display: flex; flex-direction: column; gap: 10px; }

.waitlist input[type="email"] {
  width: 100%; min-height: 52px; padding: 0 16px;
  font: inherit; color: var(--text-primary); background: var(--surface);
  border: 1.5px solid var(--separator); border-radius: var(--radius);
  appearance: none;
}
.waitlist input[type="email"]::placeholder { color: var(--text-secondary); opacity: 1; }
.waitlist input[type="email"]:focus { outline: none; border-color: var(--accent); }
.waitlist input[aria-invalid="true"] { border-color: var(--danger); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  font: inherit; font-weight: 600; white-space: nowrap;
  color: var(--on-accent); background: var(--accent);
  border: 0; border-radius: var(--radius); cursor: pointer; text-decoration: none;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.button:active { transform: scale(0.98); }
.button[disabled] { opacity: 0.6; cursor: progress; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { margin: 12px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--text-secondary); }
.consent a { color: var(--text-primary); }

.form-status { margin: 12px 0 0; font-size: 0.9375rem; font-weight: 600; min-height: 1px; }
.form-status:empty { margin: 0; }
.form-status[data-kind="error"] { color: var(--danger); }
.form-status[data-kind="success"] { color: var(--success); }

.waitlist.is-done .waitlist-row, .waitlist.is-done .consent { display: none; }
.success-panel {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--separator); border-radius: var(--radius);
  padding: 16px; color: var(--text-primary); font-weight: 400;
}
.success-panel svg { flex: none; width: 24px; height: 24px; color: var(--success); }
.success-panel strong { display: block; font-weight: 600; }
.success-panel span { color: var(--text-secondary); font-size: 0.9375rem; }

@media (min-width: 520px) {
  .waitlist-row { flex-direction: row; }
  .waitlist input[type="email"] { flex: 1; }
}

/* Sections */

section { padding: 56px 0; }
.section-title { margin: 0 0 8px; font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.section-lede { margin: 0 0 36px; color: var(--text-secondary); max-width: 36em; }

.rule { border: 0; border-top: 1px solid var(--separator); margin: 0; }

/* Benefits */

.benefits { display: grid; gap: 48px; }
.benefit h3 { margin: 24px 0 6px; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; }
.benefit p { margin: 0; color: var(--text-secondary); }

@media (min-width: 900px) {
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

/* Steps */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border-radius: var(--radius); padding: 18px 18px 18px 60px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.875rem;
}
.steps strong { display: block; font-weight: 600; }
.steps span { color: var(--text-secondary); }

@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */

.faq { display: grid; gap: 8px; max-width: 720px; }
.faq details { background: var(--surface); border-radius: var(--radius); padding: 0 18px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 28px 16px 0; position: relative; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--text-secondary); border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg); transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 16px; color: var(--text-secondary); }

/* Final call to action */

.cta { background: var(--surface); border-radius: var(--radius); padding: 32px 20px; }
.cta .section-title { margin-bottom: 4px; }
.cta p.section-lede { margin-bottom: 0; }
@media (min-width: 700px) { .cta { padding: 48px; } }

/* Footer */

.site-footer { padding: 40px 0 48px; font-size: 0.875rem; color: var(--text-secondary); }
.site-footer .wrap { display: grid; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--text-primary); }
.disclaimer { margin: 0; max-width: 46em; }

/* Text pages (privacy notice, confirmation) */

.prose { padding: 24px 0 56px; }
.prose h1 { font-size: clamp(2rem, 7vw, 2.75rem); margin-bottom: 8px; }
.prose h2 { margin: 36px 0 8px; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
.prose p, .prose li { color: var(--text-secondary); }
.prose strong { color: var(--text-primary); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.updated { margin: 0 0 24px; font-size: 0.9375rem; }

.notice-box { background: var(--surface); border-radius: var(--radius); padding: 18px; margin: 24px 0; }
.notice-box p { margin: 0; }

/* Phone mock-ups. Everything inside is drawn with CSS: no real people, accounts or posts. */

.phone {
  width: min(100%, 290px); margin: 0 auto; aspect-ratio: 9 / 19.5;
  background: var(--phone-frame); border-radius: 44px; padding: 10px;
}
.screen {
  height: 100%; background: var(--background); border-radius: 35px; overflow: hidden;
  display: flex; flex-direction: column; font-size: 11px; line-height: 1.3; position: relative;
}
.status-bar { display: flex; justify-content: space-between; align-items: center; padding: 13px 22px 6px; font-weight: 600; font-size: 11px; }
.status-bar .island { width: 76px; height: 22px; border-radius: 12px; background: var(--phone-frame); }
.status-bar .dots { display: flex; gap: 3px; }
.status-bar .dots i { width: 13px; height: 7px; border-radius: 2px; background: var(--text-primary); opacity: 0.85; }
.status-bar .dots i:first-child { width: 11px; opacity: 0.5; }

.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 8px; }
.app-bar b { font-size: 17px; letter-spacing: -0.01em; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 10.5px;
}
.chip--success { color: var(--success); }
.chip svg { width: 10px; height: 10px; fill: currentColor; }

.screen-body { flex: 1; overflow: hidden; padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }

.post { background: var(--surface); border-radius: 12px; padding: 8px; }
.post-head { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.avatar {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--text-primary);
  background: var(--placeholder-2);
}
.avatar--lg { width: 30px; height: 30px; font-size: 11px; }
.bar { height: 6px; border-radius: 3px; background: var(--placeholder-2); }
.bar--short { width: 40%; }
.bar--mid { width: 62%; }
.bar--long { width: 85%; }
.post-image { height: 88px; border-radius: 8px; background: linear-gradient(135deg, var(--placeholder-1), var(--placeholder-3)); position: relative; overflow: hidden; }
.post-image::after { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 50%; right: 18px; top: 14px; background: var(--placeholder-1); opacity: 0.8; }
.post-image--alt { background: linear-gradient(200deg, var(--placeholder-3), var(--placeholder-1)); }
.post-image--alt::after { width: 120%; height: 40px; border-radius: 50%; left: -10%; top: 62px; }
.post-actions { display: flex; gap: 8px; margin-top: 7px; }
.post-actions i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--text-secondary); opacity: 0.6; }

.end-card { background: var(--surface); border-radius: 12px; padding: 14px 12px; text-align: center; }
.end-card svg { width: 26px; height: 26px; margin: 0 auto 6px; color: var(--success); }
.end-card b { display: block; font-size: 13px; }
.end-card span { color: var(--text-secondary); }

.tab-bar {
  display: flex; justify-content: space-around; padding: 8px 6px 18px; margin-top: 8px;
  border-top: 1px solid var(--separator); background: var(--surface);
}
.tab { display: grid; justify-items: center; gap: 2px; font-size: 8.5px; color: var(--text-secondary); }
.tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab--on { color: var(--text-primary); font-weight: 600; }

.screen-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; padding: 4px 14px 10px; }
.won-back { background: var(--surface); border-radius: 12px; padding: 12px; }
.won-back small { color: var(--text-secondary); display: block; }
.won-back b { display: block; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.won-back b span { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.meter { height: 6px; border-radius: 3px; background: var(--placeholder-1); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 3px; }

.group-label { color: var(--text-secondary); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 4px 0; }
.group { background: var(--surface); border-radius: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; gap: 8px; }
.row + .row { border-top: 1px solid var(--separator); }
.row b { font-weight: 500; }
.stepper { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper i { width: 18px; height: 18px; border-radius: 50%; background: var(--placeholder-1); display: grid; place-items: center; font-style: normal; font-weight: 600; color: var(--text-primary); }
.switch { width: 30px; height: 18px; border-radius: 9px; background: var(--success); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; }

.board-row { display: flex; align-items: center; gap: 8px; padding: 8px 11px; }
.board-row + .board-row { border-top: 1px solid var(--separator); }
.board-row .rank { width: 12px; font-weight: 700; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.board-row .name { flex: 1; font-weight: 600; }
.board-row .pts { font-weight: 600; font-variant-numeric: tabular-nums; }
.board-row--you { background: var(--placeholder-1); }
.board-row--you:first-child { border-radius: 12px 12px 0 0; }
.flame { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 600; color: var(--success); font-variant-numeric: tabular-nums; }
.flame svg { width: 10px; height: 10px; fill: currentColor; }
.flame--out { color: var(--text-secondary); }
.roast { background: var(--surface); border-radius: 12px; padding: 10px 11px; display: flex; gap: 8px; align-items: flex-start; }
.roast span { color: var(--text-secondary); }
.roast b { display: block; color: var(--text-primary); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.check-stroke { stroke: var(--surface); }

/* Hero mock-up: the intention prompt, wide screens only. */
.phone--hero { display: none; }
@media (min-width: 900px) { .phone--hero { display: block; } }
.hero .wrap { max-width: 1080px; }
.intent { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 0 18px 40px; text-align: center; }
.intent-mark { height: 30px; width: auto; margin: 0 auto 6px; fill: var(--text-primary); }
.intent b { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; }
.intent-option { display: block; padding: 11px; border-radius: 12px; background: var(--surface); font-weight: 600; font-size: 12px; }
.intent-option--on { background: var(--accent); color: var(--on-accent); }
.intent small { color: var(--text-secondary); margin-top: 6px; font-size: 10.5px; }

.phone { aspect-ratio: 9 / 18.5; }
.screen-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.switch--off { background: var(--placeholder-2); }
.switch--off::after { right: auto; left: 2px; }

/* The header's links to the app's help pages (every page). */
.site-nav { display: flex; gap: 18px; }
.site-nav a { font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--text-primary); }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.2em; }
