/* comeback.tansolutions.org: editorial craft primitives, header, locale popover, menu and footer.
   Loaded on every page right after /brand/brand.css, which stays byte-identical to design/brand.css (pinned by
   design/brand.sha256 and shared with the studio site). Tokens only from brand.css; no new colours. */

/* ---------- Typography & Editorial Craft primitives (Stage 1) ---------- */
h1, h2, h3 { text-wrap: balance; hyphens: manual; }
p, li { text-wrap: pretty; }

.stage-editorial {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--stage); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 3vw, 3.75rem) clamp(1.5rem, 1rem + 3vw, 3.75rem) clamp(4.25rem, 3rem + 5.5vw, 8rem);
}
.stage-editorial .product-frame { position: relative; z-index: 1; max-width: 34rem; margin-inline: auto; }

.card-editorial {
  display: grid; gap: var(--s-3); align-content: start;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.card-editorial { text-decoration: none; color: inherit; }
a.card-editorial:hover, .card-editorial:has(> a:hover) { border-color: var(--line-strong); box-shadow: var(--shadow-frame); }
.card-editorial h3 { font-size: var(--t-lg); letter-spacing: -0.015em; }
.card-editorial p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.card-editorial-kicker { margin: 0; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep); }

.metric-strip {
  display: grid; gap: var(--s-4); margin: 0; padding: var(--s-5) 0; list-style: none;
  border-block: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.metric-strip li { display: grid; gap: var(--s-1); align-content: start; }
.metric-value { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric-label { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.4; }
@media (min-width: 40rem) {
  .metric-strip { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s-5); }
}

.table-editorial-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.table-editorial { width: 100%; border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; text-align: left; }
.table-editorial th, .table-editorial td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-editorial thead th { background: var(--paper-2); color: var(--ink); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.table-editorial tbody tr:last-child th, .table-editorial tbody tr:last-child td { border-bottom: 0; }
.table-editorial th[scope="row"] { font-weight: 700; color: var(--ink); }
.table-editorial td { color: var(--ink-2); }
.table-editorial .is-comeback { background: var(--accent-tint); color: var(--ink); font-weight: 600; }

.pill-live {
  display: inline-flex; align-items: center; gap: 0.45rem; max-width: 100%;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem; border-radius: var(--r-pill);
  background: var(--accent-tint); border: 1px solid var(--line); color: var(--ink);
  font-size: var(--t-xs); font-weight: 700; line-height: 1.35;
  overflow-wrap: break-word;
}
.pill-live::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
.pill-live a { min-width: 0; color: inherit; text-decoration: none; }
.pill-live a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.split-editorial { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 64rem) {
  .split-editorial { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; }
  .split-editorial-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5);
  margin: 0; padding: var(--s-4) 0 0; list-style: none;
  border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2);
}
.trust-strip li { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-strip a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* High-contrast dark ink band overrides */
.band-ink a:not(.btn) { color: var(--on-ink); }
.band-ink .muted, .band-ink .metric-label { color: var(--on-ink-2); }
.band-ink .metric-value { color: var(--on-ink); }
.band-ink .metric-strip { border-color: rgb(255 255 255 / 0.16); }
.band-ink .card-editorial { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.16); color: var(--on-ink); }
.band-ink .card-editorial p { color: var(--on-ink-2); }
.band-ink .pill-live { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.22); color: var(--on-ink); }
.band-ink .pill-live::before { background: var(--berry-tint); }
.band-ink .trust-strip { border-top-color: rgb(255 255 255 / 0.16); color: var(--on-ink-2); }
.band-ink .trust-strip a { color: var(--on-ink); }

@media (forced-colors: active) {
  .outcome-card b::before, .pill-live::before { background: Highlight; }
}

