/* ============================================================
   RoomBoard — marketing site redesign
   A standalone landing page. Original app in public/roomboard/
   is untouched. Design system is intentionally fresh: a bright
   "clinic teal" identity with a full dark mode.
   ============================================================ */

:root {
  /* Brand */
  --teal-50: #ecfdfb;
  --teal-100: #cffaf3;
  --teal-300: #5fe3d3;
  --teal-500: #11a39b;
  --teal-600: #0c867f;
  --teal-700: #0a6b66;
  --coral: #ff7a66;
  --coral-soft: #ffe7e1;

  /* Status palette used by the board demo */
  --st-exam: #3b82f6;
  --st-recheck: #f59e0b;
  --st-surgery: #ef476f;
  --st-ready: #18b06b;
  --st-derm: #8b5cf6;

  /* Light theme surfaces */
  --bg: #f4f7fb;
  --bg-2: #eaf0f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f1b2d;
  --ink-2: #33425a;
  --muted: #65748c;
  --line: #e4ebf3;
  --line-strong: #d3deea;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .05);
  --shadow-md: 0 12px 30px rgba(15, 27, 45, .10);
  --shadow-lg: 0 30px 70px rgba(11, 38, 53, .18);
  --ring: rgba(17, 163, 155, .35);

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1160px;
  --nav-h: 68px;
}

[data-theme="dark"] {
  --bg: #0a1422;
  --bg-2: #0d1a2c;
  --surface: #101e33;
  --surface-2: #0c1729;
  --ink: #eaf1ff;
  --ink-2: #c2cfe6;
  --muted: #8195b4;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, .55);
  --teal-50: #07221f;
  --coral-soft: #2c1712;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--teal-50), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(255, 122, 102, .10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-50);
  border: 1px solid color-mix(in srgb, var(--teal-500) 24%, transparent);
  padding: 6px 12px; border-radius: 999px;
}
[data-theme="dark"] .eyebrow { color: var(--teal-300); }

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--teal-500);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--font-body);
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--teal-500), var(--teal-600)); color: #fff; box-shadow: 0 10px 24px rgba(12, 134, 127, .35); }
.btn.primary:hover { box-shadow: 0 14px 30px rgba(12, 134, 127, .45); transform: translateY(-1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { border-color: var(--teal-500); color: var(--teal-600); transform: translateY(-1px); }
[data-theme="dark"] .btn.ghost:hover { color: var(--teal-300); }
.btn.lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav .wrap { display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--teal-500), var(--teal-700)); color: #fff;
  box-shadow: 0 6px 16px rgba(12, 134, 127, .4); flex: none;
}
.brand .mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a { padding: 9px 13px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 15px; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--teal-500); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; bottom: 4px; left: 13px; right: 13px; height: 2px; border-radius: 1px; background: var(--teal-500); transform: scaleX(0); transition: transform .2s ease; transform-origin: left; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-signin { font-weight: 600; color: var(--teal-600); padding: 9px 12px; border-radius: 9px; }
[data-theme="dark"] .nav-signin { color: var(--teal-300); }
.nav-signin:hover { color: var(--teal-700); }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); margin: 22px 0 18px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--teal-500), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin: 30px 0 18px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.hero-trust .dots { display: flex; }
.hero-trust .dots span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; display: grid; place-items: center; font-size: 12px; color: #fff; font-weight: 700; }
.specialties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.specialties span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-strong); padding: 6px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.specialties span:last-child { color: var(--teal-600); border-color: color-mix(in srgb, var(--teal-500) 30%, transparent); background: var(--teal-50); }
[data-theme="dark"] .specialties span:last-child { color: var(--teal-300); }

