/* ==========================================================================
   Show Up And Play — Design System v2
   Dark athletic / premium. Light mode included.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Dark is the default identity of the brand */
  --bg:            #0A0B0D;
  --bg-soft:       #101215;
  --surface:       #14171C;
  --surface-2:     #1A1E25;
  --surface-3:     #222731;
  --border:        rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);

  --text:          #F4F6F8;
  --text-2:        #B6BECB;
  --muted:         #8B94A3;
  --faint:         #626B7A;

  --accent:        #C6FF3D;   /* electric lime */
  --accent-2:      #A8E82A;
  --accent-ink:    #0A0B0D;   /* text on accent */
  --accent-soft:   rgba(198,255,61,.12);
  --accent-line:   rgba(198,255,61,.32);

  --info:          #6BA4FF;
  --success:       #34D399;
  --warn:          #FBBF24;
  --danger:        #FB7185;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 8px 24px -6px rgba(0,0,0,.55);
  --shadow-lg: 0 24px 60px -12px rgba(0,0,0,.7);
  --glow:      0 0 0 1px var(--accent-line), 0 12px 40px -12px rgba(198,255,61,.35);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --nav-h: 68px;

  --ease: cubic-bezier(.22,.61,.36,1);
  color-scheme: dark;
}

/* Light mode: system preference, unless user forced dark */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:            #FBFBFC;
    --bg-soft:       #F4F5F7;
    --surface:       #FFFFFF;
    --surface-2:     #F7F8FA;
    --surface-3:     #EDEFF3;
    --border:        rgba(10,11,13,.10);
    --border-strong: rgba(10,11,13,.20);

    --text:          #0E1116;
    --text-2:        #414A57;
    --muted:         #5C6675;
    --faint:         #8B94A3;

    --accent:        #5B8C00;
    --accent-2:      #4A7300;
    --accent-ink:    #FFFFFF;
    --accent-soft:   rgba(91,140,0,.10);
    --accent-line:   rgba(91,140,0,.30);

    --info:          #2563EB;
    --success:       #047857;
    --warn:          #B45309;
    --danger:        #BE123C;

    --shadow-sm: 0 1px 2px rgba(10,11,13,.06);
    --shadow:    0 8px 24px -8px rgba(10,11,13,.14);
    --shadow-lg: 0 24px 56px -16px rgba(10,11,13,.20);
    --glow:      0 0 0 1px var(--accent-line), 0 12px 36px -14px rgba(91,140,0,.30);
    color-scheme: light;
  }
}

/* Explicit user toggle wins in both directions */
:root[data-theme="light"] {
  --bg:            #FBFBFC;
  --bg-soft:       #F4F5F7;
  --surface:       #FFFFFF;
  --surface-2:     #F7F8FA;
  --surface-3:     #EDEFF3;
  --border:        rgba(10,11,13,.10);
  --border-strong: rgba(10,11,13,.20);
  --text:          #0E1116;
  --text-2:        #414A57;
  --muted:         #5C6675;
  --faint:         #8B94A3;
  --accent:        #5B8C00;
  --accent-2:      #4A7300;
  --accent-ink:    #FFFFFF;
  --accent-soft:   rgba(91,140,0,.10);
  --accent-line:   rgba(91,140,0,.30);
  --info:          #2563EB;
  --success:       #047857;
  --warn:          #B45309;
  --danger:        #BE123C;
  --shadow-sm: 0 1px 2px rgba(10,11,13,.06);
  --shadow:    0 8px 24px -8px rgba(10,11,13,.14);
  --shadow-lg: 0 24px 56px -16px rgba(10,11,13,.20);
  --glow:      0 0 0 1px var(--accent-line), 0 12px 36px -14px rgba(91,140,0,.30);
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden], .hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Ambient backdrop ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(198,255,61,.10), transparent 62%),
    radial-gradient(760px 480px at 6% 4%,   rgba(107,164,255,.09), transparent 60%);
}
:root[data-theme="light"] body::before { opacity: .5; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body::before { opacity: .5; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; position: relative; z-index: 1; }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; z-index: 1; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ml-auto { margin-left: auto; }
.center { text-align: center; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 6px 13px; border-radius: 999px;
}
.eyebrow::before { content:""; width:6px; height:6px; border-radius:999px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  line-height: 1.05; font-weight: 800; letter-spacing: -.032em;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  line-height: 1.1; font-weight: 800; letter-spacing: -.028em;
}
h3, .h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -.012em; line-height: 1.3; }
h4, .h4 { font-size: 1rem; font-weight: 700; letter-spacing: -.008em; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-2); line-height: 1.62; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.tiny  { font-size: .76rem; }
.grad {
  background: linear-gradient(94deg, var(--accent) 0%, var(--accent) 62%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .lead { margin-top: 14px; }
.section-head h2 { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-weight: 650; font-size: .93rem; letter-spacing: -.005em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), opacity .18s;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }

.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: transparent; font-weight: 750; }
.btn-primary:hover { --btn-bg: var(--accent-2); box-shadow: 0 10px 30px -10px rgba(198,255,61,.55); }