/* ---------- Header: install button at every width + native locale popover (Stage 2) ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-header .header-end .header-cta { display: inline-flex; min-height: 2.75rem; align-items: center; }
.header-cta .cta-full, .header-cta .cta-tiny { display: none; }
.nav a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
@media (min-width: 64rem) and (max-width: 74.99rem) {
  .site-header .nav a { padding-inline: 0.55rem; }
  .site-header .header-bar { gap: var(--s-4); }
}

.locale-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.65rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); color: var(--ink-2);
  font: inherit; font-size: var(--t-sm); font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.locale-trigger:hover { background: var(--paper-2); border-color: var(--line-strong); color: var(--ink); }
.locale-icon, .locale-caret { flex: none; }
.locale-caret { opacity: 0.7; }

.locale-popover {
  position: fixed;
  inset: calc(var(--header-h) + var(--s-2)) max(var(--gutter), calc((100vw - var(--shell)) / 2)) auto auto;
  margin: 0; width: min(17.5rem, calc(100vw - 2 * var(--gutter)));
  padding: var(--s-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-frame);
}
.locale-popover::backdrop { background: transparent; }
@supports (anchor-name: --a) and (top: anchor(bottom)) {
  .locale-trigger { anchor-name: --locale-trigger; }
  .locale-popover {
    position-anchor: --locale-trigger;
    inset: auto;
    top: calc(anchor(bottom) + var(--s-2));
    right: anchor(right);
  }
}
.locale-popover-head {
  margin: 0; padding: var(--s-2) var(--s-3) var(--s-1);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.locale-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.125rem; }
.locale-list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 2.75rem; padding: 0.5rem 0.75rem; border-radius: var(--r-md);
  color: var(--ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none;
}
.locale-list a:hover { background: var(--paper-2); }
.locale-list a[aria-current="true"] { background: var(--accent-tint); color: var(--ink); font-weight: 700; }
.locale-tag { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; }
.locale-list a[aria-current="true"] .locale-tag { color: var(--accent-deep); }

/* Phones: lockup, install, menu. Locale pills live inside the mobile menu (and footer). German/French keep this
   layout up to 36rem, where longer labels would otherwise crowd the row. */
