/* Design tokens of the charte graphique (docs/CHARTE_GRAPHIQUE.md).
   This file is the one source for the app and the sales site:
   the app imports it in `app/globals.css`, and `site/build.py` puts it
   at the top of the site stylesheet.
   A color token holds 3 RGB channels, so that Tailwind can add an
   alpha value (`bg-primary/10`). In plain CSS, write `rgb(var(--primary))`.
   The app sets `data-theme="light"` on <html>, so it stays light.
   The sales site follows the system theme. */

:root {
  /* Surfaces */
  --page: 251 247 238;        /* cream page background */
  --page-alt: 243 236 221;    /* sunken band, table head, quiet zone */
  --surface: 255 252 245;     /* card, dialog, field */
  /* Text */
  --ink: 20 38 64;            /* headings and body text */
  --muted: 79 93 116;         /* secondary text */
  --subtle: 125 135 154;      /* hints, placeholders, disabled text */
  /* Lines */
  --line: 231 223 205;
  --line-strong: 205 194 169;
  /* Dark blue: main actions, links, active states */
  --primary: 29 64 120;
  --primary-hover: 40 84 151;
  --primary-ink: 251 247 238; /* text on primary */
  --primary-soft: 225 237 249;/* selected row, info notice */
  /* Light blue: highlights, chips, decorative marks */
  --accent: 156 203 240;
  --accent-ink: 20 38 64;
  --mark: 185 218 245;
  /* States */
  --ok: 27 127 71;
  --ok-soft: 227 242 232;
  --warn: 154 91 6;
  --warn-soft: 251 239 217;
  --danger: 180 35 24;
  --danger-soft: 251 231 228;
  --focus: 61 127 209;
  /* Sales site: the dark band at the end of the page */
  --slab-bg: 29 64 120;
  --slab-ink: 251 247 238;
  --slab-btn: 156 203 240;
  --slab-btn-ink: 20 38 64;

  --shadow-sm: 0 1px 2px rgba(20, 38, 64, 0.06);
  --shadow: 0 1px 2px rgba(20, 38, 64, 0.06), 0 12px 32px -12px rgba(20, 38, 64, 0.2);
  --radius-sm: 10px;
  --radius: 14px;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --font-price: "Alfa Slab One", "Rockwell", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: 14 24 40;
    --page-alt: 19 32 54;
    --surface: 23 39 65;
    --ink: 244 239 227;
    --muted: 168 180 200;
    --subtle: 127 139 161;
    --line: 36 52 79;
    --line-strong: 54 73 107;
    --primary: 142 197 242;
    --primary-hover: 169 211 246;
    --primary-ink: 14 24 40;
    --primary-soft: 26 51 84;
    --accent: 47 98 156;
    --accent-ink: 244 239 227;
    --mark: 42 87 145;
    --ok: 76 194 126;
    --ok-soft: 23 58 42;
    --warn: 240 179 90;
    --warn-soft: 61 44 16;
    --danger: 249 112 102;
    --danger-soft: 71 32 30;
    --focus: 106 174 240;
    --slab-bg: 29 64 120;
    --slab-ink: 244 239 227;
    --slab-btn: 142 197 242;
    --slab-btn-ink: 14 24 40;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --page: 14 24 40;
  --page-alt: 19 32 54;
  --surface: 23 39 65;
  --ink: 244 239 227;
  --muted: 168 180 200;
  --subtle: 127 139 161;
  --line: 36 52 79;
  --line-strong: 54 73 107;
  --primary: 142 197 242;
  --primary-hover: 169 211 246;
  --primary-ink: 14 24 40;
  --primary-soft: 26 51 84;
  --accent: 47 98 156;
  --accent-ink: 244 239 227;
  --mark: 42 87 145;
  --ok: 76 194 126;
  --ok-soft: 23 58 42;
  --warn: 240 179 90;
  --warn-soft: 61 44 16;
  --danger: 249 112 102;
  --danger-soft: 71 32 30;
  --focus: 106 174 240;
  --slab-bg: 29 64 120;
  --slab-ink: 244 239 227;
  --slab-btn: 142 197 242;
  --slab-btn-ink: 14 24 40;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* Sales site of PromoRayon. Plain CSS, local fonts, no external request. */

@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alfa Slab One"; src: url("fonts/AlfaSlabOne-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }


*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: rgb(var(--page));
  color: rgb(var(--ink));
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: rgb(var(--primary)); color: rgb(var(--primary-ink)); padding: 8px 12px; border-radius: 8px; }

