/* ────────────────────────────────────────────────────────────────
   Socialiser — design tokens & global styles
   Aesthetic: Linear / Stripe / Apple Health
   Accent: teal→cyan gradient only. No yellows/warm tones.
   ──────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --teal-1: #0EA5A8;
  --teal-2: #22D3D6;
  --teal-ink: #075457;        /* readable text on mint */
  --teal-wash: #ecfdfd;       /* subtle teal background */
  --teal-wash-2: #d8f7f7;

  --mint-bg: #e6f7ee;
  --mint-ink: #0f7a4a;

  /* Surfaces (light) */
  --bg: #fbfdfd;
  --bg-2: #f4f8f8;
  --surface: #ffffff;
  --surface-2: #fafcfc;
  --ink: #0b1416;
  --ink-2: #45575a;
  --ink-3: #788c8f;
  --line: #e6eced;
  --line-2: #eef2f3;
  --shadow-sm: 0 1px 0 rgba(11,20,22,.04), 0 1px 2px rgba(11,20,22,.04);
  --shadow-md: 0 1px 0 rgba(11,20,22,.04), 0 6px 24px -8px rgba(11,20,22,.10);
  --shadow-lg: 0 1px 0 rgba(11,20,22,.04), 0 24px 60px -20px rgba(11,20,22,.18);

  /* Rhythm */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container: 1200px;
  --pad-x: clamp(20px, 4vw, 40px);

  /* Density-driven section vertical rhythm */
  --section-y: 128px;

  /* Type */
  --font-ui: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Geist", ui-sans-serif, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;
}

[data-density="compact"] { --section-y: 80px; }
[data-density="regular"] { --section-y: 128px; }
[data-density="airy"]    { --section-y: 184px; }

[data-theme="dark"] {
  --bg: #06141a;
  --bg-2: #0a1c22;
  --surface: #0b1f25;
  --surface-2: #0e242b;
  --ink: #e9f4f3;
  --ink-2: #9bb4b7;
  --ink-3: #6c8689;
  --line: #15303a;
  --line-2: #1a3a45;
  --mint-bg: #0d3326;
  --mint-ink: #6ee7a8;
  --teal-wash: #07212a;
  --teal-wash-2: #082b36;
  --shadow-md: 0 1px 0 rgba(255,255,255,.02), 0 6px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.02), 0 24px 60px -20px rgba(0,0,0,.55);
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ── Brand mark ──────────────────────────────────────────────── */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em; font-size: 17px;
  color: var(--ink);
}
/* Socialiser logo — locked "Classic Bold" — solid teal circle, bold white S */
.brand-glyph {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--teal-1);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px -2px rgba(14,165,168,.55);
  flex-shrink: 0;
  position: relative;
  line-height: 0;
}
.brand-glyph::before {
  content: "S";
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: -1px;
}
/* Footer brand uses same logo at same size */
footer .brand-glyph { width: 32px; height: 32px; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
}
.nav {
  max-width: var(--container);
  margin: 0 auto; padding: 14px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  font-size: 14.5px; color: var(--ink-2);
}
.nav-links a {
  padding: 8px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-size: 14.5px;
  font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--teal-1), var(--teal-2));
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
              0 8px 24px -8px rgba(14,165,168,.55);
}
.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset,
              0 12px 32px -8px rgba(14,165,168,.7);
}
.btn-ghost {
  color: var(--ink); background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-2); border-color: color-mix(in oklab, var(--line) 70%, var(--ink-3)); }
.btn-soft {
  color: var(--ink); background: var(--bg-2);
}
.btn-soft:hover { background: color-mix(in oklab, var(--bg-2) 70%, var(--line)); }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 11px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

.btn-arrow {
  display:inline-flex;align-items:center;gap:6px;
  color: var(--teal-ink); font-weight: 500; font-size: 14.5px;
}
.btn-arrow:hover .arr { transform: translateX(3px); }
.btn-arrow .arr { transition: transform .2s; }