.btn-ghost { --btn-bg: transparent; --btn-bd: var(--border-strong); }
.btn-ghost:hover { --btn-bg: var(--surface-2); --btn-bd: var(--accent-line); }

.btn-solid { --btn-bg: var(--surface-3); --btn-bd: transparent; }
.btn-solid:hover { --btn-bd: var(--border-strong); }

.btn-success { --btn-bg: var(--success); --btn-fg: #04140E; --btn-bd: transparent; font-weight: 750; }
:root[data-theme="light"] .btn-success { --btn-fg: #fff; }

.btn-sm { padding: 8px 15px; font-size: .855rem; }
.btn-lg { padding: 14px 27px; font-size: 1rem; }
.full { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-stuck { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; object-fit: cover;
  border: 1px solid var(--border-strong); background: var(--surface-2);
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.03em; line-height: 1.1; }
.brand-name span { display: block; font-family: var(--font); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-links a {
  padding: 8px 11px; border-radius: 999px; text-decoration: none;
  font-size: .875rem; font-weight: 550; color: var(--text-2);
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.badge--plain { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 999px; background: transparent; border: 1px solid var(--border);
  cursor: pointer; color: var(--text-2);
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 17px; height: 17px; }

.nav-toggle { display: none; }

@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--nav-h); left: 12px; right: 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-lg);
    margin-left: 0;
  }
  .nav-links.is-open a { padding: 11px 14px; border-radius: var(--radius-xs); }
}
@media (max-width: 620px) {
  .brand-name span { display: none; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
  .nav-actions { gap: 6px; flex-shrink: 0; }
  .nav-actions .btn { padding: 9px 13px; font-size: .82rem; }
  #plan-badge { display: none; }
  #free-access-btn-header { display: none; }
}
@media (max-width: 400px) {
  .brand-mark { width: 32px; height: 32px; }
  .nav-actions .btn { padding: 8px 12px; font-size: .8rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(52px, 8vw, 96px) clamp(40px, 6vw, 76px); position: relative; z-index: 1; }
.hero-grid {
  display: grid; gap: clamp(34px, 5vw, 60px); align-items: center;
  grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-top: 20px; }
.hero .lead { margin-top: 20px; max-width: 54ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.hero-note svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }

.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--border); }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.hero-stats div span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

/* Hero — Ask entry point, sits above the journal mock.
   Shaped like the assistant's own composer so it reads as "you can type here",
   while actually being a link. See the comment in index.html for why. */
.ask-promo {
  display: block; margin-bottom: 14px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: border-color .16s ease, transform .16s ease;
}
.ask-promo:hover, .ask-promo:focus-visible {
  border-color: var(--accent); transform: translateY(-2px);
}
.ask-promo-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--accent-soft);
  font-size: .74rem; font-weight: 600; letter-spacing: .03em; color: var(--muted);
}
.ask-promo-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--accent); flex: none; }
.ask-promo-body { padding: 16px; }
.ask-promo-field {
  display: block; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--faint); font-size: .95rem;
}
.ask-promo-eg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ask-promo-eg a {
  font-size: .82rem; text-decoration: none;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface-2);
  transition: border-color .16s ease, color .16s ease;
}
.ask-promo-eg a:hover, .ask-promo-eg a:focus-visible {
  border-color: var(--accent-line); color: var(--text);
}