/* Highlighter mark behind a word, as a promo felt pen. */
.mark {
  background: linear-gradient(transparent 58%, rgb(var(--mark)) 58%, rgb(var(--mark)) 92%, transparent 92%);
  padding-inline: 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Section label: a small shelf tag with a punched hole. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgb(var(--primary));
  color: rgb(var(--primary-ink));
  padding: 4px 12px 4px 10px;
  border-radius: 4px 999px 999px 4px;
}
.tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--page));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: rgb(var(--primary)); color: rgb(var(--primary-ink)); border-color: rgb(var(--primary)); }
.btn-primary:hover { background: rgb(var(--primary-hover)); border-color: rgb(var(--primary-hover)); }
.btn-ghost { background: transparent; color: rgb(var(--ink)); border-color: rgb(var(--line-strong)); }
.btn-ghost:hover { border-color: rgb(var(--ink)); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid rgb(var(--ink));
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, rgb(var(--page)) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgb(var(--line));
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark .tag-body { fill: rgb(var(--primary)); }
.logo-mark .tag-hole { fill: rgb(var(--page)); }
.logo-mark .tag-line { stroke: rgb(var(--primary-ink)); }
.nav { display: none; gap: 22px; margin-left: auto; font-weight: 600; font-size: 0.95rem; }
.nav a { text-decoration: none; color: rgb(var(--muted)); }
.nav a:hover { color: rgb(var(--ink)); }
.header-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.header-actions .login { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: rgb(var(--muted)); display: none; }
.header-actions .btn { padding: 11px 16px; font-size: 0.95rem; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-actions { margin-left: 8px; }
  .header-actions .login { display: inline; }
}

/* Hero */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero .lead { font-size: 1.15rem; color: rgb(var(--muted)); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; color: rgb(var(--muted)); padding: 0; margin: 0; list-style: none; }
.hero-notes li { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes li::before { content: ""; width: 14px; height: 14px; flex: none; background: rgb(var(--ok)); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l3.5 3.5L14 4' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (min-width: 960px) {
  .hero { padding-block: 72px 96px; }
  .hero .wrap { grid-template-columns: 0.95fr 1.15fr; }
}

/* Video frames: autoplay, muted, loop, no controls. */
.screen {
  position: relative;
  margin: 0;
  background: rgb(var(--page-alt));
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-width: 100%;
}
.screen video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.screen::after {
  /* Shown only while the video file is missing. */
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: rgb(var(--muted));
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, rgb(var(--line)) 60%, transparent) 14px 15px);
  z-index: -1;
}
.screen.is-empty::after { z-index: 1; }
.screen-phone { aspect-ratio: 9 / 19; border-radius: 28px; border-width: 6px; border-color: rgb(var(--ink)); width: min(250px, 100%); margin-inline: auto; }
.hero .screen { box-shadow: var(--shadow), 14px 14px 0 -1px rgb(var(--accent)); }

/* Sections */
.section { padding-block: 80px; }
.section-alt { background: rgb(var(--page-alt)); }
.section-head { display: grid; gap: 14px; justify-items: start; max-width: 44rem; margin-bottom: 44px; }
.section-head p { color: rgb(var(--muted)); font-size: 1.1rem; }
.section-head.center { justify-items: center; text-align: center; margin-inline: auto; }

/* Perforated rule between sections, as the pre-cut paper of a stop rayon. */
.perf { height: 0; border: 0; border-top: 2px dashed rgb(var(--line-strong)); margin: 0; }