/* ── Pills / badges ──────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 8px; border-radius: 999px;
  background: var(--mint-bg); color: var(--mint-ink);
  font-size: 12.5px; font-weight: 500;
  border: 1px solid color-mix(in oklab, var(--mint-bg) 60%, var(--mint-ink) 0%);
}
.pill-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
}
.pill-teal {
  background: var(--teal-wash); color: var(--teal-ink);
  border-color: color-mix(in oklab, var(--teal-wash) 60%, var(--teal-1) 25%);
}
.pill-line {
  background: var(--surface); color: var(--ink-2);
  border-color: var(--line);
}

/* ── Layout ──────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * .55) 0; }

/* ── Type scale ──────────────────────────────────────────────── */
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal-ink);
}
.h-display {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 600; margin: 0; color: var(--ink);
  text-wrap: balance;
}
.h-display em {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  background: linear-gradient(120deg, var(--teal-1), var(--teal-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .04em;
}
.h-1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 600; margin: 0; color: var(--ink);
  text-wrap: balance;
}
.h-2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 600; margin: 0; color: var(--ink);
}
.h-3 {
  font-size: 18.5px; line-height: 1.35;
  letter-spacing: -0.01em; font-weight: 600; margin: 0;
  color: var(--ink);
}
.lead {
  font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.55;
  color: var(--ink-2); margin: 0;
  text-wrap: pretty;
  max-width: 56ch;
}
.body { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Cards / surfaces ────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.hairline { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }

.tile {
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--line) 50%, var(--teal-1) 25%);
  box-shadow: var(--shadow-md);
}

.icon-tile {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--teal-wash);
  color: var(--teal-ink);
  border: 1px solid color-mix(in oklab, var(--teal-wash) 50%, var(--teal-1) 20%);
}

/* ── Grid backdrop / hero wash ───────────────────────────────── */
.hero-wash {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 20%, color-mix(in oklab, var(--teal-2) 18%, transparent) 0%, transparent 60%),
    radial-gradient(40% 40% at 20% 80%, color-mix(in oklab, var(--teal-1) 12%, transparent) 0%, transparent 60%);
}
.grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(60% 60% at 50% 40%, #000 0%, transparent 75%);
  opacity: .35;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px; align-items: start;
}
.footer-col h4 {
  font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; margin: 0 0 14px;
}
.footer-col a {
  display: block; padding: 5px 0; font-size: 14.5px; color: var(--ink-2);
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink-3); font-size: 13px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Compose mockup (hero device) ────────────────────────────── */
.compose {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  overflow: hidden; width: 100%; max-width: 460px;
  position: relative;
}
.compose-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}
.compose-head-left { display: flex; align-items: center; gap: 10px; }
.compose-dots { display: flex; gap: 5px; }
.compose-dots span { width: 9px; height: 9px; border-radius: 999px; background: var(--line); }
.compose-title { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.compose-body { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.compose-textarea {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 16px 12px; background: var(--surface-2);
  font-size: 15px; line-height: 1.55; color: var(--ink);
  min-height: 110px; position: relative;
}
.compose-textarea .typing {
  border-right: 2px solid var(--teal-1); animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { border-color: transparent; } }

.compose-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.ai-suggest {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 10px; font-size: 13.5px;
  font-weight: 500;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--teal-1) 12%, var(--surface) 88%),
    color-mix(in oklab, var(--teal-2) 14%, var(--surface) 86%));
  color: var(--teal-ink);
  border: 1px solid color-mix(in oklab, var(--teal-1) 30%, var(--line));
  cursor: pointer;
  position: relative;
}
.ai-suggest .spark {
  width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--teal-1), var(--teal-2));
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M12 2l2.39 6.95L21 11l-6.61 2.05L12 20l-2.39-6.95L3 11l6.61-2.05L12 2z" fill="black"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M12 2l2.39 6.95L21 11l-6.61 2.05L12 20l-2.39-6.95L3 11l6.61-2.05L12 2z" fill="black"/></svg>') center/contain no-repeat;
}
.compose-counter { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.platform-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.platform {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.platform.on { border-color: color-mix(in oklab, var(--teal-1) 50%, var(--line)); background: var(--teal-wash); }
.platform-left { display: flex; align-items: center; gap: 10px; }
.platform-ico {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--bg-2); color: var(--ink); font-size: 11px; font-weight: 700;
}
.platform-ico.ig { background: linear-gradient(135deg, #f7c87a, #d05a8a 55%, #6a4ed1); color: #fff; }
.platform-ico.fb { background: #1877f2; color: #fff; }
.platform-ico.tk { background: #0a0a0a; color: #fff; }
.platform-ico.go { background: #fff; color: #111; border: 1px solid var(--line); }
.tick {
  width: 18px; height: 18px; border-radius: 6px;
  border: 1.5px solid var(--line);
  display: grid; place-items: center; background: var(--surface);
  transition: background .15s, border-color .15s;
}
.platform.on .tick {
  background: linear-gradient(135deg, var(--teal-1), var(--teal-2));
  border-color: transparent;
}
.platform.on .tick::after {
  content: ""; width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px,-1px);
}

.compose-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}
.schedule-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.post-now {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px;
  color: white; font-weight: 500; font-size: 14px; border: 0;
  background: linear-gradient(135deg, var(--teal-1), var(--teal-2));
  box-shadow: 0 8px 24px -10px rgba(14,165,168,.7);
  cursor: pointer;
}

/* ── Animated post preview cards ─────────────────────────────── */
.post-card {
  width: 280px; flex: 0 0 280px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  transform-origin: center;
}
.post-head { display: flex; align-items: center; gap: 10px; }
.post-avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-1), var(--teal-2));
  color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px;
}
.post-handle { font-size: 13px; font-weight: 600; color: var(--ink); }
.post-handle small { display:block; font-weight:400; font-size: 11.5px; color: var(--ink-3); }
.post-img {
  height: 168px; border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--teal-2) 30%, var(--surface)) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, color-mix(in oklab, var(--teal-1) 25%, var(--surface)) 0%, transparent 55%),
    var(--bg-2);
  border: 1px solid var(--line-2);
  position: relative; overflow: hidden;
}
.post-img::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in oklab, var(--ink) 4%, transparent) 18px 19px);
}
.post-caption { font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.post-meta {
  display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-3);
}

