/* Weio shared shell and page styles (OVERHAUL-1204, candidate r1; base: direction D, conversion first).
   Loaded after fonts.css and tokens.css on pages with <html data-theme-auto>.
   Uses --w-* tokens only; follows prefers-color-scheme through the data-theme-auto hook in tokens.css. */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--w-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.c-body {
  margin: 0;
  background: var(--w-paper);
  color: var(--w-ink);
  font: 400 var(--w-fs-body)/var(--w-lh-body) var(--w-sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.c-body.has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

.c-body a { color: var(--w-gold-ink); text-underline-offset: 3px; }
.c-body a:hover { text-decoration-thickness: 2px; }
.c-body :focus-visible { outline: 2px solid var(--w-focus); outline-offset: 2px; border-radius: 4px; }
.c-body code, .c-body pre, .c-mono { font-family: var(--w-mono); }
.c-body code { font-size: .92em; background: var(--w-sunk); padding: 1px 6px; border-radius: var(--w-r-xs); }
.c-body h1, .c-body h2, .c-body h3, .c-body p { margin: 0; }
.c-body ul { margin: 0; padding: 0; list-style: none; }

.c-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.c-skip { position: absolute; left: 16px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: var(--w-r-sm); background: var(--w-gold); color: var(--w-on-gold) !important; font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.c-skip:focus { transform: none; }

.c-wrap { width: 100%; max-width: var(--w-max); margin: 0 auto; padding-inline: var(--w-gutter); }
.c-narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--w-tap); padding: 10px 20px; border-radius: var(--w-r-pill);
  font: 500 var(--w-fs-ui)/1.2 var(--w-sans); text-decoration: none; text-align: center;
  border: 1px solid var(--w-line-2); background: var(--w-raise); color: var(--w-ink) !important;
  cursor: pointer; transition: background var(--w-dur-1) var(--w-ease), border-color var(--w-dur-1) var(--w-ease);
}
.c-btn:hover { border-color: var(--w-ink-3); }
.c-btn--gold { background: var(--w-gold); border-color: var(--w-gold); color: var(--w-on-gold) !important; font-weight: 600; }
.c-btn--gold:hover { background: var(--w-gold-hover); border-color: var(--w-gold-hover); }
.c-btn--solid { background: var(--w-solid); border-color: var(--w-solid); color: var(--w-on-solid) !important; }
.c-btn--solid:hover { background: var(--w-solid-hover); border-color: var(--w-solid-hover); }
.c-btn--quiet { background: transparent; border-color: transparent; color: var(--w-ink-2) !important; }
.c-btn--quiet:hover { color: var(--w-ink) !important; border-color: var(--w-line-2); }
.c-btn--lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.c-btn--block { width: 100%; }

/* ---------- Header ---------- */
.c-header { position: sticky; top: 0; z-index: var(--w-z-header); background: var(--w-header-bg); box-shadow: inset 0 -1px 0 var(--w-line); }
.c-header__in { display: flex; align-items: center; gap: 20px; min-height: var(--w-header-h); position: relative; }
.c-logo { display: inline-flex; align-items: center; flex: none; min-height: var(--w-tap); }
.c-logo img { display: block; height: 28px; width: auto; }
.c-nav { display: flex; gap: 4px; margin-right: auto; }
.c-nav a { display: inline-flex; align-items: center; min-height: var(--w-tap); padding: 0 12px; border-radius: var(--w-r-pill); color: var(--w-ink-2); text-decoration: none; font-size: var(--w-fs-ui); white-space: nowrap; }
.c-nav a:hover { color: var(--w-ink); background: var(--w-sunk); }
.c-nav a[aria-current="page"] { color: var(--w-ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--w-gold-ink); border-radius: 0; }
.c-header__end { display: flex; align-items: center; gap: 8px; flex: none; }
.c-burger { display: none; width: var(--w-tap); height: var(--w-tap); padding: 0; align-items: center; justify-content: center; border-radius: var(--w-r-sm); border: 1px solid var(--w-line-2); background: var(--w-raise); color: var(--w-ink); cursor: pointer; }
.c-burger .x { display: none; }
.c-header.is-open .c-burger .bars { display: none; }
.c-header.is-open .c-burger .x { display: block; }
.c-drawer { display: none; }
.c-drawer[hidden] { display: none !important; }

@media (max-width: 1020px) {
  .c-nav, .c-header__end .c-signin { display: none; }
  .c-header__in { gap: 10px; }
  .c-header__end { margin-left: auto; }
  .c-burger { display: inline-flex; }
  .c-header.is-open .c-drawer {
    display: grid; gap: 2px; position: absolute; left: 0; right: 0; top: var(--w-header-h);
    padding: 8px var(--w-gutter) 20px; background: var(--w-paper); box-shadow: inset 0 -1px 0 var(--w-line), var(--w-shadow-2);
    max-height: calc(100vh - var(--w-header-h)); overflow-y: auto;
  }
  .c-drawer a:not(.c-btn) { display: flex; align-items: center; min-height: 48px; padding: 0 4px; color: var(--w-ink); text-decoration: none; font-size: 16px; box-shadow: inset 0 -1px 0 var(--w-line); }
  .c-drawer a[aria-current="page"] { font-weight: 600; }
  .c-drawer .c-btn { margin-top: 12px; }
}
@media (max-width: 420px) {
  .c-header__end .c-btn--gold { padding-inline: 14px; }
  .c-logo img { height: 24px; }
}

/* ---------- Type ---------- */
.c-eyebrow { font: 500 var(--w-fs-eyebrow)/1.3 var(--w-sans); letter-spacing: var(--w-track-eyebrow); color: var(--w-gold-ink); margin-bottom: 12px !important; }
.c-h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; letter-spacing: var(--w-track-head); font-weight: 500; text-wrap: balance; }
.c-h2 { font-size: var(--w-fs-h2); line-height: 1.1; letter-spacing: var(--w-track-head); font-weight: 500; text-wrap: balance; }
.c-h3 { font-size: var(--w-fs-h3); line-height: 1.25; letter-spacing: -.015em; font-weight: 500; }
.c-lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--w-ink-2); max-width: 40em; }
.c-dim { color: var(--w-ink-2); }
.c-fine { font-size: var(--w-fs-sm); color: var(--w-ink-3); }
.c-fine a { color: var(--w-ink-2); }

