/* ============================================================
   ShowMate marketing site
   Brand tokens sourced from branding/03_Developer/showmate.tokens.json
   and the app's src/index.css. Dark-first with light editorial bands,
   matching the design agent's approved mockup (2026-08).
   ============================================================ */

/* ---------- Fonts (self-hosted DM Sans, same as the app) ---------- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* Dark surfaces */
  --bg: #080f19;
  --bg-raised: #111827;
  --bg-elevated: #1f2937;
  --bg-pressed: #252e3d;

  /* Light surfaces (editorial bands) */
  --light-bg: #f4f5f8;
  --light-raised: #ffffff;
  --light-chip: #eceef3;

  /* Brand indigo */
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
  --accent-bright: #a78bfa;
  --accent-pressed: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.16);
  --accent-text: #ffffff;

  /* Text — dark surfaces */
  --text: #f5f5f7;
  --text-dim: #aab2bf;
  --text-faint: #838b96;

  /* Text — light surfaces */
  --ink: #14161f;
  --ink-dim: #4b5563;
  --ink-faint: #79818f;

  /* Semantic */
  --ok: #10b981;
  --danger: #ef4444;
  --info: #22d3ee;
  --warning: #f59e0b;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-ink: rgba(16, 22, 31, 0.10);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;

  /* Shadow */
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-phone: 0 30px 70px -20px rgba(0, 0, 0, 0.65);
  --shadow-light: 0 12px 40px -12px rgba(20, 22, 31, 0.18);

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --gradient-indigo: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 55%, #6d28d9 100%);

  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
}

.section--light {
  background: var(--light-bg);
  color: var(--ink);
}

.section--dark {
  background: var(--bg);
  color: var(--text);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.section--light .eyebrow {
  color: var(--accent);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 68px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 4.6vw, 46px);
}

.section-head p {
  margin-top: 16px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
}

.section--light .section-head p {
  color: var(--ink-dim);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px 24px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.7);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 30px -8px rgba(124, 58, 237, 0.8);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
}

.section--light .btn--ghost {
  color: var(--ink);
  border-color: var(--border-ink);
}

.section--light .btn--ghost:hover {
  background: rgba(16, 22, 31, 0.04);
}

.btn--lg {
  padding: 17px 30px;
  font-size: 17px;
  border-radius: 14px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.btn-play .play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
}

