/* ==========================================================================
   LensPath — marketing + legal site (v2)
   Design language lifted from the LensPath configurator widget:
   white surfaces, near-black ink, mono prices, rounded cards,
   black CTA buttons, green success / gold info badges.
   Single stylesheet. No build step. RTL-aware. WCAG AA contrast.
   ========================================================================== */

/* ---- Design tokens — LensPath brand palette (see BRAND.md) ---------------- */
:root {
  /* Brand palette built around #1B4965 (deep teal-blue) */
  --primary:      #1B4965;   /* deep teal-blue — CTAs, selected states */
  --primary-600:  #163C54;   /* hover / pressed */
  --primary-700:  #102C3D;   /* darkest — bands, footer accents */
  --accent:       #4F9DBA;   /* lighter teal tint */
  --accent-200:   #BCDDE7;   /* soft tint for fills */
  --accent-050:   #EAF3F6;   /* faint wash / selected fills */

  /* Neutrals — warm, optical-premium */
  --ink:          #16242E;   /* near-black text */
  --ink-soft:     #51626E;   /* muted body text */
  --ink-faint:    #7C8B95;   /* captions, meta */
  --bg:           #F3EFE6;   /* warm cream page background */
  --bg-alt:       #EAE4D7;   /* deeper cream for alternating sections */
  --surface:      #FFFFFF;   /* cards, widget surfaces */
  --border:       #E1D9C9;   /* warm hairline */
  --border-cool:  #D9E3E8;   /* cool hairline on teal areas */
  --border-strong:var(--primary); /* selected-state border */
  --selected-bg:  var(--accent-050); /* selected card fill */

  /* Status accents */
  --success:      #2E7D5B;   /* green check / FREE badge text */
  --success-bg:   #E3EFE8;   /* green badge fill */
  --gold:         #8A6D1F;   /* IN-STORE FITTING badge text */
  --gold-bg:      #F5EEDC;   /* gold badge fill */

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Scale */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-btn: 16px;
  --shadow-sm: 0 1px 2px rgba(18,19,22,.05);
  --shadow-md: 0 10px 30px rgba(18,19,22,.08), 0 2px 8px rgba(18,19,22,.05);
  --shadow-lg: 0 24px 60px rgba(18,19,22,.14);

  --space: clamp(4rem, 9vw, 7.5rem); /* vertical section rhythm */
}

/* ---- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 550;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 500; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; font-weight: 600; }
p  { color: var(--ink-soft); }

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.01em; }

/* ---- Accessibility helpers ----------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--primary); color: #fff;
  padding: .6rem 1rem; border-radius: 8px; z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }
.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;
}

/* ---- Layout primitives ---------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: var(--space); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.mx-auto { margin-inline: auto; }

/* Widget-style uppercase label ("CONFIGURE YOUR LENSES") */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .9rem;
}
.lede { font-size: 1.18rem; color: var(--ink-soft); }

/* Badges — straight from the widget */
.badge {
  display: inline-flex; align-items: center;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: 999px;
  background: var(--selected-bg); color: var(--ink);
}
.badge--free    { background: var(--success-bg); color: var(--success); }
.badge--gold    { background: var(--gold-bg); color: var(--gold); }
.badge--outline { background: var(--bg); border: 1px solid var(--border); color: var(--ink-faint); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-600); box-shadow: var(--shadow-md); }
.btn--ghost { background: var(--bg); color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: var(--bg-alt); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-row { display: flex; gap: .9rem; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }
.btn .glyph { width: 18px; height: 18px; }

/* ---- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 650; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 42px; height: 28px; flex: none; color: var(--primary); }
.site-footer .brand__mark { color: #fff; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; padding: 0; }
.nav__links a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.nav__links a:hover { color: var(--primary); text-decoration: none; }
.nav__cta { display: inline-flex; align-items: center; gap: .8rem; }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 10px; padding: .45rem .55rem; cursor: pointer; color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav[data-open="true"] .nav__links {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: .5rem 1.5rem 1.25rem;
  }
  .nav[data-open="true"] .nav__links a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
}

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% -10%, var(--accent-050), transparent 60%),
    radial-gradient(50% 60% at 0% 110%, #f1ece3, transparent 70%);
}
.hero__grid {
  display: grid; grid-template-columns: 1fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { margin-bottom: 1.8rem; max-width: 42ch; }
.hero__meta { margin-top: 1.5rem; color: var(--ink-faint); font-size: .92rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.hero__meta span { display: inline-flex; align-items: center; gap: .4rem; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Widget screenshot media */
.shot {
  display: block; width: 100%; height: auto; max-width: 460px; margin-inline: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); background: #fff;
}