.c-sec { padding-block: clamp(56px, 8vw, 104px); }
.c-sec--tint { background: var(--w-surface); box-shadow: inset 0 1px 0 var(--w-line), inset 0 -1px 0 var(--w-line); }
.c-sec__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.c-sec__head .c-h2 { margin-bottom: 12px; }

/* ---------- Hero ---------- */
.c-hero { padding-block: clamp(18px, 1.8vw, 22px) clamp(40px, 6vw, 72px); position: relative; }
.c-hero--compact .c-hero__head { max-width: none; }
.c-hero--compact .c-h1 { font-size: clamp(30px, 3.3vw, 42px); max-width: none; }
.c-hero--compact .c-lede { max-width: 62em; font-size: clamp(16px, 1.35vw, 17.5px); }
.c-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 420px; background: radial-gradient(60% 70% at 50% 0%, var(--w-gold-tint), transparent 72%); pointer-events: none; }
.c-hero > .c-wrap { position: relative; }
.c-hero__head { display: grid; gap: 14px; align-content: center; max-width: 46em; }
.c-hero__head .c-eyebrow { margin-bottom: 0 !important; }
.c-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "head win" "pick pick" "assure assure";
  gap: clamp(14px, 1.7vw, 20px) clamp(24px, 4vw, 56px); align-items: center;
}
.c-hero__grid > .c-hero__head { grid-area: head; }
.c-hero__grid > .c-win { grid-area: win; }
.c-hero__grid > .c-hero__pick { grid-area: pick; min-width: 0; }
.c-hero__grid > .c-hero__assure { grid-area: assure; margin-top: 0; }
.c-hero__grid .c-h1 { font-size: clamp(31px, 3.7vw, 47px); }
@media (max-width: 900px) {
  .c-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "pick" "assure" "win"; }
}
.c-hero__pad { margin-top: clamp(16px, 2vw, 22px); }

