/* ============================================================================
   tokens.css — SINGLE SOURCE OF TRUTH for all design tokens
   Every color, space, radius, border, shadow, motion value, and type token in
   every project resolves to a var(--…) defined here. Nothing hardcodes raw
   values elsewhere. Import this FIRST, before typography.css and components.css.
   ============================================================================ */

:root {
  color-scheme: light;   /* light-only for now (dark theme not in scope) */

  /* ── PRIMITIVES: the palette (from Figma variables) ───────────────────────
     Literal ramp. UI should reference the SEMANTIC tokens below, not these. */

  /* Grays */
  --gray-1: #FFFCF7;   /* White — warm, not pure */
  --gray-2: #F2EFEB;   /* the subtle fill, warmed to match */
  --gray-3: #D4D4D4;   /* dividers / border lines */
  --gray-4: #707070;
  --gray-5: #101010;   /* primary text */
  --gray-6: #000000;   /* Black — kept for palette completeness; the UI's ink is --color-ink (Visionary 6) */

  /* Visionary (brand green) */
  --visionary-1: #D0FFDD;
  --visionary-2: #A8FABF;
  --visionary-3: #05E5AF;
  --visionary-4: #00A073;
  --visionary-5: #096049;
  --visionary-6: #10201F;

  /* Blue */
  --blue-1: #CCE6FF;
  --blue-2: #72BAFF;
  --blue-3: #1E90FF;
  --blue-4: #0053A4;
  --blue-5: #153D6C;
  --blue-6: #040320;

  /* Orange */
  --orange-1: #F3EFE8;
  --orange-2: #FFBE92;
  --orange-3: #FF8736;
  --orange-4: #EF5318;
  --orange-5: #7C240A;
  --orange-6: #26201F;

  /* Pink */
  --pink-1: #FFE0F5;
  --pink-2: #F3B2E9;
  --pink-3: #F98BDA;
  --pink-4: #FF66CC;
  --pink-5: #AD3680;
  --pink-6: #56012F;

  /* Red */
  --red-1: #FFE0E0;
  --red-2: #FFC5C5;
  --red-3: #FF6565;
  --red-4: #EC1616;
  --red-5: #A41010;
  --red-6: #530A0E;

  /* Yellow */
  --yellow-1: #FDFFE7;
  --yellow-2: #F9FFC1;
  --yellow-3: #F8F877;
  --yellow-4: #FFF70D;
  --yellow-5: #F2DD00;
  --yellow-6: #1C1700;

  /* Black / White alpha overlays (scrims, hovers, disabled washes) */
  --black-10: rgba(0,0,0,.10);  --white-10: rgba(255,252,247,.10);
  --black-20: rgba(0,0,0,.20);  --white-20: rgba(255,252,247,.20);
  --black-30: rgba(0,0,0,.30);  --white-30: rgba(255,252,247,.30);
  --black-40: rgba(0,0,0,.40);  --white-40: rgba(255,252,247,.40);
  --black-50: rgba(0,0,0,.50);  --white-50: rgba(255,252,247,.50);
  --black-60: rgba(0,0,0,.60);  --white-60: rgba(255,252,247,.60);
  --black-70: rgba(0,0,0,.70);  --white-70: rgba(255,252,247,.70);
  --black-80: rgba(0,0,0,.80);  --white-80: rgba(255,252,247,.80);

  /* ── SEMANTIC COLOR: what the UI references (roles, not hues) ──────────── */
  --color-bg:            var(--gray-1);      /* page background */
  --color-surface:       var(--gray-1);      /* cards, sheets */
  --color-surface-alt:   var(--gray-2);      /* subtle raised/inset */
  --color-text:          var(--visionary-6); /* all text: Visionary 6, the darkest value — no gray text sitewide */
  --color-ink:           var(--visionary-6); /* the deepest ink: solid fills, selected states, rules and marks */
  --color-text-muted:    var(--visionary-6); /* secondary/meta text: same ink as body (hierarchy comes from size, not gray) */
  --color-text-inverse:  var(--gray-1);      /* text on brand/dark */
  --color-border:        var(--gray-3);      /* dividers, hairlines, lines */
  --color-border-strong: var(--gray-4);
  --color-primary:       var(--visionary-4); /* primary actions (#00A073) */
  --color-primary-hover: var(--visionary-5); /* darker green */
  --color-primary-tint:  var(--visionary-1); /* light green wash */
  --color-focus-ring:    var(--blue-3);      /* :focus-visible ring */
  --color-success:       var(--visionary-4);
  --color-success-tint:  var(--visionary-1);   /* wash behind a success notice */
  --color-warning:       var(--orange-3);
  --color-error:         var(--red-4);       /* #EC1616 */
  --color-error-tint:    var(--red-1);
  --color-warning-tint:  var(--orange-1);    /* wash behind a warning notice */
  --color-info:          var(--blue-3);
  --color-info-tint:     var(--blue-1);      /* wash behind an info notice */
  --color-info-soft:     var(--blue-2);      /* the mark on an accent badge */
  --color-info-ink:      var(--blue-6);      /* ink that reads beside it on the page's own ground */
  --color-status-design: var(--red-4);       /* work status (Figma "Status Marker"): still being designed */
  --color-status-review: var(--orange-3);    /*   … in review */
  --color-status-ready:  var(--visionary-4); /*   … ready to build */
  --color-scrim:         var(--black-50);    /* modal/overlay backdrop */

  /* ── SPACING: named scale (Figma "Numbers") ──────────────────────────────
     Use ONLY these for margin/padding/gap. Names mirror Figma exactly. */
  --space-min:  0px;
  --space-xs:   5px;
  --space-s:    10px;
  --space-m:    20px;
  --space-l:    40px;
  --space-xl:   80px;
  --space-xxl:  160px;
  --space-max:  320px;

  /* ── RADII: only 0, 10px, or full pill ─────────────────────────────────── */
  --radius-none: 0;
  --radius-xs:   5px;      /* small chips/badges (e.g. qty bubble) */
  --radius-sm:   4px;      /* media thumbnails (cart lines) */
  --radius-md:   10px;
  --radius-pill: 1000px;   /* buttons, pills */

  /* ── BORDERS: 1px, gray-3 ──────────────────────────────────────────────── */
  --border-width:       1px;
  --border-width-thick: 2px;                 /* selected states (option cards) */
  --border-default:  var(--border-width) solid var(--color-border);
  --border-selected: var(--border-width-thick) solid var(--color-primary);
  --border-unselected: var(--border-width-thick) solid var(--black-20);

  /* ── ELEVATION / SHADOW ──────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px var(--black-10);
  --shadow-md: 0 4px 12px var(--black-20);
  --shadow-lg: 0 12px 32px var(--black-30);

  /* ── MOTION ──────────────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --duration-dwell: 2000ms;  /* a busy label ("Going to checkout…") holds this long before the page moves on — time to read it */
  --ease-standard:   cubic-bezier(.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(.3, 0, 0, 1);
  --duration-crossfade: 1000ms; /* a photo crossfade (hero slideshow) */
  --duration-reveal: 600ms;     /* an out-of-focus reveal settling into place */
  --duration-tab-dwell: 7000ms; /* a timed tab set holds each tab this long: its rule fills in, then the next tab takes over */
  --blur-soft: 6px;             /* the blur a reveal starts from — soft, never smeared */

  /* ── Z-INDEX ─────────────────────────────────────────────────────────── */
  --z-base: 0; --z-sticky: 100; --z-overlay: 1000; --z-modal: 1100; --z-toast: 1200;

  /* ── LAYOUT: container max-widths (Tailwind `max-w-*` scale) ─────────────
     Content column caps. Use for page/section max-width, never for spacing. */
  --container-xs:   320px;
  --container-sm:   384px;
  --container-md:   448px;
  --container-lg:   512px;
  --container-xl:   576px;
  --container-2xl:  672px;
  --container-3xl:  768px;
  --container-4xl:  896px;
  --container-5xl:  1024px;
  --container-6xl:  1152px;
  --container-7xl:  1280px;
  --container-8xl:  1536px;   /* = Tailwind `2xl` screen */
  --container-9xl:  1792px;   /* next step up (+256, the 1280→1536 rhythm) */
  --measure-text: 650px;      /* LAW: every text element caps here — no line runs past a readable measure */
  --container-prose: var(--measure-text);
  --container-drawer: 520px;  /* slide-out side panel (cart) */
  --hero-max: 900px;          /* a full-viewport hero stops growing here */
  --container-page: var(--container-9xl);   /* default: fill up to 1792, then cap */

  /* ── BREAKPOINTS (Tailwind `screens`) ───────────────────────────────────
     Reference values for @media queries. Note: CSS custom properties can't be
     used inside a media condition, so hardcode these px in the query itself. */
  --bp-sm:  640px;
  --bp-md:  768px;
  --bp-lg:  1024px;
  --bp-xl:  1280px;
  --bp-2xl: 1536px;

  /* ── TYPE TOKENS (the 5-tier stack; @font-face + classes in typography.css) */
  --font-display: "Vivint Season Mix", "Vivint Season Mix Fallback", Georgia, serif;   /* XL + Large tiers */
  --font-medium:  "Vivint Circular Medium", "Vivint Circular Medium Fallback", system-ui, sans-serif;
  --font-book:    "Vivint Circular Book", "Vivint Circular Book Fallback", system-ui, sans-serif;

  --type-xl:     400 48px/1.2 var(--font-display);
  --type-large:  400 32px/1.2 var(--font-display);
  --type-medium: 500 22px/1.2 var(--font-medium);
  --type-small:  400 18px/1.2 var(--font-book);
  --type-xs:     400 14px/1.2 var(--font-book);
  --type-display-tracking: -0.01em;   /* both Season tiers, XL and Large */
}

/* Dark theme intentionally omitted (not in scope). Palette primitives above
   remain available if/when a dark mapping is added later. */
/* ============================================================================
   typography.css — Fonts + the 5-tier type stack (LAW)
   Import AFTER tokens.css. Sizes ∈ {48,32,22,18,14}; weights ∈ {400,500}; all
   tiers 120% line-height. No H1–H6 ramp, no in-between sizes. XL and Large are
   the two Season Mix tiers; Medium, Small and XS are Circular.
   ============================================================================ */

/* ── @font-face ───────────────────────────────────────────────────────────
   Real files in ./fonts/ (.woff2). Family names match tokens.css --font-*.
   XL + Large = Season Mix · Medium = Circular Medium · Small/XS = Circular Book.
   Season Mix ships two faces; the system uses the 400 (Regular) one only. */

@font-face {
  font-family: "Vivint Season Mix";        /* Large tier — SemiBold */
  src: url("../design-system/fonts/VivintSeasonMix-SemiBold.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vivint Season Mix";        /* Regular face, kept for the 400 slot */
  src: url("../design-system/fonts/VivintSeasonMix-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vivint Circular Book";     /* Small / XS / TAG */
  src: url("../design-system/fonts/VivintCircular-Book.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vivint Circular Medium";   /* Medium tier */
  src: url("../design-system/fonts/VivintCircular-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ── Metric-matched fallbacks ───────────────────────────────────────────
   Until the brand faces arrive, text sets in a local face scaled to the
   same advance widths (measured against each brand face), so the swap
   re-inks the words without re-wrapping them — no layout shift. */
@font-face { font-family: "Vivint Season Mix Fallback"; src: local("Times New Roman"), local("Liberation Serif"), local("Times");
  size-adjust: 104.69%; ascent-override: 93.13%; descent-override: 24.26%; line-gap-override: 0%; }
@font-face { font-family: "Vivint Circular Book Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 98.22%; ascent-override: 97.03%; descent-override: 28.2%; line-gap-override: 0%; }
@font-face { font-family: "Vivint Circular Medium Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 100.3%; ascent-override: 95.01%; descent-override: 27.62%; line-gap-override: 0%; }

/* ── Base ─────────────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: var(--type-small);           /* Small is the default body tier */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── The five tiers — the ONLY way to set type ─────────────────────────── */
.type-xl     { font: var(--type-xl);     letter-spacing: var(--type-display-tracking); }
.type-large  { font: var(--type-large);  letter-spacing: var(--type-display-tracking); }
.type-medium { font: var(--type-medium); }
.type-small  { font: var(--type-small); }
.type-xs     { font: var(--type-xs); }
/* Phones: XL steps down to Large wherever it's used. */
@media (max-width: 640px) { :root { --type-xl: var(--type-large); } }

/* ── Helpers that DON'T break the stack ────────────────────────────────── */
.text-muted   { color: var(--color-text-muted); }
.text-inverse { color: var(--color-text-inverse); }

/* ── TYPE STACK ENFORCEMENT ─────────────────────────────────────────────
   Normalize native elements INTO tiers so stray markup can't introduce an
   off-scale size/weight. Add mis-tiered selectors here rather than inline. */
h1, h2, h3, h4, h5, h6, p, li, a, label, small, button, input, textarea, select {
  font: inherit;                     /* inherit body (Small) unless given a tier */
}
/* Kill UA em-based block margins — spacing is token-driven, never from the
   browser's `1em` default (which scales with font size, e.g. 48px on Large). */
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd, pre {
  margin: 0;
}
h1 { font: var(--type-xl); letter-spacing: var(--type-display-tracking); }
h2 { font: var(--type-medium); }
small { font: var(--type-xs); }
strong, b { font-weight: 500; }      /* clamp bold to the Medium weight, never 700+ */

/* ── MEASURE + BALANCE (LAW) ─────────────────────────────────────────────
   Every text element caps at --measure-text (650px), site-wide, so no line
   runs longer than a reader can follow, and wraps balanced, so no line is
   left holding one word. Declared once, here; a composition never sets its
   own text width or wrapping (a narrower cap is still a second value). A
   centred block stays centred — its parent aligns the capped box. */
h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, label, small,
.type-xl, .type-large, .type-medium, .type-small, .type-xs { max-width: var(--measure-text); text-wrap: balance; }
/* ============================================================================
   components.css — ATOMIC component library. Defined ONCE, reused everywhere.
   Import AFTER tokens.css + typography.css. Every value is a var(--…) token —
   no raw hex, no raw spacing px. A new pattern becomes a new atom HERE.

   Radii rule: buttons = --radius-pill; badges (.pill), inputs and cards = --radius-md (10px);
   crisp squares = --radius-none. Borders = 1px --color-border (gray-3).

   Contents: Buttons · Field wrapper · Inputs/Textarea/Select · Checkbox ·
             Radio · Toggle · Divider · Panel · Option card · Phases · Notice · Pill · Modal ·
             Drawer · Steps · Spinner · Pagination dots · Slide counter ·
             Scroll area · Shared focus ring
   ============================================================================ */

/* ── Base: the hidden attribute must beat a component's own display ──────
   Atoms set display (inline-flex, grid…), which silently overrides the UA's
   [hidden] rule — so state it once, here, and toggle visibility with el.hidden
   anywhere in the system. */
[hidden] { display: none !important; }

/* ── Shared focus ring (accessibility, every interactive atom) ──────────── */
.btn:focus-visible,
.tab:focus-visible,
.dots__dot:focus-visible,
button.panel:focus-visible,
.optioncard input:focus-visible + .optioncard__body,
.checkbox input:focus-visible + .checkbox__box,
.radio input:focus-visible + .radio__dot,
.toggle input:focus-visible + .toggle__track {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* ============================ BUTTONS ==================================
   Specs from Figma "FUTURE STATE" button set (node 12066-9790).
   Large buttons: 18px text · 20px padding · 10px gap · pill · 200px min-width ·
   24px icons. Variants: primary (Visionary-3 green) · secondary (outline) ·
   tertiary (solid black) · link (text+icon) · small. Plus disabled/loading. */
.btn {
  --btn-spinner: var(--color-ink);              /* spinner ink; overridden per variant */
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-s);
  /* SIZING LAW, enforced here so no layout can break it: a button hugs its
     label and a CTA keeps a 200px floor. `width: max-content` makes it immune
     to `align-self: stretch` — the reason a button in a flex/grid column used
     to run full-bleed — and `flex: 0 0 auto` stops it growing in a row. */
  width: max-content; max-width: 100%; flex: 0 0 auto;
  min-width: 200px;
  padding: var(--space-m);
  font: var(--type-small);
  color: var(--color-ink);
  background: transparent;
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer; text-align: center; text-decoration: none;   /* never underline CTA text, incl. <a class="btn"> */
  transition: background var(--duration-fast) var(--ease-standard),
              background-image var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              opacity var(--duration-fast) var(--ease-standard);
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.btn img, .btn svg, .btn .icon { width: 24px; height: 24px; flex: 0 0 auto; }

/* Primary — Visionary 3 green, black text (no hover change; the pointer cursor is the cue) */
.btn--primary { background: var(--visionary-3); color: var(--color-ink); }

/* Secondary — outline */
.btn--secondary { color: var(--color-ink); border-color: var(--color-ink); }

/* Inverse outline — the secondary button sitting on a photo or scrim: white
   text and border in place of black. */
.btn--secondary.btn--inverse { color: var(--color-text-inverse); border-color: var(--color-text-inverse); }

/* Tertiary — solid black, white text */
.btn--tertiary { --btn-spinner: var(--gray-1); background: var(--color-ink); color: var(--gray-1); }

/* Link — text + icon, no chrome, no min-width */
.btn--link { color: var(--color-ink); padding: var(--space-min); min-width: 0; }
/* Accent link — the pre-qualify prompt. Underlined by explicit request: it
   reads as a text link, not a CTA, so the no-underline CTA rule doesn't bind. */
.btn--link-accent { color: var(--color-primary); text-decoration: underline; }
/* Inverse link — the same text+icon link sitting on a photo or scrim. */
.btn--link-inverse { color: var(--color-text-inverse); }

/* =============================== TEXTLINK ==============================
   Inline text that is a link — a device name that opens its product page.
   Reads as its text (inherits font and colour), underlined; a <button> or an
   <a> alike. Not a CTA, so the no-underline CTA rule doesn't bind. */
.textlink {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
  text-align: inherit; text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer;
}

/* Small — a SIZE modifier only (14px, compact padding, no floor). Pair it with
   a variant for the look: `btn--secondary btn--small` = small outline,
   `btn--tertiary btn--small` = small solid. */
.btn--small { min-width: 0; padding: var(--space-xs) var(--space-s); font: var(--type-xs); }
.btn--small .icon, .btn--small img, .btn--small svg { width: 16px; height: 16px; }   /* the compact size takes the compact icon */

/* Icon — round icon-only button (carousel arrows, close, utility). Hugs a
   square: NO 200px CTA floor. Surface + gray-3 hairline (never a shadow). */
.btn--icon {
  min-width: 0;
  width: 44px; height: 44px; padding: 0;
  background: var(--color-surface);
  border-color: var(--color-border);
}
/* Over media — the same round icon button sitting on a photo or video: a
   scrim fill and inverse ink in place of the surface + hairline. */
.btn--icon-scrim { background: var(--black-30); border-color: transparent; color: var(--color-text-inverse); }
/* Plain — the icon button with no fill and no hairline (gallery arrows that
   sit on the frame's own ground); the icon alone is the control. */
.btn--icon-plain { background: transparent; border-color: transparent; }

/* Destructive — extension (not in the Figma set) */
.btn--destructive { --btn-spinner: var(--gray-1); background: var(--color-error); color: var(--gray-1); }

/* Loading state — add .is-loading; spinner via ::after */
.btn.is-loading { color: transparent; pointer-events: none; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid var(--btn-spinner); border-top-color: transparent; border-radius: 50%;
  animation: btn-spin var(--duration-slow) linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Busy state — add .is-busy. The LABEL carries the wait, no spinner: the old
   label fades out (.is-busy-out), the new one — naming where this goes, e.g.
   "Going to checkout…" — fades in (.is-busy), one --duration-slow beat each, then holds
   for --duration-dwell before the page moves on, so there's time to read it.
   Wrap the text in .btn__label; the page swaps it when the fade-out ends.
   Clicks are off throughout, but the button is NOT disabled, so the label
   stays full contrast. Use .is-loading when the wait has no name worth reading. */
.btn.is-busy-out, .btn.is-busy { pointer-events: none; }
.btn__label { display: inline-block; }
.btn.is-busy-out .btn__label { animation: btn-label-out var(--duration-slow) var(--ease-standard) forwards; }
.btn.is-busy .btn__label { animation: btn-label-in var(--duration-slow) var(--ease-standard) both; }
@keyframes btn-label-out { to { opacity: 0; } }
@keyframes btn-label-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn .btn__label { animation: none; } }

/* Add — outline, 14px UPPERCASE tracked, 10px radius (Figma "Add").
   Its outline matches the quantity control it swaps with: 1px --color-border
   (Gray 3), not black — the two share a slot, so they must share a stroke. */
.btn--add {
  min-width: 0;                              /* hug content; NO 200px CTA floor here */
  padding: var(--space-s) var(--space-m);
  gap: var(--space-xs);
  font: var(--type-xs);
  text-transform: uppercase;
  letter-spacing: .2em;                      /* = 2.8px at 14px */
  border-color: var(--color-border);
  border-radius: var(--radius-md);
}

/* ============================ QUANTITY =================================
   Add-to-quantity control: `.btn--add` swaps to `.stepper` on add. The two are
   stacked in one grid cell so the wrapper sizes to the wider (stepper) and both
   fill it — identical width, zero layout shift on swap. Toggle visibility (not
   display) so both keep contributing to the cell size. Gray-3 border, 10px. */
.qty { display: inline-grid; justify-items: stretch; }  /* cell hugs the stepper (wider child); Add stretches to match — identical width, no shift */
.qty > .btn { width: 100%; }                 /* a deliberate exception to the width law: Add matches the stepper (the other: .subnav__cta, docked) */
.qty > * { grid-area: 1 / 1; }               /* stack add + stepper in one cell */
.stepper {
  display: inline-flex; align-items: center;
  gap: var(--space-s);                        /* exactly 10px, hugs content */
  padding: var(--space-s);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
}
.stepper__btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--color-ink);
}
.stepper__btn:disabled { opacity: .4; cursor: not-allowed; }
/* Fixed quantity — a quantity that can't change (a required item). Same box,
   padding and footprint as the stepper (the ::before/::after reserve the two
   16px icon slots) so it lines up with real steppers; no +/- icons. */
.stepper--fixed { justify-content: center; }
.stepper--fixed::before, .stepper--fixed::after { content: ""; width: 16px; height: 16px; flex: 0 0 auto; }
.stepper__btn .icon, .stepper__btn img { width: 16px; height: 16px; }
.stepper__val { font: var(--type-xs); color: var(--color-ink); }

/* ============================== TABS ==================================
   Bottom-border tabs; inactive = 40% opacity (Figma "Filter"). */
.tabs { display: inline-flex; }
.tab {
  display: inline-flex; align-items: center; gap: var(--space-s);
  padding: var(--space-s) var(--space-m);
  font: var(--type-xs); color: var(--color-ink);
  background: none; border: 0; border-bottom: 2px solid var(--color-ink);
  cursor: pointer;
}
.tab .icon, .tab img { width: 24px; height: 24px; }
.tab[aria-selected="false"], .tab.is-inactive { opacity: .4; }

/* Split — the same bottom-border tabs laid out as equal columns across a full
   width, each label left-aligned and free to wrap. Every tab keeps its rule:
   the selected one in ink, the rest the hairline, so the row reads as one
   continuous line under the whole set. */
.tabs--split {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: var(--space-m); width: 100%; min-width: 0;
}
.tabs--split > .tab {
  align-items: flex-start; justify-content: flex-start; text-align: left;
  font: var(--type-small); opacity: 1; color: var(--color-text-muted);
  padding: var(--space-min) var(--space-min) var(--space-s);
  border-bottom-color: var(--color-border);
}
.tabs--split > .tab[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-ink); }
/* Narrow: the row stays a row — the columns hold a readable width and the bar
   scrolls sideways instead of stacking. The container it sits in has to carry
   `min-width: 0` (and a definite width, if it is a flex item) or the bar's own
   min-content will widen the page rather than scroll. */
/* Timed — the set walks itself: the selected tab's rule fills in from the
   left over the dwell, then the next tab takes over. The fill is a bar laid
   over the hairline; every other tab's bar sits at zero, snapped there with no
   transition so a tab that just lost the turn clears at once. Picking a tab by
   hand restarts the walk from it. Reduced motion: the set is not timed. */
.tabs--split > .tab { position: relative; }
.tab__fill {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--color-ink); transform: scaleX(0); transform-origin: left;
}
.tabs--split.is-timed > .tab[aria-selected="true"] { border-bottom-color: var(--color-border); }
.tabs--split.is-timed > .tab[aria-selected="true"] .tab__fill { transform: scaleX(1); transition: transform var(--duration-tab-dwell) linear; }
@media (max-width: 900px) { .tabs--split { grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; overflow-y: hidden; } }
/* Where a split row scrolls, it runs past its section's right padding to the
   screen edge, so the next tab peeks in instead of being clipped at the gutter
   (the PDP More band and the homepage services tabs). */
@media (max-width: 900px) {
  #more-tabs, #membership-tabs { width: auto; margin-right: calc(-1 * var(--tabs-bleed)); padding-right: var(--tabs-bleed); scroll-padding-right: var(--tabs-bleed); }
  #more-tabs { --tabs-bleed: var(--more-pad-x); }
  #membership-tabs { --tabs-bleed: var(--space-m); }
}

/* ======================= FIELD WRAPPER ================================== */
/* Structure: .field > (label row) + control + helper/error. Figma input spec:
   fields sit in a .field with a label row (label + info icon) and 10px gap. */
.field { display: flex; flex-direction: column; gap: var(--space-s); }
.field__label-row { display: flex; align-items: center; gap: var(--space-s); }
.field__label  { flex: 1; font: var(--type-xs); color: var(--color-text); }
.field__label-row .icon { width: 24px; height: 24px; color: var(--color-ink); }
.field__helper { font: var(--type-xs); color: var(--color-text-muted); }
.field__error  { font: var(--type-xs); color: var(--color-error); display: none; }
.field.has-error .field__error { display: block; }
.field.has-error .field__helper { display: none; }

/* ================== INPUT / TEXTAREA / SELECT ==========================
   Figma spec: 20px padding · 10px radius · 18px text · Gray-3 border;
   focus/typing = black (Gray-6) border; error = Red-4 border on Red-1 fill. */
.input, .textarea, .select {
  width: 100%;
  box-sizing: border-box;                      /* 100% + 20px padding must not overflow its container */
  padding: var(--space-m);
  font: var(--type-small);
  color: var(--color-text);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard);
}
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--gray-4); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--color-border-strong); }
/* Typing / active state: the border goes BLACK (not blue). The blue is only the
   keyboard-nav focus ring, layered on top and gated behind real keyboard
   modality (.user-kbd, set by JS on <html> when the user tabs; a text field
   otherwise matches :focus-visible on a mouse click / autofocus too). */
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--color-ink); }
.user-kbd .input:focus, .user-kbd .textarea:focus, .user-kbd .select:focus {
  outline: 2px solid var(--color-focus-ring); outline-offset: 2px;
}
.input:disabled, .textarea:disabled, .select:disabled {
  opacity: .5; cursor: not-allowed; background: var(--color-surface-alt);
}
/* Error — red border + red fill + red text (on control OR via .field.has-error) */
.input.is-error, .textarea.is-error, .select.is-error,
.field.has-error .input, .field.has-error .textarea, .field.has-error .select {
  border-color: var(--red-4); background: var(--red-1); color: var(--red-4);
}
.field.has-error .input::placeholder, .input.is-error::placeholder { color: var(--red-4); }