.btn-play:hover .play {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 15, 25, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand__tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-actions .signin {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.header-actions .signin:hover {
  color: var(--accent-bright);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  padding: 8px;
  margin: -8px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 96px);
  background:
    radial-gradient(1100px 640px at 78% 8%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(760px 520px at 12% 92%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--bg);
}

.hero__bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(167, 139, 250, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(139, 92, 246, 0.35) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(124, 58, 237, 0.4) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.25) 0 1.5px, transparent 3px);
  background-position: 15% 30%, 62% 18%, 85% 62%, 40% 78%;
  background-size: 240px 240px, 300px 300px, 260px 260px, 200px 200px;
  background-repeat: no-repeat;
  opacity: 0.7;
  filter: blur(0.4px);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero__copy h1 {
  font-size: clamp(42px, 6.6vw, 76px);
  letter-spacing: -0.035em;
}

.hero__copy .sub {
  margin-top: 20px;
  font-size: clamp(18px, 2.4vw, 23px);
  color: var(--text-dim);
  font-weight: 500;
}

.hero__cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero__trust {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-faint);
  font-size: 14px;
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__trust svg {
  color: var(--ok);
  flex: none;
}

/* Hero phone cluster */
.phone-cluster {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-cluster .phone {
  position: absolute;
}

.phone-cluster .phone--center {
  z-index: 3;
  transform: translateY(-6px) scale(1.04);
}

.phone-cluster .phone--left {
  z-index: 1;
  transform: translateX(-58%) translateY(24px) rotate(-8deg) scale(0.9);
  opacity: 0.96;
}

.phone-cluster .phone--right {
  z-index: 2;
  transform: translateX(58%) translateY(10px) rotate(8deg) scale(0.9);
  opacity: 0.96;
}

/* ============================================================
   Phone component (pure CSS device + app screen)
   ============================================================ */
.phone {
  width: 264px;
  border-radius: 40px;
  padding: 11px;
  background: linear-gradient(160deg, #232a37, #0c1119);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone__screen {
  position: relative;
  border-radius: 30px;
  background: var(--bg);
  overflow: hidden;
  aspect-ratio: 9 / 19.3;
  display: flex;
  flex-direction: column;
}

.phone__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  background: #05080d;
  border-radius: 12px;
  z-index: 5;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.statusbar .icons {
  display: inline-flex;
  gap: 5px;
  color: var(--text-dim);
}

/* Generic app screen scaffold */
.scr {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 14px 0;
  min-height: 0;
  overflow: hidden;
}

.scr__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 12px;
}

.scr__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 11.5px;
  color: var(--text-faint);
}

.scr__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.scr__thumb {
  width: 30px;
  height: 42px;
  border-radius: 4px;
  flex: none;
  background: linear-gradient(150deg, #3b3160, #241d3d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.scr__thumb--fire {
  background: linear-gradient(150deg, #b5451f, #6d2410);
}
.scr__thumb--water {
  background: linear-gradient(150deg, #1f5bb5, #103a6d);
}
.scr__thumb--psy {
  background: linear-gradient(150deg, #8b3ab5, #4d1d6d);
}
.scr__thumb--grass {
  background: linear-gradient(150deg, #2f9e57, #145a30);
}

.scr__rowmain {
  flex: 1;
  min-width: 0;
}

.scr__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scr__meta {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}

.scr__price {
  font-size: 12.5px;
  font-weight: 700;
  text-align: right;
  flex: none;
}

.scr__price small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-faint);
  margin-top: 2px;
}

.t-green {
  color: var(--ok);
}
.t-red {
  color: var(--danger);
}
.t-accent {
  color: var(--accent-bright);
}

/* At-a-glance stat grid inside a screen */
.scr__glance {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 4px 0 12px;
}

.scr__stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 9px;
}

.scr__stat .k {
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.scr__stat .v {
  font-size: 14px;
  font-weight: 700;
  margin-top: 3px;
}

.scr__pillrow {
  display: flex;
  gap: 6px;
  margin: 2px 0 12px;
}

.scr__pill {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 0;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.scr__pill--on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.scr__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 12px 0 8px;
}

.scr__cta {
  margin-top: auto;
  margin-bottom: 12px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 11px;
  border-radius: 10px;
}

/* Bottom tab bar */
.scr__tabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 9px 6px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.scr__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  color: var(--text-faint);
}

.scr__tab--on {
  color: var(--accent-bright);
}

.scr__tab .dot {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
}

/* Ladder rows (price by condition) */
.ladder {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ladder__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12px;
}

.ladder__row--on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ladder__cond {
  font-weight: 600;
  color: var(--text-dim);
}

.ladder__row--on .ladder__cond {
  color: var(--text);
}

.ladder__val {
  font-weight: 700;
}

/* Two-sided trade columns */
.trade-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.trade-col h5 {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 6px;
  font-weight: 600;
}

.trade-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.trade-mini .scr__thumb {
  width: 20px;
  height: 28px;
}

.trade-mini .nm {
  font-size: 10px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-mini .pr {
  font-size: 10px;
  font-weight: 700;
}

.trade-verdict {
  text-align: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9px;
  padding: 9px;
  margin-bottom: 10px;
}

.trade-verdict .big {
  font-size: 16px;
  font-weight: 800;
  color: var(--ok);
}

.trade-verdict .sm {
  font-size: 9.5px;
  color: var(--text-dim);
}

.trade-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.trade-actions > * {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 10px;
  border-radius: 9px;
}

.ta-decline {
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}

.ta-accept {
  background: var(--accent);
  color: #fff;
}

/* Mini sparkline area */
.spark {
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.25), rgba(124, 58, 237, 0.02));
  border: 1px solid var(--border);
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}

.spark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Nav-list screen (used in "brings it together") */
.navlist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 600;
}

.navlist__row .l {
  display: flex;
  align-items: center;
  gap: 11px;
}

.navlist__row .ic {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: grid;
  place-items: center;
}

/* ============================================================
   "The routine" section (light)
   ============================================================ */
.routine__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.routine__head h2 {
  font-size: clamp(30px, 4.6vw, 46px);
}

.routine__head .lead {
  margin-top: 14px;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 600;
  color: var(--accent);
}

.routine__flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.chip {
  background: var(--light-raised);
  border: 1px solid var(--border-ink);
  border-radius: var(--r-lg);
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(20, 22, 31, 0.05);
}

.chip__ic {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 11px;
  background: var(--light-chip);
  color: var(--ink-dim);
  display: grid;
  place-items: center;
}

.chip__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.chip__note {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.routine__arrow {
  color: var(--accent);
  display: grid;
  place-items: center;
}

.routine__dest {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.routine__appicon {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  box-shadow: var(--shadow-light);
}

.routine__dest .say {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  max-width: 150px;
}

/* ============================================================
   "One app. The whole show." feature columns (dark)
   ============================================================ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.feat-col {
  display: flex;
  flex-direction: column;
}

.feat-col__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.feat-col__ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: grid;
  place-items: center;
  flex: none;
}

.feat-col h3 {
  font-size: 17px;
}

.feat-col .desc {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0 0 18px 44px;
}

.feat-col .phone {
  width: 100%;
  border-radius: 30px;
  padding: 8px;
}

.feat-col .phone__screen {
  border-radius: 23px;
}

/* ============================================================
   Offline section (dark, backdrop)
   ============================================================ */
.offline {
  background:
    radial-gradient(900px 500px at 50% 120%, rgba(124, 58, 237, 0.22), transparent 60%),
    linear-gradient(180deg, #0a1220, #0b1524);
  overflow: hidden;
}

.offline__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.offline__lead .wifi {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.offline__lead h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.offline__lead p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 16px;
}

.tablet {
  border-radius: 26px;
  padding: 10px;
  background: linear-gradient(160deg, #232a37, #0c1119);
  box-shadow: var(--shadow-phone);
}

.tablet .phone__screen {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
}

.offline__points {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.opoint {
  display: flex;
  gap: 14px;
}

.opoint__ic {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--accent-bright);
  display: grid;
  place-items: center;
}

.opoint h4 {
  font-size: 16px;
}

.opoint p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 3px;
}

/* ============================================================
   Founder / made-by-a-vendor (light)
   ============================================================ */
.founder__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
}

.founder__photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle at 50% 35%, #2a2340, #171226);
  display: grid;
  place-items: center;
  color: var(--accent-bright);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder__body h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  color: var(--ink);
}

.founder__body p {
  margin-top: 16px;
  color: var(--ink-dim);
  font-size: 16px;
  max-width: 46ch;
}

.founder__sig {
  margin-top: 18px;
  font-weight: 700;
  color: var(--ink);
}

.founder__sig span {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.founder__card {
  width: 260px;
  border-radius: var(--r-xl);
  padding: 40px 28px;
  background: linear-gradient(150deg, #efe9ff, #e6ddff);
  border: 1px solid rgba(124, 58, 237, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.founder__card img {
  width: 84px;
  height: auto;
}

.founder__card .rev {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-indigo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   How it works (light)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  text-align: left;
}

.step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step__ic {
  color: var(--accent);
  margin-bottom: 12px;
}

.step h4 {
  font-size: 17px;
  color: var(--ink);
}

.step p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-dim);
}

/* ============================================================
   Pricing (light)
   ============================================================ */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.plan {
  background: var(--light-raised);
  border: 1px solid var(--border-ink);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
}

.plan--pro {
  background: linear-gradient(180deg, #14161f, #0d1017);
  color: var(--text);
  border-color: rgba(124, 58, 237, 0.5);
  position: relative;
}

.plan__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 11px;
  border-radius: 999px;
}

.plan__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plan--pro .plan__name {
  color: var(--accent-bright);
}

.plan__price {
  margin-top: 12px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.plan--pro .plan__price {
  color: var(--text);
}

.plan__price small {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-faint);
}

.plan--pro .plan__price small {
  color: var(--text-dim);
}

.plan__note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-dim);
  min-height: 42px;
}

.plan--pro .plan__note {
  color: var(--text-dim);
}

.plan__list {
  margin: 22px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan__list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.4;
}

.plan--pro .plan__list li {
  color: var(--text-dim);
}

.plan__list svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.plan--pro .plan__list svg {
  color: var(--accent-bright);
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

.plan--free .btn {
  background: var(--ink);
  color: #fff;
}

.plan--free .btn:hover {
  background: #2a2d3a;
}

.plans__foot {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ============================================================
   FAQ (dark)
   ============================================================ */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  padding: 22px 40px 22px 0;
  position: relative;
  display: flex;
}

.faq__q::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__q::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq__a {
  padding: 0 40px 24px 0;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.6;
}

details.faq__item summary {
  list-style: none;
}
details.faq__item summary::-webkit-details-marker {
  display: none;
}

/* ============================================================
   Final CTA
   ============================================================ */
.final {
  background:
    radial-gradient(700px 400px at 20% 20%, rgba(139, 92, 246, 0.45), transparent 60%),
    var(--gradient-indigo);
  color: #fff;
  text-align: center;
}

.final h2 {
  font-size: clamp(32px, 5vw, 54px);
}

.final p {
  margin: 16px auto 34px;
  max-width: 520px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: rgba(255, 255, 255, 0.88);
}

.final .btn--primary {
  background: #fff;
  color: var(--accent-pressed);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.4);
}

.final .btn--primary:hover {
  background: #f2edff;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #060b13;
  color: var(--text-dim);
  padding-block: clamp(48px, 6vw, 72px) 40px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-faint);
  max-width: 30ch;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-faint);
  transition: color 0.15s ease;
}

