/* The Counsel Social — shared site styles.
   Brand colors mirror flutter_app/lib/config/theme.dart. Dark-only, like the app. */
:root {
  --bg: #070915;
  --bg-2: #0b0e1f;
  --surface: #121426;
  --surface-hi: #1a1d35;
  --line: #2a2c3a;
  --line-gold: rgba(214, 176, 122, .35);
  --ink: #f3f3f6;
  --muted: #a7a6b3;
  --gold: #d6b07a;
  --gold-hi: #e8c99a;
  --pink: #ff5fa2;
  --purple: #9a5cf0;
  --teal: #3cb6a0;
  --atlas: #d4af37;
  --radius: 18px;
  --f-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(7, 9, 21, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font: 600 1.15rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.brand small { color: var(--gold); letter-spacing: .14em; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-hi); }
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .nav { margin-left: -12px; width: calc(100% + 12px); padding-bottom: 6px; }
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.gold { color: var(--gold); }
.pink { color: var(--pink); }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(255, 95, 162, .14), transparent 70%),
    radial-gradient(40% 50% at 70% 40%, rgba(154, 92, 240, .14), transparent 70%);
}
.hero > .wrap { position: relative; }
.hero-mark { width: min(820px, 100%); margin: 0 auto 28px; mix-blend-mode: lighten; }
.hero-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .actions { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1a1205; }
.btn-primary:hover { color: #000; filter: brightness(1.06); }
.btn-ghost { border-color: var(--line-gold); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 178px; padding: 9px 20px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; line-height: 1.2;
}
.store small { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.store strong { font-size: 1.05rem; }
.store[aria-disabled="true"] { cursor: default; }
.note { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.card.gold-edge { border-color: var(--line-gold); }
.card h3 { color: var(--gold-hi); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; }
.glyph {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--surface-hi); border: 1px solid var(--line-gold); color: var(--gold);
}
.glyph svg { width: 24px; height: 24px; }

/* Product cards on the hub */
.grid > * { min-width: 0; }
.product {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; padding: 0;
  transition: border-color .2s, transform .2s;
}
.product:hover { border-color: var(--gold); transform: translateY(-2px); color: inherit; }
@media (prefers-reduced-motion: reduce) { .product:hover { transform: none; } }
.product .art { height: 220px; overflow: hidden; background: #050713; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.product .art img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.product .art img.app-icon { height: 72%; border-radius: 22%; }
.product .body { padding: 26px 28px 30px; }
.product .more { color: var(--gold); font-weight: 600; }
.product.soon { border-style: dashed; }
.product.soon .art { color: var(--muted); font: 600 1.1rem var(--f-display); letter-spacing: .2em; text-transform: uppercase; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.feature img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
@media (max-width: 560px) { .feature { grid-template-columns: 1fr; } }
.quip { color: var(--pink); font-style: italic; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { counter-increment: s; position: relative; padding-left: 58px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-gold); color: var(--gold); font: 600 1.2rem var(--f-display);
}
.steps strong { display: block; color: var(--ink); }

/* Pricing */
.plan { display: flex; flex-direction: column; }
.plan .price { font: 600 2.4rem/1 var(--f-display); color: var(--ink); margin: 6px 0 4px; }
.plan .price small { font: 400 1rem var(--f-body); color: var(--muted); }
.plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 20px 60px -30px rgba(214, 176, 122, .45); }

/* Notices — legally required statements, keep visible */
.notice {
  border: 1px solid var(--line-gold); border-radius: 12px; padding: 16px 20px; background: rgba(214, 176, 122, .06);
  font-size: .95rem;
}
.notice strong.caps { text-transform: uppercase; letter-spacing: .02em; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Atlas accent */
.atlas-theme { --gold: var(--atlas); --gold-hi: #e6c75a; --line-gold: rgba(212, 175, 55, .35); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--ink); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal-line { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