/* Small — compact select for dense/utility contexts (mirrors .btn--small) */
.select--small { padding: var(--space-xs) var(--space-l) var(--space-xs) var(--space-s); font: var(--type-xs); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xNy40Njk4IDguNDY5NjZDMTcuNzYyNyA4LjE3Njc4IDE4LjIzNzUgOC4xNzY3OCAxOC41MzA0IDguNDY5NjZDMTguODIzMiA4Ljc2MjU2IDE4LjgyMzIgOS4yMzczNCAxOC41MzA0IDkuNTMwMjFMMTIuNTMwNCAxNS41MzAyQzEyLjIzNzUgMTUuODIzMSAxMS43NjI3IDE1LjgyMyAxMS40Njk4IDE1LjUzMDJMNS40Njk4MSA5LjUzMDIxQzUuMTc2OTQgOS4yMzczMSA1LjE3NjkzIDguNzYyNTUgNS40Njk4MSA4LjQ2OTY2QzUuNzYyNyA4LjE3NjggNi4yMzc0NyA4LjE3NjggNi41MzAzNiA4LjQ2OTY2TDEyLjAwMDEgMTMuOTM5NEwxNy40Njk4IDguNDY5NjZaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+Cg==");
  background-repeat: no-repeat;
  background-position: right var(--space-s) center;
  padding-right: var(--space-l);
}

/* ================== INPUTBOX / SELECT (icon-adorned field, Figma spec) ==
   The chevron opens a dropdown — this field IS a select. Layout: leading info ·
   value · trailing chevron + info. Border/fill per state; icon color follows
   `color`, so error turns icons + text red together. */
.inputbox {
  position: relative;
  box-sizing: border-box;
  display: flex; align-items: center; gap: var(--space-xs);
  padding: var(--space-m);
  color: var(--color-ink);                        /* drives text + icon color */
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard);
}
/* Black border when focused/typing or while the dropdown is open; the blue is
   only the keyboard-nav ring (gated behind .user-kbd), matching the inputs. */
.inputbox:has(:focus), .inputbox.is-open { border-color: var(--color-ink); }
.user-kbd .inputbox:focus-visible, .user-kbd .inputbox:has(:focus-visible) {
  outline: 2px solid var(--color-focus-ring); outline-offset: 2px;
}
/* Editable variant keeps the text input; select variant uses a value span */
.inputbox__input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font: var(--type-small); color: currentColor;
}
.inputbox__input::placeholder { color: var(--gray-4); }
.inputbox__value { flex: 1; min-width: 0; font: var(--type-small); color: currentColor; user-select: none; }
.inputbox__value.is-placeholder { color: var(--gray-4); }
.inputbox .icon { width: 24px; height: 24px; flex: 0 0 auto; }
.inputbox__chevron { transition: transform var(--duration-fast) var(--ease-standard); }
.inputbox.is-open .inputbox__chevron { transform: rotate(180deg); }
.inputbox.is-error {
  background: var(--red-1); border-color: var(--red-4); color: var(--red-4);
}
.inputbox.is-error .inputbox__input::placeholder { color: var(--red-4); }

/* Dropdown menu */
.select-menu {
  position: absolute; top: calc(100% + var(--space-xs)); left: 0; right: 0;
  margin: 0; padding: var(--space-xs); list-style: none;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  z-index: var(--z-overlay);
  /* No shadow — the border and fill do the separating (see DESIGN_SYSTEM.md). */
}
.select-option {
  padding: var(--space-s) var(--space-m); border-radius: var(--radius-md);
  font: var(--type-small); color: var(--color-ink); cursor: pointer;
}
.select-option:hover, .select-option.is-active { background: var(--color-surface-alt); }

/* ==================== CHECKBOX (crisp square, radius-none) ============= */
.checkbox, .radio, .toggle {
  display: inline-flex; align-items: center; gap: var(--space-s);
  cursor: pointer; font: var(--type-small); color: var(--color-text);
}
.checkbox input, .radio input, .toggle input {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0;   /* hidden, still focusable */
}
.checkbox__box {
  width: 20px; height: 20px; flex: 0 0 auto;
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-none);
  background: var(--color-surface);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}
.checkbox input:checked + .checkbox__box {
  background: var(--color-ink); border-color: var(--color-ink);
}
.checkbox input:checked + .checkbox__box::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border: solid var(--gray-1); border-width: 0 2px 2px 0;
  transform: rotate(45deg);                          /* CSS checkmark */
}
.checkbox input:disabled + .checkbox__box { opacity: .5; }
.field.has-error .checkbox__box { border-color: var(--color-error); }

/* ============================== RADIO ================================== */
.radio__dot {
  width: 20px; height: 20px; flex: 0 0 auto;
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.radio input:checked + .radio__dot { border-color: var(--color-ink); }
.radio input:checked + .radio__dot::after {
  content: ""; width: 10px; height: 10px; border-radius: var(--radius-pill);
  background: var(--color-ink);
}
.radio input:disabled + .radio__dot { opacity: .5; }
.field.has-error .radio__dot { border-color: var(--color-error); }

/* ============================= TOGGLE ================================== */
.toggle__track {
  width: 44px; height: 24px; flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  position: relative;
  transition: background var(--duration-fast) var(--ease-standard);
}
.toggle__track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: var(--radius-pill);
  background: var(--color-text-inverse);
  transition: transform var(--duration-fast) var(--ease-standard);
}
.toggle input:checked + .toggle__track { background: var(--color-ink); }
.toggle input:checked + .toggle__track::after { transform: translateX(20px); }
.toggle input:disabled + .toggle__track { opacity: .5; }

/* ============================== PANEL ==================================
   The system's bordered surface: 1px Gray-3 hairline, 10px radius, surface
   fill, never a shadow. Every card-like box in a screen is this — a package
   card, a plan card, a summary box — so they can't drift apart. Compositions
   set their own padding and inner layout; `--alt` sits on the subtle fill. */
