/* ==========================================================================
   ענת שי | המדריך לשחקן.ית: site.css
   Design: direction 1 „עריכה” (cream / charcoal / bordeaux, Rubik 300 headings, Heebo body).
   Spec: _reference/design-options/Dir1-Desktop.dc.html and Dir1-Mobile.dc.html.

   Colours come from site.json → brand (printed by layouts/base.html as --brand-*);
   fonts from fonts.head() (--font-heading / --font-body). RTL-first: logical properties.

   Contents
     1. Tokens        2. Base          3. Type & buttons     4. Layout helpers
     5. Header        6. Hero + trust  7. Sections           8. Price
     9. Footer       10. Buy bar      11. Plain pages, posts 12. Scroll-linked motion
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;
  --charcoal: var(--brand-text, #1F1E1C);
  --dark: var(--brand-primary, #2B2A28);
  --accent: var(--brand-accent, #7A1F2E);
  --cream: var(--brand-bg, #F7F4EE);
  --white: #FFFFFF;
  --muted: #5A5752;          /* 6.6:1 on cream, 7.2:1 on white */
  --ink-soft: #3D3A36;
  --hairline: #E3DDD3;
  --accent-on-dark: #D9A3AC; /* 6.9:1 on #2B2A28 */

  --f-head: var(--font-heading, "Rubik"), "Heebo", "Arial Hebrew", Arial, sans-serif;
  --f-body: var(--font-body, "Heebo"), "Arial Hebrew", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 40px;
  --header-h: 72px;
  --section-y: 120px;
  --bar-h: 0px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font: 400 18px/1.6 var(--f-body);
  text-rendering: optimizeLegibility;
  padding-block-end: var(--bar-h);
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--charcoal); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.section--dark :focus-visible { outline-color: var(--accent-on-dark); }
main:focus { outline: none; }
p, h1, h2, h3 { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -100px; z-index: 100;
  background: var(--dark); color: var(--cream); padding: .75rem 1.25rem; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { inset-block-start: 1rem; color: var(--cream); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Type & buttons ---------- */
.eyebrow { font: 500 13px/1.4 var(--f-body); color: var(--accent); }
.h {
  font-family: var(--f-head);
  font-weight: var(--font-heading-weight, 300);
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h2 { font-size: clamp(2.125rem, 1.2rem + 2.6vw, 3.5rem); }
.accent { color: var(--accent); }
.body { font: 400 18px/1.6 var(--f-body); }
.muted { color: var(--muted); }
b, strong { font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--dark); color: var(--cream); border: 1px solid var(--dark);
  font: 500 16px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--large { min-height: 58px; font-size: 17px; }
.btn--block { display: flex; inline-size: 100%; }

/* ---------- 4. Layout helpers ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.grid2--top { align-items: start; }
.grid2 > * { min-width: 0; }
.stack-16, .stack-18, .stack-20, .stack-22 { display: flex; flex-direction: column; min-width: 0; }
.stack-16 { gap: 16px; } .stack-18 { gap: 18px; } .stack-20 { gap: 20px; } .stack-22 { gap: 22px; }
.measure { max-width: 560px; }
.measure-sm { max-width: 480px; }
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); border-top: 1px solid var(--hairline); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-logo img { height: 34px; width: auto; }
.site-logo__text { font: 400 18px/1 var(--f-head); text-decoration: none; }
.site-nav__list { display: flex; gap: 28px; }
.site-nav a { font: 400 15px/1 var(--f-body); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-header__end { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  inline-size: 44px; block-size: 44px; border: 0; padding: 0; background: transparent; color: var(--charcoal);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle__icon { display: flex; flex-direction: column; gap: 6px; }
.nav-toggle__icon span { display: block; inline-size: 22px; block-size: 1px; background: currentColor; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 6. Hero + trust strip ---------- */
.hero { padding-block: 88px; }
.hero__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__text { display: flex; flex-direction: column; gap: 26px; }
.hero__title { font-size: clamp(2.75rem, 1.2rem + 4.6vw, 5.25rem); }
.hero__sub { max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__note { font-size: 15px; }
.hero__media { position: relative; --off: 18px; }
.hero__frame { position: absolute; inset: 0; border: 1px solid var(--accent); transform: translate(var(--off), var(--off)); }
.hero__photo { position: relative; }
.hero__photo img { inline-size: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }

.trust { background: var(--white); border-block: 1px solid var(--charcoal); }
.trust__short { display: none; }
.trust__inner {
  min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px;
  flex-wrap: wrap; font: 400 15px/1.4 var(--f-body); padding-block: 10px;
}

/* ---------- 7. Sections ---------- */
.goal { font-weight: 500; border-inline-start: 2px solid var(--accent); padding-inline-start: 18px; }

/* What you will learn */
.learn { display: flex; flex-direction: column; gap: 48px; }
.learn__head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: end; }
.rows { counter-reset: none; }
.row {
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px;
  padding-block: 26px; align-items: start;
}
.row::before, .rows .row:last-child::after {
  content: ""; position: absolute; inset-inline: 0; block-size: 1px; background: var(--charcoal);
  transform-origin: right center; /* inline-start in RTL */
}
.row::before { inset-block-start: 0; }
.rows .row:last-child::after { inset-block-end: 0; }
.row__n { font: 300 36px/1 var(--f-head); color: var(--accent); font-variant-numeric: tabular-nums; }
.row h3 { font: 400 22px/1.3 var(--f-head); margin-block-end: 6px; }
.row p { font: 400 16px/1.55 var(--f-body); color: var(--ink-soft); }

/* Anat */
.grid2--anat { grid-template-columns: 2fr 3fr; align-items: start; }
.anat__photo img { inline-size: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--hairline); }
.divider { display: flex; align-items: center; gap: 14px; }
.divider__line { inline-size: 48px; block-size: 1px; background: var(--charcoal); }
.divider__star { color: var(--accent); font-size: 13px; }

/* Who it is for (dark band) */
.section--dark { background: var(--dark); color: var(--cream); padding-block: 110px; }
.section--dark .eyebrow { color: var(--accent-on-dark); }
.section--dark a { color: var(--cream); }
.who { display: flex; flex-direction: column; gap: 44px; }
.who__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 56px; }
.chk { display: flex; gap: 12px; align-items: flex-start; font: 400 17px/1.5 var(--f-body); }
.chk__mark { color: var(--accent); font-size: 13px; line-height: 25px; flex: none; }
.section--dark .chk__mark { color: var(--accent-on-dark); }
.chk--light { color: #C9C3B9; } /* 8.3:1 on the dark band */

/* Testimonials */
.testi { display: flex; flex-direction: column; gap: 56px; }
.testi__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.testi__card {
  margin: 0; block-size: 100%; display: flex; flex-direction: column; gap: 20px;
  background: var(--cream); border: 1px solid var(--hairline); padding: 32px 28px 28px;
}
.testi__mark { font: 300 72px/.6 var(--f-head); color: var(--accent); block-size: 36px; }
.testi__quote { margin: 0; flex: 1; }
.testi__quote p { font: 400 18px/1.6 var(--f-body); }
.testi__by { display: flex; flex-direction: column; gap: 2px; padding-block-start: 18px; border-top: 1px solid var(--hairline); }
.testi__name { font: 500 15px/1.4 var(--f-body); }
.testi__role { font: 400 14px/1.4 var(--f-body); color: var(--muted); }

/* ---------- 8. Price ---------- */
.section--price { padding-block: 120px 100px; }
.steps { display: flex; flex-direction: column; gap: 14px; margin-block-start: 8px; }
.steps li { display: flex; gap: 14px; align-items: center; font: 400 16px/1.5 var(--f-body); }
.steps__n {
  inline-size: 38px; block-size: 38px; border-radius: 50%; border: 1px solid var(--charcoal); flex: none;
  display: inline-flex; align-items: center; justify-content: center; font: 300 17px/1 var(--f-head);
}
.price-card {
  border: 1px solid var(--charcoal); background: var(--white); padding: 40px;
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.price-card__amount { font-size: 64px; font-variant-numeric: tabular-nums; }
.price-card__was { font-size: 24px; color: var(--muted); }
.price-card__list { display: flex; flex-direction: column; gap: 10px; padding-block-start: 18px; border-top: 1px solid var(--hairline); }
.price-card__list .chk { font-size: 16px; }
.price-card .btn { margin-block-start: 8px; }
.price-card__note { font-size: 13px; text-align: center; line-height: 1.6; }
.price-card__note a { color: var(--muted); }

/* ---------- 9. Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer__inner {
  padding-block: 36px 88px; /* bottom room: the accessibility button sits in the corner */
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap;
  font: 400 14px/1.5 var(--f-body); color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer__biz a { text-decoration: none; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: flex-start; }
.site-footer__links ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer .ib-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.site-footer .ib-copyright { margin: 0; inline-size: 100%; }

/* ---------- 10. Buy bar (phones only) ---------- */
.buy-bar { display: none; }

/* ---------- 11. Plain pages (404, thanks) and Markdown posts ---------- */
.plain { min-height: 50vh; }
.container { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.post { padding-block: 72px; }
.post h1 { font: 300 clamp(2.125rem, 1.2rem + 2.6vw, 3.5rem)/1.1 var(--f-head); margin-block: 12px 24px; }
.post__body { font-size: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .site-nav__list { gap: 20px; }
}
@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: block; position: absolute; inset-inline: 0; inset-block-start: 100%;
    background: var(--cream); border-bottom: 1px solid var(--hairline); padding: 8px var(--gutter) 16px;
  }
  .js .site-nav.is-open .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav.is-open a { min-height: 48px; font-size: 17px; inline-size: 100%; border-bottom: 1px solid var(--hairline); }
  .site-logo img { height: 26px; }
}
@media (max-width: 820px) {
  :root { --gutter: 20px; --section-y: 56px; --bar-h: 72px; }
  body, .body { font-size: 16px; line-height: 1.55; }
  .eyebrow { font-size: 12px; }
  .btn { min-height: 50px; padding: 0 24px; font-size: 15px; }
  .btn--small { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .grid2, .grid2--anat, .hero__grid, .learn__head { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .stack-18 { gap: 12px; }

  .hero { padding-block: 36px 36px; }
  .hero__grid { gap: 28px; }
  .hero__text { gap: 18px; }
  .hero__note { font-size: 13px; }
  .hero__actions .btn:not(.btn--ghost) { flex: 1 1 100%; }
  .hero__actions .btn--ghost { display: none; }
  .hero__media { --off: 12px; }
  .hero__photo img { aspect-ratio: 4 / 3.4; }

  .trust__short { display: none; }
.trust__inner { font-size: 13px; min-height: 0; padding-block: 12px; }
  .trust__role, .trust__facts { display: none; }
  .trust__short { display: inline; }

  .learn { gap: 22px; }
  .row { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding-block: 16px; }
  .row__n { font-size: 26px; }
  .row h3 { font-size: 17px; margin-block-end: 4px; }
  .row p { font-size: 14px; line-height: 1.5; }

  .section--dark { padding-block: 56px; }
  .who { gap: 28px; }
  .who__list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .chk { font-size: 15px; gap: 10px; }
  .chk__mark { font-size: 12px; line-height: 22px; }

  .testi { gap: 28px; }
  .testi__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .testi__card { padding: 24px 20px 20px; gap: 14px; }
  .testi__mark { font-size: 56px; block-size: 28px; }
  .testi__quote p { font-size: 17px; }

  .section--price { padding-block: 56px 64px; }
  .price-card { padding: 24px; gap: 14px; }
  .price-card__amount { font-size: 44px; }
  .price-card__was { font-size: 18px; }

  .site-footer__inner { flex-direction: column; padding-block: 28px 80px; }

  .buy-bar {
    display: flex; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40;
    min-height: var(--bar-h); padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(247, 244, 238, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border-top: 1px solid var(--hairline);
  }
  .buy-bar__price { display: flex; flex-direction: column; }
  .buy-bar__amount { font: 300 22px/1.1 var(--f-head); font-variant-numeric: tabular-nums; }
  .buy-bar__label { font: 400 12px/1.3 var(--f-body); color: var(--muted); }
  .buy-bar__btn { min-height: 46px; padding: 0 20px; }
  /* The platform's accessibility button lives in the bottom corner: lift it above the bar. */
  body.has-buy-bar .ib-a11y { bottom: calc(var(--bar-h) + 8px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .site-header__cta { padding: 0 12px; font-size: 13px; }
  .site-logo img { height: 22px; }
}

/* ---------- 12. Scroll-linked motion ----------
   Progress custom properties (0 → 1) drive every reveal, so the same visual rules serve both paths:
   - Path A (CSS scroll-driven animations, where supported): keyframes animate --sa / --hp / --hq
     on a view() or scroll() timeline. Reversible by nature: the value follows the scroll position.
   - Path B (fallback, assets/js/site.js): a passive scroll listener + rAF computes the same progress
     and writes it with style.setProperty. html.js marks that the script ran.
   Without JS and without scroll-timeline support the properties keep their initial value 1: all visible.
   prefers-reduced-motion: reduce → no animation, everything at 1. */
@property --sa { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --hp { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --hq { syntax: "<number>"; inherits: true; initial-value: 0; }

/* Fade + rise 40px. */
.sa { opacity: var(--sa); transform: translateY(calc((1 - var(--sa)) * 40px)); }
/* Learn rows: hairline draws from the inline-start side, then the number, then the text. */
.sa-row::before { transform: scaleX(clamp(0, calc(var(--sa) * 1.7), 1)); }
.sa-row .row__n {
  opacity: clamp(0, calc((var(--sa) - .15) * 2.4), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--sa) - .15) * 2.4), 1)) * 14px));
}
.sa-row .row__body {
  opacity: clamp(0, calc((var(--sa) - .35) * 1.9), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--sa) - .35) * 1.9), 1)) * 18px));
}
/* Dark band ✦ items. */
.sa-item { opacity: var(--sa); transform: translateY(calc((1 - var(--sa)) * 28px)); }
.sa-item .chk__mark { display: inline-block; transform: scale(calc(.4 + var(--sa) * .6)) rotate(calc((1 - var(--sa)) * -90deg)); }
/* Hero: the frame slides from (almost) behind the photo into its offset; the photo settles. */
.hero__frame {
  transform: translate(calc(var(--off) * (.5 + .5 * var(--hp))), calc(var(--off) * (.5 + .5 * var(--hp))));
  opacity: calc(.7 + .3 * var(--hp));
}
.hero__photo { transform: translateY(calc((1 - var(--hp)) * -8px)); }
@media (max-width: 820px) {
  /* gentle parallax on phones (max 16px) */
  .hero__photo { transform: translateY(calc((1 - var(--hp)) * -6px + var(--hq) * 16px)); }
}