/* Product window: commands you can run. Dark in both themes (data-theme="dark" on the element). */
.c-win { border-radius: var(--w-r-md); background: var(--w-surface); color: var(--w-ink); box-shadow: var(--w-ring-2), var(--w-shadow-2); overflow: hidden; min-width: 0; }
.c-win__bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; box-shadow: inset 0 -1px 0 var(--w-line); overflow-x: auto; }
.c-win__tab { font: 500 14px/1 var(--w-sans); min-height: 36px; padding: 0 13px; border-radius: var(--w-r-xs); border: 0; background: transparent; color: var(--w-ink-2); cursor: pointer; white-space: nowrap; }
.c-win__tab:hover { color: var(--w-ink); }
.c-win__tab[aria-selected="true"] { background: var(--w-sunk); color: var(--w-ink); box-shadow: inset 0 -2px 0 var(--w-gold-ink); }
.c-win__pane { margin: 0; padding: 14px 16px 16px; font: 400 13.5px/1.62 var(--w-mono); white-space: pre-wrap; overflow-wrap: anywhere; min-height: 11.6em; color: var(--w-ink); }
.c-win__pane[hidden] { display: none; }
.c-win .c-cm { color: var(--w-ink-3); }
.c-win .c-add { color: var(--w-ok); }
.c-win__foot { padding: 9px 16px 11px; box-shadow: inset 0 1px 0 var(--w-line); font-size: var(--w-fs-sm); color: var(--w-ink-2); }
.c-win__foot a { color: var(--w-gold-ink); }

/* Plan picker (hero) */
.c-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.c-pick__opt {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 14px;
  border-radius: var(--w-r-lg); background: var(--w-raise); box-shadow: var(--w-ring-2), var(--w-shadow-1);
  position: relative; min-width: 0;
}
.c-pick__opt--rec { box-shadow: inset 0 0 0 2px var(--w-gold-ink), var(--w-shadow-2); background: linear-gradient(180deg, var(--w-gold-tint), transparent 60%), var(--w-raise); }
.c-pick__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; font-size: 16px; }
.c-tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--w-r-pill); background: var(--w-gold); color: var(--w-on-gold); font: 600 12.5px/1.2 var(--w-sans); }
.c-tag--plain { background: var(--w-sunk); color: var(--w-ink-2); font-weight: 500; }
.c-pick__price { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 500; }
.c-pick__price small { font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--w-ink-3); }
.c-pick__what { font-size: var(--w-fs-sm); line-height: 1.45; color: var(--w-ink); }
.c-pick__inc { font-size: var(--w-fs-sm); line-height: 1.45; color: var(--w-ink-2); flex: 1; }
.c-pick__inc b { font-weight: 500; color: var(--w-ink); }
.c-pick .c-meter__lab { font-size: var(--w-fs-sm); }
.c-pick__opt .c-btn { margin-top: 6px; padding-inline: 12px; }
.c-pick__offer { font-size: var(--w-fs-sm); line-height: 1.4; color: var(--w-gold-ink); font-weight: 500; }
.c-pick__offer small { display: block; font-size: var(--w-fs-xs); font-weight: 400; color: var(--w-ink-2); margin-top: 2px; }
.c-body .c-hero__assure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: var(--w-fs-sm); color: var(--w-ink-2); }
.c-hero__assure li { display: inline-flex; align-items: baseline; gap: 8px; }
.c-hero__assure li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--w-gold); flex: none; transform: translateY(-2px); }
.c-hero__assure a { color: var(--w-ink-2); display: inline-block; padding-block: 3px; }

