/* ==========================================================
   r3 pages: /shop/* and /download/ (Ada, 2026-11-02)
   Design: Vera, 04_vera_mockup.html revision 3 (founder 2 Nov: "white background and
   brighter modern template", "less text and less-AI look", then "good style").
   Scope: body.r3 only. core.css and brand.css are untouched; this file remaps the core
   colour and font tokens on body.r3, so the shared nav and footer follow on these pages
   and nowhere else (founder decision 10: shop pages now, the whole site after review).
   One accent: #0A66C2 (white on it 5.69:1; as text on white 5.69:1), pressed #0852A0.
   No gradients, glows, glass, emoji or pill badges. Placeholders: #F2F4F7 + thin wing line.
   Font: Plus Jakarta Sans (SIL OFL 1.1, /fonts/PlusJakartaSans-OFL.txt), self-hosted,
   variable wght 200-800, subset from the V2 app's bundled TTF (font-src 'self').
   ========================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body.r3 {
  --ink: #0F172A;        /* 17.8:1 on white */
  --ink-2: #475569;      /* 7.58:1 on white */
  --line: #E5E7EB;
  --sky: #0A66C2;
  --sky-press: #0852A0;
  --sky-tint: #EAF3FC;
  --ring: #BFDBFE;
  --tile: #F2F4F7;       /* #475569 on it 7.0:1 */
  --err: #B42318;        /* 6.6:1 on white */
  --s-font: 'Plus Jakarta Sans', 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Core tokens the shared nav, footer and core buttons read */
  --font-sans: var(--s-font);
  --font-display: var(--s-font);
  --color-primary-50: #EAF3FC;
  --color-primary-100: #D6E7F8;
  --color-primary-500: #0A66C2;
  --color-primary-600: #0A66C2;
  --color-primary-700: #0852A0;
  --color-primary-800: #063F7C;
  --color-accent-500: #0A66C2;
  --color-accent-600: #0852A0;

  background: #fff;
  color: var(--ink);
  font-family: var(--s-font);
}
body.r3 :focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
body.r3 [hidden] { display: none !important; }   /* class rules set display (buttons, labels); [hidden] must still win */

/* ── Shared nav, on r3 pages only ─────────────────────────── */
body.r3 .navbar { box-shadow: none; border-bottom-color: var(--line); }
body.r3 .navbar-link { color: var(--ink-2); }
body.r3 .navbar-link.active { color: var(--ink); background: transparent; font-weight: 600; }