/* Hero visual — device mock */
.hero-visual { position: relative; }
.mock {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; position: relative;
}
.mock::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(150deg, rgba(198,255,61,.07), transparent 46%);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar i { width: 9px; height: 9px; border-radius: 999px; background: var(--surface-3); }
.mock-bar span { margin-left: 8px; font-size: .74rem; color: var(--faint); font-weight: 600; letter-spacing: .03em; }
.mock-body { padding: 20px; display: flex; flex-direction: column; gap: 13px; }

.mock-entry { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px 16px; }
.mock-entry .k { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mock-entry .k b { font-size: .92rem; font-weight: 700; }
.mock-entry .k em { font-style: normal; font-size: .74rem; color: var(--faint); font-weight: 600; }
.mock-entry p { margin-top: 7px; font-size: .845rem; color: var(--text-2); line-height: 1.55; }

.mock-rating { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 14px 16px; }
.mock-rating b { font-family: var(--font-display); font-size: 1.85rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; line-height: 1; }
.mock-rating div { font-size: .8rem; color: var(--text-2); }
.mock-rating div strong { display: block; color: var(--text); font-size: .87rem; }

.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 62px; padding-top: 4px; }
.mock-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--surface-3); }
.mock-bars i.on { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }

/* ---------- Marquee / logos strip ---------- */
.strip { border-block: 1px solid var(--border); background: var(--bg-soft); padding-block: 16px; overflow: hidden; position: relative; z-index: 1; }
.strip-track { display: flex; gap: 42px; align-items: center; justify-content: center; flex-wrap: wrap; }
.strip-track span { font-size: .78rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; color: var(--faint); }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
  position: relative;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }

.feat-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
  margin-bottom: 16px;
}
.feat-icon svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: .92rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(244px, 1fr)); align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 16px; position: relative;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { border-color: var(--accent-line); box-shadow: var(--glow); background: linear-gradient(180deg, var(--accent-soft), transparent 30%), var(--surface); }
.plan-flag {
  position: absolute; top: -11px; left: 24px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.plan-name { font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan--featured .plan-name { color: var(--accent); }
.plan-price { display: flex; align-items: baseline; gap: 5px; }
.plan-price b { font-family: var(--font-display); font-size: 2.7rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan-price span { font-size: .88rem; color: var(--muted); font-weight: 600; }
.plan-desc { font-size: .87rem; color: var(--muted); margin-top: -6px; }
.plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .89rem; color: var(--text-2); flex: 1; }
.plan ul li { display: flex; gap: 9px; align-items: flex-start; }
.plan ul li::before {
  content: ""; flex-shrink: 0; margin-top: 6px; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
}
.plan ul li b { color: var(--text); font-weight: 700; }

/* ---------- Article / feed cards ---------- */
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.feed-head .section-head { margin-bottom: 0; }

.posts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.post {
  display: flex; flex-direction: column; gap: 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  text-decoration: none; color: inherit; position: relative;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s, background .22s;
}
.post:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.post-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: .74rem; color: var(--faint); font-weight: 600; letter-spacing: .04em; }
.post-tag {
  display: inline-flex; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
  text-transform: uppercase; letter-spacing: .09em; font-size: .66rem; font-weight: 750;
}
.post-tag--alt { background: var(--surface-3); color: var(--text-2); border-color: var(--border); }
.post h3 { font-size: 1.03rem; line-height: 1.34; font-weight: 700; letter-spacing: -.014em; }
.post p { font-size: .875rem; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-more {
  margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: var(--accent);
}
.post-more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.post:hover .post-more svg { transform: translateX(3px); }

/* Feed states */
.feed-state { display: flex; align-items: center; gap: 11px; padding: 22px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); font-size: .9rem; }
.feed-state .spin { width: 17px; height: 17px; border-radius: 999px; border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; flex-shrink: 0; }

.skeleton { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.skeleton i { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:nth-child(1) { width: 34%; height: 9px; }
.skeleton i:nth-child(2) { width: 96%; height: 15px; }
.skeleton i:nth-child(3) { width: 72%; height: 15px; }
.skeleton i:nth-child(4) { width: 88%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Filter chips */
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border);
  font-size: .82rem; font-weight: 650; color: var(--text-2);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 750; }

/* ---------- City guide index ---------- */
.city-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); }
.city {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 15px 17px;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.city:hover { transform: translateX(3px); border-color: var(--accent-line); }
.city-flagmark {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 1.1rem;
}
.city b { display: block; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.city span { font-size: .77rem; color: var(--muted); }
.city .arr { margin-left: auto; color: var(--faint); transition: color .2s, transform .2s var(--ease); }
.city:hover .arr { color: var(--accent); transform: translateX(2px); }
.city .arr svg { width: 16px; height: 16px; }

/* ---------- App workspace ---------- */
.workspace { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--border); background: var(--surface-2); overflow-x: auto; }
.tab {
  padding: 9px 17px; border-radius: 999px; border: 1px solid transparent; background: transparent;
  font-size: .88rem; font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: all .18s var(--ease);
}
.tab:hover { color: var(--text); background: var(--surface-3); }
.tab.active { background: var(--accent); color: var(--accent-ink); font-weight: 750; }
.panel { padding: clamp(18px, 3vw, 28px); }

.form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .8rem; font-weight: 650; color: var(--text-2); letter-spacing: .01em; }
.input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-xs);
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  font-size: .93rem; transition: border-color .18s, background .18s, box-shadow .18s;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent-line); background: var(--surface-2); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 108px; line-height: 1.6; }
.field-row { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.list { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; background: var(--surface-2); }
.item .item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.item .item-head b { font-size: .95rem; font-weight: 700; }
.item .item-head em { font-style: normal; font-size: .76rem; color: var(--faint); font-weight: 600; }
.item p { margin-top: 8px; font-size: .89rem; color: var(--text-2); white-space: pre-line; line-height: 1.6; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--faint); }
.empty b { display: block; color: var(--text); font-size: .98rem; margin-bottom: 5px; }
.empty p { font-size: .88rem; }

/* Whiteboard */
.wb-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wb-toolbar > span { font-size: .8rem; font-weight: 650; color: var(--text-2); }
.swatches { display: flex; gap: 7px; }
.swatch { width: 27px; height: 27px; border-radius: 999px; border: 2px solid var(--border); cursor: pointer; padding: 0; transition: transform .16s var(--ease), border-color .16s; }
.swatch:hover { transform: scale(1.12); }
.swatch.selected { border-color: var(--accent); transform: scale(1.14); box-shadow: 0 0 0 3px var(--accent-soft); }
.canvas-wrap { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
#whiteboard-canvas { width: 100%; height: 400px; display: block; touch-action: none; cursor: crosshair; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-soft), transparent 55%), var(--surface);
  border: 1px solid var(--accent-line); border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 54px); text-align: center; box-shadow: var(--glow);
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { max-width: 52ch; margin: 16px auto 0; }
.cta-band .row { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: 52px 34px; margin-top: 26px; position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.footer h4 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 13px; font-weight: 750; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a { text-decoration: none; font-size: .885rem; color: var(--text-2); transition: color .16s; }
.footer a:hover { color: var(--accent); }
.footer-brand p { font-size: .885rem; color: var(--muted); margin-top: 13px; max-width: 38ch; line-height: 1.6; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--faint); }