/* ---------- Board demo (faithful to the real RoomBoard display) ---------- */
/* Dark near-black screen of color-filled room tiles, clinic header on top. */
.board-demo {
  background: radial-gradient(120% 120% at 50% -10%, #122036, #070d18 70%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 13px;
  position: relative;
  color: #e8eefc;
}

/* Header: clinic logo + name, status line, only-active toggle, icon buttons */
.bd-bar { display: flex; align-items: center; gap: 10px; padding: 2px 4px 13px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 10px; }
.bd-logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(140deg, var(--teal-500), var(--teal-700)); color: #fff; flex: none; }
.bd-logo svg { width: 18px; height: 18px; }
.bd-brand { display: flex; flex-direction: column; line-height: 1.1; }
.bd-brand b { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: #eef3ff; letter-spacing: .02em; }
.bd-brand small { font-size: 10px; color: #7f93b6; }
.bd-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bd-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: #aebdd8; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); padding: 5px 9px; border-radius: 999px; }
.bd-toggle .sw2 { width: 26px; height: 15px; border-radius: 999px; background: #2a3a55; position: relative; }
.bd-toggle .sw2::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #cdd8ee; }
.bd-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #aebdd8; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); font-size: 13px; transition: background .15s; }
.bd-ico:hover { background: rgba(255,255,255,.12); }

.bd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* Color-filled room tile */
.room {
  --c: var(--st-exam);
  position: relative; overflow: hidden;
  border-radius: 15px;
  border: 2px solid transparent;
  border-top: 3px solid color-mix(in srgb, var(--c) 60%, #fff 40%);
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 78%, #fff 22%), color-mix(in srgb, var(--c) 88%, #000 12%));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .30);
  color: #12233b;
  transition: transform .3s ease, box-shadow .3s ease;
  min-height: 160px; display: flex; flex-direction: column;
}
.room:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
/* over-time rooms get a bright red border like the real board */
.room.alert { border-color: #ff3b3b; box-shadow: 0 0 0 1px #ff3b3b, 0 10px 26px rgba(255,59,59,.22); }
/* empty + needs-cleaning are de-saturated dark tiles */
.room.empty { background: linear-gradient(170deg, #2a3346, #1b2436); color: #c4d0e4; border-top-color: rgba(255,255,255,.08); }
.room.cleaning { background: linear-gradient(170deg, #20242c, #15171c); color: #e7c98b; border-color: rgba(245,181,10,.4); border-top-color: rgba(245,181,10,.5); }

/* Top strip: room name + small status icons */
.roomTop {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, .10));
  border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.roomName { font-family: var(--font-display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.roomIcons { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; opacity: .5; }

/* Body */
.roomBody { padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 10px; flex: 1; position: relative; }
.roomInfoLine { font-weight: 700; font-size: 14px; line-height: 1.32; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roomInfoLine .sep { opacity: .6; padding: 0 3px; }
.roomEmptyText { font-weight: 600; opacity: .5; font-size: 13px; }
.roomCleanPill { align-self: flex-start; font-weight: 800; font-size: 12px; letter-spacing: .03em; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(245,181,10,.5); color: #f3c969; background: rgba(245,181,10,.08); opacity: .75; }

/* Foot: timer pill (left) + doctor badge (right) */
.roomFoot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 0 12px 12px; }
.timer {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: 18px; letter-spacing: .02em;
  padding: 6px 11px; border-radius: 8px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(4px);
  color: #1c2a3f;
}
.timer.warn { color: #e2a017; }
.timer.alert { color: #e23b3b; }
.room.empty .timer, .room.cleaning .timer { background: rgba(0, 0, 0, .22); border-color: rgba(255,255,255,.06); }
.room.empty .timer { color: #8aa; }
.room.cleaning .timer { color: #e7c98b; }
.docBadge { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden; }
.docBadge img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.docBadge .docBadgeInit { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.docBadge.fallback { width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.18); border: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.noteDock { position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.06); }

/* ---------- Stat strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 34px 24px; }
.stat { text-align: center; padding: 0 32px; }
.stat + .stat { border-left: 2px solid var(--line); }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); background: linear-gradient(120deg, var(--teal-500), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Feature grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--teal-500) 30%, var(--line)); border-top: 2px solid var(--teal-500); }
.feature .fi {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--teal-50); color: var(--teal-600); border: 1px solid color-mix(in srgb, var(--teal-500) 18%, transparent);
}
[data-theme="dark"] .feature .fi { color: var(--teal-300); }
.feature .fi svg { width: 23px; height: 23px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature.span2 { grid-column: span 2; }

/* ---------- Capture steps ---------- */
.capture { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--teal-500), var(--teal-700)); box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 18px; margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }
.capture-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 38px; }
.tag { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; }
.tag svg { width: 15px; height: 15px; color: var(--teal-600); }

/* ---------- Devices ---------- */
.devices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.device { text-align: center; padding: 30px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.device:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.device .di { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(140deg, var(--teal-50), var(--surface-2)); color: var(--teal-600); border: 1px solid var(--line); }
[data-theme="dark"] .device .di { color: var(--teal-300); }
.device .di svg { width: 28px; height: 28px; }
.device h3 { font-size: 17px; margin-bottom: 6px; }
.device p { color: var(--muted); font-size: 14px; }

/* ---------- Customization / settings showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tabs-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.tabs-demo .tabbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tabs-demo .t { font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 9px; color: var(--muted); cursor: pointer; border: 1px solid transparent; transition: all .15s; }
.tabs-demo .t.active { color: var(--teal-700); background: var(--teal-50); border-color: color-mix(in srgb, var(--teal-500) 26%, transparent); }
[data-theme="dark"] .tabs-demo .t.active { color: var(--teal-300); }
.tabs-demo .panel { padding: 22px; min-height: 196px; }
.tabs-demo .panel h4 { font-family: var(--font-display); margin: 0 0 6px; font-size: 17px; }
.tabs-demo .panel p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.tabs-demo .panel.hidden { display: none; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.badges-row { display: flex; gap: 12px; flex-wrap: wrap; }
.badges-row .b { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line-strong); background: var(--surface-2); display: grid; place-items: center; }
.badges-row .b img { width: 100%; height: 100%; object-fit: cover; }
.mini-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-room {
  --c: var(--st-exam);
  border-radius: 11px; padding: 9px 11px; font-size: 13px; font-weight: 700; color: #fff;
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 82%, #000 18%));
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}
.mini-room .mr-t { font-variant-numeric: tabular-nums; font-weight: 700; opacity: .85; font-size: 12px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.toggle-row:last-child { border-bottom: 0; }
.sw { width: 40px; height: 23px; border-radius: 999px; background: var(--teal-500); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; right: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; }
.sw.off { background: var(--line-strong); }
.sw.off::after { right: auto; left: 2px; }
.showcase-copy h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 16px; }
.showcase-copy p { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.check-list { display: grid; gap: 12px; }
.check-list li { list-style: none; display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check-list .ci { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; margin-top: 1px; }
[data-theme="dark"] .check-list .ci { color: var(--teal-300); }
.check-list .ci svg { width: 13px; height: 13px; }
ul { padding: 0; margin: 0; }

/* ---------- Downloads ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.dl-card.featured { border-color: color-mix(in srgb, var(--teal-500) 45%, transparent); box-shadow: var(--shadow-md); position: relative; }
.dl-card.featured::after { content: "Most popular"; position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(140deg, var(--teal-500), var(--teal-700)); padding: 4px 9px; border-radius: 999px; }
.dl-icn { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); margin-bottom: 16px; }
[data-theme="dark"] .dl-icn { color: var(--teal-300); }
.dl-icn svg { width: 24px; height: 24px; }
.dl-card h3 { font-size: 19px; margin-bottom: 6px; }
.dl-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; flex: 1; }
.dl-btns { display: grid; gap: 9px; }
.dl-btns .btn { width: 100%; }
.dl-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }
.dl-note a { color: var(--teal-600); font-weight: 600; }
[data-theme="dark"] .dl-note a { color: var(--teal-300); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 12px; overflow: hidden; transition: border-color .2s; }
.qa.open { border-color: color-mix(in srgb, var(--teal-500) 35%, transparent); }
.qa-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font: 600 16px/1.4 var(--font-display); color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qa-q .chev { flex: none; transition: transform .25s; color: var(--muted); }
.qa.open .qa-q .chev { transform: rotate(180deg); color: var(--teal-600); }
.qa-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.qa-a p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 96px 0; }
.cta-card {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700) 60%, #0a4f4b);
  border-radius: var(--radius-lg); padding: 64px 40px; text-align: center; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(255,122,102,.35), transparent 60%), radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.08), transparent 60%); }
.cta-card > * { position: relative; }
.cta-card h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.cta-card p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 520px; margin: 0 auto 28px; }
.cta-card .btn.primary { background: #fff; color: var(--teal-700); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.cta-card .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.cta-card .btn.ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 34px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand { margin-bottom: 12px; }
.footer-col h4 { font-family: var(--font-display); font-size: 14px; margin-bottom: 14px; color: var(--ink); }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--teal-600); }
.footer-about { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- To top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .25s; z-index: 50; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature.span2 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .devices-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .dl-grid { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav-signin { display: none; }
  .section { padding: 70px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .feature.span2 { grid-column: span 1; }
  .bd-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile menu */
  .mobile-menu { display: none; position: fixed; inset: var(--nav-h) 0 0; background: var(--bg); z-index: 55; padding: 24px; flex-direction: column; gap: 6px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 15px 14px; border-radius: 12px; font-weight: 600; font-size: 17px; color: var(--ink); border: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 10px; }
}

@media (max-width: 460px) {
  .devices-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 44px 24px; }
  .hero-cta .btn { width: 100%; }
}