@keyframes sa-progress { from { --sa: 0; } to { --sa: 1; } }
@keyframes hp-progress { from { --hp: 0; --hq: 0; } 50% { --hp: 1; } to { --hp: 1; --hq: 1; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sa, .sa-row, .sa-item {
      animation: sa-progress linear both;
      animation-timeline: view();
      animation-range: cover 10vh cover 50vh;  /* element top: 90% of the viewport → the middle (40vh of scroll) */
    }
    .sa-row { animation-range: cover 10vh cover 60vh; }
    .hero {
      animation: hp-progress linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 720px;               /* --hp: 0 → 1 over the first 360px, --hq over 720px */
    }
    @media (min-width: 821px) {
      .who__list .sa-item:nth-child(even), .testi__grid .sa-item:nth-child(even) { animation-range: cover 16vh cover 56vh; }
    }
  }
}

/* The JS fallback is running (html.sa-js): CSS animations must not override its values. */
.sa-js .sa, .sa-js .sa-row, .sa-js .sa-item, .sa-js .hero { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .sa, .sa-row, .sa-item, .hero { --sa: 1 !important; --hp: 1 !important; --hq: 0 !important; animation: none !important; }
}
@media print {
  .sa, .sa-row, .sa-item, .hero { --sa: 1 !important; --hp: 1 !important; --hq: 0 !important; animation: none !important; }
  .buy-bar, .site-header { position: static; }
}