@media (max-width: 1100px) {
  .c-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-pick__opt--rec { order: -1; }
}
@media (max-width: 720px) {
  .c-pick { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .c-pick__opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px 14px; border-radius: var(--w-r-md); }
  .c-pick__name { grid-column: 1; }
  .c-pick__price { grid-column: 1; font-size: 22px; }
  .c-pick__what { grid-column: 1 / -1; grid-row: 3; color: var(--w-ink-2); }
  .c-pick__offer { grid-column: 1 / -1; grid-row: 4; }
  .c-pick .c-meter, .c-pick__inc { display: none; }
  .c-pick__opt .c-btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding-inline: 16px; white-space: nowrap; }
}

/* ---------- Fact strip ---------- */
.c-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: var(--w-r-lg); box-shadow: var(--w-ring-2); background: var(--w-surface); overflow: hidden; }
.c-facts > li { padding: 20px 22px; box-shadow: inset -1px 0 0 var(--w-line); }
.c-facts > li:last-child { box-shadow: none; }
.c-facts b { display: block; font: 500 26px/1.15 var(--w-sans); letter-spacing: -.03em; margin-bottom: 6px; }
.c-facts span { font-size: var(--w-fs-sm); color: var(--w-ink-2); display: block; }
@media (max-width: 900px) { .c-facts { grid-template-columns: 1fr 1fr; } .c-facts > li { box-shadow: inset -1px 0 0 var(--w-line), inset 0 -1px 0 var(--w-line); } }
@media (max-width: 520px) { .c-facts { grid-template-columns: 1fr; } .c-facts > li { box-shadow: inset 0 -1px 0 var(--w-line); } }

/* ---------- Cards and grids ---------- */
.c-grid { display: grid; gap: 16px; }
.c-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .c-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .c-grid--2 { grid-template-columns: 1fr; } }

.c-card { background: var(--w-raise); box-shadow: var(--w-ring-2); border-radius: var(--w-r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.c-sec--tint .c-card { background: var(--w-paper); }
.c-card p { color: var(--w-ink-2); font-size: 15.5px; }
.c-card .c-src { margin-top: auto; padding-top: 6px; font-size: var(--w-fs-sm); color: var(--w-ink-3); }
.c-card .c-src a { color: var(--w-ink-2); }
.c-num { font: 500 13px/1 var(--w-mono); color: var(--w-gold-ink); }

.c-code { margin: 4px 0 0; padding: 14px 16px; border-radius: var(--w-r-sm); background: var(--w-sunk); color: var(--w-ink); font: 400 13px/1.6 var(--w-mono); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; box-shadow: var(--w-ring); }
.c-code .c-cm { color: var(--w-ink-3); }
.c-cap { font-size: var(--w-fs-xs); color: var(--w-ink-3); }

/* Yes / no lists: state is given in words, never colour alone */
.c-inc { display: grid; align-content: start; gap: 8px; font-size: 15px; color: var(--w-ink-2); }
.c-inc li { position: relative; padding-left: 26px; }
.c-inc li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--w-ok); font-weight: 600; }
.c-inc li.no::before { content: "\2013"; color: var(--w-ink-3); }
.c-inc li.no { color: var(--w-ink-3); }

/* ---------- Pricing cards ---------- */
.c-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.c-plan { background: var(--w-raise); box-shadow: var(--w-ring-2), var(--w-shadow-1); border-radius: var(--w-r-lg); padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; scroll-margin-top: calc(var(--w-header-h) + 16px); }
.c-plan--rec { box-shadow: inset 0 0 0 2px var(--w-gold-ink), var(--w-shadow-2); background: linear-gradient(180deg, var(--w-gold-tint), transparent 46%), var(--w-raise); }
.c-plan__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-plan__for { font-size: var(--w-fs-sm); color: var(--w-ink-2); min-height: 3.1em; }
.c-plan__price { font-size: 42px; line-height: 1; letter-spacing: -.035em; font-weight: 500; }
.c-plan__price small { font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--w-ink-3); }
.c-plan__offer { font-size: var(--w-fs-sm); color: var(--w-gold-ink); font-weight: 500; }
.c-plan__offer small { display: block; font-size: var(--w-fs-xs); font-weight: 400; color: var(--w-ink-3); margin-top: 2px; }
.c-plan .c-inc { flex: 1; }
.c-plan__under { font-size: var(--w-fs-xs); color: var(--w-ink-3); text-align: center; }
@media (max-width: 1100px) { .c-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c-plan__for { min-height: 0; } }
@media (max-width: 600px) { .c-plans { grid-template-columns: 1fr; } .c-plan--rec { order: -1; } }