@media (max-width: 29.99rem) {
  .header-bar, .header-end { gap: var(--s-2); }
  .header-end .locale-trigger { display: none; }
  .header-cta .cta-short:not(:last-child) { display: none; }
  .header-cta .cta-tiny { display: inline; }
  .site-header .header-cta { padding-inline: 0.75rem; }
  /* The menu button keeps its name for screen readers and shows the three bars only. */
  .menu-button { width: 2.75rem; padding: 0; justify-content: center; }
  .menu-button .menu-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
@media (min-width: 30rem) and (max-width: 35.99rem) {
  .site-header-long .header-bar, .site-header-long .header-end { gap: var(--s-2); }
  .site-header-long .header-end .locale-trigger { display: none; }
  .site-header-long .header-cta .cta-short:not(:last-child) { display: none; }
  .site-header-long .header-cta .cta-tiny { display: inline; }
  .site-header-long .menu-button { width: 2.75rem; padding: 0; justify-content: center; }
  .site-header-long .menu-button .menu-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
/* 320-360 px: the endorsement line shows in the footer only, so the install button keeps its row. */
@media (max-width: 22.5rem) {
  .header-bar, .header-end { gap: var(--s-1); }
  .site-header .header-cta { padding-inline: 0.5rem; }
  .header-bar .lockup-by { display: none; }
}
/* Wide screens: the full label, "Install free on Shopify". */
@media (min-width: 80rem) {
  .header-cta .cta-short { display: none; }
  .header-cta .cta-full { display: inline; }
}
/* German/French between 64 and 70rem: the menu button replaces the long nav, the install button stays. */
@media (min-width: 64rem) and (max-width: 69.99rem) {
  .site-header-long .header-end .header-cta { display: inline-flex; }
}

/* ---------- Mobile menu (native popover): top CTA, Product, Resources, 4 Locale pills ---------- */
.menu-cta-top { padding: var(--s-2) 0 var(--s-4); border-bottom: 1px solid var(--line); }
.menu-cta-top .btn { width: 100%; min-height: 3rem; }
.menu-group { padding-top: var(--s-4); }
.menu-group + .menu-group { margin-top: var(--s-4); border-top: 1px solid var(--line); }
.menu-group-label {
  margin: 0 0 var(--s-2); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.menu .menu-main a:not(.btn) { display: grid; gap: 0.125rem; align-content: center; min-height: 3.5rem; padding-block: var(--s-2); }
.menu .menu-title { font-size: var(--t-lg); font-weight: 700; line-height: 1.2; }
.menu .menu-desc { font-size: var(--t-sm); font-weight: 400; color: var(--ink-2); line-height: 1.4; }
.menu a[aria-current="true"] .menu-title,
.menu a[aria-current="page"] .menu-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.menu a[aria-current="page"] { text-decoration: none; }
.menu .menu-resources { display: grid; gap: 0.125rem; }
.menu .menu-resources li + li { border-top: 0; }
.menu .menu-resources a:not(.btn) {
  display: flex; align-items: center; min-height: 2.75rem; padding-block: var(--s-1);
  font-size: var(--t-md); font-weight: 600; color: var(--ink-2);
}
.menu .menu-resources a:not(.btn):hover { color: var(--ink); }
.menu .menu-resources a[aria-current="page"],
.menu .menu-resources a[aria-current="true"] {
  color: var(--ink); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em;
}
.menu .menu-locales { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.menu .menu-locales li + li { border-top: 0; }
.menu a.menu-locale-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0.5rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none;
}
.menu a.menu-locale-pill:hover { border-color: var(--line-strong); background: var(--paper-3); }
.menu a.menu-locale-pill[aria-current="true"] {
  background: var(--accent-tint); border-color: var(--accent); color: var(--accent-deep); font-weight: 700; text-decoration: none;
}
@media (min-width: 40rem) {
  .menu .menu-main, .menu .menu-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
  .menu .menu-main li + li { border-top: 0; }
  .menu .menu-main li { border-bottom: 1px solid var(--line); }
  .menu-cta-top .btn { width: auto; }
}

/* ---------- Footer: brand, then Product, Help, Legal, Company ---------- */
.footer-col { min-width: 0; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.footer-col ul { gap: var(--s-1); }
.footer-col li > a { display: inline-flex; align-items: center; min-height: 2rem; }
.footer-sibling { gap: var(--s-2); align-items: flex-start !important; padding-block: 0.25rem; }
.footer-sibling .tile { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; }
.footer-sibling > span { display: grid; gap: 0.125rem; }
.footer-sibling-name { font-weight: 600; color: var(--ink); }
.footer-sibling-desc { font-size: var(--t-xs); line-height: 1.4; color: var(--ink-2); }
.footer-col a[data-consent-open] { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr); grid-auto-columns: minmax(0, 1fr); }
}
.footer-base { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.footer-lang { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin: 0; padding: 0; list-style: none; font-weight: 600; }
.footer-lang a { color: var(--ink-2); }
.footer-lang [aria-current] { color: var(--ink); }

/* ---------- Hero grammar, shared by the home and the product pages (redesign phase 3, 14 Nov 2026) ----------
   docs/specs/site-redesign-2026-11-14.md §3.1/§4: category line, H1, lead, one primary action, true facts, and the
   real screen on the berry-tint stage with the Comeback glyph and two code-rendered outcome cards. Moved here from
   home.css (same rules, loaded earlier, so the home renders as before). */
/* The Comeback glyph drawn large on a berry-tint stage, cropped by the stage edges, behind the real screen. */
.hero-stage { position: relative; overflow: hidden; isolation: isolate; background: var(--accent-tint); padding: clamp(1rem, 0.4rem + 2.4vw, 2.75rem); }
/* Studio-photo stage (Nano Banana Pro scenes): full-bleed decorative backdrop behind the untouched real UI frame. */
.stage-studio { position: relative; overflow: hidden; isolation: isolate; background: var(--stage); border-radius: var(--r-xl); }
.stage-scene { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; }
.stage-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-stage.stage-studio { padding: clamp(1rem, 0.5rem + 2vw, 2.25rem) clamp(1rem, 0.5rem + 2vw, 2.25rem) clamp(3.5rem, 2.5rem + 4.5vw, 7.25rem); }
/* Founding offer pill (raised to hero, Home EN/DE). */
.status-founding { background: var(--accent-tint); border: 1px solid var(--line); color: var(--ink); }
.status-founding::before { background: var(--accent); }
.status-founding a { text-decoration: none; }
.status-founding a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 39.99rem) {
  .status-founding { font-size: var(--t-xs); padding: 0.25rem 0.65rem 0.25rem 0.55rem; }
}
/* Featured Founding Starter plan card + aligned per-card CTA buttons (Home + Pricing). */
.plan-featured { position: relative; border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accent-tint) 0%, var(--paper) 6.5rem); }
.plan-badge { display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start; max-width: 100%; padding: 0.2rem 0.65rem; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.01em; }
.plan-founding { margin: 0; padding: 0.65rem 0.8rem; border-radius: var(--r-md); background: var(--accent-tint); border: 1px solid var(--line); font-size: var(--t-sm); line-height: 1.4; color: var(--ink); }
.plan-founding strong { color: var(--accent-deep); }
.plan-cta { margin-top: auto; padding-top: var(--s-2); }
.plan-cta .btn { width: 100%; }
.plan-trial-note { margin: var(--s-2) 0 0; font-size: var(--t-xs); line-height: 1.4; color: var(--ink-2); }
/* Architectural EU studio card (Home + EU pages): clean left copy over Nano Banana Pro concept-3 scene. */
.eu-banner { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); background: var(--paper-2); }
.eu-banner .stage-scene img { object-position: right center; }
.eu-banner-body { position: relative; z-index: 1; display: grid; gap: var(--s-4); max-width: 36rem; }
.eu-banner-body h2 { font-size: var(--t-2xl); }
.eu-banner-body p { color: var(--ink-2); }
@media (max-width: 47.99rem) {
  .eu-banner::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgb(255 255 255 / 0.92) 0%, rgb(255 255 255 / 0.82) 100%); pointer-events: none; }
}
@media (min-width: 48rem) {
  .eu-banner::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgb(255 255 255 / 0.92) 0%, rgb(255 255 255 / 0.78) 52%, rgb(255 255 255 / 0.08) 82%); pointer-events: none; }
}
/* Two-column plan grid (/in/): stays 2-up on wide screens instead of 4-up. */
@media (min-width: 40rem) {
  .plans.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; }
}
.closing-trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-6) 0 0; padding: var(--s-4) 0 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 0.16); font-size: var(--t-sm); color: var(--on-ink-2); }
.closing-trust a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 0.2em; }