/* ── Pricing ─────────────────────────────────────────────────── */
.price-toggle {
  display: inline-flex; padding: 4px; gap: 4px;
  border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line);
}
.price-toggle button {
  appearance: none; border: 0; cursor: pointer;
  padding: 8px 16px; border-radius: 9px;
  font-size: 13.5px; color: var(--ink-2); font-weight: 500;
  background: transparent;
  transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.price-toggle button.on {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.price-toggle .save {
  font-size: 11.5px; padding: 2px 7px; border-radius: 999px;
  background: var(--mint-bg); color: var(--mint-ink);
}

.tier {
  position: relative;
  padding: 28px; border-radius: var(--radius-xl);
  border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tier.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--teal-1), var(--teal-2)) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-md);
}
.tier .price {
  font-family: var(--font-display);
  font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-weight: 600;
  color: var(--ink);
}
.tier .price small {
  font-size: 14px; color: var(--ink-3); font-weight: 400; margin-left: 4px;
}
.tier-name { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.tier-desc { font-size: 13.5px; color: var(--ink-3); }
.tier ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--ink-2);
}
.tier li { display: flex; align-items: flex-start; gap: 10px; }
.tier .tick-ico {
  flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px;
  border-radius: 999px;
  background: var(--mint-bg); color: var(--mint-ink);
  display: grid; place-items: center; font-size: 10px;
}
.tier .tick-ico::before { content: "✓"; font-weight: 700; }

/* ── Stat / number block ─────────────────────────────────────── */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px); line-height: 1;
  letter-spacing: -0.03em; font-weight: 600; color: var(--ink);
}
.stat-num em {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  background: linear-gradient(120deg, var(--teal-1), var(--teal-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Feature mockups (general) ──────────────────────────────── */
.mock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mock-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2);
  background: var(--surface-2); font-size: 13px; color: var(--ink-2);
}
.mock-head .dots { display: flex; gap: 5px; margin-right: 8px; }
.mock-head .dots span { width: 9px; height: 9px; border-radius: 999px; background: var(--line); }

/* Calendar mock */
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line-2);
}
.cal-cell {
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  padding: 10px 10px 14px; min-height: 78px; position: relative;
  font-size: 11.5px; color: var(--ink-3);
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-day { font-weight: 500; color: var(--ink-2); }
.cal-chip {
  display: inline-block; margin-top: 6px;
  padding: 3px 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 500;
  background: var(--teal-wash); color: var(--teal-ink);
  border: 1px solid color-mix(in oklab, var(--teal-wash) 60%, var(--teal-1) 15%);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-chip.mint { background: var(--mint-bg); color: var(--mint-ink); border-color: color-mix(in oklab, var(--mint-bg) 60%, var(--mint-ink) 10%); }
.cal-chip.gray { background: var(--bg-2); color: var(--ink-2); border-color: var(--line); }

/* Analytics mock */
.chart {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 6px; align-items: end; height: 140px; padding: 18px;
}
.bar {
  background: linear-gradient(180deg, var(--teal-2), var(--teal-1));
  border-radius: 5px 5px 0 0;
  position: relative;
  opacity: .35;
  transition: opacity .3s;
}
.bar.hi { opacity: 1; }

/* Inbox mock */
.inbox-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px;
  padding: 12px 16px; align-items: center;
  border-top: 1px solid var(--line-2);
  font-size: 13.5px;
}
.inbox-row:first-of-type { border-top: 0; }
.inbox-row .who { font-weight: 500; color: var(--ink); }
.inbox-row .who small { color: var(--ink-3); font-weight: 400; }
.inbox-row .msg { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row .time { color: var(--ink-3); font-size: 12px; }
.inbox-row .who-ico {
  width: 28px; height: 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-1), var(--teal-2));
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 12px;
}