/* Header: menu button only on narrow screens; without JS the links wrap onto their own line. */
@media (min-width: 961px) { .nav-toggle { display: none !important; } }
@media (max-width: 960px) {
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { order: 3; inline-size: 100%; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; gap: 0 18px; }
}
.site-footer__biz a { white-space: nowrap; }
@media (max-width: 820px) {
  .site-footer__biz { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .site-footer__biz > span[aria-hidden] { display: none; }
}

/* ---------- 13. Platform-generated legal pages (/privacy/, /accessibility/, /terms/) ----------
   The platform renders them as <article class="ib-legal-page"> straight inside <main>. */
.ib-legal-page {
  max-width: 46rem; margin-inline: auto; box-sizing: border-box;
  padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(72px, 8vw, 120px);
  font: 400 17px/1.7 var(--f-body); color: var(--ink-soft);
}
.ib-legal-page h1 { font: 300 clamp(36px, 5vw, 56px)/1.08 var(--f-head); color: var(--charcoal); margin: 0 0 12px; text-wrap: balance; }
.ib-legal-page .ib-legal-updated { font: 400 14px/1.5 var(--f-body); color: var(--muted); margin: 0 0 40px; }
.ib-legal-page h2 { font: 400 26px/1.25 var(--f-head); color: var(--charcoal); margin: 44px 0 12px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.ib-legal-page h3 { font: 500 18px/1.4 var(--f-body); color: var(--charcoal); margin: 24px 0 8px; }
.ib-legal-page p, .ib-legal-page ul, .ib-legal-page ol { margin: 0 0 16px; }
.ib-legal-page ul, .ib-legal-page ol { padding-inline-start: 1.4em; }
.ib-legal-page li + li { margin-top: 6px; }
.ib-legal-page a { color: var(--accent); text-underline-offset: 3px; }
.ib-legal-page a:hover { color: var(--charcoal); }
.ib-legal-page table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.ib-legal-page th, .ib-legal-page td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); text-align: start; vertical-align: top; }
@media (max-width: 820px) { .ib-legal-page { padding-inline: 20px; } }