/* India landing (/in/) studio hero composite over Nano Banana Pro concept-2b scene. */
.in-stage.stage-studio { padding: clamp(1rem, 0.6rem + 1.5vw, 1.75rem); padding-bottom: clamp(10rem, 34vw, 13.5rem); display: flex; align-items: flex-start; }
.in-stage .stage-scene img { object-position: right bottom; }
.in-flow-card { position: relative; z-index: 1; width: 100%; max-width: 20.5rem; background: rgb(255 255 255 / 0.96); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); box-shadow: var(--shadow-frame); display: grid; gap: var(--s-3); }
.in-flow-kicker { margin: 0; font-size: var(--t-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.in-flow-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); counter-reset: inf; }
.in-flow-list li { counter-increment: inf; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: var(--s-3); align-items: start; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.in-flow-list li::before { content: counter(inf); width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: var(--t-xs); font-weight: 800; }
.in-flow-list li.is-last { border-style: dashed; background: var(--paper-2); }
.in-flow-list li.is-last::before { background: var(--paper); color: var(--ink-2); border: 1.5px solid var(--line-strong); }
.in-flow-list b { display: block; font-size: var(--t-sm); color: var(--ink); line-height: 1.25; }
.in-flow-list span { display: block; font-size: var(--t-xs); color: var(--ink-2); line-height: 1.35; margin-top: 0.1rem; }
.in-flow-foot { margin: 0; font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); }
@media (min-width: 64rem) {
  .in-stage.stage-studio { min-height: 28rem; padding: var(--s-5) clamp(11rem, 24vw, 17rem) var(--s-5) var(--s-5); align-items: center; }
}
/* The art layer clips the glyph itself, so the stage never overflows (WCAG 1.4.12 check) and no glyph part sits past the viewport at 320-390 px. */
.stage-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.stage-glyph { position: absolute; width: 104%; height: auto; right: -34%; top: -10%; opacity: 0.16; }
.hero-stage .product-frame { z-index: 1; }
/* Three true facts under the install button, each with the "ok" check mark. */
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0; padding: 0; list-style: none; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-facts .fact-icon { flex: none; width: 1.05rem; height: 1.05rem; color: var(--ok); }
/* Two outcome cards that quote the real screen's numbers: a row under the frame, lifted over its lower edge at 64rem+. */
.hero-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.outcome-card { display: grid; gap: 0.15rem; align-content: start; padding: 0.7rem 0.95rem 0.8rem; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-frame); font-size: var(--t-sm); line-height: 1.35; }
.outcome-card b { display: flex; align-items: center; gap: 0.45rem; color: var(--accent-deep); }
.outcome-card b::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }
.outcome-card span { color: var(--ink); font-weight: 600; }
@media (min-width: 64rem) {
  .hero-cards { grid-template-columns: repeat(2, minmax(0, 12rem)); justify-content: end; margin: -1.75rem var(--s-4) 0 0; }
}

/* Product page heroes (.hero-page: how it works, demo, EU withdrawal EN/DE, the German landing pages). Below 64rem
   the copy and the primary action come before the visual (brand.css puts the visual after the H1, which pushed the
   install button under the consent bar at 390 and 768 px). */