.footer-social a:hover {
  color: var(--accent-bright);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .feat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 20px;
  }
  .offline__inner {
    grid-template-columns: 1fr 1fr;
  }
  .offline__lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav,
  .header-actions .signin,
  .header-actions .btn--primary {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__cta,
  .hero__trust {
    justify-content: center;
  }
  .phone-cluster {
    height: 520px;
    margin-top: 20px;
  }
  .routine__flow {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 28px;
  }
  .routine__arrow {
    transform: rotate(90deg);
  }
  .founder__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .founder__body p {
    margin-inline: auto;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 22px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .feat-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }
  .offline__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .offline__lead .wifi {
    margin-inline: auto;
  }
  .offline__points {
    text-align: left;
    max-width: 340px;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 14px;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
  }
}

/* On narrow screens show only the center hero phone — the angled side
   phones would overflow and get clipped. */
@media (max-width: 620px) {
  .phone-cluster {
    height: auto;
    min-height: 480px;
  }
  .phone-cluster .phone--left,
  .phone-cluster .phone--right {
    display: none;
  }
  .phone-cluster .phone--center {
    position: relative;
    transform: none;
  }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 11, 19, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  padding: 24px var(--gutter);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin-bottom: 32px;
}

.mobile-nav a {
  font-size: 22px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .btn {
  margin-top: 28px;
}