/* ---------- 14. Platform widgets: quieter accessibility button and cookie banner ----------
   Markup and behaviour come from the platform (a11y.widget(), consent.banner()); only the look is ours.
   Touch targets stay ≥ 44px (IS 5568). */
body .ib-a11y { inset-inline-start: 12px; bottom: 12px; font-size: 13px; }
body .ib-a11y .ib-a11y-toggle {
  min-width: 44px; min-height: 44px; padding: 0 14px; margin: 0;
  background: rgba(255, 255, 255, .92); color: var(--charcoal);
  border: 1px solid var(--hairline); border-radius: 999px;
  font: 500 12px/1 var(--f-body); letter-spacing: .01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
body .ib-a11y .ib-a11y-toggle:hover, body .ib-a11y .ib-a11y-toggle[aria-expanded="true"] { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
body .ib-a11y .ib-a11y-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body .ib-a11y .ib-a11y-panel { background: #FFFFFF; border: 1px solid var(--hairline); padding: 6px; margin-top: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
body .ib-a11y .ib-a11y-panel button, body .ib-a11y .ib-a11y-panel a {
  background: #FFFFFF; color: var(--charcoal); border: 1px solid transparent; margin: 0; font: 400 14px/1.3 var(--f-body);
}
body .ib-a11y .ib-a11y-panel button:hover, body .ib-a11y .ib-a11y-panel a:hover { background: var(--cream); border-color: var(--hairline); }

body .ib-consent-banner {
  background: rgba(247, 244, 238, .97); color: var(--ink-soft);
  border-top: 1px solid var(--hairline); padding: 10px 20px;
  gap: 8px 20px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
body .ib-consent-banner .ib-consent-text { font: 400 13px/1.45 var(--f-body); margin: 0; max-width: 60ch; }
body .ib-consent-banner .ib-consent-text a { color: var(--accent); }
body .ib-consent-banner .ib-consent-actions button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; font: 500 13px/1 var(--f-body);
  border: 1px solid var(--charcoal); background: var(--charcoal); color: var(--cream);
}
body .ib-consent-banner .ib-consent-actions .ib-btn--secondary { background: transparent; color: var(--charcoal); }
@media (max-width: 820px) {
  body .ib-consent-banner { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  body .ib-consent-banner .ib-consent-text { font-size: 12px; }
  body .ib-consent-banner .ib-consent-actions button { min-height: 44px; }
  /* the banner sits above the buy bar while it is open */
  body.has-buy-bar .ib-consent-banner { bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
}

/* ---------- 15. Inline purchase form (price card) ---------- */
.buy-form { display: flex; flex-direction: column; gap: 14px; padding-block-start: 18px; border-top: 1px solid var(--hairline); }
.buy-form__field { display: flex; flex-direction: column; gap: 6px; }
.buy-form__field label { font: 500 13px/1.3 var(--f-body); color: var(--muted); }
.buy-form__field input {
  box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 14px;
  font: 400 16px/1.4 var(--f-body); color: var(--charcoal);
  background: var(--cream); border: 1px solid var(--hairline); border-radius: 6px;
}
.buy-form__field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.buy-form__field input[aria-invalid="true"] { border-color: var(--accent); }
.buy-form__consent { display: flex; gap: 10px; align-items: flex-start; font: 400 13px/1.5 var(--f-body); color: var(--ink-soft); cursor: pointer; }
.buy-form__consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.buy-form__consent a { color: var(--accent); }
.buy-form__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.buy-form .btn { margin-block-start: 4px; }
.price-card { position: relative; }
