/*
 * BrickByClick site: the same look as the CRM (crm.brickbyclick.ai).
 * Black, white and grey only. Green (--positive) is for good news only (paid, on, trends up).
 * Light by default, dark when the visitor's device prefers it or they pick it (data-theme on <html>).
 * Type: Bebas Neue for headlines, Space Grotesk for text, JetBrains Mono for numbers, times and small labels.
 */

:root {
  color-scheme: light;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: rgba(0,0,0,0.025);
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --text-primary: rgba(0,0,0,0.85);
  --text-secondary: rgba(0,0,0,0.62);
  --text-dim: rgba(0,0,0,0.56);
  --text-faint: rgba(0,0,0,0.28);
  --hover: rgba(0,0,0,0.04);
  --ink: #000000;
  --ink-contrast: #FFFFFF;
  --ring: rgba(0,0,0,0.5);
  --positive: rgba(34,197,94,0.8);
  --chrome-rgb: 0,0,0;
  --chrome-mid: 120,120,120;
  --chrome-opacity: 0.6;
  --shadow-pop: 0 12px 32px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-device: 0 30px 60px -20px rgba(0,0,0,0.25), 0 8px 20px -8px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --ease: 150ms cubic-bezier(0.2, 0, 0, 1);
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --page: 1200px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --surface: #0A0A0A;
    --surface-2: rgba(255,255,255,0.03);
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.15);
    --text-primary: rgba(255,255,255,0.88);
    --text-secondary: rgba(255,255,255,0.62);
    --text-dim: rgba(255,255,255,0.54);
    --text-faint: rgba(255,255,255,0.25);
    --hover: rgba(255,255,255,0.05);
    --ink: #FFFFFF;
    --ink-contrast: #000000;
    --ring: rgba(255,255,255,0.6);
    --chrome-rgb: 255,255,255;
    --chrome-mid: 180,180,180;
    --chrome-opacity: 1;
    --shadow-pop: 0 16px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
    --shadow-device: 0 30px 60px -20px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.05);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0A0A0A;
  --surface-2: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  --text-primary: rgba(255,255,255,0.88);
  --text-secondary: rgba(255,255,255,0.62);
  --text-dim: rgba(255,255,255,0.54);
  --text-faint: rgba(255,255,255,0.25);
  --hover: rgba(255,255,255,0.05);
  --ink: #FFFFFF;
  --ink-contrast: #000000;
  --ring: rgba(255,255,255,0.6);
  --chrome-rgb: 255,255,255;
  --chrome-mid: 180,180,180;
  --chrome-opacity: 1;
  --shadow-pop: 0 16px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-device: 0 30px 60px -20px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.05);
}

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes chrome-rotate { to { --angle: 360deg; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } body { font-size: 16px; } }

/* ---------- Type ---------- */
.display, h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
  color: var(--text-primary);
}
h1 { font-size: clamp(56px, 8.4vw, 116px); }
h2 { font-size: clamp(40px, 5.2vw, 68px); }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--text-secondary); max-width: 60ch; }
.muted { color: var(--text-secondary); }
.dim { color: var(--text-dim); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Buttons (the CRM's) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  font: 500 15px/1 var(--font-body);
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--hover); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { background: var(--hover); color: var(--text-primary); }
.btn-icon { width: 40px; height: 40px; padding: 0; }
/* Primary: the chrome ring that slowly turns. */
.btn-primary { position: relative; isolation: isolate; border: none; }
.btn-primary::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background:
    conic-gradient(from var(--angle),
      rgba(var(--chrome-rgb),0) 0%, rgba(var(--chrome-rgb),var(--chrome-opacity)) 25%,
      rgba(var(--chrome-mid),var(--chrome-opacity)) 50%, rgba(var(--chrome-rgb),var(--chrome-opacity)) 75%,
      rgba(var(--chrome-rgb),0) 100%),
    linear-gradient(var(--border-strong), var(--border-strong));
  animation: chrome-rotate 3s linear infinite;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(var(--surface), var(--surface)), var(--bg);
  transition: background var(--ease);
}
.btn-primary:hover::after { background: linear-gradient(var(--hover), var(--hover)), linear-gradient(var(--surface), var(--surface)), var(--bg); }
.btn svg { flex-shrink: 0; }
.btn[hidden] { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--border-strong);
  font-size: 12px; color: var(--text-secondary); background: var(--surface);
}
.chip-positive { color: var(--positive); }
.dot::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; isolation: isolate;
  border-bottom: 1px solid var(--border);
}
/* The frosted background lives on a layer behind the header: a backdrop-filter on the header itself
   would trap the full-screen phone menu (position: fixed) inside the 68px-tall header. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.brand-name { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.05em; line-height: 1; padding-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none; font-size: 15px; color: var(--text-secondary); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-primary); background: var(--hover); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* Services menu (desktop): one button, a panel of three groups. */