/* ---------- Modals ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(4,5,7,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.backdrop:not(.hidden) { display: flex; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 430px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg);
  animation: pop .24s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-head h3 { font-size: 1.2rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
.close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--faint); cursor: pointer; padding: 0 4px; transition: color .16s; }
.close:hover { color: var(--text); }
.modal .muted { font-size: .87rem; }
.link { color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0; font-weight: 650; font-size: inherit; text-decoration: none; }
.link:hover { text-decoration: underline; }
.dot { color: var(--faint); margin-inline: 8px; }

/* ---------- Loader ---------- */
.overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(4,5,7,.62); backdrop-filter: blur(3px); }
.spinner { width: 42px; height: 42px; border-radius: 999px; border: 3px solid var(--border-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }

/* ---------- Toast ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: min(340px, calc(100vw - 40px)); }
.toast {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent);
  border-radius: var(--radius-xs); padding: 13px 16px; font-size: .885rem; color: var(--text);
  box-shadow: var(--shadow-lg); animation: slide .26s var(--ease);
}
.toast.err { border-left-color: var(--danger); }
.toast.ok  { border-left-color: var(--success); }
@keyframes slide { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--accent); color: var(--accent-ink); padding: 10px 18px;
  border-radius: 0 0 var(--radius-xs) var(--radius-xs); font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 0; }

/* ---------- Google AdSense ----------
   Auto ads inject iframes we don't control. Constrain them so they can't
   break the responsive layout (no page-level horizontal scroll), and give
   them a sane background in both themes. */
ins.adsbygoogle { display: block !important; max-width: 100% !important; overflow: hidden; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
iframe[id^="aswift_"], iframe[id^="google_ads_"] { max-width: 100% !important; }
.adsbygoogle iframe { max-width: 100% !important; }

/* ---------- Home page club-search band ----------
   A native GET form pointing at /club-finder.html, so the browser builds the
   query string and this works with JavaScript disabled. The finder reads the
   same params, so the hand-off needs no scripting at all. */
.findbar { padding-block: clamp(26px, 4vw, 40px); position: relative; z-index: 2; }
.findbar-card {
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3.5vw, 38px);
  box-shadow: var(--glow);
}
.findbar-copy { max-width: 60ch; }
.findbar-copy h2 { margin-top: 14px; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.findbar-copy p { margin-top: 10px; color: var(--text-2); font-size: clamp(.95rem, 1.4vw, 1.05rem); line-height: 1.6; }
.findbar-copy p strong { color: var(--text); font-weight: 750; }

.findbar-form {
  display: grid; gap: 12px; margin-top: 22px; align-items: end;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) auto;
}
@media (max-width: 780px) { .findbar-form { grid-template-columns: 1fr 1fr; } .findbar-form > button { grid-column: 1 / -1; } }
@media (max-width: 460px) { .findbar-form { grid-template-columns: 1fr; } }

.findbar-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.findbar-field > label {
  font-size: .68rem; font-weight: 750; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.findbar-field input, .findbar-field select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 1rem;
}
.findbar-field input::placeholder { color: var(--faint); }
.findbar-field input:focus, .findbar-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.findbar-form > button { padding-block: 13px; white-space: nowrap; }

.findbar-hint { margin-top: 16px; font-size: .86rem; color: var(--muted); }
.findbar-hint a { color: var(--accent); text-decoration: none; font-weight: 650; }
.findbar-hint a:hover { text-decoration: underline; }


/* ===================== PODCAST ===================== */
.pod-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 860px) { .pod-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.pod-embed { margin: 0; }
.pod-embed iframe { width: 100%; max-width: 100%; overflow: hidden; border: 0; border-radius: var(--radius-sm); background: transparent; display: block; }
.pod-note { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }
.pod-note a { color: var(--accent); text-decoration: none; font-weight: 650; }
.pod-note a:hover { text-decoration: underline; }

.pod-eps { display: grid; gap: 12px; }
.pod-ep {
  display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 15px 17px;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.pod-ep:hover { transform: translateX(3px); border-color: var(--accent-line); }
.pod-ep-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--accent);
  line-height: 1.4; flex-shrink: 0; min-width: 26px;
}
.pod-ep b { display: block; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.pod-ep span span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.pod-ep-meta { margin-top: 8px; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; color: var(--faint); }
