/* ============================================================
   Brainzie Poolside — marketing landing page styles.
   Single-file, no build, no framework. Brand tokens mirror the
   app's palette (app/css/app.css); derived shades via color-mix.
   ============================================================ */

:root {
  --brand:       #D81B72;                                       /* primary — actions, accents */
  --brand-deep:  color-mix(in srgb, var(--brand) 84%, black);   /* hover / pressed            */
  --brand-tint:  color-mix(in srgb, var(--brand) 12%, white);   /* soft fills, badges         */
  --accent:      #6D28D9;                                       /* secondary hue              */

  --ink:      #18122B;
  --paper:    #FFFFFF;
  --paper-2:  #F6F1FB;
  --ink-soft: color-mix(in srgb, var(--ink) 72%, var(--paper));
  --muted:    color-mix(in srgb, var(--ink) 48%, var(--paper));
  --line:     color-mix(in srgb, var(--ink) 10%, var(--paper));

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius:   16px;
  --radius-s: 10px;
  --shadow:   0 20px 54px -24px rgba(17,24,39,.32);
  --shadow-s: 0 10px 26px -16px rgba(17,24,39,.28);
  --maxw: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.14; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--ink-soft); }

.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }
section { padding: 88px 0; }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; font-weight: 600; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 1.6px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-lg { padding: 15px 30px; font-size: 1.06rem; }

header.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.03em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; }
.brand b { color: var(--brand); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-family: var(--font-display); color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--brand-deep); text-decoration: none; }

.hero { position: relative; overflow: hidden; background: var(--paper-2); padding: 100px 0 84px; }
.hero::after { content:""; position:absolute; right:-150px; top:-140px; width:460px; height:460px; border-radius:50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 16%, transparent), transparent 65%); pointer-events:none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.22rem; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-sub { margin-top: 18px; font-size: .94rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-sub .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; }
.hero-art { display:grid; place-items:center; }

/* A CSS-only "stopwatch" hero card — no binary assets needed. */
.watch { width: 100%; max-width: 360px; aspect-ratio: 4/3; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.watch .time { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 700; font-size: clamp(2.6rem, 9vw, 3.6rem); color: var(--brand); letter-spacing: .01em; }
.watch .lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.watch .lane { background: var(--brand-tint); border-radius: 10px; padding: 8px 6px; text-align: center; font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 700; font-size: .9rem; color: var(--brand-deep); }
.watch .lane.go { background: var(--brand); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 46px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-s); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; display:grid; place-items:center; margin-bottom: 16px; background: var(--brand-tint); color: var(--brand-deep); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 44px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-s); }
.step .n { counter-increment: step; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.step .n::before { content: counter(step); }
.step h4 { font-family: var(--font-display); margin-bottom: 6px; }
.step p { font-size: .96rem; }

.panel { display: flex; gap: 22px; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel .shield { width: 44px; height: 44px; color: var(--brand); flex: 0 0 auto; }

.ctaband { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px 42px; text-align:center; }
.ctaband h2 { color:#fff; margin-bottom: 10px; }
.ctaband p { color: rgba(255,255,255,.82); max-width: 54ch; margin: 0 auto 24px; }
.btn-on-dark { background:#fff; color: var(--ink); }
.btn-on-dark:hover { background: var(--brand-tint); }

footer { background: var(--ink); color: #C7CCD8; padding: 46px 0 28px; }
.foot-grid { display:flex; justify-content:space-between; gap:28px; flex-wrap:wrap; align-items:center; }
.foot-brand { display:flex; align-items:center; gap:10px; color:#fff; font-family:var(--font-display); font-weight:700; }
.foot-brand b { color: var(--brand-tint); }
.foot-note { width:100%; border-top:1px solid rgba(255,255,255,.12); margin-top:24px; padding-top:18px; font-size:.84rem; color: var(--muted); }

/* Legal pages (privacy / terms) */
.doc { max-width: 760px; }
.doc h1 { margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.doc h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { margin: 8px 0 8px 22px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align:center; }
  .hero-cta { justify-content:center; }
  .hero-sub { justify-content: center; }
  .hero-art { order:-1; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display:none; }
}
@media (max-width: 560px) {
  section { padding: 58px 0; }
  .cards { grid-template-columns: 1fr; }
}