.site-header .wrap { position: relative; }
.dd { position: static; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: var(--radius-sm);
  background: none; font: inherit; font-size: 15px; color: var(--text-secondary); cursor: pointer;
}
.dd-btn:hover, .dd-btn[aria-expanded="true"] { color: var(--text-primary); background: var(--hover); }
.dd-btn svg { transition: transform var(--ease); }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% - 4px); left: 50%; transform: translateX(-50%); z-index: 60;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; width: min(880px, calc(100% - 2 * var(--gutter)));
  padding: 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-pop);
}
.dd-panel[hidden] { display: none; }
.dd-title { margin: 0 0 6px 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.dd-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dd-group a { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; }
.dd-group a:hover, .dd-group a:focus-visible, .dd-group a[aria-current="page"] { background: var(--hover); }
.dd-group .t { font-size: 15px; font-weight: 500; color: var(--text-primary); }
.dd-group .d { font-size: 13px; line-height: 1.4; color: var(--text-dim); }
/* Services in the phone menu: a fold-out list. */
.m-services > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--border); font-size: 18px; }
.m-services[open] > summary { border-bottom-color: transparent; }
.m-services > summary::-webkit-details-marker { display: none; }
.m-services > summary::after { content: '+'; font-family: var(--font-mono); font-size: 20px; color: var(--text-dim); }
.m-services[open] > summary::after { content: '\2212'; }
.m-groups { padding: 4px 0 12px; border-bottom: 1px solid var(--border); }
.m-title { margin: 14px 0 2px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.mobile-nav a.row.sub { min-height: 46px; border-bottom: 0; font-size: 16px; color: var(--text-secondary); padding-left: 12px; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-nav { display: none; }
/* Below 1100px the full header doesn't fit (nav + Website ID + Log in + Book a demo), so the phone menu takes over. */
@media (max-width: 1100px) {
  .nav, .header-actions .hide-sm, .header-actions .hide-md { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav[data-open="true"] {
    display: block; position: fixed; inset: 68px 0 0 0; z-index: 49; background: var(--bg);
    padding: 16px var(--gutter) 32px; overflow-y: auto;
  }
  .mobile-nav a.row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--border); text-decoration: none; font-size: 18px; }
  .mobile-nav .actions { display: grid; gap: 10px; margin-top: 24px; }
  .menu-open .site-header::before { background: var(--bg); }
  .menu-open .chat-widget-btn { display: none !important; }
}

/* Website ID: open a prospect's preview site */
.site-id {
  width: min(440px, calc(100vw - 32px)); padding: 28px; margin: auto;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text-primary); box-shadow: var(--shadow-pop);
}
.site-id::backdrop { background: rgba(0,0,0,0.5); }
.site-id h2 { font-size: 40px; }
.site-id-form { display: grid; gap: 16px; }
.site-id .input { font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.04em; }
.site-id-error { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.site-id-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@media (max-width: 420px) { .site-id-actions .btn { flex: 1 1 auto; } }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 span { display: block; }
.hero h1 .quiet, h1 .quiet { color: var(--text-dim); }
.hero .lede { margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 24px; font-size: 14px; color: var(--text-dim); list-style: none; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--text-secondary); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* A phone, drawn in HTML so the QR code inside is real and sharp. */
.device {
  width: min(340px, 100%); margin: 0 auto; aspect-ratio: 390 / 680;
  border-radius: 44px; padding: 10px;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-device);
}
.device-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.device-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 16px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.device-bar .t { font-size: 15px; font-weight: 500; }
.device-bar .s { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); margin-top: 2px; }
.device-close { font-size: 12px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 10px; color: var(--text-secondary); }
.pay-state { position: absolute; inset: 64px 0 0 0; display: grid; align-content: start; justify-items: center; gap: 8px; padding: 22px 18px; text-align: center; }
.pay-amount { font-family: var(--font-mono); font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.pay-qr { width: 64%; background: #fff; border-radius: 14px; padding: 10px; margin: 6px 0 4px; box-shadow: 0 0 0 1px var(--border); }
.pay-qr svg { display: block; width: 100%; height: auto; }
.pay-hint { font-size: 14px; color: var(--text-primary); }
.pay-sub { font-size: 12px; color: var(--text-dim); }
.paid-ring { width: 74px; height: 74px; border-radius: 999px; border: 2px solid var(--positive); display: grid; place-items: center; color: var(--positive); margin-top: 34px; }
.paid-line { font-size: 26px; margin-top: 10px; }
.paid-line .w { color: var(--positive); }
.pay-paid { opacity: 0; }
.pay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; margin-top: 14px; }
.pay-actions span { display: grid; place-items: center; min-height: 34px; padding: 4px 6px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 11px; line-height: 1.2; color: var(--text-primary); background: var(--surface); }
.device-caption { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-dim); }
@media (prefers-reduced-motion: no-preference) {
  .pay-qr-state { animation: pay-qr 10s ease-in-out infinite; }
  .pay-paid { animation: pay-paid 10s ease-in-out infinite; }
  @keyframes pay-qr { 0%, 52% { opacity: 1; transform: none; } 58%, 94% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
  @keyframes pay-paid { 0%, 54% { opacity: 0; transform: translateY(8px) scale(0.98); } 60%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
}

/* ---------- A day, handled (a real sequence of times) ---------- */
.day { list-style: none; margin: 0; padding: 0; display: grid; }
.day > li {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 320px); gap: clamp(16px, 4vw, 48px);
  padding: 36px 0; border-top: 1px solid var(--border); align-items: start;
}
.day > li:last-child { border-bottom: 1px solid var(--border); }
.day time { font-family: var(--font-mono); font-size: 14px; color: var(--text-dim); padding-top: 4px; white-space: nowrap; }
.day h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.01em; }
.day p { margin-top: 10px; color: var(--text-secondary); max-width: 54ch; }
.day .shot { justify-self: end; width: 100%; max-width: 300px; }
.shot-phone { border-radius: 28px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop); background: var(--surface); }
.shot-phone img { width: 100%; }
.shot-phone.crop img { aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--pos, 50% 0%); }
.call { justify-self: end; width: 100%; max-width: 300px; padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-pop); display: grid; gap: 8px; }
.call-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.call-who { font-weight: 600; font-size: 16px; }
.call-sum { font-size: 14px; line-height: 1.5; color: var(--text-secondary); margin: 0; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 300px; justify-self: end; width: 100%; }
.mail {
  justify-self: end; width: 100%; max-width: 300px; padding: 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface); font-size: 14px; box-shadow: var(--shadow-pop);
}
.mail .from { font-size: 12px; color: var(--text-dim); }
.mail .subj { font-weight: 600; margin-top: 6px; line-height: 1.35; }
.mail .body { color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }
ul.body { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 900px) {
  .day > li { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .day .shot, .shot-pair, .mail, .call { justify-self: start; max-width: 300px; }
}

/* ---------- What's inside ---------- */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.area { padding: 28px 24px 32px; }
.area + .area { border-left: 1px solid var(--border); }
.area h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: 0.02em; line-height: 1; }
.area .who { margin-top: 8px; font-size: 14px; color: var(--text-dim); }
.area ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--text-secondary); }
.area li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.area li::before { content: ''; width: 6px; height: 6px; margin-top: 8px; border-radius: 99px; background: var(--text-faint); }
@media (max-width: 1000px) {
  .areas { grid-template-columns: 1fr 1fr; }
  .area:nth-child(3) { border-left: 0; }
  .area:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .areas { grid-template-columns: 1fr; }
  .area + .area { border-left: 0; border-top: 1px solid var(--border); }
}
.also { margin-top: 20px; font-size: 15px; color: var(--text-secondary); }