.hero-page .hero-copy > .crumbs { margin: 0; }
.hero-page .actions { align-items: center; gap: var(--s-3) var(--s-5); }
.hero-link { display: inline-block; padding-block: 0.6rem; font-weight: 700; }
.hero-page .hero-product .pf-phone { max-width: 22rem; margin-inline: auto; }
@media (max-width: 63.99rem) {
  .hero-page .hero-copy > * { order: 7; }
  .hero-page .hero-copy > .crumbs { order: 1; }
  .hero-page .hero-copy > .status, .hero-page .hero-copy > .pill-live { order: 2; justify-self: start; }
  .hero-page .hero-copy > h1 { order: 3; max-width: 16ch; }
  .hero-page .hero-copy > .lead { order: 4; }
  .hero-page .hero-copy > .actions { order: 5; }
  .hero-page .hero-copy > .hero-facts { order: 6; }
  .hero-page .hero-product { order: 8; margin-top: var(--s-4); }
}
@media (max-width: 39.99rem) {
  .hero-page .lead { font-size: var(--t-md); line-height: 1.5; }
  .hero-page .hero-facts { flex-direction: column; gap: var(--s-2); }
}
@media (min-width: 64rem) {
  .hero-page .hero-copy { display: grid; gap: var(--s-5); align-content: start; }
  .hero-page .hero-copy > * { margin: 0; }
}
/* A product hero with no visual (phase 4: pricing, compare, alternatives): one column, the lead held to a reading width. */
.hero-solo .hero-copy > .lead { max-width: 60ch; }
@media (min-width: 64rem) {
  .hero-page.hero-solo .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-page.hero-solo h1 { max-width: 22ch; }
}
/* Lines on every plan card under the cap ("$0 per return"): the ok tick, ink text (pricing.mjs cardLines). */
.plan-line { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-weight: 700; color: var(--ink); }
/* Four across: hold the allowance to two lines so every card's tick line and list start at one height. */
@media (min-width: 72rem) { .plan .plan-cap { min-height: calc(2 * 1.5em); } }
/* Calculator: inputs share a baseline when one field carries a hint. */
.calc-fields { align-items: end; }
.plan-line .fact-icon { flex: none; width: 1.05rem; height: 1.05rem; color: var(--ok); }
/* A tall phone capture shown from its top (how it works): CSS crop only, the pixels stay untouched (D115.20). */
.hero-page .pf-crop { aspect-ratio: 4 / 5; overflow: hidden; }
.hero-page .pf-crop img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* How it works: each step as a row, the text first and its real screens beside it from 64rem. */
.how-flow { padding-block: var(--s-7) var(--section); }
.how-flow > .fine { margin: 0 0 var(--s-5); }
.how-row { display: grid; gap: var(--s-5); padding-block: var(--s-7); border-top: 1px solid var(--line); }
.how-row .prose { max-width: 40rem; }
.how-row .prose > h2:first-child { margin-top: 0; }
.how-shots { display: grid; gap: var(--s-5); justify-items: center; align-content: start; }
.how-shots .shot-fig { margin: 0; width: 100%; max-width: 24rem; padding: var(--s-4); border-radius: var(--r-xl); background: var(--stage); border: 1px solid var(--line); }
.how-shots .shot-fig img { display: block; width: 100%; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow-frame); }
@media (min-width: 64rem) {
  .how-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
}
/* Demo page: live demo store + YouTube tour side by side, matching Home's companion strip. */
.demo-pair { display: grid; gap: var(--s-5); }
.demo-pair-card { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); }
.demo-pair-card h2 { font-size: var(--t-xl); margin: 0; }
.demo-pair-card p { margin: 0; color: var(--ink-2); }
.demo-pair-card .actions { margin-top: var(--s-1); align-items: center; }
@media (min-width: 56rem) {
  .demo-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}
/* Alternatives hub: crisp 4-point buyer checklist grid. */
.alt-checklist { display: grid; gap: var(--s-4); margin: var(--s-5) 0 0; padding: 0; list-style: none; counter-reset: altc; }
.alt-checklist li { counter-increment: altc; display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.alt-checklist h3 { margin: 0; font-size: var(--t-lg); }
.alt-checklist h3::before { content: counter(altc) ". "; color: var(--accent-deep); }
.alt-checklist p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }
@media (min-width: 48rem) {
  .alt-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Code blocks (help 13's Analytics query, 15 Nov 2026) ----------
   brand.css styles inline code only. A query block wraps at phone widths instead of pushing the page sideways
   (390 px overflow, consent-overlap check). Soft wraps add no line breaks, so a copied query stays exact. */
pre { margin: 1rem 0; padding: 0.75rem 1rem; background: var(--paper-2); border-radius: var(--r-sm); font-family: var(--mono); font-size: 0.875rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
pre code { padding: 0; background: none; font-size: inherit; }