/* Allowance meter: bar length is the published multiple of Lite, scaled to Plus = full */
.c-meter { display: grid; gap: 6px; }
.c-meter__lab { display: flex; justify-content: space-between; gap: 8px; font-size: var(--w-fs-sm); color: var(--w-ink-2); }
.c-meter__lab b { color: var(--w-ink); font-weight: 500; }
.c-meter__bar { height: 8px; border-radius: 4px; background: var(--w-sunk); overflow: hidden; box-shadow: var(--w-ring); }
.c-meter__bar i { display: block; height: 100%; width: calc(var(--x) / 4.5 * 100%); min-width: 4px; border-radius: 4px; background: var(--w-gold-ink); }

/* Pro */
.c-pro { margin-top: 14px; background: var(--w-raise); box-shadow: var(--w-ring-2), var(--w-shadow-1); border-radius: var(--w-r-lg); padding: 24px 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 20px 28px; align-items: center; scroll-margin-top: calc(var(--w-header-h) + 16px); }
.c-pro__sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.c-pro__size { font: inherit; min-height: 64px; padding: 10px 6px; border-radius: var(--w-r-sm); border: 1px solid var(--w-line-2); background: var(--w-paper); color: var(--w-ink); cursor: pointer; display: grid; gap: 2px; justify-items: center; }
.c-pro__size span:first-child { font-weight: 500; font-size: 15px; }
.c-pro__size span:nth-child(2) { font-size: var(--w-fs-sm); color: var(--w-ink); }
.c-pro__size span:last-child { font-size: 13px; color: var(--w-ink-2); }
.c-pro__size[aria-checked="true"] { border-color: var(--w-gold-ink); box-shadow: inset 0 0 0 1px var(--w-gold-ink); background: var(--w-gold-tint); }
.c-pro__size[aria-checked="true"] span:first-child::after { content: " \2713"; }
.c-pro__buy { display: grid; gap: 8px; justify-items: stretch; min-width: 200px; text-align: center; }
.c-pro__price { font-size: 34px; line-height: 1; letter-spacing: -.03em; font-weight: 500; }
.c-pro__price small { font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--w-ink-3); }
@media (max-width: 1000px) { .c-pro { grid-template-columns: 1fr; } .c-pro__buy { text-align: left; min-width: 0; } }
@media (max-width: 420px) { .c-pro__sizes { grid-template-columns: 1fr 1fr; } }

/* ---------- Compare table ---------- */
.c-tablewrap { overflow-x: auto; border-radius: var(--w-r-lg); box-shadow: var(--w-ring-2); background: var(--w-raise); }
.c-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 15px; }
.c-table th, .c-table td { padding: 14px 16px; text-align: left; vertical-align: top; box-shadow: inset 0 -1px 0 var(--w-line); }
.c-table thead th { font-weight: 500; font-size: 16px; vertical-align: bottom; }
.c-table thead th small { display: block; font-weight: 400; font-size: var(--w-fs-sm); color: var(--w-ink-2); }
.c-table tbody th { font-weight: 400; color: var(--w-ink-2); width: 19%; }
.c-table .is-rec { background: var(--w-gold-tint); }
.c-table tbody tr:last-child th, .c-table tbody tr:last-child td { box-shadow: none; }
.c-yes { color: var(--w-ok); font-weight: 500; }
.c-no { color: var(--w-ink-3); }
.c-tablehint { display: none; margin-top: 10px !important; }
@media (max-width: 900px) { .c-tablehint { display: block; } .c-table tbody th, .c-table thead th:first-child { position: sticky; left: 0; background: var(--w-raise); z-index: 1; } }