/* ==========================================================================
   CONFIGURATOR SHOWCASE — CSS recreation of the widget (currently unused;
   real screenshots in assets/img/widget-*.png replaced these blocks)
   ========================================================================== */
.cfg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
  font-size: .95rem;
}
.cfg--wide { max-width: 520px; }

.cfg__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem .9rem;
}
.cfg__title {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; font-weight: 750; color: var(--ink);
}
.cfg__close {
  width: 30px; height: 30px; border-radius: 999px; flex: none;
  background: var(--selected-bg); color: var(--ink);
  display: grid; place-items: center; font-size: .8rem; line-height: 1;
  border: 0;
}

.cfg__progress { display: flex; gap: .5rem; padding: 0 1.4rem .95rem; }
.cfg__progress i {
  height: 3px; flex: 1; border-radius: 99px; background: var(--border);
}
.cfg__progress i.is-done { background: var(--primary); }

.cfg__body { border-top: 1px solid var(--border); padding: 1.3rem 1.4rem; }
.cfg__h { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: .15rem; }
.cfg__sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.1rem; }

/* Option rows (lens type / thickness / Rx-mode cards) */
.cfg-option {
  display: flex; align-items: flex-start; gap: .85rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: .95rem 1.05rem; background: var(--surface);
  cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.cfg-option + .cfg-option { margin-top: .7rem; }
.cfg-option:hover { border-color: var(--ink-faint); }
.cfg-option.is-selected {
  border: 2px solid var(--border-strong);
  background: var(--selected-bg);
  padding: calc(.95rem - 1px) calc(1.05rem - 1px);
}
.cfg-option__icon { flex: none; width: 34px; height: 34px; color: var(--ink); margin-top: .1rem; }
.cfg-option__icon svg { width: 100%; height: 100%; }
.cfg-option__main { flex: 1; min-width: 0; }
.cfg-option__name { font-weight: 650; font-size: .98rem; color: var(--ink); }
.cfg-option__desc { color: var(--ink-soft); font-size: .86rem; margin-top: .1rem; }
.cfg-option__badge { margin-top: .45rem; }
.cfg-option__price {
  font-family: var(--font-mono); font-weight: 500; font-size: .88rem;
  color: var(--ink); white-space: nowrap; margin-top: .15rem;
}
.cfg-option__price .from { color: var(--ink-faint); }

/* Price ledger (success screen) */
.cfg-ledger { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cfg-ledger__row {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .85rem 1.05rem; border-top: 1px solid var(--border);
  color: var(--ink-soft); font-size: .92rem;
}
.cfg-ledger__row:first-child { border-top: 0; color: var(--ink); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.cfg-ledger__row--total { background: var(--bg-alt); color: var(--ink); font-weight: 700; }
.cfg-ledger__price { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; color: var(--ink); }

/* Footer bar with running total */
.cfg__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--border); padding: 1rem 1.4rem;
}
.cfg__total-label { color: var(--ink-soft); font-size: .82rem; }
.cfg__total {
  font-family: var(--font-mono); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em;
}
.cfg__actions { display: flex; gap: .6rem; }
.cfg__btn {
  font-weight: 600; font-size: .95rem; padding: .75rem 1.35rem;
  border-radius: var(--radius-btn); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.cfg__btn--dark { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Success screen */
.cfg-success { text-align: center; padding-block: .6rem 1.2rem; }
.cfg-success__ring {
  width: 74px; height: 74px; border-radius: 999px; margin: 0 auto 1.1rem;
  background: var(--success-bg); border: 1px solid color-mix(in srgb, var(--success) 25%, transparent);
  display: grid; place-items: center; color: var(--success);
}
.cfg-success__ring svg { width: 30px; height: 30px; }
.cfg-success h3 { font-size: 1.5rem; font-weight: 500; }
.cfg-success p { font-size: .95rem; margin-top: .3rem; }

/* Swatches (tint colours) */
.cfg-swatches { display: flex; gap: .7rem; align-items: center; }
.cfg-swatch {
  width: 34px; height: 34px; border-radius: 999px; flex: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.cfg-swatch.is-selected { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Lens preview panel */
.cfg-preview {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 1.6rem 1rem 1.9rem; position: relative; margin-bottom: 1.1rem;
}
.cfg-preview__hint {
  position: absolute; bottom: .8rem; inset-inline-end: .9rem;
  background: #fff; border-radius: 999px; padding: .3rem .8rem;
  font-size: .78rem; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}

/* ---- Generic feature / card grids ---------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: 1rem; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--bg-alt); color: var(--ink);
  border: 1px solid var(--border);
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---- Feature rows (alternating) ------------------------------------------ */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3.5rem, 7vw, 6rem); }
.feature-row--rev .feature-row__media { order: -1; }
.feature-row__body .kicker { color: var(--ink-faint); font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.feature-row__body h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .5rem 0 .8rem; font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--success); margin-top: .15rem; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-row--rev .feature-row__media { order: 0; }
}

/* ---- Trust strip ---------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.trust__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.trust__item strong { display: block; margin-bottom: .25rem; font-weight: 650; }
.trust__item p { font-size: .95rem; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }

/* ---- Pricing -------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem; display: flex; flex-direction: column;
}
.plan--featured { border: 2px solid var(--primary); position: relative; background: var(--surface); box-shadow: var(--shadow-md); }
.plan__tag {
  position: absolute; top: -.8rem; inset-inline-start: 1.7rem;
  background: var(--primary); color: #fff;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: .32rem .75rem; border-radius: 999px;
}
.plan__name { font-weight: 650; font-size: 1.2rem; }
.plan__price { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; letter-spacing: -.03em; margin-top: .4rem; line-height: 1; }
.plan__price small { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.plan__sub { color: var(--ink-faint); font-size: .92rem; margin-top: .4rem; }
.plan__features { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .7rem; }
.plan__features li { display: flex; gap: .55rem; align-items: flex-start; font-size: .98rem; color: var(--ink-soft); }
.plan__features svg { flex: none; width: 19px; height: 19px; color: var(--success); margin-top: .18rem; }
.plan .btn { margin-top: auto; justify-content: center; }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem); text-align: center; position: relative; overflow: hidden;
}
.cta-band h2, .cta-band p { color: #fff; position: relative; z-index: 1; }
.cta-band p { color: #C7CACD; max-width: 52ch; margin: .8rem auto 1.6rem; }
.cta-band .btn-row { position: relative; z-index: 1; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn--ghost:hover { border-color: #fff; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #B9BDC2; padding-block: 3.5rem 2rem; }
.site-footer a { color: #B9BDC2; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer__brand .brand { color: #fff; }
.footer__brand p { color: #8E9297; max-width: 34ch; margin-top: .8rem; font-size: .95rem; }
.footer__col h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .9rem; font-weight: 700; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer__col a { font-size: .96rem; }
.footer__bottom { border-top: 1px solid #2A2C30; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: #85898E; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---- Legal / docs prose --------------------------------------------------- */
.legal { padding-block: clamp(3rem, 6vw, 5rem); }
.legal__head { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2.5rem; }
.legal__head .updated { color: var(--ink-faint); font-size: .92rem; margin-top: .6rem; font-family: var(--font-mono); }
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4rem; margin-bottom: .8rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-inline-start: 1.4rem; color: var(--ink-soft); }
.prose li { margin-bottom: .5rem; }
.prose a { text-decoration: underline; }
.prose strong { color: var(--ink); }
.toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2.5rem; }
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin: 0 0 .7rem; font-weight: 700; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .4rem; break-inside: avoid; }
@media (max-width: 600px) { .toc ul { columns: 1; } }

