/* Breaker website. System fonts only; light and dark follow the OS setting. */

:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #17181c;
  --muted: #545963;
  --line: #e2ddd3;
  --accent: #c2410c;
  --on-accent: #ffffff;
  --accent-soft: #fdeee4;
  --phone: #1d1f24;
  --screen: #2a3550;
  --screen-text: #f4f2ee;
  --card: rgba(255, 255, 255, 0.16);
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111215;
    --surface: #1a1c21;
    --text: #ecebe7;
    --muted: #a6aab3;
    --line: #2d3037;
    --accent: #fb923c;
    --on-accent: #111215;
    --accent-soft: #2a1d14;
    --phone: #000000;
    --screen: #1f2840;
  }
}

*, *::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(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--sans);
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin: 0 0 1.25rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.95rem; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
@media (max-width: 420px) { .site-header nav { gap: 0.75rem; font-size: 0.875rem; } }

.mark { width: 32px; height: 32px; flex: none; }
.mark rect { fill: var(--accent); }
.mark path { fill: none; stroke: var(--on-accent); stroke-width: 2.2; stroke-linecap: round; }
.mark circle { fill: var(--on-accent); }

/* Sections */
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--line); }

.hero { display: grid; gap: 2.5rem; align-items: center; padding-top: 2rem; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.2fr 1fr; padding-top: 3rem; } }
.lede { font-size: clamp(1.2rem, 2.6vw, 1.45rem); color: var(--muted); max-width: 32rem; }
.hero .facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero .facts li { border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.75rem; font-size: 0.875rem; color: var(--muted); }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1.5rem 0 0.5rem; }
.btn, .store {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.6rem 1.25rem; border-radius: 12px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.btn { background: var(--accent); color: var(--on-accent); border: 0; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--text); border: 2px solid var(--line); }
/* Placeholder store buttons. Swap for Apple's and Google's official badges at launch (docs/web.md). */
.store { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.1; background: var(--text); color: var(--bg); padding: 0.45rem 1.1rem; min-width: 10.5rem; }
.store small { font-size: 0.7rem; font-weight: 500; }
.store span { font-size: 1.15rem; }

/* Phone illustration */
.phone { width: min(280px, 72vw); height: auto; margin: 0 auto; display: block; }
.phone .frame { fill: var(--phone); }
.phone .screen { fill: var(--screen); }
.phone .island { fill: #000; }
.phone text { fill: var(--screen-text); font-family: var(--sans); }
.phone .date { font-size: 15px; font-weight: 500; opacity: 0.85; }
.phone .time { font-size: 76px; font-weight: 600; }
.phone .card { fill: var(--card); }
.phone .avatar { fill: rgba(255, 255, 255, 0.9); }
.phone .emoji { font-size: 22px; }
.phone .title { font-size: 17px; font-weight: 650; }
.phone .sub { font-size: 14px; opacity: 0.85; }
.phone .wave rect { fill: #fdba74; }
.phone .talk { fill: #fb923c; }
.phone .mic { fill: #111215; }
.phone .mic-arc { fill: none; stroke: #111215; stroke-width: 2.5; stroke-linecap: round; }
.phone .label { font-size: 14px; font-weight: 650; }
.phone .home { fill: var(--screen-text); opacity: 0.8; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 0.75rem;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.steps p { margin: 0; color: var(--muted); }

/* Crews */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card .emoji { font-size: 2rem; line-height: 1; margin-bottom: 0.75rem; display: block; }
.card ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.card blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--accent); font-style: italic; }

/* Pricing */
.plan h3 { font-size: 1.35rem; }
.price { font-size: 2.25rem; font-weight: 750; margin: 0.25rem 0 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan.featured { border: 2px solid var(--accent); }
.plan ul { margin-top: 1rem; }
.plan li { margin-bottom: 0.35rem; }
.cards + p { margin-top: 1rem; }

/* 18+ note, attached to the pricing section above it */
section#adults { border-top: 0; padding-top: 0; }
.adults { background: var(--accent-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: center; }
.adults .badge { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 3px solid var(--accent); color: var(--accent); font-weight: 800; }
.adults p { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 650; font-size: 1.05rem; }
.faq details p { color: var(--muted); max-width: 46rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: 0.9rem; color: var(--muted); }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.site-footer .disclaimer { color: var(--text); }

/* Invite page */
.invite { max-width: 34rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.invite h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.invite h2 { font-size: 1.15rem; margin: 2rem 0 0.75rem; }
.invite .btn { width: 100%; font-size: 1.1rem; min-height: 56px; }
.invite .buttons { margin: 0.5rem 0 1.5rem; }
.code-box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.code {
  flex: 1 1 auto; font-family: var(--mono); font-size: clamp(1.7rem, 8.5vw, 2.6rem); font-weight: 700;
  letter-spacing: 0.12em; overflow-wrap: anywhere; user-select: all;
}
.code-box .btn { width: auto; min-height: 48px; font-size: 1rem; }
.status { min-height: 1.6em; margin-top: 0.5rem; color: var(--muted); }
.error { border-left: 4px solid var(--accent); padding-left: 1rem; }

/* Legal pages */
.legal { max-width: 46rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.legal h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; }
.legal h3 { margin-top: 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-bottom: 1rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--line); }
.draft { background: #fef3c7; color: #451a03; border: 2px solid #b45309; border-radius: var(--radius); padding: 0.75rem 1rem; font-weight: 700; }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.25rem; }
.callout p:last-child { margin-bottom: 0; }