.panel {
  border: var(--border-default);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.panel--alt { background: var(--color-surface-alt); border-color: transparent; }   /* the subtle fill is its own edge: no hairline */
/* Over media — the panel sitting on a photo or video: a scrim fill and inverse
   ink in place of the surface + hairline (the same move as .btn--icon-scrim). */
.panel--scrim { background: var(--black-60); border-color: transparent; color: var(--color-text-inverse); }   /* deeper than the icon button's scrim: this one carries text */
button.panel, a.panel { color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }   /* a panel that is a choice (a quiz answer) reads as its content, not as a UA button */

/* ============================== BULLETS ================================
   A plain list of short points, always one column — icon + description
   pairs stack vertically at every width, never side by side. */
/* Each point leads with its own DS icon, so the list carries no disc. */
.bullets {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-l);
  font: var(--type-small);
}
.bullets li { display: flex; align-items: flex-start; gap: var(--space-m); }
.bullets .icon { flex: 0 0 auto; }

/* ============================= VIDEO CARD ==============================
   A short film with its pitch, stacked: the poster on top with the play
   mark over it, the headline and line beneath. The whole card is the
   control — pressing it opens the film in its modal. */
.videocard {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0; border: 0; width: 100%; text-align: left;
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--color-surface-alt); color: var(--color-text); font: inherit; cursor: pointer;
}
.videocard__media { position: relative; aspect-ratio: 16 / 9; }
.videocard__media img, .videocard__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.videocard__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--color-text-inverse); }
.videocard__play .icon { width: 64px; height: 64px; }
.videocard__body { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-m); }
.videocard__body > * { margin: 0; }

/* ============================== DAY CHIP ===============================
   A pickable day (or arrival window) in a schedule: a bordered tile in ink,
   filled ink with inverse text when selected, washed out when unavailable.
   `--wide` is the arrival-window shape — one line of text, hugging it. */
.daychip {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xs);
  width: 64px; height: 72px; padding: 0; box-sizing: border-box;
  border: var(--border-width) solid var(--color-ink); border-radius: var(--radius-sm);
  background: var(--color-bg); color: var(--color-ink); font: var(--type-xs); cursor: pointer;
}
.daychip__num { font: var(--type-small); }
.daychip.is-selected { background: var(--color-ink); color: var(--color-text-inverse); }
.daychip:disabled { border-color: var(--color-border); background: var(--color-surface-alt); color: var(--color-text-muted); cursor: not-allowed; }
.daychip--wide { flex-direction: row; width: auto; height: auto; padding: var(--space-s) var(--space-m); font: var(--type-small); }

/* ============================== CARD MARK ==============================
   A card network's mark — the network's own logo, at card proportions, with
   the card's corner radius. `.cardmarks` is a row of them (the networks a
   form takes); in an .inputbox the mark sits at the end, a step smaller. */
.cardmark { display: block; width: 44px; height: auto; border-radius: var(--radius-sm); }
.cardmarks { display: inline-flex; align-items: center; gap: var(--space-xs); }
.inputbox__brand { display: inline-flex; flex: 0 0 auto; }
.inputbox__brand .cardmark { width: 36px; }

/* ============================ MEDIA CELL ===============================
   The system's media window: a 10px-radius frame on the subtle fill that a
   photo or film fills edge to edge. `--contain` is the same frame holding a
   product shot, which carries alpha and has to sit inside its own padding. */
.mediacell {
  position: relative; overflow: hidden; min-width: 0;
  border-radius: var(--radius-md); background: var(--color-surface-alt);
}
.mediacell > img, .mediacell > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mediacell--contain > img { object-fit: contain; padding: var(--space-m); box-sizing: border-box; }

/* ============================= DIVIDER ================================= */
.divider { border: none; border-top: var(--border-default); margin-block: var(--space-m); }

/* ============================ OPTION CARD ==============================
   A selectable choice presented as a full-width card (payment method, service
   plan): a <label> wrapping a hidden radio, so it is keyboard- and
   screen-reader-native. 2px border — Black-20 at rest, Visionary-4 (green)
   when chosen. Use `.optioncard.is-selected` on a plain <div> for a card that
   states the only option rather than offering a choice. */
.optioncard { display: block; position: relative; cursor: pointer; }
.optioncard input {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0;   /* hidden, still focusable */
}
.optioncard__body {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--space-m);
  padding: var(--space-l) var(--space-m);
  background: var(--color-surface);
  border: var(--border-unselected);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.optioncard:hover input:not(:checked) + .optioncard__body { border-color: var(--color-border-strong); }
.optioncard input:checked + .optioncard__body,
.optioncard.is-selected > .optioncard__body { border: var(--border-selected); }
.optioncard.is-selected { cursor: default; }
.optioncard__label, .optioncard__note, .optioncard__amount { font: var(--type-small); color: var(--color-ink); }
.optioncard__amount { align-self: flex-start; }
/* Row variant: a selectable card that carries a leading media/label row rather
   than stacked text (e.g. a product add-on — photo · name · price). Same
   border/selection behaviour; only the body's flow and padding change. */
.optioncard--row .optioncard__body { flex-direction: row; align-items: center; padding: var(--space-m); }

/* ============================== PHASES =================================
   A price that CHANGES at a known point, stated as the shopper experiences it:
   one block per window of time — the window and its amount on one line, then
   the plain reason under it, and optional fine print. Two blocks is the usual
   shape ("First 12 months … / After 12 months …"), but the atom takes any
   number. The amount is the only accented text, because it is the thing being
   compared between phases. Type comes from the tiers (`.type-medium` heading,
   `.type-small` note), so nothing here sets a size. */
.phases { display: flex; flex-direction: column; gap: var(--space-m); align-self: stretch; }
.phase { display: flex; flex-direction: column; gap: var(--space-xs); }
.phase > * { margin: 0; }
.phase__head { color: var(--color-text); }
.phase__amount { color: var(--color-primary); }
.phase__note, .phase__fine { color: var(--color-text-muted); }

/* ============================== NOTICE =================================
   Inline message that explains a consequence before it happens (e.g. adding a
   system will replace the one in the cart). Icon + 14px text, so meaning never
   rests on colour alone. `--warning` tints it; the neutral default informs. */
.notice {
  display: flex; align-items: flex-start; gap: var(--space-s);
  margin: 0; padding: var(--space-m);
  border: var(--border-default); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text);
  font: var(--type-xs);
}
.notice .icon { width: 20px; height: 20px; flex: 0 0 auto; color: var(--color-text-muted); }
/* Two-line notice: a statement, then the detail under it. */
.notice__text { display: flex; flex-direction: column; gap: var(--space-xs); }
.notice--warning { border-color: var(--color-warning); background: var(--color-warning-tint); }
.notice--warning .icon { color: var(--color-warning); }
.notice--success { border-color: var(--color-success); background: var(--color-success-tint); }
.notice--success .icon { color: var(--color-success); }
.notice--info { border-color: var(--color-info); background: var(--color-info-tint); }
.notice--info .icon { color: var(--color-info); }
/* Quiet note on the subtle fill — reads as context, not an alert. */
.notice--muted { background: var(--color-surface-alt); border-color: transparent; }

/* =============================== PILL ==================================
   Small static label on a solid ground (a term on an offer card). Sentence
   case per the type stack — TAG is disabled, so no uppercase tracking. */
.pill {
  display: inline-flex; align-items: center; gap: var(--space-xs);   /* a pill may lead with an icon */
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-md);   /* 10px: a badge, never mistaken for a (fully round) button */
  background: var(--color-ink); color: var(--gray-1);
  font: var(--type-xs);
}
/* Outline variant — the same label sitting on the page's own ground (a card
   badge like "Recommended"), where a solid fill would read as a button. */
.pill--outline {
  background: none; color: var(--color-text);
  border: var(--border-width) solid var(--color-text);
}
/* Soft variant — the label on the subtle fill (a section eyebrow such as
   "Reviews"): it names what follows without reading as a button or a badge. */
.pill--soft { background: var(--color-surface-alt); color: var(--color-text); }

/* Accent variant — the outline badge in the accent blue, for the one label
   that should catch the eye ahead of its neighbours ("Most popular"): the
   palest blue hairline, a soft blue mark, and the deep blue ink. */
.pill--accent {
  background: none; color: var(--color-info-ink);
  border: var(--border-width) solid var(--color-info-tint);
}
.pill--accent .icon { color: var(--color-info-soft); }

/* ============================== STATUS =================================
   Where a piece of work stands (Figma "Status Marker"): a 10px-radius outline
   in the status colour, the label in ink. Design → Review → Ready. Set the
   status with a modifier; it names the outline colour. `--needs` is the
   gray note beside it: an outstanding ask (photo/video, copy) rather than
   a stage in the flow. */
.status {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-xs) var(--space-s);
  border: var(--border-width) solid var(--status-color); border-radius: var(--radius-md);
  color: var(--color-ink); font: var(--type-xs); white-space: nowrap;
}
.status--design { --status-color: var(--color-status-design); }
.status--review { --status-color: var(--color-status-review); }
.status--ready  { --status-color: var(--color-status-ready); }
.status--needs  { --status-color: var(--color-border-strong); }   /* gray-4: an outstanding ask, not a stage */

/* =============================== MODAL =================================
   Centred dialog over a scrim (pre-qual). Same open/close contract as the
   drawer: toggle the container with el.hidden, add `.is-open` on the next
   frame. Body scrolls; head is sticky so Close stays reachable. On a phone the
   panel fills the screen. `.modal--sm` is the nested confirm size. */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: flex-start; justify-content: center; padding: var(--space-xl) var(--space-m) var(--space-l); overflow-y: auto; }
.modal__scrim { position: fixed; inset: 0; border: 0; padding: 0; background: var(--color-scrim); opacity: 0; transition: opacity var(--duration-base) var(--ease-standard); }
.modal.is-open .modal__scrim { opacity: 1; }
/* Frame = panel + the close that sits OUTSIDE it, over the scrim. */
.modal__frame { position: relative; z-index: 1; width: 100%; max-width: 650px; margin: auto; }
.modal__close {
  position: absolute; top: calc(-1 * var(--space-l)); right: 0;
  min-width: 0; padding: var(--space-xs);
  color: var(--gray-1);                        /* white on the scrim */
}
.modal__panel {
  background: var(--color-bg); border-radius: var(--radius-md);
  opacity: 0; transform: translateY(var(--space-m));
  transition: opacity var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-emphasized);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__body { padding: var(--space-l); display: flex; flex-direction: column; gap: var(--space-l); }
.modal__body > .btn { align-self: flex-start; }   /* CTAs hug, per the sizing law */
/* Flow variant — a multi-step flow (pre-qual) ends each screen on a Back link,
   and content stopping at the panel edge reads as cut off. Extra room below the
   last element gives every step somewhere to end. */
.modal--flow { padding-bottom: var(--space-xl); }            /* room under the panel itself when it scrolls */
.modal--flow .modal__body { padding-bottom: var(--space-xl); }
@media (max-width: 640px) { .modal--flow .modal__body { padding-bottom: var(--space-l); } }
.modal--sm .modal__frame { max-width: var(--container-md); }
.modal--sm .modal__body { align-items: center; text-align: center; }
/* A confirm has no Back link under it, so none of the flow's extra room:
   the same padding all round, its content centred in the panel. */
.modal--sm .modal__body { padding-bottom: var(--space-l); }
@media (max-width: 640px) { .modal--sm .modal__panel { display: flex; flex-direction: column; justify-content: center; } }   /* full screen on a phone: the confirm sits in its middle */
@media (max-width: 640px) {
  /* Full-screen panel: the close comes inside, where there is room for it. */
  .modal { padding: 0; }
  .modal__frame { max-width: none; }
  .modal__panel { min-height: 100vh; border-radius: 0; }
  .modal__body { padding: var(--space-m); gap: var(--space-m); padding-top: var(--space-xl); }
  .modal__close { top: var(--space-s); right: var(--space-s); color: var(--color-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .modal__scrim, .modal__panel { transition: none; }
}
/* Video variant — the panel is only the film, 16:9, centred; sized so the
   whole frame fits the window's height too. It never goes full screen on a
   phone: the film sits mid-screen with the close above it, over the scrim. */
.modal--video { align-items: center; }
.modal--video .modal__frame { max-width: min(1280px, calc((100vh - 2 * var(--space-xxl)) * 16 / 9)); }
.modal--video .modal__panel { overflow: hidden; background: var(--color-ink); }
.modal__video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--color-ink); }
@media (max-width: 640px) {
  .modal--video { padding: var(--space-m); }
  .modal--video .modal__panel { min-height: 0; border-radius: var(--radius-md); }
  .modal--video .modal__close { top: calc(-1 * var(--space-l)); right: 0; color: var(--gray-1); }
}

/* =============================== STEPS =================================
   Linear progress across a flow (Apply · Offers · Checkout). Each step's state
   is a 24px icon from the set — Radio Selected (current), Radio (upcoming),
   Check Circle (done) — so the marks match every other control in the system.
   Connectors fill as the flow advances. */
.steps { display: flex; align-items: flex-start; }
.steps__step { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); flex: 0 0 auto; }
.steps__step .icon { width: 24px; height: 24px; color: var(--color-text-muted); }
.steps__step.is-current .icon, .steps__step.is-done .icon { color: var(--color-ink); }
.steps__label { font: var(--type-xs); color: var(--color-text-muted); white-space: nowrap; }
.steps__step.is-current .steps__label, .steps__step.is-done .steps__label { color: var(--color-text); }
.steps__line { flex: 1 1 auto; height: var(--border-width); margin-top: 12px; background: var(--color-border); }   /* 12px = half the 24px icon, so the line meets its centre */
.steps__line.is-done { background: var(--color-ink); }

/* ============================== SPINNER ================================
   Standalone activity indicator (the pre-qual check). Matches the button
   spinner: 2px ring, ink on a Gray-3 track, one slow rotation. */
.spinner {
  display: inline-block; width: 48px; height: 48px;
  border: var(--border-width-thick) solid var(--color-border);
  border-top-color: var(--color-ink);
  border-radius: var(--radius-pill);
  animation: btn-spin var(--duration-slow) linear infinite;
}
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* ============================== DRAWER =================================
   Slide-out side panel (cart). Scrim + right-hand panel that slides in on
   `.is-open`; toggle the container with el.hidden so it leaves the a11y tree
   when closed. Panel caps at --container-drawer and takes the full width below
   that — so it covers 100% on a phone. Separated by borders, never a shadow.
   Add .has-drawer-open to <body> to stop the page behind from scrolling. */
.drawer { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; justify-content: flex-end; }
.drawer__scrim {
  position: absolute; inset: 0; border: 0; padding: 0;
  background: var(--color-scrim); opacity: 0;
  transition: opacity var(--duration-base) var(--ease-standard);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: relative; display: flex; flex-direction: column;
  width: min(var(--container-drawer), 100%); height: 100%;
  background: var(--color-surface);
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-emphasized);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
  padding: var(--space-m); border-bottom: var(--border-default);
}
.drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--space-m); }
.drawer__foot {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-m);
  padding: var(--space-m); border-top: var(--border-default);
}
.drawer__foot > *:not(.btn) { align-self: stretch; }   /* only the CTA hugs */
@media (prefers-reduced-motion: reduce) {
  .drawer__scrim, .drawer__panel { transition: none; }
}

/* ============================== SUBNAV =================================
   A secondary bar that arrives once a page's own heading has scrolled away, so
   the price and the way forward are never out of reach. It speaks at the page
   heading's own sizes — a Large name, the price as the heading states it, and
   the full CTA — so it reads as that heading, carried along.
   Desktop: it rolls DOWN from the top — name at the start, price and action at
   the end; when space runs short it is the price that wraps, never the name.
   Below 1024 (a one-column page) it docks to the FOOT of the window as a single
   buy button — the label at one end, the price inside it at the other — which
   the page keeps on screen as its only CTA. `inert` while hidden (the page
   toggles .is-shown), so nothing in it is reachable by keyboard until then. */
.subnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky);
  background: var(--color-surface); border-bottom: var(--border-default);
  transform: translateY(-100%);
  transition: transform var(--duration-slow) var(--ease-emphasized);
}
.subnav.is-shown { transform: none; }
.subnav__inner {
  max-width: var(--container-page); margin-inline: auto; box-sizing: border-box;
  padding: var(--space-m) var(--space-l);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-l);
}
.subnav__title { flex: 0 0 auto; }                                   /* the name holds its line… */
.subnav__end { display: flex; align-items: center; gap: var(--space-l); flex: 0 1 auto; min-width: 0; }
.subnav__meta { text-align: right; min-width: 0; }                   /* …the price wraps instead */
.subnav__cta-price { display: none; }                                /* the price in the button is the docked bar's */

