/* Carolina Hold 'em: public site. v2 brand (docs/design/KIT-V2.md, DESIGN-V2 §10).
   Felt greens, leather rail, brass, bone. Light is bone paper with felt ink; dark is the felt itself. */

:root {
  color-scheme: light dark;

  /* Brand tokens (DESIGN-V2 §10.2) */
  --felt-900: #0B2219;
  --felt-800: #113325;
  --felt-700: #15402E;
  --leather: #3B2618;
  --leather-hi: #5A3A22;
  --bone: #F4EFE2;
  --bone-dim: #BAC0B3;          /* bone at .72 over felt, flattened for contrast checks */
  --brass: #E2B95C;
  --brass-ink: #1A1405;
  --ok: #7FD6A4;
  --behind: #FF9F6B;
  --danger: #C8475A;

  /* Theme tokens: light (bone paper) */
  --bg: #F7F2E6;
  --surface: #FFFCF5;
  --surface-2: #EFE7D5;
  --ink: #0E2219;
  --ink-dim: #45524A;            /* 7.3:1 on --bg */
  --line: #D8CDB5;
  --link: #77520C;               /* 6.3:1 on --bg */
  --btn-edge: #8E6A1E;
  --draft-bg: #FFF1CC;
  --draft-ink: #4A3505;
  --shadow: 0 1px 0 rgba(59, 38, 24, .06), 0 10px 30px -18px rgba(59, 38, 24, .35);

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-num: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B2219;
    --surface: #113325;
    --surface-2: #15402E;
    --ink: #F4EFE2;
    --ink-dim: #BAC0B3;
    --line: #28503E;
    --link: #E2B95C;
    --btn-edge: #E2B95C;
    --draft-bg: #3B2618;
    --draft-ink: #F4EFE2;
    --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 12px 30px -16px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #0B2219;
  --surface: #113325;
  --surface-2: #15402E;
  --ink: #F4EFE2;
  --ink-dim: #BAC0B3;
  --line: #28503E;
  --link: #E2B95C;
  --btn-edge: #E2B95C;
  --draft-bg: #3B2618;
  --draft-ink: #F4EFE2;
  --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 12px 30px -16px rgba(0, 0, 0, .6);
}

/* The felt band always wears the table's colours, in either theme. */
.felt {
  --bg: #0B2219;
  --surface: #113325;
  --surface-2: #15402E;
  --ink: #F4EFE2;
  --ink-dim: #BAC0B3;
  --line: #28503E;
  --link: #E2B95C;
  --btn-edge: #E2B95C;
  background: var(--felt-900);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--f-body);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.felt :focus-visible { outline-color: var(--bone); }