/* ---------- Product tour ---------- */
.browser { border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-device); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 99px; background: var(--border-strong); }
.browser-url { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-secondary); font: 500 14px/1 var(--font-body); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--ink-contrast); border-color: var(--ink); }
.tour-panel[hidden] { display: none; }
.tour-caption { margin-top: 16px; font-size: 15px; color: var(--text-secondary); }

/* ---------- Try it ---------- */
.try { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.try .card { padding: 28px; display: grid; gap: 14px; align-content: start; }
.try .big { font-family: var(--font-mono); font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.01em; text-decoration: none; }
@media (max-width: 760px) { .try { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.plan.lead { border-color: var(--border-strong); box-shadow: var(--shadow-pop); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; letter-spacing: 0.02em; line-height: 1; }
.plan .for { color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-family: var(--font-mono); font-size: 44px; letter-spacing: -0.03em; line-height: 1; }
.price .per { color: var(--text-dim); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.45; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; color: var(--text-secondary); }
.plan li svg { margin-top: 3px; color: var(--text-primary); }
.plan li.inc { color: var(--text-primary); font-weight: 500; }
.plan .btn { margin-top: auto; }
.fine { margin-top: 24px; display: grid; gap: 6px; font-size: 14px; color: var(--text-dim); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 12px; height: 12px; flex-shrink: 0; border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim); transform: rotate(45deg) translateY(-3px); transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq .a { padding: 0 0 24px; color: var(--text-secondary); max-width: 68ch; }

/* ---------- Closing ---------- */
.closing { text-align: left; }
.closing .card { padding: clamp(32px, 6vw, 64px); display: grid; gap: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { margin: 0 0 12px; font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--text-secondary); }
.foot-grid a:hover { color: var(--text-primary); }
.linklike { padding: 0; border: 0; background: none; font: inherit; color: var(--text-secondary); cursor: pointer; text-align: left; }
.linklike:hover { color: var(--text-primary); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Page heads for inner pages ---------- */
.page-head { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-head .lede { margin-top: 20px; }

/* ---------- Tables (plan comparison) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare thead th { font-weight: 500; position: sticky; top: 0; background: var(--surface); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tr.group td { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); background: var(--surface-2); }
.compare .no { color: var(--text-faint); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--text-secondary); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 16px/1.4 var(--font-body);
  color: var(--text-primary); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ring); }

/* Visitors who ask for less motion: no smooth scrolling, the main button's ring stays still. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary::before { animation: none; }
}

/* Phones and tablets: footer links big enough to tap, and room so the chat button doesn't cover Privacy/Terms. */
@media (max-width: 1100px) {
  .site-footer { padding-bottom: 104px; }
  .foot-grid ul { gap: 0; }
  .foot-grid li a, .foot-grid .linklike, .foot-grid p a { display: inline-block; padding: 10px 0; }
  .foot-bottom a { display: inline-block; padding: 10px 2px; }
}

/* Very narrow phones (320px): the logo, theme button and menu button need a little less room. */
@media (max-width: 360px) {
  .site-header .wrap { gap: 10px; }
  .brand-name { font-size: 22px; }
  .header-actions { gap: 4px; }
}
