/* Countertop marketing site. Token values come from the Countertop design system (dark theme). */
:root {
  --bg: #0b0e12; --header: #0e1217; --header-border: #1f2630;
  --surface: #151a21; --surface-border: #262e39;
  --field: #12171d; --field-border: #2a323d;
  --raised: #1a2029; --raised-border: #2f3845;
  --stage: #10141a; --stage-border: #1f2630; --divider: #222a34; --hover: #232b36; --tag: #1f2630;
  --text: #e8ecf1; --text-strong: #ffffff; --text-2: #c4ccd6; --text-sub: #aeb7c4; --text-muted: #9aa4b2; --text-faint: #8c96a4;
  --accent: #f5b83d; --accent-text: #f5b83d; --on-accent: #14110a;
  --chip-on-bg: #e8ecf1; --chip-on-text: #0b0e12;
  --ok: #7fd69b; --bad: #ff9c8a;
  --placeholder-bg: #161b22; --placeholder-border: #36404d; --badge-bg: rgba(11, 14, 18, 0.86);
  --game-mtg: #3a4a6b; --game-pkm: #6b5a1f; --game-lor: #4a3d7a; --game-op: #7a3a33; --on-tint: #ffffff;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 48px; --grid-gap: 18px;
  --radius-xs: 4px; --radius-badge: 7px; --radius-sm: 8px; --radius-cond: 9px; --radius-md: 10px; --radius-img: 11px;
  --radius-lg: 12px; --radius-xl: 14px; --radius-2xl: 16px; --radius-card: 18px; --radius-full: 999px;
  --shadow-card: none; --shadow-image: 0 14px 30px rgba(0, 0, 0, 0.55); --shadow-drop: 0 28px 64px rgba(0, 0, 0, 0.65);
  --control-sm: 40px; --control-md: 44px; --control-cond: 46px; --control-lg: 48px; --control-xl: 60px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; color: var(--text-strong); margin: 0; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 13px; padding: 2px 6px; border-radius: 5px; background: var(--tag); color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.band { background: var(--header); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
/* Vertical only: .section is often combined with .wrap, which owns the side padding. */
.section { padding-top: 104px; padding-bottom: 104px; }
@media (max-width: 900px) { .section { padding-top: 80px; padding-bottom: 80px; } }
@media (max-width: 600px) { .section { padding-top: 64px; padding-bottom: 64px; } }
.kicker { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.kicker.faint { font-size: 10px; color: var(--text-faint); }
.h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.02em; }
.lede { font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 480px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header); border-bottom: 1px solid var(--header-border); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 12px; padding-bottom: 12px; }
.logo { flex-grow: 1; display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; }
.nav-links a { color: var(--text-sub); padding: 12px 0; }
.nav-links a:hover { color: var(--text-strong); }
.site-header .cs-btn-primary { height: 44px; font-size: 14px; }
@media (max-width: 720px) { .nav-links { display: none; } }

a.cs-btn { text-decoration: none; }
a.cs-btn-primary:hover { color: var(--on-accent); filter: brightness(1.06); }
a.cs-btn-secondary:hover { color: var(--text-strong); border-color: var(--raised-border); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; padding-top: 88px; padding-bottom: 72px; }
@media (max-width: 900px) { .hero { padding-top: 56px; padding-bottom: 48px; gap: 40px; } }
@media (max-width: 600px) { .hero { padding-top: 40px; } }
.hero-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-top: 12px; }
.hero h1 { font-size: clamp(38px, 4.7vw, 68px); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.hero-copy .sub { max-width: 520px; font-size: 19px; line-height: 1.5; color: var(--text-2); }
.hero-copy .sub strong { color: var(--text-strong); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero-ctas .cs-btn-primary { padding: 0 24px; }
.hero-ctas .cs-btn-secondary { height: 48px; padding: 0 22px; font-size: 15px; }
.fine { font-size: 13px; color: var(--text-muted); }
.hero-demo { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-demo .mount { min-height: 400px; }
.cs-search input { font-size: 18px; }

/* Games strip */
.games { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding-top: 40px; padding-bottom: 40px; }
.games .stack { flex: 1 1 320px; gap: 6px; }
.games h2 { font-size: 22px; }
.games p { font-size: 15px; color: var(--text-muted); }
.row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 18px; padding: 20px; border-radius: var(--radius-card); border: 1px solid var(--surface-border); background: var(--surface); }
.step-num { flex: none; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--raised); border: 1px solid var(--raised-border); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--accent-text); }
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { font-size: 15px; color: var(--text-muted); }
.tile-demo { flex: 0 1 300px !important; min-width: 260px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.tile-demo p { text-align: center; font-size: 12px; color: var(--text-muted); min-height: 18px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; margin-top: 48px; }
.feature { padding: 28px; border-radius: var(--radius-card); border: 1px solid var(--surface-border); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.feature svg { color: var(--accent); }
.feature h3 { font-size: 20px; }
.feature p { font-size: 15px; color: var(--text-muted); }

/* Not a POS */
.panel { padding: 48px; border-radius: var(--radius-card); border: 1px solid var(--surface-border); background: var(--surface); }
@media (max-width: 600px) { .panel { padding: 28px; } }
.panel h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.words { display: flex; flex-wrap: wrap; gap: 10px; }
.words span { padding: 10px 14px; border-radius: var(--radius-md); background: var(--raised); border: 1px solid var(--raised-border); font-size: 15px; font-weight: 600; color: var(--text-strong); }
.words .mono { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--accent-text); }

/* FAQ */
.faq { max-width: 880px; display: flex; flex-direction: column; gap: 28px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: var(--radius-2xl); border: 1px solid var(--surface-border); background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 600; color: var(--text-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-family: var(--font-mono); font-size: 20px; color: var(--accent-text); transition: transform 0.15s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }

/* Signup */
.signup h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.025em; }
.signup-form { padding: 28px; border-radius: var(--radius-card); border: 1px solid var(--surface-border); background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.field input { height: 48px; padding: 0 16px; border-radius: var(--radius-lg); border: 1px solid var(--field-border); background: var(--field); color: var(--text-strong); font-family: var(--font-body); font-size: 16px; }
.field input::placeholder { color: var(--text-faint); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; min-height: 21px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--bad); }
.cs-btn-primary:disabled { opacity: 0.6; cursor: progress; }

/* Footer */
.site-footer { border-top: 1px solid var(--header-border); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer nav a { color: var(--text-sub); padding: 12px 0; }
.site-footer .copy { flex-basis: 100%; padding-top: 12px; border-top: 1px solid var(--header-border); }

/* Plain text pages (privacy, contact, 404) */
.page { max-width: 760px; padding-top: 88px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 20px; }
.page h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.025em; }
.page h2 { font-size: 22px; margin-top: 16px; }
.page p, .page li { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.page ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.page a:not(.cs-btn) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .page { padding-top: 56px; padding-bottom: 72px; } }

/* Phones */
@media (max-width: 600px) {
  .split { gap: 32px; }
  .signup-form { padding: 20px; }
  .step { padding: 16px; gap: 14px; }
  .feature { padding: 22px; }
  .hero-demo .mount { min-height: 380px; }
  /* Narrow dropdown rows: give the card name more room. */
  .cs-sugg { gap: 10px; padding: 8px 10px; }
  .cs-sugg .name { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
  .cs-sugg .thumb { width: 30px; height: 42px; font-size: 14px; }
  .cs-sugg .price { font-size: 12px; }
  .cs-sugg .stock { font-size: 11px; }
  .cs-search input { padding-left: 50px; }
  .cs-search > .icon { left: 16px; }
}