h1, h2, h3 { font-family: var(--f-display); font-optical-sizing: auto; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-weight: 800; font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem); }
h2 { font-weight: 800; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-weight: 700; font-size: 1.3rem; }
p { margin: 0 0 1em; }
h1, h2, h3 { text-wrap: balance; }
.section-head h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.4rem); }
.section-head:has(h1) { max-width: 52em; }
ul, ol { padding-left: 1.25em; }
li { margin: .3em 0; }
strong { font-weight: 700; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums lining-nums; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--brass); color: var(--brass-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- Header ---------- */
.site-head { background: var(--felt-900); color: var(--bone); border-bottom: 3px solid var(--leather); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand .word { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1; letter-spacing: -.01em; }
.brand .word span { display: block; margin-top: 3px; font: 700 .82rem/1 var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.brand:hover .word { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.nav { display: flex; align-items: center; gap: 4px 18px; order: 3; width: 100%; justify-content: flex-start; }
.nav a { color: var(--bone); text-decoration: none; font-weight: 700; font-size: 1rem; padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brass); }
.site-head .btn { order: 2; }
@media (min-width: 760px) {
  .nav { order: 1; width: auto; gap: 24px; }
  .brand .word { font-size: 1.45rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font: 700 1.05rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  background: var(--brass); color: var(--brass-ink); border: 2px solid var(--btn-edge);
  box-shadow: 0 2px 0 rgba(26, 20, 5, .35);
}
.btn:hover { background: #EBC872; text-decoration: none; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 55%, transparent); box-shadow: none; }
.felt .btn.ghost, .site-head .btn.ghost { color: var(--bone); border-color: rgba(244, 239, 226, .6); }
.btn.ghost:hover { border-color: var(--brass); background: transparent; }
.btn.big { min-height: 56px; padding: 14px 28px; font-size: 1.15rem; }
.site-head .btn { min-height: 44px; padding: 10px 16px; font-size: 1rem; border-color: var(--brass); }
.chip-dot { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--brass-ink) 0 3px, transparent 3.5px), repeating-conic-gradient(var(--brass-ink) 0 20deg, transparent 20deg 45deg); opacity: .8; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { /* the table's lamp */
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background: radial-gradient(ellipse at 70% 30%, rgba(226, 185, 92, .10), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 36px; padding-top: 44px; padding-bottom: 56px; }
.eyebrow { font-family: var(--f-num); font-weight: 700; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin: 0 0 12px; }
.section-head .eyebrow, .felt .eyebrow { color: var(--link); font-size: 1rem; }
.lede { font-size: 1.2rem; color: var(--ink-dim); max-width: 36em; }
.felt .lede { color: var(--bone-dim); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.fine { font-size: .95rem; color: var(--ink-dim); }
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr 1.08fr; align-items: center; padding-top: 72px; padding-bottom: 88px; }
}

/* The TV and the phone in the hero */
.hero-art { position: relative; padding: 0 9% 13% 0; }
.tv {
  position: relative; background: #050807; padding: 1.3%; border-radius: 14px;
  box-shadow: 0 0 0 1px #1d2a24, 0 30px 60px -28px rgba(0, 0, 0, .8);
}
.tv svg { display: block; width: 100%; height: auto; border-radius: 4px; }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 22%; height: 10px; transform: translateX(-50%); background: #050807; border-radius: 0 0 8px 8px; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 24%;
  background: #050807; padding: 2.1% 1.4%; border-radius: 22px;
  box-shadow: 0 0 0 1px #2b3a33, -18px 24px 40px -18px rgba(0, 0, 0, .75);
}
.phone svg { display: block; width: 100%; height: auto; border-radius: 16px; }
@media (min-width: 980px) { .phone { border-radius: 30px; } .phone svg { border-radius: 22px; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 44em; margin-bottom: 32px; }
.section-head p { color: var(--ink-dim); font-size: 1.15rem; }
@media (min-width: 720px) { .section { padding: 88px 0; } }

.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.four { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.four { grid-template-columns: repeat(4, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--ink-dim); }
.icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--felt-800); color: var(--brass); margin-bottom: 14px; border: 2px solid var(--leather-hi); }
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { margin: 0; position: relative; padding: 24px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 14px;
  background: var(--brass); color: var(--brass-ink); font: 700 1.6rem/1 var(--f-num);
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--brass);
}
.steps p { color: var(--ink-dim); margin: 0; }
.steps code, .url { font-family: var(--f-num); font-weight: 700; font-size: 1.1em; letter-spacing: .02em; color: var(--ink); }

/* Audience panels */
.audience { display: grid; gap: 18px; }
@media (min-width: 860px) { .audience { grid-template-columns: 1fr 1fr; } }
.panel { border-radius: 18px; padding: 28px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.panel.felt { border: 10px solid var(--leather); box-shadow: inset 0 1px 0 var(--leather-hi), var(--shadow); background: var(--felt-800); }
.panel ul { margin: 0 0 22px; }
.panel .btn, .panel .more { margin-top: auto; align-self: flex-start; }
.panel .tag { align-self: flex-start; }
.panel p { color: var(--ink-dim); }
.tag { display: inline-block; font: 700 .9rem/1 var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); background: var(--brass); padding: 6px 9px 5px; border-radius: 5px; margin-bottom: 14px; }

/* Plain truths strip */
.truth { border-top: 3px solid var(--leather); border-bottom: 3px solid var(--leather); }
.truth .wrap { display: grid; gap: 14px; padding-top: 30px; padding-bottom: 30px; align-items: center; }
.truth .big { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); line-height: 1.2; margin: 0; }
.truth p { margin: 0; color: var(--bone-dim); }
@media (min-width: 860px) { .truth .wrap { grid-template-columns: 1.1fr 1fr; gap: 40px; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .wrap { padding-top: 64px; padding-bottom: 64px; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow); position: relative; }
.plan.featured { border: 3px solid var(--brass); }
.plan .ribbon { position: absolute; top: -14px; left: 22px; }
.plan h2 { font-size: 1.6rem; margin-bottom: .2em; }
.plan .who { color: var(--ink-dim); margin-bottom: 18px; }
@media (min-width: 900px) { .plan .who { min-height: 3.2em; } }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price .amt { font: 700 3.6rem/1 var(--f-num); letter-spacing: -.01em; }
.price .per { font-weight: 700; color: var(--ink-dim); }
.renew { font-size: .95rem; color: var(--ink-dim); margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { padding-left: 30px; position: relative; margin: 10px 0; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; border-radius: 50%; background: var(--brass); box-shadow: inset 0 0 0 4px var(--surface), 0 0 0 1.5px var(--btn-edge); }
.plan .btn { margin-top: auto; width: 100%; }
.plan .note { font-size: .9rem; color: var(--ink-dim); margin: 12px 0 0; text-align: center; }
/* Beta (W3): the free-for-now band, "Coming soon" on the plans, and the notice where a buy button will go. */
.beta {
  display: grid; gap: 6px 24px; align-items: center; margin: 0 0 40px; padding: 22px 24px;
  background: var(--surface); border: 3px solid var(--brass); border-radius: 18px; box-shadow: var(--shadow);
}
.beta h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0; }
.beta p { margin: 0; color: var(--ink-dim); }
.beta .btn { justify-self: start; }
@media (min-width: 760px) { .beta { grid-template-columns: 1fr auto; } .beta .btn { grid-column: 2; grid-row: 1 / span 2; } }
.soon-tag { display: inline-block; align-self: flex-start; font: 700 .85rem/1 var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border: 2px dashed var(--btn-edge); padding: 5px 8px 4px; border-radius: 5px; margin-bottom: 12px; }
.plan .soon {
  margin: auto 0 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-2);
  border: 2px dashed var(--btn-edge); font-weight: 700; font-size: 1rem; line-height: 1.4; text-align: center;
}
.plan h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; margin: -8px 0 0; color: var(--ink-dim); }
.plan ul.later li::before { background: transparent; box-shadow: inset 0 0 0 2px var(--btn-edge); }
.plan ul.later li { color: var(--ink-dim); }
.soon-inline { font: 700 .8rem/1 var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: var(--link); white-space: nowrap; }