/* ---------- Not-yet list ---------- */
.c-notyet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.c-notyet > li { padding: 18px 20px; border-radius: var(--w-r-md); background: var(--w-paper); box-shadow: var(--w-ring-2); display: grid; gap: 6px; align-content: start; scroll-margin-top: calc(var(--w-header-h) + 16px); }
.c-notyet p { font-size: var(--w-fs-sm); color: var(--w-ink-2); }
@media (max-width: 900px) { .c-notyet { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.c-faq { display: grid; gap: 10px; }
.c-faq details { background: var(--w-raise); box-shadow: var(--w-ring-2); border-radius: var(--w-r-md); }
.c-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; font-weight: 500; font-size: 16.5px; border-radius: var(--w-r-md); }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: "+"; flex: none; font: 400 22px/1 var(--w-mono); color: var(--w-gold-ink); }
.c-faq details[open] summary::after { content: "\2212"; }
.c-faq details > div { padding: 0 20px 18px; color: var(--w-ink-2); display: grid; gap: 10px; max-width: 46em; }

/* ---------- Why page: claim + proof rows ---------- */
.c-why { display: grid; gap: 14px; counter-reset: why; }
.c-why > li { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 12px 28px; padding: 26px 24px; border-radius: var(--w-r-lg); background: var(--w-raise); box-shadow: var(--w-ring-2); scroll-margin-top: calc(var(--w-header-h) + 16px); }
.c-why > li::before { counter-increment: why; content: counter(why, decimal-leading-zero); font: 500 15px/1.6 var(--w-mono); color: var(--w-gold-ink); }
.c-why__claim { display: grid; gap: 8px; align-content: start; }
.c-why__claim p { color: var(--w-ink-2); }
.c-why__proof { display: grid; gap: 10px; align-content: start; padding-left: 24px; box-shadow: inset 2px 0 0 var(--w-gold); min-width: 0; }
.c-why__proof h4 { margin: 0; font: 500 var(--w-fs-eyebrow)/1.3 var(--w-sans); color: var(--w-gold-ink); }
.c-why__proof ul { display: grid; gap: 8px; font-size: 15px; color: var(--w-ink-2); }
.c-why__proof li { padding-left: 16px; position: relative; }
.c-why__proof li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 2px; background: var(--w-ink-3); }
.c-why__proof .c-check { font-size: var(--w-fs-sm); color: var(--w-ink-3); }
.c-why__proof .c-check a { color: var(--w-ink-2); }
@media (max-width: 900px) { .c-why > li { grid-template-columns: 1fr; padding: 22px 18px; } .c-why__proof { padding-left: 16px; } }

.c-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.c-toc a { display: inline-flex; align-items: center; min-height: var(--w-tap); padding: 0 14px; border-radius: var(--w-r-pill); background: var(--w-raise); box-shadow: var(--w-ring-2); color: var(--w-ink-2); text-decoration: none; font-size: var(--w-fs-sm); }
.c-toc a:hover { color: var(--w-ink); }

/* ---------- Closing band ---------- */
.c-close { text-align: center; }
.c-close .c-h2 { margin-bottom: 12px; }
.c-close .c-lede { margin-inline: auto; }
.c-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.c-close .c-actions { justify-content: center; }

/* ---------- Sticky next step ---------- */
.c-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--w-z-tabbar); background: var(--w-raise); box-shadow: inset 0 1px 0 var(--w-line-2), var(--w-shadow-3); padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateY(110%); visibility: hidden; transition: transform var(--w-dur-2) var(--w-ease), visibility 0s linear var(--w-dur-2); }
.c-bar.is-on { transform: none; visibility: visible; transition: transform var(--w-dur-2) var(--w-ease), visibility 0s; }
.c-bar__in { display: flex; align-items: center; gap: 12px; }
.c-bar__txt { margin-right: auto; font-size: var(--w-fs-sm); color: var(--w-ink-2); min-width: 0; }
.c-bar__txt b { color: var(--w-ink); font-weight: 500; }
@media (max-width: 720px) { .c-bar__txt { display: none; } .c-bar__in .c-btn { flex: 1; padding-inline: 10px; } }