/* ── White footer, on r3 pages only ───────────────────────── */
body.r3 .footer { background: #fff; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 2.5rem; }
body.r3 .footer-newsletter { display: none; }   /* the page's own Notify me form is the one email ask */
body.r3 .footer-heading { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .9rem; }
body.r3 .footer-links a, body.r3 .footer-brand p { color: var(--ink-2); }
body.r3 .footer-links a:hover { color: var(--ink); }
body.r3 .footer-innovator-badge { border: 1px solid var(--line); }
body.r3 .footer-bottom { border-top-color: var(--line); color: var(--ink-2); }
body.r3 .footer-lang-link { color: var(--ink-2); }
body.r3 .footer-lang-link:hover { color: var(--ink); background: var(--tile); }
body.r3 .footer-lang-active { color: var(--ink); }
body.r3 .footer-social a { color: var(--ink-2); }
body.r3 .footer-social a:hover { color: var(--ink); }
body.r3 .footer-lang-link > span[aria-hidden="true"] { display: none; }   /* no flag emoji on r3 pages */
@media (min-width: 769px) { body.r3 .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }   /* 5 columns: Company no longer wraps */

/* ── Page frame ───────────────────────────────────────────── */
.r3 .s-main { background: #fff; }
.r3 .s-container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.r3 .s-narrow { max-width: 640px; }
.r3 .s-main :where(h1, h2, h3) { font-family: var(--s-font); color: var(--ink); font-weight: 700; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
.r3 .s-main :where(p) { margin: 0; }   /* zero specificity: every class rule below wins */
.r3 .s-main a { color: var(--sky); }
.r3 .s-muted { color: var(--ink-2); }
.r3 .s-small { font-size: .85rem; }
.r3 .s-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.r3 .s-preview { background: var(--sky-tint); color: var(--ink); font-size: .88rem; padding: .55rem 0; border-bottom: 1px solid var(--ring); }

/* ── Buttons: plain rectangles, one accent ────────────────── */
.r3 .s-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 8px; font: 600 1rem/1.2 var(--s-font); text-decoration: none; border: 1px solid transparent; cursor: pointer; text-align: center; }
.r3 .s-main .s-btn-primary, .r3 .s-btn-primary { background: var(--sky); color: #fff; }
.r3 .s-main .s-btn-primary:hover { background: var(--sky-press); color: #fff; }
.r3 .s-main .s-btn-secondary, .r3 .s-btn-secondary { background: #fff; color: var(--sky); border-color: var(--sky); }
.r3 .s-main .s-btn-secondary:hover { background: var(--sky-tint); }
.r3 .s-btn[disabled], .r3 .s-btn[aria-disabled="true"] { background: #E5E7EB; color: #475569; border-color: #E5E7EB; cursor: not-allowed; }
.r3 .s-btn-sm { min-height: 44px; padding: 0 1rem; font-size: .92rem; }
.r3 .s-btn-block { width: 100%; }
.r3 .s-textlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--sky); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font: 600 1rem var(--s-font); cursor: pointer; }
.r3 .s-textlink:hover { text-decoration: underline; }

/* ── Image tile: size from aspect-ratio, never from the image ─ */
.r3 .s-ph { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--tile); border-radius: 12px; overflow: hidden; }
.r3 .s-ph.r-16x9 { aspect-ratio: 16 / 9; }
.r3 .s-ph.r-4x3  { aspect-ratio: 4 / 3; }
.r3 .s-ph.r-1x1  { aspect-ratio: 1 / 1; }
.r3 .s-ph.r-3x2  { aspect-ratio: 3 / 2; }
.r3 .s-ph.r-9x16 { aspect-ratio: 9 / 16; }
.r3 .s-ph svg { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 36%; max-width: 260px; height: auto; fill: none; stroke: #A3B1C2; }
.r3 .s-ph .s-ph-label { position: absolute; left: 14px; bottom: 12px; font: 500 .75rem var(--s-font); color: #475569; }
.r3 .s-ph.sm svg { width: 62%; }
.r3 .s-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r3 .s-ph.contain img { object-fit: contain; }

/* ── /shop/ landing ───────────────────────────────────────── */
.r3 .s-hero { padding: 4.5rem 0 0; }
.r3 .s-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); letter-spacing: -.03em; line-height: 1.04; margin-bottom: .8rem; }
.r3 .s-hero p { font-size: 1.2rem; color: var(--ink-2); margin-bottom: 1.75rem; }
.r3 .s-hero .s-ph { margin-top: 3rem; }
.r3 .s-section { padding: 4.5rem 0 3.5rem; }
.r3 .s-section h2 { font-size: 1.5rem; margin-bottom: 2rem; }
.r3 .s-grid { display: grid; gap: 2.75rem 2rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.r3 .s-item { scroll-margin-top: 88px; }
.r3 .s-item .s-ph, .r3 .s-item-img { margin-bottom: 1.1rem; }
.r3 .s-item-img { display: block; }
.r3 .s-item h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .25rem; }
.r3 .s-item h3 a { color: var(--ink); text-decoration: none; }
.r3 .s-item h3 a:hover { text-decoration: underline; }
.r3 .s-coming { font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
.r3 .s-line { color: var(--ink-2); margin-bottom: .8rem; }
.r3 .s-price { margin: 0 0 1.1rem; font-size: .95rem; line-height: 1.6; }
.r3 .s-price div { display: flex; flex-wrap: wrap; gap: 0 .5rem; align-items: baseline; }
.r3 .s-price dt { color: var(--ink-2); }
.r3 .s-price dd { margin: 0; }
.r3 .s-price b { font-weight: 700; }
.r3 .s-note { font-size: .85rem; color: var(--ink-2); margin-top: .6rem; }
.r3 .s-delivery { font-size: .88rem; color: var(--ink); margin: -.6rem 0 1.1rem !important; }
.r3 .s-delivery-inline { color: var(--ink); font-weight: 600; }
.r3 .s-consent-note { margin: -.3rem 0 .9rem !important; }
.r3 .s-notify-form.done .s-consent-note { display: none; }
.r3 .s-facts a { display: inline-flex; align-items: center; min-height: 24px; }
.r3 .s-facts { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.r3 .s-have { padding: .5rem 0 3rem; }

/* ── Product page ─────────────────────────────────────────── */
.r3 .s-crumb { padding: 1.5rem 0 0; font-size: .88rem; color: var(--ink-2); }
.r3 .s-crumb a { text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.r3 .s-pd { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); padding: 1.5rem 0 4rem; }
@media (min-width: 900px) { .r3 .s-pd { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.r3 .s-thumbs { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: .6rem; margin-top: .6rem; }
.r3 .s-thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; min-width: 44px; min-height: 44px; }
.r3 .s-thumb[aria-current="true"] { border-color: var(--sky); }
.r3 .s-thumb .s-ph { border-radius: 10px; }
.r3 .s-pd-info h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.025em; margin: .2rem 0 .3rem; }
.r3 .s-sku { font-size: .85rem; color: var(--ink-2); margin-bottom: 1rem; }
.r3 .s-lead { font-size: 1.05rem; color: var(--ink-2); }
.r3 .s-pricebox { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ring); border-radius: 12px; margin: 1.5rem 0 .6rem; }
.r3 .s-pricebox > div { padding: 1rem 1.1rem; min-width: 0; }
.r3 .s-pricebox > div + div { border-left: 1.5px solid var(--ring); }
.r3 .s-pricebox .l { font-size: .85rem; color: var(--ink-2); }
.r3 .s-pricebox .v { font-size: 2rem; font-weight: 700; letter-spacing: -.025em; margin: .15rem 0 0; line-height: 1.15; }
.r3 .s-pricebox .n { font-size: .95rem; font-weight: 600; }
.r3 .s-pricebox .x { font-size: .8rem; color: var(--ink-2); margin-top: .35rem; white-space: nowrap; }
.r3 .s-once { font-size: .9rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.r3 .s-buy { margin-bottom: .75rem; }
.r3 .s-detail { font-size: .88rem; color: var(--ink-2); margin-top: .6rem; }
.r3 .s-main .s-sub { font-size: 1rem; font-weight: 600; margin: 2rem 0 .8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); letter-spacing: 0; }
.r3 .s-main .s-sub2 { font-size: .95rem; font-weight: 600; margin: 1rem 0 .5rem; letter-spacing: 0; }
.r3 .s-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .95rem; }
.r3 .s-specs { display: grid; grid-template-columns: 8.5rem 1fr; gap: .55rem 1rem; margin: 0; font-size: .95rem; }
.r3 .s-specs dt { color: var(--ink-2); }
.r3 .s-specs dd { margin: 0; }

/* Mobile bar (r3 phone frame): both prices and the one button, under 900 px */
.r3 .s-bar { display: none; }
@media (max-width: 899px) {
  .r3 .s-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 1.1rem; background: #fff; border-top: 1px solid var(--line); }
  .r3 .s-bar small { font-size: .8rem; color: var(--ink-2); line-height: 1.35; }
  .r3 .s-bar small b { color: var(--ink); font-size: .95rem; }
  body.r3.has-bar { padding-bottom: 76px; }
  html:has(body.r3.has-bar) { scroll-padding-bottom: 88px; }
}

/* ── Notify me ────────────────────────────────────────────── */
.r3 .s-notify > summary { list-style: none; }
.r3 .s-notify > summary::-webkit-details-marker { display: none; }
.r3 .s-notify[open] > summary { display: none; }
.r3 .s-notify-link { margin-top: .25rem; }
.r3 .s-notify-form { margin-top: .4rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.r3 .s-notify-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .2rem !important; }
.r3 .s-notify-form .s-muted { margin-bottom: 1rem; font-size: .95rem; }
.r3 .s-label { display: block; font-size: .88rem; font-weight: 600; }
.r3 .s-input { display: block; width: 100%; min-height: 48px; border: 1px solid #94A3B8; border-radius: 8px; padding: 0 .8rem; font: inherit; font-size: 1rem; margin: .35rem 0 .8rem; color: var(--ink); background: #fff; }
.r3 .s-input[aria-invalid="true"] { border-color: var(--err); }
.r3 .s-check { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; font-size: .92rem; margin-bottom: .8rem; cursor: pointer; }
.r3 .s-check input { width: 22px; height: 22px; flex: 0 0 22px; margin: .05rem 0 0; accent-color: var(--sky); }
.r3 .s-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.r3 .s-fine { font-size: .82rem; color: var(--ink-2); margin-top: .7rem !important; }
.r3 .s-notify-msg { font-size: .92rem; margin-top: .6rem !important; min-height: 1.2em; }
.r3 .s-notify-msg.ok { color: var(--ink); font-weight: 600; }
.r3 .s-notify-msg.err { color: var(--err); font-weight: 600; }
.r3 .s-notify-form.done .s-label, .r3 .s-notify-form.done .s-input, .r3 .s-notify-form.done .s-check, .r3 .s-notify-form.done button { display: none; }

/* ── Closed state, checkout, order ────────────────────────── */
.r3 .s-closed, .r3 .s-checkout, .r3 .s-order { padding: 2rem 0 3rem; }
.r3 .s-buy .s-checkout { padding: 0; }
.r3 .s-main .s-checkout-h { font-size: 1.8rem; margin: 2rem 0 0; }
.r3 .s-cancelled { margin-top: 1.5rem !important; padding: .9rem 1rem; background: var(--tile); border-radius: 8px; color: var(--ink); font-weight: 600; }
.r3 .s-signin { margin-top: .2rem !important; }
.r3 .s-closed h1, .r3 .s-checkout h1, .r3 .s-order h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.r3 .s-li { display: flex; gap: .8rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: .8rem 0; }
.r3 .s-li .s-ph { flex: 0 0 60px; width: 60px; border-radius: 8px; }
.r3 .s-li b { font-weight: 600; display: block; }
.r3 .s-total { display: flex; justify-content: space-between; align-items: baseline; margin: .4rem 0 .2rem; }
.r3 .s-total b { font-size: 1.35rem; }
.r3 .s-check-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--sky-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.r3 .s-check-mark svg { width: 24px; height: 24px; fill: none; stroke: var(--sky); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.r3 .s-steps { margin: .6rem 0 1.2rem; padding-left: 1.2rem; font-size: .95rem; display: grid; gap: .35rem; }

/* ── Basket drawer (SHOP_CART_ENABLED only) ───────────────── */
.r3 .s-cart { border: 0; border-radius: 16px 16px 0 0; padding: 1.1rem; width: 100%; max-width: 480px; margin: auto auto 0; color: var(--ink); }
@media (min-width: 700px) { .r3 .s-cart { border-radius: 16px; margin: auto; } }
.r3 .s-cart::backdrop { background: rgba(15, 23, 42, .45); }
.r3 .s-cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.r3 .s-cart-head h2 { font-size: 1.2rem; }
.r3 .s-cart-lines { list-style: none; margin: 0; padding: 0; }
.r3 .s-x { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.r3 .s-qty { display: inline-flex; align-items: center; border: 1px solid #CBD5E1; border-radius: 8px; }
.r3 .s-qty button { width: 44px; height: 44px; border: 0; background: none; font: 600 1.1rem var(--s-font); color: var(--ink); cursor: pointer; }
.r3 .s-qty span { min-width: 24px; text-align: center; font-weight: 600; }

/* ── /download/ (r3) ──────────────────────────────────────── */
.r3 .s-dl { padding: 4rem 0; }
.r3 .s-dl h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.03em; margin-bottom: .6rem; }
.r3 .s-dl .s-lead { font-size: 1.15rem; margin-bottom: 1.25rem; }
.r3 .s-chip { display: inline-block; background: var(--tile); color: var(--ink); border-radius: 8px; padding: .6rem .9rem; font-size: .95rem; font-weight: 600; margin-bottom: 2.25rem; }
.r3 .s-dl-grid { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .r3 .s-dl-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }
.r3 .s-dl-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.r3 .s-dl-row.last { border-bottom: 1px solid var(--line); }
.r3 .s-dl-row h2, .r3 .s-dl-row h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.r3 .s-dl-row > div { min-width: 0; flex: 1 1 260px; }
.r3 .s-dl-meta { margin: .5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; font-size: .88rem; color: var(--ink-2); }
.r3 .s-dl-meta dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.r3 .s-dl-meta code { font-size: .8rem; }
.r3 .s-dl-steps { margin: .8rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .95rem; color: var(--ink); }
.r3 .s-dl-old { margin-top: 1.2rem; font-size: .92rem; color: var(--ink-2); }
.r3 .s-cross { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; text-decoration: none; color: var(--ink); }
.r3 .s-cross .s-ph { flex: 0 0 120px; width: 120px; border-radius: 8px; }
.r3 .s-cross b { color: var(--sky); font-weight: 600; }
.r3 .s-cross:hover b { text-decoration: underline; }
.r3 .s-shot { max-width: 260px; width: 100%; }

@media (max-width: 480px) {
  .r3 .s-container { padding: 0 1.25rem; }
  .r3 .s-hero { padding-top: 3rem; }
  .r3 .s-hero .s-ph { margin-top: 2rem; }
  .r3 .s-section { padding: 3rem 0 2.5rem; }
  .r3 .s-pricebox > div { padding: .9rem .8rem; }
  .r3 .s-pricebox .v { font-size: 1.7rem; }
  .r3 .s-specs { grid-template-columns: 7rem 1fr; }
  .r3 .s-dl { padding: 3rem 0; }
}