/* One-column page: docked to the foot, price at the start, action at the end. */
@media (max-width: 1023px) {
  .subnav {
    top: auto; bottom: 0;
    border-bottom: none; border-top: var(--border-default);
    transform: translateY(100%);
  }
  .subnav.is-shown { transform: none; }
  .subnav__title, .subnav__meta { display: none; }   /* the button carries the price now */
  .subnav__end { flex: 1 1 auto; }
  /* The second deliberate exception to the width law (after .qty > .btn): the
     docked buy button spans the bar, so its label and its price can sit at
     opposite ends of one control. */
  .subnav__cta { width: 100%; justify-content: space-between; }
  /* Label and price each hold one line. The longest pair needs 293.8px of a
     375 phone's 293px content box — the sub-pixel lands in the button's own
     padding, where it can't be seen, instead of wrapping either line. */
  .subnav__cta .btn__label, .subnav__cta-price { white-space: nowrap; }
  .subnav__cta-price { display: inline; }
  .subnav__cta.is-busy .subnav__cta-price, .subnav__cta.is-busy-out .subnav__cta-price { display: none; }   /* "Going to checkout…" stands alone */
}
/* Narrower than a 375 phone the longest price cannot share a line with the
   label, so there it wraps inside the button rather than spilling out of it. */
@media (max-width: 374px) { .subnav__cta-price { white-space: normal; } }
@media (max-width: 640px) { .subnav__inner { padding-inline: var(--space-m); } }
@media (prefers-reduced-motion: reduce) { .subnav { transition: none; } }

/* =========================== DISCLOSURE ===============================
   A bar that states the one thing worth seeing — a total, a count — and
   opens to reveal the detail behind it (an order summary on a phone, a
   long policy). Whatever must stay readable while closed goes in
   `__value`, so collapsing never hides the figure someone came for.
   State follows .modal / .drawer: `.is-open` on the container, body
   toggled with el.hidden. Type comes from the tiers — the screen sets
   them, the atom sets no sizes. */
.disclosure { display: flex; flex-direction: column; }
.disclosure__summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
  width: 100%; box-sizing: border-box;
  padding: var(--space-m);
  background: var(--color-surface-alt);
  border: 0;                                  /* the fill is the edge — no hairlines on a gray-2 surface */
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
/* The bar sits directly beneath another bordered edge (the site header, on a
   stacked checkout): without this its own top rule doubles that line. */
.disclosure--flush-top > .disclosure__summary { border-top: 0; }
/* Inset ring: the bar runs edge to edge, so an outset one would be clipped. */
.user-kbd .disclosure__summary:focus-visible {
  outline: 2px solid var(--color-focus-ring); outline-offset: -2px;
}
.disclosure__label { display: inline-flex; align-items: center; gap: var(--space-xs); min-width: 0; }
.disclosure__value { white-space: nowrap; }
.disclosure__chevron { transition: transform var(--duration-fast) var(--ease-standard); }
.disclosure.is-open .disclosure__chevron { transform: rotate(180deg); }
.disclosure__body { padding: var(--space-m); }
@media (prefers-reduced-motion: reduce) {
  .disclosure__chevron { transition: none; }
}

/* ========================= PAGINATION DOTS =============================
   Carousel / slide position indicator. Each dot is a 24px hit target with a
   small 6px mark, so the control stays tappable while reading as "small dots".
   Active = --color-ink; inactive = gray-3. Mark the current one with
   aria-current="true". */
.dots { display: inline-flex; align-items: center; gap: var(--space-xs); }
.dots__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0;
  border: 0; background: none; cursor: pointer; border-radius: var(--radius-pill);
}
.dots__dot::after {
  content: ""; width: 6px; height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
  transition: background var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.dots__dot[aria-current="true"]::after { background: var(--color-ink); transform: scale(1.25); }
/* Bar variant — segments spanning the width under a media frame instead of
   dots. Same markup and aria-current; each segment takes an equal share. */
.dots--bar { display: flex; align-self: stretch; gap: var(--space-s); }
.dots--bar .dots__dot { flex: 1; width: auto; height: 20px; }
.dots--bar .dots__dot::after { width: 100%; height: 2px; border-radius: 0; }
.dots--bar .dots__dot[aria-current="true"]::after { transform: none; }
.dots--bar .dots__dot.is-done::after { background: var(--color-ink); }   /* progress: steps already passed stay filled */

/* ========================== SLIDE COUNTER ==============================
   "2 / 7" position readout for a swipe-driven carousel — the compact stand-in
   for arrows + dots on small screens. Scrim fill so it holds up over any photo;
   current index in white, total in white-60. */
.counter {
  display: inline-flex; align-items: baseline; gap: var(--space-xs);
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius-md);
  background: var(--color-scrim);
  color: var(--gray-1);
  font: var(--type-xs);
}
.counter__total { color: var(--white-60); }

/* ========================== SCROLL AREA ================================
   A scrolling region that SHOWS it can scroll: a classic, always-visible bar
   instead of the overlay one the OS hides until you touch it. Use it whenever
   a list is capped in height (a summary, a long menu) and the shopper would
   otherwise not know there is more below. Thin, square, ink thumb on a Gray-3
   track — a bar you read as a position indicator, not a control. */
.scroll-y { overflow-y: auto; overscroll-behavior: contain; }
/* Declaring a width opts out of the OS overlay scrollbar, so the bar is always
   drawn (and takes layout space) whenever the content overflows — that
   visibility is the whole point. NOTE: setting `scrollbar-width`/
   `scrollbar-color` here would make the browser ignore these pseudo-elements
   and hand back the auto-hiding overlay bar, so Firefox is handled separately
   below instead. */
.scroll-y::-webkit-scrollbar { width: 4px; }
.scroll-y::-webkit-scrollbar-track {
  background: var(--color-border);            /* Gray 3 */
  border-radius: var(--radius-none);          /* squared off */
}
.scroll-y::-webkit-scrollbar-thumb {
  background: var(--color-ink);
  border-radius: var(--radius-none);
}
/* Firefox has no ::-webkit-scrollbar — style it with the standard properties. */
@supports not selector(::-webkit-scrollbar) {
  .scroll-y { scrollbar-width: thin; scrollbar-color: var(--color-ink) var(--color-border); }
}

/* ============================== ICONS ==================================
   Vivint SVG set lives in ./icons/ (fill=currentColor, 24 viewBox).
   Two ways to render:
   1. Inline the <svg> markup → inherits `color` directly (best fidelity).
   2. .icon utility (below) → external file, tinted by any token via mask.
      Set --icon to the file and `color` to the tint. */
.icon {
  display: inline-block;
  width: 24px; height: 24px;
  flex: 0 0 auto;
  background-color: currentColor;              /* the tint = current text color */
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.icon--xs { width: 16px; height: 16px; }
.icon--sm { width: 20px; height: 20px; }
.icon--lg { width: 32px; height: 32px; }
/* Inline <svg class="icon"> (the React package renders icons this way): the
   SVG paints itself with fill="currentColor", so drop the mask/fill the file
   variant needs while keeping every slot's `.icon` sizing rules. */
svg.icon { background: none; -webkit-mask: none; mask: none; }
/* Example: <span class="icon" style="--icon:url('../design-system/icons/Search.svg'); color:var(--color-primary)"></span> */
/* ============================================================================
   shop.css — shop-only COMPOSITIONS. Assembles design-system atoms into page
   shells and shop patterns. NO new atoms here (those belong in components.css).
   Token-only: every value is a var(--…) from tokens.css. Import AFTER the three
   design-system files.
   ============================================================================ */

/* ── Page frame ──────────────────────────────────────────────────────────── */
body { margin: 0; font: var(--type-small); min-height: 100vh; display: flex; flex-direction: column; }

.shop-header { background: var(--color-surface); /* white bar; logo, icons + text in black */ border-bottom: var(--border-default); }
.shop-header a { color: var(--color-text); text-decoration: none; }
/* Inner row aligns to the same content column + 40px padding as .shop-main */
.shop-header__inner {
  max-width: var(--container-page); margin-inline: auto; box-sizing: border-box;
  padding: var(--space-l);   /* 40 all sides on desktop (aligns to content) */
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
}
.shop-header__brand { display: inline-flex; align-items: center; gap: var(--space-xs); }
/* Vivint wordmark, tinted to the header color via CSS mask (aspect 127:30) */
.shop-header__logo { display: block; height: 22px; width: calc(22px * 127 / 30); background: currentColor;
  -webkit-mask: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI3IiBoZWlnaHQ9IjMwIiB2aWV3Qm94PSIwIDAgMTI3IDMwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTMwXzEwOTc0KSI+CjxwYXRoIGQ9Ik0xNi4xMTYyIDguOTA4MDdIMjEuODE3MUwxNC45Njc5IDI3LjE4MjRDMTQuMzI1OSAyOC44Nzc5IDEyLjcwMzMgMjkuOTk4NSAxMC44ODk2IDI5Ljk5ODVDOS4wNzU4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MjMuMTIzMSA0Ljg1MTY1IDI0LjUyMjQgNi4yNTA5NyAyNi4yNDg1IDYuMjUwOTdDMjcuOTc0NyA2LjI1MDk3IDI5LjM3NCA0Ljg1MTY1IDI5LjM3NCAzLjEyNTQ5QzI5LjM3NCAxLjM5OTMyIDI3Ljk3NDcgMCAyNi4yNDg1IDBaTTExMy43NzEgMy4xMjU0OUwxMDEuNDcyIDE0LjM5ODhWMTguNjE4N0MxMDIuMzc5IDE4LjMwMDYgMTAzLjM1NCAxOC4xMjU1IDEwNC4zNyAxOC4xMjU1QzEwOS4yMDIgMTguMTI1NSAxMTMuMTE5IDIyLjA0MzMgMTEzLjExOSAyNi44NzQ1QzExMy4xMTkgMjcuODkwMSAxMTIuOTQ0IDI4Ljg2NDggMTEyLjYyNSAyOS43NzI0SDEyMy4yMDlDMTI0Ljc4OSAyOS43NzI0IDEyNi4wNyAyOC40OTEyIDEyNi4wNyAyNi45MTFWMTQuMzk4OEwxMTMuNzcxIDMuMTI1NDlaTTEwNC4zNyAyMy43NDlDMTAyLjY0MyAyMy43NDkgMTAxLjI0NCAyNS4xNDgzIDEwMS4yNDQgMjYuODc0NUMxMDEuMjQ0IDI4LjYwMDcgMTAyLjY0MyAzMCAxMDQuMzcgMzBDMTA2LjA5NiAzMCAxMDcuNDk1IDI4LjYwMDcgMTA3LjQ5NSAyNi44NzQ1QzEwNy40OTUgMjUuMTQ4MyAxMDYuMDk2IDIzLjc0OSAxMDQuMzcgMjMuNzQ5WiIgZmlsbD0iYmxhY2siLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xMzBfMTA5NzQiPgo8cmVjdCB3aWR0aD0iMTI2LjA3IiBoZWlnaHQ9IjMwIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=') center / contain no-repeat; }
.shop-header__nav { display: inline-flex; align-items: center; gap: var(--space-l); }

/* A page with a docked bar ends a bar's height early, so the last of the
   page is never underneath it. */
@media (max-width: 1023px) {
  body:has(.subnav) { padding-bottom: calc(var(--subnav-h, var(--space-min)) + var(--space-m)); }
}

/* Screen index — one card per screen in the prototype. */
.screens { display: flex; flex-direction: column; gap: var(--space-xl); }
.screens__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-m); }
.screen { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); padding: var(--space-l); min-width: 0; }
/* The screen itself, first: its first view at 16:10, a step clear of the
   status and name beneath it. */
.screen__shot { align-self: stretch; aspect-ratio: 16 / 10; margin-bottom: var(--space-s); }
/* Status + outstanding-asks badges, side by side; they wrap on a narrow tile. */
.screen__status { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

.shop-main {
  flex: 1;
  width: 100%;
  max-width: var(--container-page);
  margin-inline: auto;
  padding: var(--space-l);
  box-sizing: border-box;
}

/* Mobile: tighten side padding to 20 (keep 40 top/bottom) */
@media (max-width: 640px) {
  .shop-main { padding-inline: var(--space-m); }
  .shop-header__inner { padding: var(--space-m); }   /* nav: 20 all sides on mobile */
  .shop-header__nav { gap: var(--space-m); }
}

/* ── Order lines (the read-only summary on checkout / confirmation) ──────
   80px product thumb · name + price row. There is no cart, so a line is never
   editable — quantity reads as plain text under the name. */
.cart-line {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--space-m);
  padding-block: var(--space-m);
}
.cart-line:first-child { padding-top: 0; }
/* The subscription line has no quantity, so it centres on its image instead of
   hanging from the top. */
.cart-line--center { align-items: center; }
/* The gray product tile — ONE look for every product or service image: the
   checkout summary and the PDP rows (.sys-row__photo), both 80px. */
.cart-line__thumb, .sys-row__photo {
  box-sizing: border-box;
  border-radius: var(--radius-sm); background: var(--color-surface-alt);
  object-fit: contain; padding: var(--space-xs);
  width: 80px; height: 80px;
}
.cart-line__thumb--icon { display: inline-flex; align-items: center; justify-content: center; }
.cart-line--summary { padding-block: var(--space-s); align-items: center; }
.cart-line--summary:first-child { padding-top: 0; }
.cart-line__main { display: flex; flex-direction: column; gap: var(--space-s); min-width: 0; }
.cart-line__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-s); }
.cart-line__price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }

/* The page behind an open modal (pre-qual) must not scroll. */
body.has-drawer-open { overflow: hidden; }

/* ── Product modal compositions (the modal atom is shared with pre-qual) ──
   Slider on top, then head, price, quantity, rule, features: one stack. */
.product { gap: var(--space-m); }
.product__gallery { display: flex; flex-direction: column; gap: var(--space-s); min-width: 0; }
.product__gallery .pdp__carousel.is-single .pdp__arrow,
.product__gallery .pdp__carousel.is-single .pdp__counter { display: none; }   /* one photo: nothing to step through */
.product__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
.product__head > * { margin: 0; }
.product__price { margin: 0; }
.product__rule { margin: 0; }
.product__feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-m); }
.product__feats li { display: flex; align-items: center; gap: var(--space-m); }
.product__feats .icon { flex: 0 0 auto; }

/* ── PDP "more" band ───────────────────────────────────────────────────
   Under the buy column, on the page's ink band: four tabs over one panel at
   a time. Everything inside inherits the band's flipped tokens, so the DS
   parts (tabs, panels, disclosures) need nothing of their own. */
/* The band itself is the subtle fill; the panels on it step up to the
   surface, so a card still reads as a card. */
/* The More band wears the homepage quiz's ink theme (Visionary 6): the
   palette turned over, so tabs, specs, FAQs and arrows need no rules of
   their own. */
.moreband {
  width: 100%; background: var(--visionary-6); color: var(--gray-1);
  --color-text: var(--gray-1); --color-ink: var(--gray-1); --color-text-muted: var(--gray-1);
  --color-surface: var(--visionary-6); --color-surface-alt: var(--white-10);
  --color-border: var(--white-20); --color-border-strong: var(--white-40);
  --border-default: var(--border-width) solid var(--color-border);
}
.more {
  width: 100%; max-width: var(--container-page); margin-inline: auto; box-sizing: border-box;
  --more-pad-x: var(--space-l);
  padding: var(--space-xl) var(--more-pad-x);
  display: flex; flex-direction: column; gap: var(--space-xl);
}
/* Features: picture, title, line — straight on the band, no card or fill. */
/* One row that scrolls sideways (snapping to each feature), ~3.5 showing on
   a desktop so the cut-off one says "there's more". */
.featcards {
  display: grid; grid-auto-flow: column; grid-auto-columns: max(240px, calc((100% - 3 * var(--space-m)) / 3.5));
  gap: var(--space-m);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  overflow-y: hidden;                         /* sideways only: overflow-x alone makes y scrollable too, so a stray pixel let the row wobble up and down */
  scrollbar-width: none;                      /* no browser scrollbar: swipe, trackpad or the arrows scroll it */
  -ms-overflow-style: none;
}
.featcards::-webkit-scrollbar { display: none; }
.featcard { scroll-snap-align: start; }
/* Split-tab labels at the Large tier: the PDP's More band (Features · Tech & specs · FAQs)
   and the homepage's four membership stories. */
#more-tabs .tab, #membership-tabs .tab { font: var(--type-large); letter-spacing: var(--type-display-tracking); }
/* Their labels never wrap: each column is at least as wide as its label (and
   shares any spare width), and where the set outgrows the screen the row
   scrolls sideways instead. */