/* ── Logo row ────────────────────────────────────────────────── */
.logo-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 24px; align-items: center;
}
.logo-tile {
  padding: 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 13.5px;
  letter-spacing: -0.01em;
  transition: border-color .2s, color .2s;
}
.logo-tile:hover { border-color: var(--ink-3); color: var(--ink); }
.logo-tile .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-1), var(--teal-2));
}
@media (max-width: 760px) {
  .logo-row { grid-template-columns: repeat(3, 1fr); }
}

/* ── Forms ───────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.field input, .field textarea, .field select {
  padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  outline: 0;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: color-mix(in oklab, var(--teal-1) 60%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal-1) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 12px; color: var(--ink-3); }

/* ── Marquee for trusted strip ───────────────────────────────── */
.marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 36px; animation: marquee 38s linear infinite; width: max-content; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Reveal on scroll ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Misc ────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--line); width: 100%; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }

/* Two-col layout */
.two-col {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.two-col.reverse > *:first-child { order: 2; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse > *:first-child { order: 0; }
}

/* Grid utilities */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}


/* ────────────────────────────────────────────────────────────────
   Static-build additions: Tweaks panel
   ──────────────────────────────────────────────────────────────── */

.twk-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2);
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform .15s, color .15s;
}
.twk-fab:hover { color: var(--ink); transform: translateY(-1px); }
.twk-fab.is-open { transform: scale(.9); opacity: 0; pointer-events: none; }

.twk-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 95;
  width: 296px; max-height: calc(100vh - 32px);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); color: var(--ink);
  font-size: 12.5px;
  display: none; flex-direction: column; overflow: hidden;
}
.twk-panel.is-open { display: flex; }
.twk-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--line-2);
}
.twk-hd b { font-size: 13px; font-weight: 600; }
.twk-x {
  appearance: none; border: 0; background: transparent;
  color: var(--ink-3); width: 26px; height: 26px; border-radius: 6px;
  cursor: pointer; font-size: 16px; line-height: 1;
}
.twk-x:hover { background: var(--bg-2); color: var(--ink); }
.twk-body {
  padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
}
.twk-sect {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
  padding-top: 4px;
}
.twk-row { display: flex; flex-direction: column; gap: 6px; }
.twk-lbl {
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--ink-2); font-weight: 500;
}
.twk-toggle {
  display: inline-flex; padding: 3px; gap: 3px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 9px;
}
.twk-toggle button {
  appearance: none; border: 0; cursor: pointer;
  padding: 6px 10px; font: inherit; font-size: 11.5px;
  color: var(--ink-2); background: transparent;
  border-radius: 7px; flex: 1;
  text-transform: capitalize;
}
.twk-toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.twk-swatches { display: flex; gap: 8px; }
.twk-swatch {
  width: 32px; height: 32px; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer;
  display: grid; place-items: center;
  background-clip: padding-box;
  transition: transform .12s, border-color .15s;
}
.twk-swatch:hover { transform: scale(1.05); }
.twk-swatch.on { border-color: var(--ink); }
.twk-swatch::after {
  content: ""; width: 22px; height: 22px; border-radius: 6px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

.twk-switch {
  appearance: none; -webkit-appearance: none;
  width: 36px; height: 22px; border-radius: 999px;
  background: var(--line); position: relative; cursor: pointer;
  border: 0; transition: background .2s;
}
.twk-switch::before {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 999px;
  background: white; transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.twk-switch:checked { background: linear-gradient(135deg, var(--teal-1), var(--teal-2)); }
.twk-switch:checked::before { transform: translateX(14px); }

/* ────────────────────────────────────────────────────────────────
   MOBILE FIXES — appended after Claude Design build
   ──────────────────────────────────────────────────────────────── */

/* Auto-dark-mode for users with OS dark preference (no JS) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06141a;
    --bg-2: #0a1c22;
    --surface: #0b1f25;
    --surface-2: #0e242b;
    --ink: #e9f4f3;
    --ink-2: #9bb4b7;
    --ink-3: #6c8689;
    --line: #1f4150;          /* brighter than #15303a so borders are visible */
    --line-2: #25505f;
    --mint-bg: #0d3326;
    --mint-ink: #6ee7a8;
    --teal-wash: #07212a;
    --teal-wash-2: #082b36;
  }
}