/* ---------- Footer ---------- */
.c-footer { background: var(--w-surface); box-shadow: inset 0 1px 0 var(--w-line); padding-block: 48px 32px; color: var(--w-ink-2); font-size: var(--w-fs-sm); }
.c-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.c-footer__brand img { display: block; height: 28px; width: auto; }
.c-footer__brand p { margin-top: 14px; max-width: 24em; }
.c-footer h2 { font: 500 var(--w-fs-sm)/1.3 var(--w-sans); color: var(--w-ink); margin-bottom: 8px; }
.c-footer ul { display: grid; }
.c-footer li a { display: inline-flex; align-items: center; min-height: 34px; color: var(--w-ink-2); text-decoration: none; }
.c-footer a:hover { color: var(--w-ink); text-decoration: underline; }
.c-footer__base { margin-top: 32px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--w-line); display: grid; gap: 6px; }
.c-footer__base a { color: var(--w-ink-2); }
@media (max-width: 900px) { .c-footer__grid { grid-template-columns: 1fr 1fr; } .c-footer__brand { grid-column: 1 / -1; } }

@media print { .c-header, .c-footer, .c-bar { display: none !important; } }
.c-meter__lab span { white-space: nowrap; }

/* ===================== candidate r1 additions ===================== */

/* Small data tables inside cards (Coder approval modes) */
.c-mini { width: 100%; border-collapse: collapse; font-size: var(--w-fs-sm); margin-top: 2px; }
.c-mini caption { text-align: left; font-weight: 500; color: var(--w-ink); padding-bottom: 6px; }
.c-mini th, .c-mini td { text-align: left; padding: 7px 8px 7px 0; box-shadow: inset 0 -1px 0 var(--w-line); vertical-align: top; color: var(--w-ink-2); font-weight: 400; }
.c-mini thead th { color: var(--w-ink); font-weight: 500; }
.c-mini tbody th { color: var(--w-ink); font-family: var(--w-mono); font-size: 13.5px; white-space: nowrap; }
.c-mini tr:last-child th, .c-mini tr:last-child td { box-shadow: none; }

/* Fact lists inside cards */
.c-body .c-list { display: grid; gap: 7px; font-size: 15px; color: var(--w-ink-2); }
.c-list li { padding-left: 16px; position: relative; }
.c-list li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 2px; background: var(--w-gold); }

/* Dark band: stays dark in both themes (data-theme="dark" on the section) */
.c-band { background: var(--w-band); color: var(--w-ink); }
.c-band .c-notyet > li { background: var(--w-raise); }
.c-band .c-lede { color: var(--w-ink-2); }

/* Code: break URLs at the <wbr> points before falling back to anywhere */
.c-code { font-size: 13.5px; overflow-wrap: break-word; }
@media (max-width: 600px) {
  .c-card { padding: 20px 18px; }
  .c-code { padding: 12px; }
}

/* Compare table: stacked label and value rows on small screens, no sideways scroll */
@media (max-width: 760px) {
  .c-tablewrap--stack { overflow: visible; box-shadow: none; background: none; border-radius: 0; }
  .c-tablewrap--stack .c-table { display: block; min-width: 0; }
  .c-tablewrap--stack .c-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .c-tablewrap--stack .c-table tbody { display: grid; gap: 12px; }
  .c-tablewrap--stack .c-table tr { display: block; background: var(--w-raise); box-shadow: var(--w-ring-2); border-radius: var(--w-r-md); padding: 14px 16px 8px; }
  .c-tablewrap--stack .c-table tbody th { display: block; width: auto; position: static; background: none; padding: 0 0 8px; box-shadow: none; color: var(--w-ink); font-weight: 500; font-size: 16px; }
  .c-tablewrap--stack .c-table td { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 12px; padding: 8px 0; box-shadow: inset 0 1px 0 var(--w-line); background: none; }
  .c-tablewrap--stack .c-table td::before { content: attr(data-label); color: var(--w-ink); font-weight: 500; }
  .c-tablewrap--stack .c-table td.is-rec::before { content: attr(data-label) " \2605"; }
  .c-tablewrap--stack .c-table tr.c-table__cta { display: none; }
  .c-tablewrap--stack + .c-tablehint { display: none; }
}