.callout {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: .97rem; color: var(--ink-soft);
}

/* Subprocessor / definition table */
.def-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .97rem; }
.def-table th, .def-table td { text-align: start; padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.def-table th { color: var(--ink); font-weight: 650; background: var(--bg-alt); }
.def-table td { color: var(--ink-soft); }

/* ---- Forms (support) ------------------------------------------------------ */
.form { display: grid; gap: 1.1rem; max-width: 560px; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem .95rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-050); }
.field textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: .88rem; color: var(--ink-faint); }

/* ---- FAQ / details -------------------------------------------------------- */
.faq { display: grid; gap: .75rem; max-width: 760px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .25rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: .9rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--ink-faint); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 1rem; font-size: .98rem; }

/* ---- Misc helpers --------------------------------------------------------- */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mb-1 { margin-bottom: .5rem; }
.text-soft { color: var(--ink-soft); }
.divider { height: 1px; background: var(--border); border: 0; margin-block: var(--space); }

/* Legacy screenshot slot (kept for any page still using it) */
.slot {
  border: 1.5px dashed var(--border);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  display: grid; place-items: center; text-align: center;
  color: var(--ink-faint); padding: 1.5rem;
  min-height: 280px; position: relative;
}
.slot__label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); }
.slot__hint { font-size: .9rem; margin-top: .35rem; }
.slot--wide { min-height: 360px; }
.slot--feature { min-height: 220px; }

/* ---- RTL support ---------------------------------------------------------- */
[dir="rtl"] .hero .lede,
[dir="rtl"] .cta-band p { text-align: inherit; }
[dir="rtl"] .feature-row--rev .feature-row__media { order: 0; }
/* logical properties above (margin-inline, padding-inline, inset-inline-start,
   text-align:start) make most of the layout mirror automatically under dir="rtl". */