#more-tabs, #membership-tabs { grid-auto-columns: minmax(max-content, 1fr); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
#more-tabs::-webkit-scrollbar, #membership-tabs::-webkit-scrollbar { display: none; }
#more-tabs .tab, #membership-tabs .tab { white-space: nowrap; }
/* The row's arrows: bottom right, under the cards (desktop only — touch scrolls). */
.featrow__nav { display: flex; justify-content: flex-end; gap: var(--space-s); margin-top: var(--space-s); }
@media (max-width: 1023px) { .featrow__nav { display: none; } }
/* Touch widths: the row runs past the band's right padding to the screen
   edge, so the next card peeks in rather than being clipped at the gutter. */
@media (max-width: 1023px) {
  .featcards { margin-right: calc(-1 * var(--more-pad-x)); padding-right: var(--more-pad-x); scroll-padding-right: var(--more-pad-x); }
}
.overview { display: flex; flex-direction: column; gap: var(--space-m); max-width: var(--container-3xl); }
.overview > p { margin: 0; }
.appstores { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.featcard { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
.featcard__img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--space-xs); }   /* the card leads with its picture */
.pdp__overview { max-width: var(--container-3xl); }
/* Promises: install and monitoring, as stacked blocks — picture one side,
   story the other, the side alternating down the page. */
.promises {
  width: 100%; max-width: var(--container-page); margin-inline: auto; box-sizing: border-box;
  padding: var(--space-xl) var(--space-l);
  display: flex; flex-direction: column; gap: var(--space-xl);
}
.promise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: center; }
.promise__media { border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-alt); }
.promise__media img, .promise__media video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.promise--flip .promise__media { order: 2; }
.promise__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); }
.promise__copy > * { margin: 0; }
.promise__copy .bullets { margin-top: var(--space-s); }
@media (max-width: 900px) {
  .promises { padding: var(--space-l) var(--space-m); gap: var(--space-l); }
  .promise { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
  .promise--flip .promise__media { order: 0; }
}
.featcard > p { margin: 0; }
/* Tech specs: label over value, two columns, each row on its own hairline. */
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-xl); }
.specs__row { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-m) 0; border-bottom: var(--border-default); }
.specs__row dd { margin: 0; }
/* FAQs: open rows on the band — no fill, no card. Question (Small) with a
   plus/minus at the far end, the answer (Small) beneath, a hairline under
   each row. */
.faqs { display: flex; flex-direction: column; }
.faq { border-bottom: var(--border-default); }
.faq__summary { background: none; padding: var(--space-l) 0; }
.faq.is-open .faq__summary { padding-bottom: 0; }
.faq .disclosure__body { padding: var(--space-l) 0; }
.faq .disclosure__body > p { margin: 0; }
.faq__icon { flex: none; }
.faq__icon--close, .faq.is-open .faq__icon--open { display: none; }
.faq.is-open .faq__icon--close { display: inline-block; }
@media (max-width: 900px) { .featcards { grid-auto-columns: calc((100% - var(--space-s)) / 1.6); gap: var(--space-s); } }
@media (max-width: 640px) {
  .more { --more-pad-x: var(--space-m); padding: var(--space-l) var(--more-pad-x); gap: var(--space-l); }
  .featcards { grid-auto-columns: 75%; }
  .specs { grid-template-columns: minmax(0, 1fr); }
}

/* ── Other systems (PDP foot) ──────────────────────────────────────────
   The last thing on a system's page: the other systems, each stated the way
   the home grid states them — badge, picture, name, line, price, the way in.
   The card is the page's ground, so the picture carries the frame. */
.others {
  width: 100%; max-width: var(--container-page); margin-inline: auto; box-sizing: border-box;
  padding: var(--space-xl) var(--space-l);
  display: flex; flex-direction: column; gap: var(--space-xl);
}
.others__head { display: flex; flex-direction: column; align-items: center; gap: var(--space-m); text-align: center; }
.others__head > * { margin: 0; }
.others__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); }
.other {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); min-width: 0;
  background: var(--gray-2); border-radius: var(--radius-md); padding: var(--space-l);   /* each system in its own Gray 2 card, as the homepage's on a phone */
}
.other > * { margin: 0; }
.other__media { display: block; position: relative; align-self: stretch; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-alt); }
.other__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.other__cta { margin-top: auto; }   /* the buttons line up along the cards' feet */
.other__badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); min-height: var(--space-l); }   /* 40px: the tallest badge (with its icon), so both cards start their pictures level */
.other__media--bento { background: none; overflow: visible; border-radius: 0; }   /* the cells carry their own corners */
.other__media--bento .pkgrow__bento { aspect-ratio: 4 / 3; }   /* 4:3 at every width, as the homepage keeps it */
.other__media--bento .mediacell { display: block; }
.other__media--bento img { aspect-ratio: auto; height: 100%; }
@media (max-width: 768px) {
  .others { padding: var(--space-l) var(--space-m); gap: var(--space-l); }
  .others__grid { grid-template-columns: minmax(0, 1fr); }
  .other { padding: var(--space-m); }
}

/* ── Feature list (PDP Features) ───────────────────────────────────────
   Icon beside a title over its line — the product modal's feature row with
   a second line. A .btn--link under it opens the rest; its chevron turns. */
.feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-m); }
.feats li { display: flex; align-items: flex-start; gap: var(--space-m); }
.feats .icon { flex: 0 0 auto; }
.feats__text { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
#pdp-features-more.is-open .icon { transform: rotate(180deg); }

/* ── Service modal compositions (same shell as the product modal) ──────
   The film on top with its "how short it is" line, then the story blocks. */
.service-modal__film { display: flex; flex-direction: column; gap: var(--space-s); }
.service-modal__film > p { margin: 0; }
.service-modal__player { position: relative; }
.service-modal__video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: var(--color-surface-alt); object-fit: cover; }
.service-modal__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.service-modal__block { display: flex; flex-direction: column; gap: var(--space-xs); }
.service-modal__block > p { margin: 0; }
/* More air above and below each divider in the service modal (on top of the stack's own gap). */
.service-modal__rule { margin-block: var(--space-m); }

/* ── Order confirmation (confirm.html) ───────────────────────────────────
   Checkout's left side, read-only: title, then steps down the page. The
   right side is checkout's summary. Only the scheduling pieces are new. */
.confirm__number { display: flex; flex-direction: column; gap: var(--space-xs); }
.confirm__when { display: flex; flex-direction: column; gap: var(--space-xs); }
.co-step__body.confirm__info { gap: var(--space-l); }   /* wider than a step body's usual 20: each detail is its own block */
.confirm__field { display: flex; flex-direction: column; gap: var(--space-m); }   /* the title, a clear gap, then its lines */
.confirm__field > p { margin: 0; }
.confirm__card { display: flex; align-items: center; gap: var(--space-s); }   /* "Visa ···· 1111", then the mark */
.confirm__intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); }   /* pill, welcome, line, photo */
.confirm__photo { align-self: stretch; aspect-ratio: 16 / 9; margin-top: var(--space-s); }   /* the lifestyle shot, full column width */
.confirm__point { display: flex; flex-direction: column; gap: var(--space-xs); }   /* a step's name, then its line */
.schedule__group { display: flex; flex-direction: column; gap: var(--space-s); }
.schedule__group > p { margin: 0; }
.schedule__days { display: grid; grid-template-columns: repeat(7, 64px); gap: var(--space-s); }
.schedule__windows { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.schedule__more { align-self: flex-start; }
.schedule__pick { margin: 0; }
@media (max-width: 640px) { .schedule__days { grid-template-columns: repeat(auto-fill, 64px); } }

/* ── Pre-qual modal compositions (atoms live in components.css) ──────────
   The modal body is a 40px stack; these are the pieces inside it. */
.pq-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); background: var(--color-surface-alt); }
.pq-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-m); }
.pq-center :is(.type-xl, .type-large), .pq-center .type-medium, .pq-center p { margin: 0; }
.pq-accent { color: var(--color-primary); }
.pq-inline { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; margin: 0; }
.pq-back { align-self: flex-start; }
/* Review control beside the pre-qual modal — prototype chrome for jumping
   between screens. A plain XS text select, fixed top-left; no chrome. */
/* Styled like the sitemap's status marker (an outline in the review colour on
   the page ground) so it reads as a control, not part of the flow: a label
   names what it does, the select beside it lists the steps. */
.pq-demo {
  position: fixed; top: var(--space-m); left: var(--space-m); z-index: 2;
  display: flex; align-items: center; gap: var(--space-xs); width: max-content;
  padding: var(--space-xs) var(--space-s);
  background: var(--color-bg);
  border: var(--border-width) solid var(--color-status-review); border-radius: var(--radius-md);
}
.pq-demo__label { font: var(--type-xs); color: var(--color-text-muted); white-space: nowrap; }
/* The select's own chevron is a background image, and this variant drops the
   background — so the affordance is a set icon instead, sitting over the
   select's right padding (pointer-events: none, so a click still opens it). */
.pq-demo__chevron {
  position: absolute; right: var(--space-s); top: 50%;
  transform: translateY(-50%); pointer-events: none;
}
.pq-demo .select {
  border: 0; background: none; border-radius: 0;
  padding: var(--space-min) var(--space-m) var(--space-min) var(--space-min); min-width: 0; width: max-content;
  font: var(--type-xs); color: var(--color-text);
}
.pq-ok { color: var(--color-primary); }
.pq-leave { color: var(--color-error); }
.pq-fine { margin: 0; }
/* "Why do we need this?" and the line it reveals */
.pq-why { align-self: flex-start; gap: var(--space-xs); }
/* Screen 1's two-part pricing callout: the DS .panel, stacked on the modal's
   rhythm. Tighter on a phone, where the modal already loses its padding. */
.pq-callout { padding: var(--space-l); display: flex; flex-direction: column; gap: var(--space-m); }
.pq-callout > * { margin: 0; }
@media (max-width: 640px) { .pq-callout { padding: var(--space-m); } }
/* The callout's rows: device payment, service subscription, total — DS dividers between. */
#pdp-phases > .breakdown { margin-top: var(--space-l); }   /* subline → rows, the same l step as between rows */
.breakdown { display: flex; flex-direction: column; gap: var(--space-l); }
.pq-callout > .breakdown { margin-block: var(--space-m); }   /* + the callout's m gap = l above and below, matching the rows */
/* A financed offer's term box: months, then total · APR · interest (the DS
   .panel--alt fill; composition only here). */
.pq-term { align-self: stretch; display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-m); }
.pq-term > * { margin: 0; }
.pq-term__head { display: flex; align-items: baseline; gap: var(--space-s); }   /* the kind of financing sits right beside the term */
.pq-term__head > * { margin: 0; }
/* The intro's two parts: photo beside title + line, alternating sides, a DS
   divider between. On a phone each part stacks, photo first. */
.pq-parts { display: flex; flex-direction: column; gap: var(--space-l); }
.pq-parts__rule { margin-block: var(--space-min); }
.pq-part { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); align-items: center; }
.pq-part--flip .pq-part__img { order: 2; }
.pq-part__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--color-surface-alt); }
.pq-part__text { display: flex; flex-direction: column; gap: var(--space-s); }
.pq-part__text > * { margin: 0; }
@media (max-width: 640px) {
  .pq-part { grid-template-columns: 1fr; }
  .pq-part--flip .pq-part__img { order: 0; }
}
.pq-why-copy { margin: 0; }
/* Approval summary — one row per figure: label left, value right, real gaps. */
.pq-summary { display: flex; flex-direction: column; gap: var(--space-m); align-self: stretch; }
.pq-summary__cell {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-l);
  padding-bottom: var(--space-m); border-bottom: var(--border-default);
}
.pq-summary__cell:last-child { padding-bottom: 0; border-bottom: 0; }
/* Plan card insides — shared by the pre-qual offers (.optioncard) and
   checkout's payment section (.panel), so a plan reads the same either way. */
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); }
.plan__rule { width: 100%; margin-block: var(--space-min); }   /* the DS .divider, full width, no margin */
.plan__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-m); align-self: stretch; }
.plan__grid { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: var(--space-m); align-items: baseline; align-self: stretch; }
.plan__cell { display: flex; flex-direction: column; gap: var(--space-xs); }
.plan__amount { text-align: right; }
@media (max-width: 640px) {
  .plan__grid { grid-template-columns: repeat(3, 1fr); }
  .plan__amount { grid-column: 1 / -1; text-align: left; }
}

/* Pay in full / Pay in 4 choice cards — surface from the DS .panel atom */
.pq-alt {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-s);
  padding: var(--space-m);
}
.pq-alt .btn { margin-top: var(--space-xs); }
/* The ways to pay without financing, side by side with a gap; one card fills
   the row on its own. Stacked on a phone. */
.pq-alts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-m); }
@media (max-width: 640px) { .pq-alts { grid-auto-flow: row; } }

/* Review controls beside the pre-qual modal — prototype chrome for stepping
   through the flow. Plain XS text actions, inline at the top-left; no chrome,
   the same on every breakpoint. */   /* room for the chevron */

/* Address autocomplete fallback */
.pq-suggest {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s);
  padding: var(--space-m);
  align-self: stretch;
}
/* Checkout escapes the centered page column: the two halves run edge to edge
   and full height, so the receipt side is a side of the page — not a card on
   it. The fill is the divide; no gap, no radius, no border. */
.shop-checkout { flex: 1; display: flex; width: 100%; }
.checkout { flex: 1; display: grid; grid-template-columns: 1fr; align-items: stretch; }
.co-main, .co-side { min-width: 0; padding: var(--space-l); box-sizing: border-box; }
.co-main { display: flex; flex-direction: column; gap: var(--space-l); }
.co-title { margin: 0; }

@media (min-width: 1024px) {
  .checkout { grid-template-columns: 1fr 1fr; }      /* a true 50/50 */
  /* Both halves hold their content against the centre line, the way a
     standard checkout does, so the two columns read as one spread. */
  .co-main > * { width: 100%; max-width: var(--container-xl); margin-left: auto; padding-right: var(--space-xl); box-sizing: border-box; }
  .co-side > * { width: 100%; max-width: var(--container-lg); margin-right: auto; }
}
@media (max-width: 640px) {
  .co-main, .co-side { padding: var(--space-m); }
}

.co-form { display: flex; flex-direction: column; gap: var(--space-l); min-width: 0; }

/* ── Stepped checkout ─────────────────────────────────────────────────────
   One step open at a time: the open one shows its fields and Continue; the
   rest collapse to a heading — muted while still ahead, with a one-line
   recap and Edit once done. State = the three modifiers; layout only. */
.co-step { display: flex; flex-direction: column; gap: var(--space-m); }
.co-step + .co-step { padding-top: var(--space-l); border-top: var(--border-default); }
.co-step__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-m); }
.co-step__head h2 { margin: 0; }
.co-step__body { display: flex; flex-direction: column; gap: var(--space-m); }
.co-step__recap { margin: 0; }
/* The PDP services line stays under its heading when the part is open too. */
#pdp-step-services.co-step--active .co-step__recap { display: block; }
.co-step__foot { display: flex; margin-top: var(--space-s); }
.co-step--todo .co-step__title { color: var(--color-text-muted); }
/* The purchase step has no heading, so while it's still ahead there is
   nothing of it to show — it would otherwise leave a rule over empty space. */
#step-review.co-step--todo { display: none; }
.co-step--todo .co-step__body,
.co-step--todo .co-step__recap,
.co-step--todo .co-step__edit,
.co-step--done .co-step__body,
.co-step--active .co-step__recap,
.co-step--active .co-step__edit { display: none; }
#co-payment { gap: var(--space-l); }        /* the payment section breathes more */
/* Terms checkbox: column gap (m) + margin (m) = a visible --space-l each side. */
.co-terms { margin-block: var(--space-m); }
.co-terms-error { gap: 0; }
.grid-2up { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); }
@media (max-width: 640px) { .grid-2up { grid-template-columns: 1fr; } }
.co-billing { display: flex; flex-direction: column; gap: var(--space-m); }
.co-rule { width: 100%; margin-block: var(--space-min); }   /* the DS .divider, full width, no margin */

/* Payment method block — a titled container so the card fields read as one
   thing (surface + hairline from .panel; only the header fill is local). */
.co-pay { overflow: hidden; }
.co-pay__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
  padding: var(--space-m);
  background: var(--color-surface-alt);
}
.co-pay__body { display: flex; flex-direction: column; gap: var(--space-m); padding: var(--space-m); }
/* The billing toggle gets a full step of air on each side: column gap (m) +
   margin (m) = a visible --space-l above and below. */