/* Steps */
.steps { display: grid; gap: 20px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.step {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
  padding: 26px;
}
.step-num { font-family: var(--font-price); font-size: 2.4rem; line-height: 1; color: rgb(var(--ink)); margin-bottom: 10px; }
.step-num span { background: rgb(var(--primary)); color: rgb(var(--primary-ink)); padding: 2px 10px 4px; border-radius: 8px; }
.step p { color: rgb(var(--muted)); }
.step-visual {
  margin-top: 8px;
  align-self: end;
  height: 168px;
  display: grid;
  place-items: center;
  background: rgb(var(--page-alt));
  border-radius: 10px;
  padding: 18px;
}
.ean { width: 100%; max-width: 230px; color: rgb(var(--ink)); }
.ean-digits { font-family: var(--font-body); font-size: 9px; font-weight: 600; }
.readout { width: 100%; max-width: 260px; font-size: 0.88rem; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.readout-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--muted)); }
.readout-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgb(var(--line-strong)); padding-bottom: 4px; }
.readout-row strong { font-family: var(--font-head); }
.readout-row.promo strong { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); padding: 0 6px; border-radius: 4px; }
.choice { display: flex; gap: 14px; justify-content: center; }
.choice-item { display: grid; justify-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; font-family: var(--font-head); }
.sheet { width: 58px; height: 80px; background: rgb(var(--surface)); border: 1.5px solid rgb(var(--line-strong)); border-radius: 4px; padding: 6px; display: grid; gap: 4px; }
.sheet-poster { grid-template-rows: 14px 1fr 16px; }
.sheet-poster i:nth-child(1) { background: rgb(var(--ink)); border-radius: 2px; }
.sheet-poster i:nth-child(2) { background: linear-gradient(rgb(var(--accent)), rgb(var(--accent))) left 2px top 6px / 60% 40% no-repeat; }
.sheet-poster i:nth-child(3) { background: rgb(var(--line)); border-radius: 2px; }
.sheet-strips { grid-template-rows: repeat(4, 1fr); }
.sheet-strips i { border-top: 4px solid rgb(var(--ink)); background: linear-gradient(rgb(var(--accent)), rgb(var(--accent))) right 3px center / 30% 50% no-repeat; border-bottom: 1px dashed rgb(var(--line-strong)); }
.choice-or { align-self: center; font-size: 0.8rem; color: rgb(var(--muted)); font-weight: 600; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Feature rows */
.features { display: grid; gap: 72px; }
.feature { display: grid; gap: 32px; align-items: center; }
.feature-copy { display: grid; gap: 16px; justify-items: start; }
.feature-copy p { color: rgb(var(--muted)); }
.feature-copy h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; background: rgb(var(--ok)); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgb(var(--surface));
  border: 1.5px solid rgb(var(--ink));
}
.chips li:nth-child(3n + 1) { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); border-color: rgb(var(--accent)); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.25fr; gap: 56px; }
  .feature.flip .feature-copy { order: 2; }
  .feature.phone { grid-template-columns: 1.25fr 1fr; }
}

.cards-2 { display: grid; gap: 24px; margin-top: 72px; }
.card { display: grid; gap: 14px; align-content: start; }
.card .screen { margin-bottom: 8px; }
.card p { color: rgb(var(--muted)); }
@media (min-width: 860px) { .cards-2 { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* Install */
.install { display: grid; gap: 20px; padding: 0; margin: 0; list-style: none; }
.install li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.install-shot { margin-top: 14px; }
.install-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.install-shots { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 640px) { .install-shots { grid-template-columns: 1fr 1fr; } }
.install .n {
  font-family: var(--font-price);
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--ink));
  color: rgb(var(--page));
}
.install h3 { font-size: 1.1rem; margin-bottom: 4px; }
.install p { color: rgb(var(--muted)); }
.install-wrap { display: grid; gap: 40px; align-items: start; }
.notice {
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-left: 6px solid rgb(var(--primary));
  border-radius: 10px;
  padding: 20px 22px;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}
.notice strong { font-family: var(--font-head); }
.notice p { color: rgb(var(--muted)); }
@media (min-width: 900px) { .install-wrap { grid-template-columns: 1.3fr 1fr; gap: 56px; } }

/* Pricing */
.pricing { display: grid; gap: 32px; align-items: stretch; max-width: 940px; margin-inline: auto; }
.price-card {
  background: rgb(var(--surface));
  border: 2px solid rgb(var(--ink));
  border-radius: 18px;
  padding: 32px 28px;
  display: grid;
  gap: 22px;
  align-content: start;
  position: relative;
}
.price-card .ribbon {
  position: absolute;
  top: -14px;
  left: 24px;
}
.poster-price { display: flex; align-items: flex-start; gap: 4px; font-family: var(--font-price); line-height: 0.82; color: rgb(var(--ink)); }
.pp-int { font-size: 6rem; letter-spacing: -0.03em; }
.pp-side { display: grid; justify-items: start; gap: 6px; padding-top: 6px; }
.pp-cur { font-size: 2.2rem; }
.pp-dec { font-size: 2.2rem; }
.pp-per { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: rgb(var(--muted)); align-self: end; margin-left: 10px; }
.price-sub { color: rgb(var(--muted)); }
.signup { background: rgb(var(--page-alt)); border-radius: 18px; padding: 28px; display: grid; gap: 16px; align-content: start; }
.signup h3 { font-size: 1.2rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgb(var(--line-strong));
  background: rgb(var(--surface));
  color: rgb(var(--ink));
  width: 100%;
}
.field input:focus { border-color: rgb(var(--ink)); }
.signup .btn { width: 100%; }
.fine { font-size: 0.85rem; color: rgb(var(--muted)); }
.form-msg { font-size: 0.95rem; font-weight: 600; min-height: 1.5em; }
.form-msg.is-error { color: rgb(var(--danger)); }
.form-msg.is-ok { color: rgb(var(--ok)); }
@media (min-width: 860px) { .pricing { grid-template-columns: 1.1fr 1fr; } }