/* Same fix for explicit dark theme — brighten lines so ghost buttons show */
[data-theme="dark"] {
  --line: #1f4150;
  --line-2: #25505f;
}

/* Dark-mode ghost button visibility */
[data-theme="dark"] .btn-ghost {
  border-color: rgba(155, 180, 183, 0.35);
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-ghost {
    border-color: rgba(155, 180, 183, 0.35);
    color: var(--ink);
  }
}

/* HAMBURGER button */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin-left: 8px;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* FULLSCREEN mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  height: calc(100dvh - 64px);
  background: var(--bg);
  z-index: 49;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding: 24px var(--pad-x) calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  padding: 16px 14px;
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-menu a.active {
  background: var(--teal-wash);
  border-radius: 10px;
  border-bottom: 1px solid transparent;
}
.mobile-menu .mobile-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu .mobile-cta .btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn:not(.btn-primary) { display: none; }  /* hide "Sign in", keep "Start free" */
  body.menu-open { overflow: hidden; }
}

/* ────────────────────────────────────────────────────────────────
   MOBILE STRUCTURAL OVERHAUL — appended after Claude Design build
   ──────────────────────────────────────────────────────────────── */

/* Reduce section vertical padding on phones so content doesn't drown in whitespace */
@media (max-width: 760px) {
  :root { --section-y: 56px; }
  .section { padding: var(--section-y) 0; }
  .h-display { font-size: clamp(34px, 9vw, 50px); line-height: 1.05; }
  .h-1       { font-size: clamp(28px, 7.5vw, 38px); line-height: 1.1; }
  .h-2       { font-size: clamp(22px, 6vw, 28px); }
  .lead      { font-size: 16.5px; line-height: 1.55; }
  .container { padding: 0 22px; }
  body { overflow-x: hidden; }
}

/* HERO on mobile: tighten padding, simplify */
@media (max-width: 760px) {
  section.section:first-of-type {
    padding-top: 32px !important;
    padding-bottom: 40px !important;
  }
  /* Brute-force hide the compose mock UI + ALL its floating chip siblings on mobile.
     The hero is much cleaner on a phone with just headline + CTAs + trust line. */
  .compose { display: none !important; }
  /* Any inline-positioned absolute chip inside the hero's right column */
  .two-col > div > div[style*="position:absolute"],
  .two-col > div > div[style*="position: absolute"] { display: none !important; }
  /* Hide any right-column wrapper whose only purpose was to hold the compose mock.
     Identified by the inline style "justify-content:flex-end" (Claude Design pattern). */
  .two-col > div[style*="justify-content:flex-end"],
  .two-col > div[style*="justify-content: flex-end"] { display: none !important; }
}

/* Make sure hero CTA buttons are full-width on phone so "See what it does" reads clearly */
@media (max-width: 560px) {
  section.section:first-of-type .two-col > div > div[style*="display:flex; gap:12px"] { flex-direction: column; align-items: stretch; }
  section.section:first-of-type .two-col > div > div[style*="display:flex; gap:12px"] .btn { width: 100%; justify-content: center; }
}

/* Outcome cards: pin icon close to heading, kill huge gap */
@media (max-width: 760px) {
  .outcome-card { gap: 8px; padding: 20px; }
  .pain-card { gap: 8px; padding: 22px; }
  .grid-3 { gap: 14px; }
}

/* Footer cleanup on phone */
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; text-align: left; }
}