.co-billing-same { margin-block: var(--space-m); }

/* The plan being paid on, restated in the shopper's own terms */

/* Pay in 4 — the four dates and amounts as a timeline */
.payplan { display: flex; align-self: stretch; list-style: none; margin: 0; padding: 0; gap: var(--space-s); }
/* Each step is a one-column grid, left-aligned: the mark in row 1, amount and
   date under it. The connector shares the mark's cell and centres on it
   (align-self), runs the full step plus the gap to the next mark, and the
   marks (on the surface fill) sit over its ends — so it goes mark to mark
   and never past the last one. */
.payplan__step { flex: 1 1 0; min-width: 0; display: grid; justify-items: start; gap: var(--space-xs); text-align: left; }
.payplan__step:not(:last-child)::after {
  content: ""; grid-area: 1 / 1; align-self: center; justify-self: stretch;
  height: var(--border-width); background: var(--color-border);
  margin-right: calc(-1 * var(--space-s));   /* across the gap, to the next mark */
}
.payplan__mark { grid-area: 1 / 1; position: relative; z-index: 1; background: var(--color-surface); padding-inline: 0 var(--space-xs); }
.payplan__step.is-now .payplan__mark .icon { color: var(--color-success); }
@media (max-width: 640px) {
  /* Stacked rows read better than four columns on a phone. */
  .payplan { flex-direction: column; gap: var(--space-s); }
  .payplan__step { flex-direction: row; justify-content: space-between; text-align: left; }
  .payplan__step:not(:last-child)::after { display: none; }
}

/* Totals on top, then the item list; the whole page scrolls as one (no sticky,
   no independent scroll region). A divider separates the totals from the list. */
.co-summary { display: flex; flex-direction: column; }
.co-charges { padding-bottom: var(--space-l); border-bottom: var(--border-default); }
.co-summary__lines { padding-top: var(--space-l); }

.co-summary__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-m); margin-bottom: var(--space-m); }
.co-summary__title { margin: 0; }
.co-charges { display: flex; flex-direction: column; gap: var(--space-m); }
.co-charges > * { margin: 0; }
.co-totals { display: flex; flex-direction: column; gap: var(--space-m); }   /* receipt rows */
.co-charge { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-m); }
.co-charge > span:first-child { display: flex; flex-direction: column; gap: 0; }
.co-charge > span:last-child { white-space: nowrap; }
/* Below the two-column layout the summary leads the page as a disclosure (the
   DS atom owns its look): the bar runs edge to edge so the total reads at a
   glance, and the detail underneath opens up a step on a phone. */
@media (max-width: 1023px) {
  .co-side { order: -1; padding: 0; }
  /* Stacked, Review is the last thing on the page — it needs room under it to
     read as an ending rather than a cut-off. */
  .co-main { padding-bottom: var(--space-xl); }
  .co-summary .disclosure__body { padding: var(--space-l) var(--space-m); }
  .co-summary .co-charges { gap: var(--space-l); }
  .co-summary .co-summary__head { margin-bottom: var(--space-l); }
  .co-summary .cart-line { padding-block: var(--space-m); }
}
/* ── Page intro ──────────────────────────────────────────────────────────── */
.page-head { margin-bottom: var(--space-l); }
.page-head__intent { margin-top: var(--space-s); }

/* ── Home: the plan chooser ──────────────────────────────────────────────
   Centred intro, then one column per package. Every card is a 6-row subgrid of
   the page grid (badge · name · media · description · price · CTA), so the
   rows line up across cards even when a card has no badge. The intro is
   centred; everything on a card is left aligned. */
.home-head {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-m);
  text-align: center; margin-bottom: var(--space-xl);
}
.home-head > * { margin: 0; }

.plan-grid {
  display: grid; gap: var(--space-l) var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-template-rows: repeat(5, auto);   /* name · price · photo · description · CTA */
}
/* min-width:0 all the way down the media chain: the slide image carries side
   padding, so each slide's min-content is that padding — without this the flex
   track inflates to (slides x padding) and bursts out of the column. */
/* Scoped to the home grid: .plan is also the payment plan card (checkout, PDP). */
.plan-grid > .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; justify-items: start; min-width: 0; text-align: left; }
.plan-grid > .plan > * { margin: 0; }   /* min-width:0 goes on the media chain only — never the CTA */
.plan__badge, .other__badge { position: absolute; top: var(--space-s); right: var(--space-s); display: flex; gap: var(--space-s); }   /* on the photo, top right (clear of the headline set into the image); a card may carry more than one */
/* Package badges ("Most popular", "Full Coverage"): all one chip, the same
   spec as the Products page's "Included" tag — XS type, 5/10 padding, the
   warm white, no border — with a black diamond. Set in literal tokens so the
   ink band's inverted palette can't flip them. */
.plan__badge .pill, .other__badge .pill {
  padding: var(--space-xs) var(--space-s); font: var(--type-xs);
  background: var(--gray-1); color: var(--visionary-6); border: 0;
}
.plan__badge .pill .icon, .other__badge .pill .icon { color: var(--visionary-6); }
.plan__intro { display: flex; flex-direction: column; gap: var(--space-s); }
.plan__intro > * { margin: 0; }
.plan__media { position: relative; min-width: 0; justify-self: stretch; }   /* the one row that fills the column; the frame the arrows sit in */
.plan__viewport { overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface-alt); min-width: 0; }
.plan__track { display: flex; min-width: 0; transition: transform var(--duration-base) var(--ease-standard); }
.plan__slide { flex: 0 0 100%; min-width: 0; }
/* Product cut-outs, so contain + breathing room rather than a cover crop. */
.plan__slide img {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  object-fit: contain; padding: var(--space-l); box-sizing: border-box;
}
.plan__slide img.is-hero { object-fit: cover; padding: 0; }   /* the system's hero image is composed for the square: edge to edge */
.plan__pricing { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
@media (prefers-reduced-motion: reduce) { .plan__track { transition: none; } }
/* One column: subgrid row alignment is meaningless, so let each card stack. */
@media (max-width: 640px) {
  .plan-grid { grid-template-rows: none; }
  .plan-grid > .plan { grid-row: auto; grid-template-rows: none; gap: var(--space-m); }
}
/* ── PDP — two-column layout (built from the Better System frame) ────────── */
.pdp { display: grid; gap: var(--space-l); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .pdp { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: var(--space-xl); } }   /* 60/40 gallery : detail, 80px gap */
/* The system's heading runs across the top of both columns, left aligned —
   the name and price come first, then the pictures and the detail beside
   them. */
.pdp > .pdp__name, .pdp > .pdp__price-head { grid-column: 1 / -1; }
/* The name + description, then the price: one heading block on a desktop
   (the grid's row gap pulled in to the heading's own 10px). */
.pdp__name { display: flex; flex-direction: column; gap: var(--space-s); }
.pdp__name > * { margin: 0; }
.pdp > .pdp__name { margin-bottom: calc(var(--space-s) - var(--space-l)); }
/* One column: the name and description lead, then the pictures, then the
   price and the detail. */
@media (max-width: 1023px) {
  .pdp > .pdp__name { order: -2; margin-bottom: calc(var(--space-m) - var(--space-l)); }
  .pdp > .pdp__gallery { order: -1; }
}

/* min-width:0 down the media chain: the product slides carry 80px of padding,
   so each slide's min-content is 160px and the flex track would otherwise
   inflate to (slides x 160) and burst the column on a phone. */
.pdp__gallery { display: flex; flex-direction: column; gap: var(--space-s); min-width: 0; }
@media (min-width: 1024px) { .pdp__gallery { position: sticky; top: calc(var(--subnav-h, var(--space-min)) + var(--space-l)); } }   /* --subnav-h: published by the page */
/* Gallery = one 4:3 carousel: a sliding track of full-width slides, chevron
   arrows overlaid on the sides, small pagination dots centered underneath. */
.pdp__carousel { position: relative; min-width: 0; }
.pdp__viewport { overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface-alt); min-width: 0; }
.pdp__track { display: flex; min-width: 0; transition: transform var(--duration-base) var(--ease-standard); }
.pdp__slide { flex: 0 0 100%; min-width: 0; }
.pdp__slide img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Under the photo: the dots left, the arrows bottom right (DS .btn--icon). */
.pdp__viewport { position: relative; }   /* the counter chip's frame */
.pdp__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); margin-top: var(--space-s); }
.pdp__arrows { display: flex; gap: var(--space-s); margin-left: auto; }
.pdp__carousel.is-single .pdp__nav { display: none; }   /* one photo: nothing to step through */
/* Package cards: the arrows in a row under the photo, bottom right (the Features row's placement). */
.plan__nav { display: flex; justify-content: flex-end; gap: var(--space-s); margin-top: var(--space-s); }

.pdp__dots { display: flex; justify-content: flex-start; }

/* Counter chip — overlaid bottom-center inside the frame, mobile only */
.pdp__counter { margin: 0; position: absolute; bottom: var(--space-s); left: 50%; transform: translateX(-50%); }

/* Every width shares the desktop controls — dots left, arrows bottom right —
   so the "n / total" chip stays retired (swipe still works on touch). */
.pdp__counter { display: none; }

@media (prefers-reduced-motion: reduce) { .pdp__track { transition: none; } }

.pdp__detail { display: flex; flex-direction: column; gap: var(--space-l); }
.pdp__detail h1, .pdp__detail h2, .pdp__detail p, .pdp__price-head p { margin: 0; }   /* control spacing via stack gap, not default margins */

/* PDP rhythm — every visible distance is a scale step:
     40  between blocks, and either side of both divider lines (.pdp__detail gap)
     20  a section heading to its content (first row / first payment line)
     40  device row to device row (each row's --space-m padding, doubled)
     10  lines inside the price header */
.pdp__price-head, .pdp__section, .pdp__total-block { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
.pdp__section, .pdp__total-block { gap: var(--space-m); }
/* A section's heading and its one-line subline read as one unit — a half step
   apart — then a full 40 (the section's 20 plus this 20) before the content
   they introduce. */
.pdp__section-head { display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-m); }
/* Pre-qual (link or banner) sits a step further from the price lines above:
   the header's --space-s gap plus this --space-s = a visible 20. Scoped to the
   price head so it outranks `.pdp__price-head p { margin: 0 }` — the banner is a <p>. */
.pdp__price-head .pdp__prequal { margin-top: var(--space-s); }
/* The pre-qual link reads as a line of text: left-aligned, even when it wraps. */
.btn.pdp__prequal { align-self: flex-start; justify-content: flex-start; text-align: left; }
.pdp__section > [id] { align-self: stretch; }   /* the row lists still span full width */

/* Services: the itemised rows, then why the service is worth it (bullets),
   then the short film — one stack, each block a full-width member. */
.pdp__service-more { display: flex; flex-direction: column; gap: var(--space-l); margin-top: var(--space-l); }

/* Included + customization rows share one row grid: icon · name/sub · control */
.sys-row {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center;
  gap: var(--space-m); padding: var(--space-m) 0;
}
/* The first and last rows drop their outer padding, so the heading above and
   the block below set the distance — not the row. */
.sys-row:first-child { padding-top: var(--space-min); }
.sys-row:last-child { padding-bottom: var(--space-min); }
.sys-row__photo { display: block; }
.sys-row__photo--icon { display: flex; align-items: center; justify-content: center; }   /* no product shot: its icon, centred on the tile */
.sys-row__text { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
/* Included devices: two columns on every screen. Each tile is the product on
   a 1:1 gray tile, an info icon in its upper left (opens the product modal), then
   name, what's included and the quantity beneath. */
.devtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l) var(--space-m); }
.devtile { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); min-width: 0; }
.devtile__media {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); background: var(--color-surface-alt); overflow: hidden;
  padding: 0; border: 0; color: inherit; cursor: pointer;   /* the whole image is the button */
}
.devtile__media > img { display: block; width: 100%; height: 100%; object-fit: contain; padding: var(--space-l); box-sizing: border-box; }
/* Just the icon in the corner — no container behind it. */
.devtile__open {
  position: absolute; top: var(--space-s); left: var(--space-s);
  display: inline-flex; color: var(--color-ink);
}
.devtile__open .icon { width: 20px; height: 20px; }
.user-kbd .devtile__media:focus-visible, .user-kbd .devtile__name:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
.devtile__name { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.devtile__text { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
@media (max-width: 640px) { .devtile__media > img { padding: var(--space-m); } }
/* Both PDP lines are the DS .divider; only its margin is composed away, so the
   page stack's --space-l sets the 40 on either side. ALL four margins: an
   <hr>'s browser-default inline margins are auto, and in this flex column auto
   cross-axis margins shrink the line to its content width — zero. */
.pdp__divider { margin: var(--space-min); }

/* Stacked option cards (DS .optioncard atoms): the payment picker at checkout. */
.pay-options { display: flex; flex-direction: column; gap: var(--space-s); align-self: stretch; }
.pdp__cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
/* The detail column's accordions: the whole heading row is the toggle, with
   a plus while closed and a minus while open (the FAQ's pair). A closed part
   keeps its title in full ink and shows its recap. */
/* Upgrade suggestion — a modal (the product modal's .modal--flow shell):
   the headline and why, what the next tier adds, both prices side by side,
   then the choice. */
.upgrade { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); }
.upgrade > * { margin: 0; }
.upgrade__gains { display: flex; flex-direction: column; gap: var(--space-m); width: 100%; }   /* 20 between the heading and the first device */
.upgrade__gains > p { margin: 0; }
.upgrade__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-s); }
.upgrade__item { display: flex; align-items: center; gap: var(--space-m); }
/* The product on the gray tile, the size the checkout summary uses. */
.upgrade__photo {
  flex: none; box-sizing: border-box; width: 64px; height: 64px; padding: var(--space-xs);
  border-radius: var(--radius-sm); background: var(--color-surface-alt); object-fit: contain;
  display: inline-flex; align-items: center; justify-content: center;
}
.upgrade__price { display: flex; flex-direction: column; gap: var(--space-m); width: 100%; }   /* now, then the next tier, one above the other */
.upgrade__price > div { display: flex; flex-direction: column; gap: var(--space-xs); }
.upgrade__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); margin-top: var(--space-s); }   /* the two choices stacked: the upgrade, then staying */
.pdp-acc__title { margin: 0; }
.pdp-acc__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
  width: 100%; padding: 0; background: none; border: 0;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.user-kbd .pdp-acc__toggle:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
.pdp-acc__icon { flex: none; }
.pdp-acc__icon--close, .pdp-acc.co-step--active .pdp-acc__icon--open { display: none; }
.pdp-acc.co-step--active .pdp-acc__icon--close { display: inline-block; }
/* One column has one Add to cart — the docked subnav's. Declared after the
   rule above so it wins the cascade. */
@media (max-width: 1023px) { .pdp__cta { display: none; } }

@media (max-width: 1023px) {
  .co-side { order: -1; padding-top: 0; padding-bottom: 0; }

}
/* The before/after story sits under the plan card at checkout, on the same
   step as the rest of the payment stack. */

/* ── Scheduling ───────────────────────────────────────────────────────────── */
.sched { display: flex; flex-direction: column; gap: var(--space-xl); max-width: var(--container-2xl); }

/* A product cutout sits whole in the 4:3 frame, on the frame's soft fill. */
.pdp__slide img.is-product { object-fit: contain; padding: var(--space-xl); box-sizing: border-box; }
@media (max-width: 640px) { .pdp__slide img.is-product { padding: var(--space-m); } }

/* ── Home: hero · intro · brand video · reviews ─────────────────
   The marketing top of the shop home. Every section is full-bleed; its inner
   block aligns to --container-page with the same 40px padding as .shop-main. */

/* Header over the hero: the site header — same structure as every page —
   floats over the photo with inverse ink and no fill, then fills white and
   stays pinned once the page scrolls. */
.shop-header--over {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky);
  background: transparent; border-bottom-color: transparent;
  color: var(--color-text-inverse);
  transition: background var(--duration-slow) var(--ease-standard),
              color var(--duration-slow) var(--ease-standard),
              border-color var(--duration-slow) var(--ease-standard);
}
.shop-header--over a { color: inherit; }
.shop-header--over.is-filled { background: var(--color-surface); border-bottom-color: var(--color-border); color: var(--color-text); }

/* Hero: a full-viewport crossfading slideshow under a scrim (capped at
   --hero-max), the headline centred, the slideshow controls at the foot. */
.hero {
  position: relative; height: min(100vh, var(--hero-max)); overflow: hidden;
  display: grid; place-items: center;
  color: var(--color-text-inverse);
}
/* Past 1880 wide the hero stops growing: a 1880px card with rounded corners,
   20px of page ground on every side — and the header leaves the photo to sit
   above it as the regular white bar (its filled state), pinned on scroll. */