/* Sticky next step: one compact row on phones */
@media (max-width: 720px) {
  .c-body.has-bar { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .c-bar { padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)); }
  .c-bar__in { gap: 8px; }
  .c-bar__in .c-btn { min-height: var(--w-tap); padding-block: 8px; font-size: 14.5px; }
}

/* Why page: fit table */
.c-fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.c-fit > div { border-radius: var(--w-r-lg); background: var(--w-raise); box-shadow: var(--w-ring-2); padding: 24px; display: grid; gap: 12px; align-content: start; }
@media (max-width: 760px) { .c-fit { grid-template-columns: minmax(0, 1fr); } }

.c-toc a, .c-footer li a, .c-fine a, .c-src a, .c-check a { min-height: 24px; }
.c-src a, .c-check a, .c-fine a, .c-card p a, .c-faq a, .c-notyet a, .c-why__proof li a { display: inline-block; padding-block: 2px; }
.c-plan__under { min-height: 1.4em; }
.c-footer li a { min-width: 24px; }
@media (max-width: 720px) { .c-bar__x { display: none; } }
.c-hero--compact .c-plan { padding: 20px 20px 18px; gap: 10px; }
.c-hero--compact .c-plan__for { min-height: 2.9em; }
.c-grid--3 > .c-card { align-self: stretch; }

/* ENG-034: data tables stack into readable label/value rows on small screens (no sideways scroll).
   Applies to docs/api endpoint tables, legal tables (terms, subprocessors) and the small card table; the
   pricing compare table has its own stack rule above. Cells carry data-label with their column header. */
@media (max-width: 600px) {
  .ep-table, .legal table, .c-mini { display: block; min-width: 0 !important; width: 100%; }
  .ep-table thead, .c-mini thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .legal table tr:first-child:has(> th) { display: none; }
  .ep-table tbody, .legal table tbody, .c-mini tbody { display: grid; gap: 12px; }
  .ep-table tr, .legal table tr, .c-mini tr { display: block; background: var(--w-raise); box-shadow: var(--w-ring-2); border-radius: var(--w-r-md); padding: 6px 14px; }
  .ep-table td, .legal table td, .c-mini td, .c-mini tbody th { display: block; min-width: 0; padding: 8px 0; box-shadow: inset 0 -1px 0 var(--w-line); overflow-wrap: anywhere; }
  .ep-table td::before, .legal table td::before, .c-mini td::before { content: attr(data-label); display: block; font: 500 13.5px/1.4 var(--w-sans); color: var(--w-ink); }
  .ep-table tr td:last-child, .legal table tr td:last-child, .c-mini tr td:last-child { box-shadow: none; }
  .c-mini caption { display: block; }
  .tablewrap, .table-scroll { overflow: visible; box-shadow: none; background: none; }
}

/* ENG-034: simpler mobile hero (headline, one sentence, CTA); the code window shows from 900px up. */
@media (max-width: 899px) { .c-hero__grid > .c-win { display: none; } }

/* ENG-034 batch 1c (Patrick 2:16 AM iOS ask, claude-02 12-05): on mobile, no bottom sticky bar, and the first screen is
   headline + one sentence + Start free; plan cards start below the fold. Desktop unchanged. */
@media (max-width: 899px) {
  .c-bar { display: none !important; }
  .c-body.has-bar { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .c-hero__head { min-height: calc(100svh - 64px - 24px); align-content: center; }
}