/* FAQ */
.faq { max-width: 50em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative;
  font-weight: 700; font-size: 1.15rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 3px solid var(--link); border-bottom: 3px solid var(--link); transform: rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .a { padding: 0 0 18px; color: var(--ink-dim); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- Data sheet ---------- */
.sheet { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet th { width: 32%; font-weight: 700; background: var(--surface-2); }
.sheet td { color: var(--ink); }
@media (max-width: 600px) {
  .sheet, .sheet tbody, .sheet tr, .sheet th, .sheet td { display: block; width: 100%; }
  .sheet th { border-bottom: 0; padding-bottom: 4px; }
  .sheet td { padding-top: 4px; }
}
.sheet caption { text-align: left; padding: 0 0 12px; color: var(--ink-dim); caption-side: top; }

/* ---------- Legal pages ---------- */
.draft {
  background: var(--draft-bg); color: var(--draft-ink); border: 2px dashed #B8871C;
  border-radius: 12px; padding: 16px 18px; margin: 0 0 28px; font-weight: 700;
}
.draft strong { font-family: var(--f-num); letter-spacing: .1em; font-size: 1.15rem; text-transform: uppercase; display: block; margin-bottom: 4px; }
.draft span { font-weight: 400; }
.legal { max-width: 46em; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5em; }
.legal .meta { color: var(--ink-dim); }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--brass); border-radius: 12px; padding: 18px 20px 6px; margin: 24px 0; }
.lawyer { display: block; margin: .6em 0 1em; padding: 10px 14px; border-radius: 8px; background: var(--surface-2); border-left: 4px solid var(--danger); font-size: .95rem; color: var(--ink); }
.lawyer::before { content: "For legal review: "; font-weight: 700; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin: 0 0 24px; }
.toc ol { margin: 6px 0 4px; }
.toc a { font-weight: 700; }

/* ---------- 404 ---------- */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.lost .wrap { padding-top: 64px; padding-bottom: 64px; }
.lost .cards { display: inline-flex; gap: 10px; margin-bottom: 26px; }
.lost .pc { width: 64px; height: 90px; border-radius: 8px; background: var(--bone); color: #111; font: 700 2.2rem/1 var(--f-num); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.lost .pc.red { color: #C4202F; }
.lost .pc.empty { background: transparent; border: 3px dashed rgba(244, 239, 226, .35); box-shadow: none; }
.lost .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-foot { background: var(--felt-900); color: var(--bone); border-top: 3px solid var(--leather); }
.site-foot .wrap { padding-top: 36px; padding-bottom: 36px; display: grid; gap: 22px; }
.site-foot .nomoney { font-family: var(--f-num); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); margin: 0; }
.site-foot nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-foot nav a { color: var(--bone); display: inline-flex; min-height: 44px; align-items: center; }
.site-foot .small { color: var(--bone-dim); font-size: .95rem; margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand svg { width: 48px; height: 48px; }
.foot-brand .word { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.foot-brand .word span { display: block; font: 700 .95rem/1 var(--f-num); letter-spacing: .14em; color: var(--brass); }
@media (min-width: 860px) { .site-foot .wrap { grid-template-columns: 1.2fr 1fr; align-items: center; } .site-foot .small, .site-foot nav { grid-column: 1 / -1; } }

.foot-brand .word { margin: 0; }
.foot-brand .word span { text-transform: uppercase; margin-top: 3px; }

/* Headline set line by line (hero) */
.lines span { display: block; }
@media (min-width: 980px) { .hero h1 { font-size: clamp(2.6rem, 1.2rem + 2.6vw, 3.6rem); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-head, .site-foot, .skip, .cta-row { display: none; }
  body { background: #fff; color: #000; }
}