@media (min-width: 1881px) {
  .shop-header--over { position: sticky; background: var(--color-surface); border-bottom-color: var(--color-border); color: var(--color-text); }
  .hero {
    box-sizing: border-box; width: calc(100% - 2 * var(--space-m)); max-width: 1880px;
    height: min(calc(100vh - 2 * var(--space-m)), var(--hero-max));
    margin: var(--space-m) auto; border-radius: var(--radius-md);
  }
}
.hero__bg { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity var(--duration-crossfade) var(--ease-standard);
}
.hero__slide.is-active { opacity: 1; }
/* The scrim darkens only where the copy sits: from the left on a wide
   screen, from the bottom on a phone (the copy's corner), fading out across
   the photo so its far side stays light. */
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(to top, var(--black-40) 0%, transparent 45%),   /* the copy's corner sits low, so the foot darkens too */
  linear-gradient(to right, var(--black-70) 0%, var(--black-50) 35%, var(--black-10) 70%, transparent 100%); }
@media (max-width: 640px) { .hero__scrim { background:
  linear-gradient(to bottom, var(--black-40) 0, transparent 120px),   /* a faint band under the header, so the logo reads on a light sky */
  linear-gradient(to top, var(--black-80) 0%, var(--black-50) 40%, var(--black-10) 75%, transparent 100%); } }
.hero__body {
  position: relative; z-index: 1; box-sizing: border-box;
  max-width: var(--container-4xl); padding: var(--space-xxl) var(--space-l);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-m);
  text-align: center;
}
/* The hero copy — headline (a word at a time), subline and CTA — shares the
   page's one reveal recipe (see .reveal below). It leaves all at once when a
   slide changes and returns staggered by --i × half a fast beat. */
.hero__word { display: inline-block; }
@media (max-width: 1023px) { .hero__br { display: none; } }   /* a title's set line break is desktop's: narrower, the words wrap as they fall */
.hero__body.is-shown :is(.hero__word, .hero__sub, .hero__cta) { transition-delay: calc(var(--i, 0) * var(--duration-fast) / 2); }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; box-sizing: border-box;
  max-width: var(--container-page); margin-inline: auto; padding: var(--space-l);
  display: flex; justify-content: flex-end;
}
.hero__controls { display: flex; gap: var(--space-xs); }
/* Every width: the copy stacks left, on the page's content edge (under the logo). */
.hero { justify-items: stretch; }
.hero__body {
  width: 100%; max-width: var(--container-page); margin-inline: auto;
  padding-inline: var(--space-l); align-items: flex-start; text-align: left;
}
.hero__body > * { max-width: var(--container-2xl); }
/* Every width: the copy sits bottom left, its CTA level with the slideshow controls. */
.hero { align-items: end; }
.hero__body { padding-bottom: var(--space-l); }
/* Phones: the headline is Large there, as every XL is. */
@media (max-width: 640px) {
  .hero__body { padding: var(--space-xl) var(--space-m); }
  .hero__foot { padding: var(--space-m); }
}
@media (prefers-reduced-motion: reduce) { .hero__slide, .shop-header--over { transition: none; } }

/* Intro: the eyebrow pill, a Large heading and its subline, centred. */
.intro {
  max-width: var(--container-6xl); margin-inline: auto; box-sizing: border-box;
  padding: var(--space-xl) var(--space-l) var(--space-min);   /* xl above like every section; nothing below — the systems section that follows brings its own xl */
  display: flex; flex-direction: column; align-items: center; gap: var(--space-m);   /* pill · heading · subline, same rhythm as the reviews head */
  text-align: center;
}
/* THE reveal — the one way anything on the home page arrives: a soft blur and
   a short rise settling into place over --duration-reveal. It runs on exactly
   four things: the hero copy (words staggered, then subline, then CTA), the
   h2 of each .reveal section head, each review card as it scrolls into view,
   and the membership panel as a tab hands over. Nothing else moves —
   pills, sublines, controls and plan cards are simply there. */
.hero__word, .hero__sub, .hero__cta, .reveal > h2, .review, .membership__panel {
  opacity: 0; filter: blur(var(--blur-soft)); transform: translateY(var(--space-s));
  transition: opacity var(--duration-reveal) var(--ease-emphasized),
              filter var(--duration-reveal) var(--ease-emphasized),
              transform var(--duration-reveal) var(--ease-emphasized);
}
.hero__body.is-shown :is(.hero__word, .hero__sub, .hero__cta), .reveal.is-in > h2, .review.is-in, .membership__panel.is-in {
  opacity: 1; filter: blur(0); transform: none;
}
@media (max-width: 640px) { .intro { padding: var(--space-l) var(--space-m) var(--space-min); gap: var(--space-m); } }
@media (prefers-reduced-motion: reduce) {
  .hero__word, .hero__sub, .hero__cta, .reveal > h2, .review, .membership__panel { opacity: 1; filter: none; transform: none; transition: none; }
}

/* Brand video: a silent full-bleed loop under a scrim, the statement over it
   and a play control that opens the film full screen. */
/* The film sits inside the page column like every other section, on the same
   side padding, in a rounded frame (--radius-md, the card/media radius). It
   carries no block padding of its own: the sections either side supply it. */
/* Full bleed: edge to edge, square corners. */
.brand-video { width: 100%; box-sizing: border-box; padding: 0; }
.brand-video__frame {
  position: relative; height: 80vh; overflow: hidden; border-radius: 0;
  display: grid; place-items: center;
  background: var(--color-ink); color: var(--color-text-inverse);
}
.brand-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-video__scrim { position: absolute; inset: 0; background: var(--black-40); }
.brand-video__body {
  position: relative; z-index: 1; box-sizing: border-box;
  max-width: var(--container-3xl); padding: var(--space-l);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-m);
  text-align: center;
}
/* The play mark on any film — the brand loop and the video reviews alike. */
.media-play .icon { width: 64px; height: 64px; }
/* iOS Safari draws its own play button mid-frame when autoplay is held back
   (Low Power Mode, data saver) — a second mark out of line with ours. Ours is
   the only one. */
.brand-video video::-webkit-media-controls,
.brand-video video::-webkit-media-controls-start-playback-button,
.brand-video video::-webkit-media-controls-overlay-play-button,
.review video:not([controls])::-webkit-media-controls,
.review video:not([controls])::-webkit-media-controls-start-playback-button,
.review video:not([controls])::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }   /* until it's being watched, with its own controls */
@media (max-width: 768px) { .brand-video__frame { height: auto; aspect-ratio: 3 / 4; } .brand-video__body { padding: var(--space-m); } }

/* Foundation: the film that names what every system runs on — the statement
   at one end of the frame, the two devices it names called out at the other,
   each on a scrim panel with a way through to its page. Composition only: the
   panels, buttons and thumbnails are atoms. */
.foundation {
  position: relative; overflow: hidden;
  display: grid;                                  /* one child, stretched to the frame */
  min-height: 70vh;
  background: var(--color-ink); color: var(--color-text-inverse);
}
.foundation__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foundation__scrim { position: absolute; inset: 0; background: var(--black-40); }
/* Statement and call-outs sit on the same content column as every other
   section, held to the foot of the frame. */
.foundation__body {
  position: relative; z-index: 1; box-sizing: border-box; width: 100%;
  max-width: var(--container-page); margin-inline: auto; padding: var(--space-l);
  display: grid; grid-template-columns: 1fr auto; align-items: end; align-content: end;
  gap: var(--space-l);
}
.foundation__cards { display: grid; gap: var(--space-s); width: var(--container-sm); min-width: 0; }
.foundation__card {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: var(--space-m); padding: var(--space-m); min-width: 0;
}
/* The device shot in a .panel tile — the products carry alpha, so they need
   the system's own surface behind them to read on the film. */
.foundation__thumb { display: grid; place-items: center; width: 88px; height: 88px; overflow: hidden; }
.foundation__thumb img { width: 100%; height: 100%; object-fit: contain; }
.foundation__lines { display: grid; justify-items: start; gap: var(--space-s); min-width: 0; }

@media (max-width: 900px) {
  /* Narrow: the statement sits above the call-outs, both full width. */
  .foundation { min-height: 0; }
  .foundation__body { grid-template-columns: 1fr; gap: var(--space-m); padding: var(--space-xl) var(--space-l); }
  .foundation__cards { width: auto; }
}
@media (max-width: 640px) {
  .foundation__body { padding: var(--space-l) var(--space-m); }
  .foundation__thumb { width: 64px; height: 64px; }
}

/* Membership: the one membership told four ways. A tab picks the story; its
   panel sets the same bento of three frames against the statement it belongs
   to — one cut, one side, every tab, so only the content changes as you move
   along the row. Composition only: the frames, the tabs and the button are
   atoms. */
.membership__head { display: flex; flex-direction: column; align-items: center; gap: var(--space-m); text-align: center; max-width: var(--container-3xl); margin-inline: auto; }
.membership__head > * { margin: 0; }
/* The services section's ink band: the quiz's palette turned over
   (Visionary 6), full bleed behind the section's own column. */
.membership-band {
  width: 100%; background: var(--visionary-6); color: var(--gray-1);
  --color-text: var(--gray-1); --color-ink: var(--gray-1); --color-text-muted: var(--gray-1);
  --color-surface: var(--visionary-6); --color-surface-alt: var(--white-10);
  --color-border: var(--white-20); --color-border-strong: var(--white-40);
  --border-default: var(--border-width) solid var(--color-border);
}
.membership {
  max-width: var(--container-page); margin-inline: auto; box-sizing: border-box;
  --more-pad-x: var(--space-l);            /* the feature rows bleed past this on touch widths (see .featcards) */
  padding: var(--space-xl) var(--space-l);
  display: flex; flex-direction: column; gap: var(--space-xl);
  width: 100%; min-width: 0;   /* the section is a flex item of the page's column flex: without a definite width its min-content (the scrolling tab row) would set the line's width instead */
}
.membership__panel { display: flex; flex-direction: column; gap: var(--space-m); min-width: 0; }
/* Under the row: the arrows, bottom right (desktop; touch widths swipe). */
.membership__foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-m); }
.membership__foot .featrow__nav { margin: 0; }
@media (max-width: 1023px) { .membership__foot { display: none; } }   /* touch: no arrows, so no row */

@media (max-width: 900px) {
  .membership { gap: var(--space-l); padding-inline: var(--space-m); --more-pad-x: var(--space-m); }
}
@media (max-width: 640px) {
  .membership { padding-block: var(--space-l); }
  .mediacell--contain > img { padding: var(--space-s); }
}

/* The plan chooser sits as a section of its own between the film and the
   reviews; the rule (below) marks the seam with the reviews' shared ground. */
.shop-main--section { flex: 0 0 auto; padding-block: var(--space-xl); }
@media (max-width: 640px) { .shop-main--section { padding-block: var(--space-l); } }

/* Section rule: the DS .divider between two sections on the same white
   ground, held to the content column (it stops at the page padding). */
.section-rule { width: 100%; max-width: var(--container-page); margin-inline: auto; padding-inline: var(--space-l); box-sizing: border-box; }   /* width: the body is a column flex, and auto margins would otherwise shrink it to nothing */
.section-rule > .divider { margin-block: 0; }
@media (max-width: 640px) { .section-rule { padding-inline: var(--space-m); } }

/* Reviews: a centred head, then a four-column masonry of DS panels — social
   quotes, App Store reviews and vertical video — each fading up as it scrolls
   into view. Extra cards stay hidden until Load more. */
.reviews {
  max-width: var(--container-page); margin-inline: auto; box-sizing: border-box;
  padding: var(--space-xl) var(--space-l);
  display: flex; flex-direction: column; gap: var(--space-xl);
  background: var(--color-surface);
}
.reviews__head { display: flex; flex-direction: column; align-items: center; gap: var(--space-m); text-align: center; }
/* Sets of four columns, each column its own stack, so a set always reads
   text·video·text, video·text·text, text·text·video, text·video·text. */
.reviews__grid { display: flex; flex-direction: column; gap: var(--space-m); }
.reviews__set { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-m); align-items: start; }
.reviews__set[hidden] { display: none; }
.reviews__col { display: flex; flex-direction: column; gap: var(--space-m); min-width: 0; }
.review {
  box-sizing: border-box;
  display: flex; flex-direction: column; gap: var(--space-s);
  padding: var(--space-m);
}
.review__top { display: flex; align-items: center; gap: var(--space-s); }
.review__avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius-pill); object-fit: cover; background: var(--color-surface-alt); }
.review__who { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
/* The Threads mark on a social quote — a brand mark, not a set icon, so it
   is masked from an inline data URI the way the Vivint wordmark is. */
.review__brand { margin-left: auto; --icon: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzY4M181MjQzKSI+CjxwYXRoIGQ9Ik0xMS43OTM0IDcuNDE1NjlDMTEuNzI0NSA3LjM4MjY2IDExLjY1NDUgNy4zNTA4NyAxMS41ODM2IDcuMzIwNDNDMTEuNDYwMSA1LjA0NDg1IDEwLjIxNjcgMy43NDIwOCA4LjEyODg2IDMuNzI4NzVDOC4xMTk0IDMuNzI4NjkgOC4xMDk5OSAzLjcyODY5IDguMTAwNTMgMy43Mjg2OUM2Ljg1MTczIDMuNzI4NjkgNS44MTMxMiA0LjI2MTc0IDUuMTczODYgNS4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MTg1NSA4LjM1Mjc1QzEwLjAyMDcgMTAuNDExMyA5LjA1Mzg2IDEwLjc0NTUgOC4yMDIwNyAxMC43OTIzWiIgZmlsbD0iYmxhY2siLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF82ODNfNTI0MyI+CjxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K'); }
.review__stars { display: flex; align-items: center; gap: var(--space-xs); }
.review__source { margin-left: auto; }
.review__meta { display: flex; gap: var(--space-s); }
/* Video card: the frame is 3:4, the clip fills it, a scrim carries the name. */
.review--video { position: relative; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; color: var(--color-text-inverse); }
.review__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review__grad { position: absolute; inset: 0; background: linear-gradient(to top, var(--black-60), transparent 55%); }
.review__caption { position: absolute; left: var(--space-m); right: var(--space-m); bottom: var(--space-m); z-index: 1; display: flex; flex-direction: column; gap: var(--space-xs); }
.review__play { position: absolute; inset: 0; margin: auto; z-index: 1; }   /* centred over the clip */
/* Playing in place: the name, its scrim and the play mark step aside so the
   clip's own controls (no full screen) are free to use. */
.review--video.is-playing :is(.review__grad, .review__caption, .review__play) { display: none; }
.review video::-webkit-media-controls-fullscreen-button { display: none; }
.reviews__more { display: flex; justify-content: center; }
@media (max-width: 1024px) { .reviews__set { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .reviews { padding: var(--space-l) var(--space-m); gap: var(--space-l); }
  .reviews__set { grid-template-columns: minmax(0, 1fr); }
  .reviews__grid:not(.is-more) .reviews__set:first-child .reviews__col:nth-child(n+3) { display: none; }   /* a phone opens on two columns' worth */
}

/* Quiz: the head on the left, the flow on the right, both hung from the top — a DS .dots--bar for
   progress, the question, then a 2×2 of .panel--alt answer buttons. The last
   step swaps the questions for the recommended system. Stacks on tablet. */
/* The ink band: full-bleed, the palette turned over — text and ink become the
   warm white, the fills and hairlines become white at low alpha — so the DS
   parts inside need no rules of their own. Generous room above and below. */
.quiz-band {
  width: 100%; background: var(--visionary-6); color: var(--gray-1);
  --color-text: var(--gray-1); --color-ink: var(--gray-1); --color-text-muted: var(--gray-1);
  --color-surface: var(--visionary-6); --color-surface-alt: var(--white-10);
  --color-border: var(--white-20); --color-border-strong: var(--white-40);
  --border-default: var(--border-width) solid var(--color-border);
}
.quiz-band .btn--primary { color: var(--visionary-6); }   /* the brand button keeps its ink label on the band — its fill is the same either side */
.quiz {
  width: 100%; max-width: var(--container-page); margin-inline: auto; box-sizing: border-box;
  padding: var(--space-xl) var(--space-l);   /* the one block padding every home section shares */
  display: flex; flex-direction: column; align-items: center; gap: var(--space-xl);
}
.quiz__head { display: flex; flex-direction: column; align-items: center; gap: var(--space-m); text-align: center; max-width: var(--container-3xl); }
.quiz__flow { display: flex; flex-direction: column; align-items: center; gap: var(--space-l); min-width: 0; width: 100%; }
/* The questions keep a reading width under the progress bar; the result
   opens to the page column, as a PDP does. */
.quiz__flow > .dots--bar, .quiz__step { width: 100%; max-width: var(--container-4xl); align-self: center; }   /* the bar's own align-self: stretch would pin it left once capped */
.quiz__step, .quiz__result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-l); }
.quiz__options { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m); }
.quiz__option { display: flex; align-items: center; gap: var(--space-m); padding: var(--space-l) var(--space-m); text-align: left; }
.quiz__result { gap: var(--space-m); }
/* The way forward and Start over, side by side at one width (the wider of the two); stacked on a phone. */
.quiz__actions { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-m); padding-top: var(--space-s); }
.quiz__actions > .btn { box-sizing: border-box; width: 100%; }
@media (max-width: 640px) { .quiz__actions { grid-auto-flow: row; } }
/* The recommended system, pictured: the plan card carousel (.plan__media),
   stretched to the column and cropped wider on desktop so it doesn't tower. */