/* Universal overflow guard so nothing pushes past viewport */
section { overflow-x: hidden; }

/* ────────────────────────────────────────────────────────────────
   APP STORE BADGES — Apple App Store + Google Play
   Replicates the official black-pill design. Brand-spec compliant
   sizing (≥40px tall, clear space ≥10% of badge height).
   ──────────────────────────────────────────────────────────────── */
.store-badges {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 8px 16px 8px 14px;
  min-height: 48px;
  font-family: -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
  text-decoration: none;
  border: 1px solid #2a2a2a;
  transition: transform .15s, box-shadow .15s, background .15s;
  position: relative;
  white-space: nowrap;
}
.store-badge:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.45);
}
.store-badge[data-disabled="true"] { cursor: not-allowed; }
.store-icon { width: 28px; height: 28px; flex-shrink: 0; }
.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.store-eyebrow {
  font-size: 10.5px;
  font-weight: 400;
  color: #cfcfcf;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  text-transform: none;
}
.store-name {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

/* In dark mode the black badge stays the same — it's brand-spec */
[data-theme="dark"] .store-badge { border-color: #333; }

/* Tighter on small phones */
@media (max-width: 420px) {
  .store-badges { gap: 8px; }
  .store-badge { padding: 6px 14px 6px 12px; min-height: 44px; }
  .store-icon { width: 24px; height: 24px; }
  .store-name { font-size: 14.5px; }
  .store-eyebrow { font-size: 9.5px; }
}

/* Footer variant — same look, just slotted into a column */
footer .store-badges { margin-top: 14px; flex-direction: column; align-items: flex-start; }
footer .store-badge { width: 100%; max-width: 200px; }

/* ────────────────────────────────────────────────────────────────
   VIDEO GALLERY — real small businesses on the homepage
   4 tiles, 9:16 portrait videos, autoplay muted+loop when scrolled into view
   ──────────────────────────────────────────────────────────────── */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .video-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .video-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px)  { .video-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.video-tile {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 9 / 16;
  isolation: isolate;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.video-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--line) 50%, var(--teal-1) 30%);
}
.video-tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-2);
}
.video-tile figcaption {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  padding: 8px 12px;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
          backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.005em;
}

/* ────────────────────────────────────────────────────────────────
   COMPARISON TABLE — pricing page
   Claude Design shipped this without any CSS. Wrapper enables
   horizontal swipe on mobile; table itself gets proper styling.
   ──────────────────────────────────────────────────────────────── */

.compare {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  /* fade hint on right edge so users know there's more */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
  position: relative;
}
@media (min-width: 920px) {
  .compare {
    /* No fade on desktop, full table visible */
    -webkit-mask-image: none;
            mask-image: none;
  }
}

.compare table {
  width: 100%;
  min-width: 720px;            /* so 5 columns stay readable on mobile via swipe */
  border-collapse: collapse;
  font-size: 14.5px;
  color: var(--ink);
}

.compare thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2);
  padding: 16px 18px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.compare thead th:first-child { width: 38%; }

.compare tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: middle;
}
.compare tbody td:first-child {
  color: var(--ink);
  font-weight: 500;
}

/* Section divider rows ("Publishing", "AI & content", etc.) */
.compare tr.section td {
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
/* override the .section global padding rule for table rows */
.compare tr.section { padding: 0; }

/* Yes / No marks */
.compare .yes {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--mint-bg);
  color: var(--mint-ink);
  font-size: 13px; font-weight: 700;
  line-height: 1;
}
.compare .no {
  color: var(--ink-3);
  font-size: 16px;
  opacity: 0.55;
}

/* Highlight the "Pro" column (recommended) */
.compare thead th:nth-child(3),
.compare tbody td:nth-child(3) {
  background: color-mix(in oklab, var(--teal-wash) 50%, var(--surface) 50%);
}
.compare tr.section td:nth-child(3) { background: var(--bg-2); }
.compare thead th:nth-child(3) { color: var(--teal-ink); }

/* "Swipe →" hint shown only on mobile, only when needed */
.compare::after {
  content: "Swipe →";
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--ink-3);
  pointer-events: none;
  z-index: 3;
}
@media (max-width: 760px) {
  .compare::after { display: block; }
  .compare table { min-width: 640px; font-size: 13.5px; }
  .compare thead th, .compare tbody td { padding: 12px 14px; }
}