/* Setup offer, under the pricing */
.setup-offer { max-width: 940px; margin: 56px auto 0; display: grid; gap: 18px; }
.setup-options { display: grid; gap: 16px; }
.setup-option {
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: 14px;
  padding: 22px 24px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.setup-option h4 { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.2; margin: 0; }
.setup-option p { color: rgb(var(--muted)); }
.setup-price {
  justify-self: start;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(var(--primary-soft));
  color: rgb(var(--primary));
}
@media (min-width: 760px) { .setup-options { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 12px; padding: 0 22px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: rgb(var(--muted)); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: rgb(var(--muted)); }

/* Bottom call to action */
.slab { background: rgb(var(--slab-bg)); color: rgb(var(--slab-ink)); border-radius: 22px; padding: 48px 28px; display: grid; gap: 20px; justify-items: center; text-align: center; }
.slab p { opacity: 0.8; max-width: 36em; }
.slab .btn-primary { background: rgb(var(--slab-btn)); color: rgb(var(--slab-btn-ink)); border-color: rgb(var(--slab-btn)); }
.slab .btn-primary:hover { filter: brightness(1.06); }

/* Footer */
.site-footer { border-top: 1px solid rgb(var(--line)); padding-block: 48px 40px; font-size: 0.92rem; color: rgb(var(--muted)); }
.site-footer .wrap { display: grid; gap: 28px; }
.footer-top { display: grid; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: rgb(var(--ink)); text-decoration: underline; }
.footer-legal { border-top: 1px dashed rgb(var(--line-strong)); padding-top: 20px; display: grid; gap: 8px; font-size: 0.85rem; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1fr auto; align-items: start; } }

/* Text pages: legal and welcome */
.page { padding-block: 56px 80px; }
.prose { max-width: 46rem; margin-inline: auto; display: grid; gap: 16px; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.35rem; margin-top: 24px; }
.prose p, .prose li { color: rgb(var(--muted)); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose strong { color: rgb(var(--ink)); }
.draft-banner { display: none; }
.is-draft .draft-banner {
  display: block;
  background: rgb(var(--primary-soft));
  border: 1px solid rgb(var(--primary));
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  color: rgb(var(--ink));
}
.panel { max-width: 30rem; margin-inline: auto; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 18px; padding: 32px 28px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.panel p { color: rgb(var(--muted)); }
.panel > div { display: grid; gap: 16px; justify-items: start; }
.panel h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); }
.panel .signup { padding: 0; background: none; width: 100%; }
.copy { user-select: all; color: rgb(var(--ink)); font-weight: 600; }

/* ===== Phone layout (max-width: 640px) ===== */
.quicknav { display: none; }
.phone-only { display: none; }

@media (max-width: 640px) {
  /* Compact section menu under the sticky header: fast access to every section. */
  .quicknav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 10px;
    -webkit-overflow-scrolling: touch;
  }
  .quicknav a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgb(var(--page-alt));
    color: rgb(var(--muted));
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .site-header .wrap { min-height: 56px; gap: 14px; }
  .header-actions .login {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.82rem;
  }
  .header-actions .btn { padding: 10px 14px; font-size: 0.88rem; }

  /* Less vertical padding: the page reads faster. */
  .hero { padding-block: 28px 32px; }
  .hero .wrap { gap: 28px; }
  .section { padding-block: 36px; }
  .section-head { margin-bottom: 24px; gap: 10px; }
  .section-head p { font-size: 1rem; }
  .features { gap: 36px; }
  .feature { gap: 16px; }
  .cards-2 { margin-top: 36px; gap: 16px; }
  .card { gap: 6px; }
  .setup-offer { margin-top: 36px; gap: 14px; }
  .setup-options { gap: 12px; }
  .install-wrap { gap: 24px; }
  .install { gap: 16px; }

  /* Less text: the short phone copy replaces the longer desktop paragraph. */
  .hide-phone { display: none; }
  .phone-only { display: block; }

  /* Secondary feature cards: text only, no video, for a shorter page. */
  .cards-2 .screen { display: none; }

  /* Promo-mechanic tags: one scrollable row instead of many wrapped lines.
     min-width: 0 on each grid level stops the nowrap row from forcing the
     page wider (the classic CSS grid "blowout" with unconstrained content). */
  .feature { min-width: 0; }
  .feature-copy { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; min-width: 0; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }

  /* Pricing checklist: two compact columns instead of six stacked rows. */
  .price-card .checks { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 10px; }
  .price-card .checks li { font-size: 0.86rem; }

  .chips li { font-size: 0.75rem; padding: 5px 9px; white-space: nowrap; flex-shrink: 0; }

  /* Legal and welcome pages: less top and bottom padding on a small screen. */
  .page { padding-block: 28px 48px; }
  .panel { padding: 24px 20px; }
}