/* The match: one Systems card, at a card's width, centred. */
/* The result: the PDP's split — gallery beside detail — with the detail
   left-aligned as a PDP's is. The gallery keeps the PDP's own fill (the
   subtle gray, not the band's translucent one) and 4:3 frame. */
.quiz__result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); align-items: center; text-align: left; width: 100%; }
.quiz__gallery { min-width: 0; display: flex; flex-direction: column; gap: var(--space-s); }
.quiz__gallery .pdp__viewport { background: var(--gray-2); }
.quiz__gallery .pdp__arrow { color: var(--color-ink); }   /* under the photo on the band, the arrows take the band's ink */
.quiz__detail { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); min-width: 0; }
.quiz__detail > * { margin: 0; }
.quiz__lead { display: block; }
@media (max-width: 900px) { .quiz__result { grid-template-columns: minmax(0, 1fr); } }
/* Help — a page-width section: centred head, then the ways to reach a
   person as equal columns, each centred — icon, name, a line on it, its
   outline button, every button the same width and on one line across the row —
   parted by hairlines (the divider, stood on end). On a phone they stack and
   the hairlines lie flat. */
.help {
  width: 100%; max-width: var(--container-page); margin-inline: auto; box-sizing: border-box;
  padding: var(--space-xl) var(--space-l) var(--space-xxl);   /* the page's last block: a deeper bottom (160) so it lands, not stops */
  display: flex; flex-direction: column; gap: var(--space-xl);
}
.help__head { display: flex; flex-direction: column; align-items: center; gap: var(--space-m); text-align: center; }
.help__head > * { margin: 0; }
.quiz__hint { margin: 0; }
/* The question and its hint sit together (10), a step closer than the options below them. */
.quiz__ask { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); }
.quiz__ask > p { margin: 0; }
.helpstack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.helpstack__item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-s);
  padding: var(--space-m) var(--space-l); border-left: var(--border-default);
}
.helpstack__item > p { margin: 0; }
.helpstack__item > .type-xs { max-width: 36ch; }
.helpstack__item > .btn { margin-top: auto; min-width: 0; width: 100%; max-width: 320px; box-sizing: border-box; }   /* bottom-aligned across the row; one width for all three */
.helpstack__item:first-child { border-left: 0; }
@media (max-width: 640px) {
  .help { padding: var(--space-l) var(--space-m) var(--space-xl); gap: var(--space-l); }
  .helpstack { grid-template-columns: minmax(0, 1fr); }
  .helpstack__item { border-left: 0; border-top: var(--border-default); padding: var(--space-l) 0; }
  .helpstack__item:first-child { border-top: 0; padding-top: 0; }
}
@media (max-width: 640px) {
  .quiz { padding: var(--space-l) var(--space-m); gap: var(--space-l); }
  .quiz__step { gap: var(--space-m); }
  .quiz__options { grid-template-columns: minmax(0, 1fr); gap: var(--space-s); }
  .quiz__option { padding: var(--space-m); }   /* compact, so a whole question fits one phone screen */
}

/* ── Products (products.html) — the whole catalog ────────────────────────
   Filters in a sticky rail on the left (the DS radios), the grid on the
   right: the same device tiles the PDP uses (1:1 gray tile, info icon), with
   the price and its monthly under the name. Phone: the rail sits on top,
   category and sort side by side; two tiles a row. */
.catalog { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.catalog__filters { position: sticky; top: var(--space-l); display: flex; flex-direction: column; gap: var(--space-l); }
.catalog__group { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-m); }
.catalog__group > legend { padding: 0; margin-bottom: var(--space-m); }
.catalog__options { display: flex; flex-direction: column; gap: var(--space-m); }
.catalog__rule { margin: 0; }
.catalog__results { display: flex; flex-direction: column; gap: var(--space-l); min-width: 0; }
.catalog__results > p { margin: 0; }
.catalog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--space-m); }
.catalog__item .devtile__text { gap: var(--space-xs); }
.catalog__item { height: 100%; }
.catalog__summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-s) var(--space-m); }
.catalog__summary > * { margin: 0; }
/* Included / Add-on, top right on the tile (the info icon has the top left). */
.catalog__tag { position: absolute; top: var(--space-s); right: var(--space-s); padding: var(--space-xs) var(--space-s); font: var(--type-xs); }
.catalog__tag.pill--soft { background: var(--color-surface); }   /* reads on the gray tile */
.catalog__view { margin-top: auto; }   /* the buttons line up across a row, however the names wrap */
.catalog__item .devtile__text { margin-bottom: var(--space-xs); }
.catalog__cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m);
  margin-top: var(--space-l); padding: var(--space-xl) var(--space-l);
  border-radius: var(--radius-md); background: var(--color-surface-alt);
}
.catalog__cta > * { margin: 0; }
@media (max-width: 1023px) {
  .catalog { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
  .catalog__filters { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m); }
  .catalog__rule { display: none; }
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l) var(--space-m); }
}
@media (max-width: 640px) {
  .catalog__cta { padding: var(--space-l) var(--space-m); }
  .catalog__options { gap: var(--space-s); }
}

/* ── Legal footer (every page) ───────────────────────────────────────────
   The disclosures the page's asterisks point to, on the subtle fill under
   everything else, held to the same content column as .shop-main. */
.site-footer { background: var(--color-surface-alt); border-top: var(--border-default); }
.site-footer__inner {
  max-width: var(--container-page); margin-inline: auto; box-sizing: border-box;
  padding: var(--space-l); display: flex; flex-direction: column; gap: var(--space-s);
}
.site-footer__inner > p { margin: 0; max-width: var(--container-3xl); }
.site-footer__flag { font-family: var(--font-medium); }   /* marks the copy as a placeholder until Legal signs off */
@media (max-width: 640px) { .site-footer__inner { padding: var(--space-l) var(--space-m); } }

/* ── Loading: media and blocks arrive, they don't pop ─────────────────────
   assets/media.js marks each image that hasn't decoded yet (.is-pending) and
   lifts it when it has; every frame it lands in already holds its size (an
   aspect-ratio or width/height), so arriving never moves the layout. Blocks
   built by script (.rise) take the site's one reveal as they scroll in —
   the same blur-and-settle the section heads use. Both are gated on
   html.has-media, which media.js sets, so without script nothing is hidden. */
.has-media img.is-pending { opacity: 0; }
.has-media img { transition: opacity var(--duration-reveal) var(--ease-emphasized); }
.has-media .hero__slide { transition: opacity var(--duration-crossfade) var(--ease-standard); }   /* the slideshow keeps its own crossfade */
.has-media .hero__slide.is-pending { opacity: 0; }
.has-media .rise {
  opacity: 0; filter: blur(var(--blur-soft)); transform: translateY(var(--space-s));
  transition: opacity var(--duration-reveal) var(--ease-emphasized),
              filter var(--duration-reveal) var(--ease-emphasized),
              transform var(--duration-reveal) var(--ease-emphasized);
  transition-delay: calc(var(--rise-i, 0) * var(--duration-fast) / 2);
}
.has-media .rise.is-in { opacity: 1; filter: none; transform: none; }
/* A page whose first view is built by script holds that view back (visibility,
   so nothing inside it can register as a shift) until it is complete, then
   reveals it in one settle. media.js lifts the hold if a script never does. */
.has-media [data-boot] { visibility: hidden; }
.has-media [data-boot].is-booted { visibility: visible; animation: boot-in var(--duration-reveal) var(--ease-emphasized) both; }
@keyframes boot-in { from { opacity: 0; filter: blur(var(--blur-soft)); transform: translateY(var(--space-s)); } }
@media (prefers-reduced-motion: reduce) {
  .has-media img, .has-media .rise { transition: none; }
  .has-media .rise { opacity: 1; filter: none; transform: none; }
  .has-media [data-boot].is-booted { animation: none; }
}
/* The gallery frame holds its 4:3 before its first photo decodes. */
.pdp__viewport { aspect-ratio: 4 / 3; }
.product__gallery .pdp__viewport { aspect-ratio: 4 / 3; }
/* A device with no product shot in the repo shows its set icon on the tile. */
.pdp__slide img.is-icon { object-fit: contain; padding: 25%; box-sizing: border-box; }

/* ── Systems layout switch (review aid) ─────────────────────────────────
   Two takes on the plan chooser, side by side behind one control: Option 1
   is the card grid, Option 2 the alternating rows (a bento of photos beside
   the system's story). A pill group of two buttons; the pressed one is
   filled with ink. */
.layout-switch {
  display: inline-flex; gap: var(--space-xs); padding: var(--space-xs);
  border-radius: var(--radius-pill); background: var(--color-surface-alt);
}
.layout-switch__btn {
  border: 0; cursor: pointer; font: var(--type-xs); color: var(--color-text);
  background: transparent; border-radius: var(--radius-pill);
  padding: var(--space-xs) var(--space-m);
  transition: background var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.layout-switch__btn[aria-pressed="true"] { background: var(--color-ink); color: var(--gray-1); }
.layout-switch__btn:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
[data-layout="2"] #plan-grid { display: none; }
[data-layout="1"] #pkg-rows { display: none; }

/* ── Option 2: one row per system ───────────────────────────────────────
   A bento of three frames (one tall, two stacked — the cut the Why Vivint
   panels used) on one side, the system's story on the other; the sides
   swap row to row. The tall frame carries a line of copy over a scrim. */
.pkgrows { display: flex; flex-direction: column; gap: var(--space-xl); }
.pkgrow + .pkgrow { border-top: var(--border-default); padding-top: var(--space-xl); }   /* a hairline between systems, the same air either side */
.pkgrow {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);   /* photos 50 · details 50, on every row */
  gap: var(--space-xl); align-items: center;
}
.pkgrow--flip .pkgrow__bento { order: 2; }
.pkgrow--flip .pkgrow__copy { padding-left: calc(var(--space-xl) + var(--space-l)); }   /* details on the left: inset them toward the photos, closing the gap between */
@media (max-width: 1399px) { .pkgrow--flip .pkgrow__copy { padding-left: 0; } }   /* narrower desktops: flush with the site's left padding (the columns are already close) */
.pkgrow__bento {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: 1fr 1fr;
  gap: var(--space-m); aspect-ratio: 4 / 3; min-width: 0;
}
.pkgrow__bento > .mediacell:first-child { grid-row: span 2; }
/* The same bento as a gallery slide (PDP, quiz result): it fills the 4:3 frame
   at every width, its gaps showing whatever ground it sits on — light page or
   dark band — so the frame behind it drops its own fill. */
.pdp__slide .pdp__bento { aspect-ratio: 4 / 3; background: transparent; }   /* gaps as the homepage rows: 20px, 10px from 900 down */
.pdp__viewport:has(.pdp__bento) { background: transparent; }
.pdp__bento .mediacell > img { aspect-ratio: auto; height: 100%; }
/* A promise slide: a two-column bento in the same 4:3 frame — the media 60,
   the details 40, the bento's gap between — its details real text on the
   media's subtle fill: icon, Large heading, an XS line. Sides alternate. */
.pdp__story { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-m); aspect-ratio: 4 / 3; }
.pdp__story--flip { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }   /* media on the right, still the 60 */
.pdp__story--flip > .mediacell { order: 2; }
.pdp__story .mediacell > img, .pdp__story .mediacell > video { aspect-ratio: auto; height: 100%; }
.pdp__story-copy {
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-s);
  padding: var(--space-l); border-radius: var(--radius-md); background: var(--color-surface-alt); min-width: 0;
}
.pdp__story-copy > p { margin: 0; }
.pdp__story-copy > .type-xs { color: var(--color-text-muted); }
.pdp__story-copy .icon { margin-bottom: var(--space-xs); }
.pdp__viewport:has(.pdp__story) { background: transparent; }
@media (max-width: 900px) { .pdp__story { gap: var(--space-s); } .pdp__story-copy { padding: var(--space-m); } }
/* Phones: too narrow for side by side — the media stacks over the details,
   and the frame grows to 4:5 so both fit (the bento opener fills it too). */
@media (max-width: 640px) {
  .pdp__viewport:has(.pdp__story) { aspect-ratio: 4 / 5; }
  .pdp__viewport:has(.pdp__story) :is(.pdp__track, .pdp__slide) { height: 100%; }
  .pdp__story { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; aspect-ratio: auto; height: 100%; }
  .pdp__story--flip { grid-template-columns: minmax(0, 1fr); }
  .pdp__story--flip > .mediacell { order: 0; }
  .pdp__story-copy { justify-content: flex-start; padding: var(--space-m) var(--space-m) var(--space-l); }
  .pdp__viewport:has(.pdp__story) .pdp__slide .pdp__bento { aspect-ratio: auto; height: 100%; }
}
.pkgrow__caption {
  position: absolute; inset: auto 0 0 0; margin: 0;
  padding: var(--space-xl) var(--space-m) var(--space-m);
  background: linear-gradient(to top, var(--black-60), transparent);
  color: var(--color-text-inverse);
}
/* The badge leads the details, above the name: a tag, not a button, so the
   card radius (10px) rather than the pill's. Most popular sits on the pale
   blue, Full Coverage on the pale green, each with its own deepest ink. */
.pkgrow__badges { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.pkgbadge { border: 0; border-radius: var(--radius-md); }
.pkgbadge--popular { background: var(--blue-2); color: var(--blue-6); }
.pkgbadge--full { background: var(--visionary-2); color: var(--visionary-6); }
.pkgbadge .icon { color: currentColor; }
.pkgrow__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); min-width: 0; }
.pkgrow__copy > * { margin: 0; }
.pkgrow__copy .bullets { grid-template-columns: repeat(2, fit-content(calc(50% - var(--space-l) / 2))); row-gap: var(--space-m); column-gap: var(--space-l); align-self: stretch; }   /* two columns as wide as their lines (half the row at most, then they wrap), 40px apart */
.pkgrow__copy .bullets--stack { grid-template-columns: max-content; }   /* a short list: one column */
.pkgrow__copy .bullets li { align-items: center; gap: var(--space-s); }
.pkgrow__copy .bullets .icon { width: 24px; height: 24px; }
/* Devices included: the PDP FAQ row (hairlines, plus/minus), closed by
   default; inside, one pill per device, stacked. */
.pkgrow__devices { align-self: stretch; border: 0; }   /* no hairlines: the row reads on its own */
.pkgrow__devices .faq__summary { padding: var(--space-m) 0; }
.pkgrow__devices.is-open .faq__summary { padding-bottom: var(--space-m); }
.pkgrow__devices .disclosure__body { padding: 0 0 var(--space-m); }
.pkgrow__includes { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
.pkgrow__includes .pill { gap: var(--space-xs); }
.pkgrow__price { display: flex; flex-direction: column; gap: var(--space-xs); }
.pkgrow__price > p { margin: 0; }
.pkgrow__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); }
@media (max-width: 900px) {
  .pkgrows { gap: var(--space-l); }
  .pkgrow { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); }
  /* Stacked, the rows run together: a rule marks where each system starts. */
  .pkgrow + .pkgrow { border-top: var(--border-default); padding-top: var(--space-l); }
  .pkgrow--flip .pkgrow__bento { order: 0; }
  .pkgrow--flip .pkgrow__copy { padding-left: 0; }
  .pkgrow__bento { gap: var(--space-s); }
}
@media (max-width: 640px) {
  /* Phones: each system in its own Gray 2 card instead of a rule between them,
     the first card closer to the intro above it (40px, not 80). */
  #systems > .home-head { margin-bottom: var(--space-l); }
  .pkgrows { gap: var(--space-m); }
  .pkgrow { background: var(--gray-2); border-radius: var(--radius-md); padding: var(--space-m); }
  .pkgrow + .pkgrow { border-top: 0; padding-top: var(--space-m); }
  .pkgrow__bento { aspect-ratio: 1 / 1; }
  .pkgrow__caption { padding: var(--space-l) var(--space-s) var(--space-s); font: var(--type-small); }
}
