/* Counterslate marketing site. Mobile first. Brand: teal #0E7C7B, light teal #3BB8B3, charcoal #2C2F33. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0E7C7B;
  --teal-dark: #0A605F;
  --teal-light: #3BB8B3;
  --ink: #2C2F33;
  --muted: #5B6168;
  --paper: #F7F6F3;
  --card: #FFFFFF;
  --line: #E3E1DB;
  --slate: #1E2327;
  --slate-2: #272D32;
  --on-slate: #E9ECEC;
  --on-slate-muted: #AEB6B8;
  --red: #C8102E;
  --radius: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 17px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 76px; /* room for the mobile CTA bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .8em; }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: #FFE9A8; color: #5A4300; vertical-align: middle; margin-left: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; line-height: 1.2; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--teal); background: transparent; }
.btn-ghost:hover { background: rgba(14, 124, 123, .08); color: var(--teal-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.center-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 246, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo img { width: 150px; height: auto; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--teal); }
.header-cta { display: none; }
.header-cta .btn { min-height: 42px; padding: 8px 16px; font-size: .95rem; }

/* Mobile CTA bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(30, 35, 39, .96); box-shadow: 0 -4px 20px rgba(0, 0, 0, .15); }
.mobile-bar .btn { width: 100%; }
.mobile-bar .btn-primary { background: var(--teal-light); color: #0B2E2D; }

/* Sections */
.section { padding: 64px 0; }
.alt { background: #EFEDE7; }
.dark { background: var(--slate); color: var(--on-slate); }
.dark .lede, .dark p { color: var(--on-slate-muted); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--teal-light); }
.dark a:not(.btn) { color: var(--teal-light); }
.dark .btn-primary { background: var(--teal-light); color: #0B2E2D; }
.dark .btn-primary:hover { background: #5FCBC6; }
.dark .btn-ghost { color: #fff; }
.dark .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.muted-on-dark { color: var(--on-slate-muted); margin-top: 20px; }

/* Hero */
.hero { padding: 48px 0 56px; background: radial-gradient(120% 90% at 85% 10%, #28353A 0%, var(--slate) 60%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-note { font-size: .92rem; }
.hero-media { margin: 0; }
.tv { background: #0D0F10; border: 1px solid #3A4146; border-radius: 16px; padding: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.tv img { border-radius: 4px; }
.hero-media figcaption { font-size: .85rem; color: var(--on-slate-muted); margin-top: 10px; text-align: center; }
.hero-lite { padding-top: 48px; }

/* Drift */
.drift { display: grid; gap: 16px; margin-top: 32px; }
.drift-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.drift-card.good { border: 2px solid var(--teal); }
.drift-label { font-weight: 800; margin-bottom: 12px; }
.x-list, .check-list { list-style: none; padding: 0; margin: 0; }
.x-list li, .check-list li { position: relative; padding-left: 30px; margin: 8px 0; }
.x-list li::before, .check-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.x-list li::before { content: '\2715'; color: #A33; }
.check-list li::before { content: '\2713'; color: var(--teal); }
.check-list.left { text-align: left; display: table; margin: 8px auto 24px; }

/* Demo */
.demo { display: grid; gap: 20px; margin-top: 36px; align-items: start; }
.demo-pos { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 16px; }
.demo-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--ink) !important; margin-bottom: 8px; }
.demo-items { list-style: none; margin: 0; padding: 0; }
.demo-items li + li { border-top: 1px solid var(--line); }
.demo-items button { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'name price' 'state state'; gap: 2px 12px; width: 100%; text-align: left; padding: 12px 10px; min-height: 56px; background: none; border: 0; border-radius: 10px; font: inherit; color: var(--ink); cursor: pointer; }
.demo-items button:hover { background: #F2F7F7; }
.demo-name { grid-area: name; font-weight: 700; }
.demo-price { grid-area: price; color: var(--muted); }
.demo-state { grid-area: state; font-size: .8rem; font-weight: 700; color: var(--teal); }
.demo-state::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.demo-items button[aria-pressed='true'] .demo-name { text-decoration: line-through; color: var(--muted); }
.demo-items button[aria-pressed='true'] .demo-state { color: #B3261E; }
.demo-tv { background: #0D0F10; border-radius: 16px; padding: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.demo-screen { position: relative; background: #fff; color: #111; border-radius: 6px; padding: 18px 20px 26px; min-height: 260px; }
.demo-board-title { font-weight: 800; font-size: 1.5rem; color: var(--red) !important; margin: 0; font-style: italic; letter-spacing: -0.01em; }
.demo-board-sub { font-size: .7rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #111 !important; margin: 2px 0 10px; padding-bottom: 10px; border-bottom: 2px dashed var(--red); }
.demo-board { list-style: none; margin: 0; padding: 0; }
.demo-board li { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 1.25rem; overflow: hidden; max-height: 3em; padding: 4px 0; transition: max-height .45s ease, opacity .35s ease, padding .45s ease, transform .45s ease; }
.demo-board li span { white-space: nowrap; }
.demo-board li::after { content: ''; order: 1; flex: 1; border-bottom: 2px dotted #BBB; }
.demo-board li b { order: 2; color: var(--red); }
.demo-board li.off { max-height: 0; opacity: 0; padding: 0; transform: translateX(24px); }
.demo-sync { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: .75rem; font-weight: 700; color: var(--teal) !important; }
.demo-status { margin: 12px 0 0; font-size: .95rem; text-align: center; min-height: 1.6em; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; counter-reset: none; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); }

/* Benefits */
.benefits { display: grid; gap: 16px; margin-top: 32px; }
.benefits article { background: var(--card); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--teal); }
.benefits p { margin: 0; color: var(--muted); }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px auto 0; max-width: 560px; }
.phones figure { margin: 0; }
.phones figcaption { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* Proof */
.proof-grid { display: grid; gap: 32px; align-items: center; }
.proof-logo { width: 150px; border-radius: 12px; margin-bottom: 20px; }
.proof-photo { margin: 0; }
.proof-photo img { border-radius: 12px; }
.proof-photo figcaption { font-size: .85rem; color: var(--on-slate-muted); margin-top: 8px; }
.testimonial { margin: 40px 0 0; padding: 24px; border-left: 4px solid var(--teal-light); background: var(--slate-2); border-radius: 0 var(--radius) var(--radius) 0; }
.testimonial p { font-size: 1.2rem; color: #fff; }
.testimonial footer { color: var(--on-slate-muted); font-weight: 700; }

/* Calculator */
.calc { background: var(--card); border-radius: var(--radius); padding: 24px; margin-top: 24px; text-align: left; }
.calc label { font-weight: 700; display: block; margin-bottom: 8px; }
.calc-input { display: flex; align-items: center; gap: 16px; }
.calc-input input { flex: 1; accent-color: var(--teal); min-height: 44px; }
.calc-input output { font-weight: 800; font-size: 1.5rem; min-width: 2ch; text-align: right; }
.calc-result { display: grid; gap: 12px; margin-top: 16px; }
.calc-result p { margin: 0; color: var(--muted); }
.calc-big { display: inline-block; min-width: 2ch; font-size: 1.6rem; font-weight: 800; color: var(--ink); margin-right: 6px; }
.calc-big.good { color: var(--teal); }

/* Pricing */
.price-card { background: var(--card); border: 2px solid var(--teal); border-radius: 20px; padding: 32px 24px; margin-top: 24px; }
.price { margin: 0; }
.price-amount { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; }
.price-per { color: var(--muted); font-weight: 600; }
.price-trial { display: inline-block; background: #E3F3F2; color: var(--teal-dark); font-weight: 800; padding: 4px 12px; border-radius: 99px; margin: 8px 0 16px; }

/* Trust */
.trust-grid { display: grid; gap: 16px; margin-top: 28px; }
.trust-grid > div { background: var(--slate-2); border-radius: var(--radius); padding: 22px; }
.trust-grid p { margin: 0; }

/* FAQ */
.faq { margin-top: 28px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 20px; min-height: 48px; list-style-position: inside; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* Sign-up */
.signup-grid { display: grid; gap: 32px; }
.lead-form { background: #fff; color: var(--ink); border-radius: 18px; padding: 24px; display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.lead-form input, .lead-form select { font: inherit; font-weight: 400; min-height: 48px; padding: 10px 12px; border: 1.5px solid #C9C6BE; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.lead-form input:focus-visible, .lead-form select:focus-visible { border-color: var(--teal); outline: 3px solid rgba(14, 124, 123, .3); outline-offset: 0; }
.lead-form .small { color: var(--muted) !important; margin: 0; }
.lead-form a { color: var(--teal) !important; }
.lead-form .btn-primary { background: var(--teal); color: #fff; }
.lead-form .btn-primary:hover { background: var(--teal-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: #B3261E !important; font-weight: 700; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin: 6px 0; }
.prose figure { margin: 28px 0 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.draft-banner { background: #FFF4D6; border: 1px solid #E9CF7C; padding: 12px 16px; border-radius: 10px; }
.thanks { padding: 96px 20px; }

/* Footer */
.site-footer { background: #15191C; color: var(--on-slate-muted); padding: 48px 0 24px; font-size: .95rem; }
.footer-row { display: grid; gap: 32px; }
.site-footer img { margin-bottom: 12px; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.footer-nav a { display: block; color: var(--on-slate); text-decoration: none; padding: 5px 0; }
.footer-nav a:hover { color: var(--teal-light); text-decoration: underline; }
.footer-h { font-weight: 800; color: #fff; margin-bottom: 6px; }
.fine { font-size: .8rem; margin-top: 32px; border-top: 1px solid #2A3035; padding-top: 16px; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .header-cta { display: block; }
  .logo img { width: 176px; }
  .section { padding: 88px 0; }
  .drift, .steps, .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .drift { grid-template-columns: 1fr 1fr; max-width: 780px; margin-left: auto; margin-right: auto; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .signup-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .demo { grid-template-columns: 300px 1fr; max-width: 900px; margin-left: auto; margin-right: auto; }
  .demo-board li { font-size: 1.6rem; }
  .demo-board-title { font-size: 2rem; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .proof-grid { grid-template-columns: 1fr 1.2fr; }
  .footer-row { grid-template-columns: 1fr 2fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* On phones, show the TV first so a tap in the panel below visibly changes it. */
@media (max-width: 719px) {
  .demo-tv-wrap { order: -1; }
}
