/*
 * folko.io design system — "After dark" (2026-10).
 * Spec: docs/superpowers/specs/2026-10-08-website-redesign-design.md §3.
 * Dark only on the pages that load this file. Plus Jakarta Sans only, weights ≤ 700.
 * Amber is a signal: the primary button, the focus ring, an active state. Never a fill or a decoration.
 * Logical properties throughout (inline-start/end), so dir="rtl" mirrors without overrides.
 */

:root {
  --ground: #0C0A09;
  --raised: #141210;
  --surface: #1C1917;
  --line: #292524;
  --text: #FAFAF9;
  --text-2: #D6D3D1;
  --muted: #A8A29E;
  --dim: #78716C;        /* 4.12:1 on ground: large text and decoration only */
  --clay: #D9925F;
  --amber: #F59E0B;
  --amber-hover: #FBBF24;
  --amber-ink: #1C1917;
  --in: #5AA86B;
  --out: #E0654A;
  --bezel: #0A0908;

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans Devanagari', sans-serif;
  --wrap: 1240px;
  --gutter: 24px;
  --chapter: clamp(64px, 9vw, 128px);
  --compact: clamp(48px, 6vw, 88px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 12px; z-index: 100; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Type ─────────────────────────────────────────────── */
.display { font-size: clamp(40px, 5.4vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; }
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--text-2); max-width: 54ch; text-wrap: pretty; }
.small { font-size: 14px; font-weight: 500; color: var(--muted); }
.story-note { margin-top: 14px; }
.tier { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Scripts without Latin case or with joined letters: no negative tracking, no caps tracking. */
:lang(ar) .display, :lang(ar) .h2, :lang(ar) .numeral, :lang(ar) .eyebrow,
:lang(hi) .display, :lang(hi) .h2, :lang(hi) .eyebrow,
:lang(zh) .display, :lang(zh) .h2, :lang(ja) .display, :lang(ja) .h2, :lang(ko) .display, :lang(ko) .h2 {
  letter-spacing: 0;
}

/* ── Buttons and links ────────────────────────────────── */
/* 2026-10-18 navigation pass (feedback: "the buttons don't have the right weight or presence"): taller, larger type,
 * a lit top edge and a soft amber CTA glow (permitted since 2026-07-07), an arrow that leads on hover. The secondary
 * action is a real outlined button, no longer bare text. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  font: 600 16.5px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 60px; padding: 0 30px; border-radius: 14px; font-size: 18px; }
.btn-primary { background: var(--amber); color: var(--amber-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.45), 0 14px 32px -14px rgba(245, 158, 11, 0.6); }
.btn-primary:hover { background: var(--amber-hover); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.45), 0 20px 40px -14px rgba(245, 158, 11, 0.75); }
.btn-primary:active { transform: translateY(1px); }
.btn-quiet { background: var(--raised); color: var(--text); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(250, 250, 249, 0.26); }
.btn-ghost:hover { border-color: var(--text-2); background: rgba(250, 250, 249, 0.05); }
.btn-arrow { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(3px); }
.link-quiet { color: var(--text-2); font-weight: 500; font-size: 16px; text-decoration: none; }
.link-quiet:hover { color: var(--text); }
.link-more { display: inline-block; margin-top: 28px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 6px; }
.link-more:hover { text-decoration-color: var(--text); }

/* ── Nav (ids and lang-* classes are hooks in i18n.js and main.js) ── */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav-logo img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links [data-sec] { position: relative; padding-block: 8px; }
.nav-links [data-sec]::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--amber); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.nav-links [aria-current] { color: var(--text); }
.nav-links [aria-current]::after { transform: scaleX(1); }
.nav-cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.cta-short { display: none; }
.section-bar { display: none; }
.lang-dropdown-wrapper { position: relative; }
.lang-toggle { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text-2); font: 600 13px/1 var(--font); cursor: pointer; }
.lang-toggle:hover { border-color: var(--muted); }
.lang-dropdown { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; width: 380px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); }
.lang-dropdown.open { display: grid; }
.lang-opt { padding: 9px 10px; background: none; border: 0; border-radius: 8px; color: var(--text-2); font: 500 14px/1.2 var(--font); text-align: start; cursor: pointer; }
.lang-opt:hover { background: var(--raised); color: var(--text); }
.lang-opt.active { color: var(--amber); }
.nav-hamburger { display: none; padding: 8px; background: none; border: 0; color: var(--text); cursor: pointer; }
.mobile-menu { display: none; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 6vh, 72px) clamp(24px, 4vh, 56px); min-height: calc(100vh - var(--nav-h)); display: grid; align-content: center; }
/* Copy centred against the phone (2026-10-08 night: an end-aligned copy under a 780 px phone box left ~330 px of empty
 * band between the nav and the headline at 2000 px). The phone is sized by the screen's height so it is always whole. */
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.hero-copy { animation: hero-in 0.9s var(--ease) both; }
.hero h1 .accent { color: var(--dim); }
.hero-sub { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 40px; }
.hero-meta { margin-top: 44px; }
.hero-phones { position: relative; animation: hero-in 1.1s var(--ease) 0.15s both; }
/* centred on the same line as the pinned story phone (75% of the wrap), so the first scroll doesn't jump sideways */
.hero-phones .phone-front { --hw: min(318px, 60%, calc((100vh - var(--nav-h) - 120px) / 2.18)); position: relative; width: var(--hw); margin-inline-start: calc(37.5% - var(--hw) / 2); }
.hero-phones .phone-back { position: absolute; inset-inline-end: 47%; bottom: 3%; width: min(250px, 46%); opacity: 0.5; }
/* Transform only: an opacity-0 start on the hero would delay Largest Contentful Paint by the animation's length. */
@keyframes hero-in { from { transform: translateY(14px); } to { transform: none; } }

/* ── The phone: a CSS frame around a real capture (1206 × 2622) ── */
/* Padding is fixed: a percentage resolves against the CONTAINER, which is max-content wide in the theme strip. */
.phone { background: var(--bezel); padding: 7px; border-radius: 13.5% / 6.2%; box-shadow: 0 0 0 1px var(--line), 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -24px rgba(0, 0, 0, 0.75); }
.phone img { width: 100%; border-radius: 11.4% / 5.25%; }

/* ── Big chapters ─────────────────────────────────────── */
.chapter { padding-block: var(--chapter); }
.raised { background: var(--raised); }
.chapter-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: center; }
.chapter-copy { grid-column: 1 / span 5; min-width: 0; }
.chapter-media { grid-column: 7 / span 6; position: relative; min-height: clamp(520px, 52vw, 720px); }
/* 720 px holds a 320 px-wide front phone (695 px tall) and the back phone at top 14%. */
.flip .chapter-copy { grid-column: 8 / span 5; grid-row: 1; }
.flip .chapter-media { grid-column: 1 / span 6; grid-row: 1; }
.chapter-copy .eyebrow { margin-bottom: 22px; }
.chapter-copy .lede { margin-top: 26px; }
.numeral { display: block; margin-bottom: 18px; font-size: clamp(112px, 15vw, 220px); line-height: 0.8; font-weight: 600; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--text); }
.numeral-wide { font-size: clamp(60px, 7.6vw, 112px); letter-spacing: -0.045em; line-height: 0.9; }
/* Sized so the widest numeral ("USD 6,924.11" with small currency and cents) fits a 5-of-12 column at 1240 px. */
.numeral { white-space: nowrap; }
.numeral .cents { font-size: 0.42em; font-weight: 600; letter-spacing: -0.02em; color: var(--text-2); vertical-align: 0.95em; margin-inline-start: 0.04em; }
.numeral small { font-size: 0.32em; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-inline-end: 0.3em; vertical-align: 0.6em; }
/* currency after the number where the app writes it so (lib/localeSeparators.ts: es, de, it, vi, fr, ru) */
.numeral small.after { margin-inline: 0.3em 0; }
/* A money figure reads left to right in every script (as in the app); in RTL it still sits on the start (right) edge. */
[dir="rtl"] .numeral { direction: ltr; text-align: right; }
.numeral-cap { display: block; margin-bottom: 36px; font-size: 15px; font-weight: 500; color: var(--muted); }
.points { margin-top: 36px; border-top: 1px solid var(--line); }
.points li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text-2); }
/* A long plan badge (fr "1 avec Gratuit · 5 avec Plus · illimités avec Max") wraps instead of widening the page at 360px. */
.points .tier { flex: none; max-width: 100%; white-space: normal; }
.media-pair .phone:first-child { position: absolute; inset-inline-end: 0; top: 0; width: min(320px, 52%); z-index: 2; }
.media-pair .phone:last-child { position: absolute; inset-inline-start: 6%; top: 14%; width: min(276px, 44%); opacity: 0.72; }
.media-single .phone { position: absolute; inset-inline-end: 8%; top: 0; width: min(330px, 58%); }

/* ── Compact chapters: text-led rows, at most one screen ── */
.compact { padding-block: var(--compact); border-top: 1px solid var(--line); }
.compact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: start; }
.compact-head { grid-column: 1 / span 5; min-width: 0; }
.compact-head .eyebrow { margin-bottom: 18px; }
.compact-head .lede { margin-top: 20px; }
.compact-body { grid-column: 7 / span 6; min-width: 0; }
.compact .h2 { font-size: clamp(28px, 3.2vw, 44px); }
.rows { border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.rows h3 { grid-column: 1; }
.rows p { grid-column: 1; font-size: 16px; color: var(--muted); }
.rows .tier { grid-column: 2; grid-row: 1; align-self: start; }
.compact-shot { margin-top: 44px; max-width: 260px; }

/* ── Showcase: copy on one side, phones on the other (Travel, Loans, Import) ──
 * 2026-10-08 night (Andres: "bigger phones with a little less space between phones and text"): the copy takes 5 of
 * 12 columns and the phones the other 7 with no empty column between; every showcase phone is the same width,
 * --shot, whether it stands alone or in a pair. */
.showcase { padding-block: var(--compact); border-top: 1px solid var(--line); --shot: min(310px, calc(50% - 10px)); }
.showcase-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); align-items: center; }
.showcase-copy { grid-column: 1 / span 5; min-width: 0; }
.showcase-media { grid-column: 6 / span 7; display: flex; justify-content: center; gap: 20px; align-items: flex-start; }
.showcase.flip .showcase-copy { grid-column: 8 / span 5; grid-row: 1; }
.showcase.flip .showcase-media { grid-column: 1 / span 7; grid-row: 1; }
.showcase .eyebrow { margin-bottom: 18px; }
.showcase .h2 { font-size: clamp(28px, 3.2vw, 44px); }
.showcase .lede { margin-top: 20px; }
.showcase .rows { margin-top: 32px; }
.showcase-shot { width: var(--shot); flex: none; }
/* A single phone is centred in its column. (2026-10-09, Andres: pinned to the copy's side, as a pair's inner phone is,
 * the lone Import phone sat too close to the text with an empty half-column on its other side.) */
.showcase-media:not(.pair) { justify-content: center; padding-inline: 0; }
/* A list and then its detail: the second phone sits a little lower */
.showcase-media.pair .showcase-shot + .showcase-shot { margin-top: clamp(24px, 4vw, 56px); }

/* ── Payment rails: owners' marks on neutral chips, never recoloured ── */
.rails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.rail { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; background: #F5F5F4; border-radius: 10px; color: #1C1917; font-size: 14px; font-weight: 600; }
.rail img { height: 18px; width: auto; }


/* ── Comparison ───────────────────────────────────────── */
.compare-wrap { overflow-x: auto; margin-top: 48px; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: start; color: var(--text-2); font-weight: 500; }
.compare-table thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
.compare-table .folko { background: color-mix(in srgb, var(--amber) 7%, var(--surface)); color: var(--text); }
.compare-table thead .folko { color: var(--amber); box-shadow: inset 0 2px 0 var(--amber); border-radius: 10px 10px 0 0; }
.compare-table tbody tr:last-child .folko { border-radius: 0 0 10px 10px; }
.compare-table td.folko.yes { color: var(--amber); font-weight: 700; }
.compare-table .yes { color: var(--text); }
.compare-table .no { color: var(--muted); }

/* ── Pricing ──────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; min-width: 0; }
.plan.featured { border-color: var(--amber); }
.plan-name { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plan-price { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price .period { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-alt, .plan-desc { font-size: 14px; color: var(--muted); }
.plan ul { display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li svg { flex: none; width: 12px; height: 12px; color: var(--muted); transform: translateY(1px); }
.plan .btn { margin-top: auto; }
/* Phones and narrow tablets: a long plan list folds to its first 6 lines (2026-10-18; Free alone was 15 lines and
   the stacked cards ran 2.9 screens). Only under .js, and only on lists js/sections.js marks .foldable (7+ lines). */
.plan-more { display: none; }
@media (max-width: 960px) {
  .js .plan.foldable:not(.open) li:nth-child(n+7) { display: none; }
  .js .plan.foldable:not(.open) .plan-more { display: inline-flex; align-self: flex-start; align-items: center; min-height: 44px; padding: 0 18px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
  .js .plan.foldable .plan-more:hover { border-color: var(--muted); }
}

/* ── Questions: a list that folds (2026-10-18; was an open two-column wall at screen 23 of 25) ── */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-help { margin-top: 20px; max-width: 30ch; font-size: 16px; color: var(--muted); }
.faq-help a { color: var(--text); text-underline-offset: 4px; text-decoration-color: var(--dim); }
.faq-help a:hover { text-decoration-color: var(--text); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding-block: 22px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-inline-end: 4px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 0.25s var(--ease); }
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item summary:hover::after { border-color: var(--text); }
.faq-item .h3 { font-size: clamp(17px, 1.4vw, 20px); }
.faq-item p { margin: -4px 0 26px; max-width: 68ch; font-size: 16px; color: var(--text-2); }

/* ── Close and footer ─────────────────────────────────── */
.close { padding-block: var(--chapter); text-align: center; }
.close .h2 { max-width: 18ch; margin-inline: auto; }
.close .lede { margin: 24px auto 0; }
.close .btn { margin-top: 40px; }
.site-footer { padding-block: 48px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-row + .footer-row { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-brand { color: var(--text); font-weight: 700; }
/* Two tiers, one grid: each row's label (brand, then copyright) sits at the start and its links end on the same edge.
 * Only the first row pushed its links across before (2026-10-09, Andres: "two rows but they are not aligned at all"). */
.footer-row > :first-child { margin-inline-end: auto; }

/* ── Motion: hidden only when JS is running (html.js, set by motion.js in <head>) ── */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
.js .rise.d1 { transition-delay: 0.08s; }
.js .rise.d2 { transition-delay: 0.16s; }
.js .rise.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  .hero-copy, .hero-phones { animation: none; }
  .btn-arrow, .tabs-on .feat-panels > section { transition: none; }
  .btn { transition: none; }
}

/* ── Narrow screens ───────────────────────────────────── */
@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  body.menu-open .mobile-menu { display: flex; flex-direction: column; gap: 4px; position: fixed; inset: var(--nav-h) 0 0 0; padding: 24px var(--gutter); background: var(--ground); overflow: auto; z-index: 49; }
  .mobile-menu a { padding-block: 10px; color: var(--text); font-size: 22px; font-weight: 600; text-decoration: none; }
  .mobile-menu .btn { margin-top: 16px; font-size: 16px; color: var(--amber-ink); }
  .lang-mobile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 16px; }
  .hero .wrap, .chapter-grid, .compact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .footer-row > :first-child { flex-basis: 100%; }
  .hero-phones { height: min(620px, 135vw); margin-top: 16px; }
  .hero-phones .phone-front { position: absolute; inset-inline-start: auto; margin-inline-start: 0; inset-inline-end: 6%; bottom: 0; width: 56%; }
  .hero-phones .phone-back { inset-inline-end: auto; inset-inline-start: 2%; bottom: 4%; width: 46%; }
  .chapter-copy, .flip .chapter-copy, .chapter-media, .flip .chapter-media, .compact-head, .compact-body { grid-column: 1; grid-row: auto; }
  .showcase-grid { grid-template-columns: minmax(0, 1fr); }
  .showcase-copy, .showcase.flip .showcase-copy, .showcase-media, .showcase.flip .showcase-media { grid-column: 1; grid-row: auto; }
  .showcase-media { margin-top: 24px; }
  .showcase { --shot: min(300px, calc(50% - 8px)); }
  .showcase-media:not(.pair), .showcase.flip .showcase-media:not(.pair) { justify-content: center; padding-inline: 0; }
  .showcase-media:not(.pair) .showcase-shot { width: min(300px, 70%); }
  .chapter-media { min-height: min(620px, 132vw); margin-top: 24px; }
  :root { --nav-h: 60px; }
  html { scroll-padding-top: calc(var(--nav-h) + 52px + 12px); }
  .nav-cta { min-height: 40px; padding: 0 14px; font-size: 14px; margin-inline-start: auto; }
  .site-nav .wrap { gap: 10px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .section-bar { display: block; border-top: 1px solid var(--line); background: var(--ground); }
  .section-chips { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
  .section-chips::-webkit-scrollbar { display: none; }
  .section-chips a { flex: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 600 14px/1 var(--font); text-decoration: none; }
  .section-chips a[aria-current] { color: var(--ground); background: var(--text); border-color: var(--text); }
  .hero-actions .btn { flex: 1 1 100%; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .compact-shot { margin-inline: auto; }
}

/* ── Section intros (replaces inline styles) ──────────── */
.themes-copy { max-width: 640px; }
.compare-intro { max-width: 720px; }
.compare-intro .h2, .compare-intro .lede { margin-top: 22px; }
.compare-note { margin-top: 24px; max-width: 70ch; }

/* RTL with an English fallback string (new copy is English-only until phase 5): let each block take its
   own direction from its first strong character, so "…one place." keeps its full stop on the right side. */
[dir="rtl"] :is(h1, h2, h3, p, .tier, .points li > span, .rows li > span) { unicode-bidi: plaintext; }

@media (max-width: 600px) {
  /* Four columns fit a 360 px screen without a sideways scroll. */
  .compare-table { min-width: 0; font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 4px; }
  .compare-table thead th { font-size: 11px; }
  .compare-table th:first-child, .compare-table td:first-child { width: 38%; padding-inline-end: 8px; }
}

/* ═════════════════════ Guide, feature tabs (2026-10-18 navigation pass) ═════════════════════
 * Feedback from friends and a web designer: the homepage was 25 screens on a laptop and 30 on a phone, pricing began
 * at screen 21 and the questions at 23. The eight-chapter pinned-phone story (13 screens) and the Travel / Loans /
 * Import showcases became ONE tabbed Features section; a four-step guide answers "how does it work" right under the
 * hero; the header links to the sections and marks where you are. */
.guide { padding-block: var(--compact); border-top: 1px solid var(--line); }
.guide-head, .features-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.guide-head .h2 { font-size: clamp(28px, 3.2vw, 44px); max-width: 22ch; }
.guide-head .link-more, .features-head .link-more { margin-top: 0; }
.guide-steps { list-style: none; padding: 0; margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.guide-steps li { padding-top: 22px; border-top: 1px solid var(--line); min-width: 0; }
.step-n { display: block; margin-bottom: 18px; font-size: 52px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--dim); }
.guide-steps .h3 { margin-bottom: 10px; }
.guide-steps p { font-size: 16px; color: var(--muted); }

.features { padding-block: var(--chapter); border-top: 1px solid var(--line); }
.features-head .h2 { max-width: 20ch; }
.features-body { margin-top: 56px; }
.feat-tabs, .feat-pager { display: none; }
.feat-group { display: block; padding: 22px 14px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); }
.feat-group:first-child { padding-top: 0; }
:lang(ar) .feat-group, :lang(hi) .feat-group { letter-spacing: 0; }
.feat-tabs [role="tab"] { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 600 16px/1.25 var(--font); text-align: start; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.feat-tabs [role="tab"]:hover { color: var(--text); background: var(--raised); }
.feat-tabs [role="tab"][aria-selected="true"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.tabs-on .features-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px clamp(32px, 4vw, 64px); align-items: start; }
.tabs-on .feat-tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--nav-h) + 24px); }
/* Every panel sits in the same grid cell, so the section is always as tall as its tallest panel: switching a tab never
 * moves what is below it. */
.tabs-on .feat-panels { display: grid; min-width: 0; }
.js .tabs-on .feat-panels > section { grid-area: 1 / 1; min-width: 0; padding: 0; border: 0; background: none; visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s; }
.js .tabs-on .feat-panels > section.on { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
.tabs-on .feat-panels .wrap { max-width: none; padding-inline: 0; }
.tabs-on .feat-panels .eyebrow { display: none; }
.tabs-on .feat-panels :is(.chapter-copy, .flip .chapter-copy, .showcase-copy, .flip .showcase-copy) { grid-column: 1 / span 6; grid-row: 1; align-self: center; }
.tabs-on .feat-panels :is(.chapter-media, .flip .chapter-media, .showcase-media, .flip .showcase-media) { grid-column: 7 / span 6; grid-row: 1; }
.tabs-on .feat-panels .h2 { font-size: clamp(26px, 2.5vw, 38px); }
.tabs-on .feat-panels .lede { margin-top: 16px; font-size: 17px; }
.tabs-on .feat-panels .lede + .lede { margin-top: 10px; }
.tabs-on .feat-panels .numeral { margin-bottom: 8px; font-size: clamp(72px, 7vw, 112px); }
.tabs-on .feat-panels .numeral-wide { font-size: clamp(44px, 4.4vw, 66px); }
.tabs-on .feat-panels .numeral-cap { margin-bottom: 20px; }
.tabs-on .feat-panels .points { margin-top: 24px; }
.tabs-on .feat-panels .points li { padding-block: 11px; font-size: 15px; }
.tabs-on .feat-panels .rows { margin-top: 24px; }
.tabs-on .feat-panels .rows li { padding-block: 14px; }
.tabs-on .feat-panels .rows p { font-size: 15px; }
.tabs-on .feat-panels .rails { gap: 6px; margin-top: 20px; }
.tabs-on .feat-panels .rail { height: 32px; padding: 0 11px; font-size: 13px; }
.tabs-on .feat-panels .rail img { height: 15px; }
.tabs-on .feat-panels .link-more { margin-top: 20px; }
.tabs-on .feat-panels .chapter-media { min-height: 600px; }
.tabs-on .feat-panels .showcase { --shot: min(270px, calc(50% - 10px)); }
.tabs-on .feat-pager { display: flex; grid-column: 2; justify-content: flex-end; }
.feat-next b { font-weight: 600; }
.feat-next span::after { content: ":"; }

/* Smart Settle panel: the diagram beside the real Balances screen */
.media-settle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; min-height: 0; }
.tabs-on .feat-panels .media-settle { min-height: 600px; }
.media-settle .phone { position: static; width: 100%; max-width: 290px; justify-self: end; }
.settle-viz { --vz: 1; text-align: center; min-width: 0; }
.settle-viz svg { width: 100%; height: auto; overflow: visible; }
.settle-viz .node circle { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.settle-viz .node text { fill: var(--text-2); font: 600 15px var(--font); text-anchor: middle; dominant-baseline: central; }
.settle-viz .dbt { fill: none; stroke: var(--muted); stroke-width: 1.6; opacity: calc(min(1, max(0, var(--vz, 0) * 6 - var(--i, 0) * 0.4)) * min(1, max(0, (0.75 - var(--vz, 0)) * 5))); }
.settle-viz .pay { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - min(1, max(0, (var(--vz, 0) - 0.6) * 4))); opacity: min(1, max(0, (var(--vz, 0) - 0.58) * 12)); }
.settle-viz .amt { fill: var(--text); font: 600 13px var(--font); text-anchor: middle; opacity: min(1, max(0, (var(--vz, 0) - 0.85) * 8)); font-variant-numeric: tabular-nums; }
.viz-cap { position: relative; height: 3em; margin-top: 18px; font-size: 15px; color: var(--muted); }
.viz-cap span { position: absolute; inset-inline: 0; }
.viz-cap .before { opacity: calc(min(1, max(0, (0.7 - var(--vz, 0)) * 6))); }
.viz-cap .after { opacity: min(1, max(0, (var(--vz, 0) - 0.7) * 6)); color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
  .guide-steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; }
  .guide-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding-block: 18px; }
  .step-n { grid-row: span 2; margin: 0; font-size: 30px; }
  .guide-steps .h3 { margin-bottom: 4px; }
  .tabs-on .features-body { display: block; margin-top: 28px; }
  .tabs-on .feat-tabs { position: static; flex-direction: row; gap: 6px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .tabs-on .feat-tabs::-webkit-scrollbar { display: none; }
  .feat-group { display: none; }
  .tabs-on .feat-tabs [role="tab"] { flex: none; min-height: 40px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; white-space: nowrap; }
  .tabs-on .feat-tabs [role="tab"][aria-selected="true"] { color: var(--ground); background: var(--text); box-shadow: none; border-color: var(--text); }
  .tabs-on .feat-panels { display: block; margin-top: 24px; }
  .tabs-on .feat-panels > section { display: none; visibility: visible; opacity: 1; transition: none; }
  .tabs-on .feat-panels > section.on { display: block; }
  .tabs-on .feat-panels :is(.chapter-copy, .flip .chapter-copy, .showcase-copy, .flip .showcase-copy, .chapter-media, .flip .chapter-media, .showcase-media, .flip .showcase-media) { grid-column: 1; grid-row: auto; }
  .tabs-on .feat-panels .chapter-media { min-height: min(560px, 120vw); }
  .tabs-on .feat-panels .media-settle { min-height: 0; }
  .tabs-on .feat-pager { margin-top: 24px; }
  .tabs-on .feat-pager .btn { flex: 1 1 100%; }
}

/* ═════════════════════ Try on a theme ═════════════════════ */
.tryon-live { display: none; }
.js .tryon-live { display: grid; }
.js .tryon-fallback { display: none; }
.tryon { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.tryon-fallback { margin-top: 48px; max-width: 280px; }
.tryon-panel { min-width: 0; display: grid; gap: 22px; }
.tryon-modes { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; justify-self: start; }
.tryon-modes button, .region-tabs button { font: 600 14px/1 var(--font); color: var(--muted); background: none; border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.tryon-modes button[aria-pressed="true"] { background: var(--surface); color: var(--text); }
.region-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.region-tabs button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.region-tabs button[aria-selected="true"] { color: var(--text); border-color: var(--text-2); }
.theme-rail-wrap { position: relative; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rail-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 18px/1 var(--font); cursor: pointer; }
.rail-arrow:hover { border-color: var(--muted); }
[dir="rtl"] .rail-arrow { transform: scaleX(-1); }
.theme-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 14px; scrollbar-width: none; min-width: 0; }
.theme-rail::-webkit-scrollbar { display: none; }
.theme-chip { flex: none; scroll-snap-align: start; display: grid; gap: 6px; justify-items: start; min-width: 132px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 15px/1.2 var(--font); text-align: start; cursor: pointer; }
.theme-chip:hover { border-color: var(--muted); }
.theme-chip[aria-selected="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.theme-chip .sw { width: 100%; height: 6px; border-radius: 3px; }
.theme-chip .nm { display: block; white-space: nowrap; }
.theme-chip .tr { font-size: 12px; font-weight: 600; color: var(--muted); }
.tryon-note { min-height: 3.2em; font-size: 17px; color: var(--text-2); }
.tryon-note b { color: var(--text); }

/* The preview is a small Home built from the selected palette: container units keep it proportional. */
.mini { container-type: inline-size; aspect-ratio: 1206 / 2622; border-radius: 11.4% / 5.25%; overflow: hidden; position: relative; background: var(--t-bg); color: var(--t-text); font-family: var(--font); transition: background-color 0.35s var(--ease), color 0.35s var(--ease); }
.mini * { transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease); }
/* the quiet loop crossfades more softly than a click */
.mini.auto, .mini.auto * { transition-duration: 0.9s; }
.mini-in { position: absolute; inset: 7cqw 6cqw 0; display: grid; align-content: start; gap: 5cqw; padding-block-start: 11cqw; }
.mini-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 6.4cqw; }
.mini-top i { width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--t-elev); }
.mini-k { font-size: 3.2cqw; letter-spacing: 0.04em; color: var(--t-text2); text-transform: uppercase; }
.mini-net { display: flex; align-items: baseline; gap: 2cqw; font-size: 11cqw; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.mini-net small { font-size: 4.4cqw; color: var(--t-text2); letter-spacing: 0; }
.mini-net span { font-size: 5cqw; color: var(--t-text2); }
.mini-bars { display: grid; gap: 1.8cqw; font-size: 3.2cqw; color: var(--t-text2); }
.mini-bars div { display: flex; justify-content: space-between; }
.mini-bar { height: 1.8cqw; border-radius: 1cqw; background: var(--t-elev); position: relative; overflow: hidden; }
.mini-bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--c); border-radius: 1cqw; }
.mini-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.mini-tiles div { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: 3cqw; padding: 3cqw 1cqw 2.6cqw; display: grid; justify-items: center; gap: 1.6cqw; font-size: 3.4cqw; font-weight: 600; }
.mini-tiles i { width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--c); }
.mini-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4cqw; }
.mini-cards div { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: 3cqw; padding: 3cqw; font-size: 3.2cqw; color: var(--t-text2); line-height: 1.4; }
.mini-cards b { display: block; font-size: 3.8cqw; color: var(--t-text); }
.mini-rows { display: grid; gap: 2cqw; font-size: 3.4cqw; }
.mini-rows div { display: flex; justify-content: space-between; align-items: center; padding-block: 1.6cqw; border-bottom: 1px solid var(--t-border); }
.mini-rows em { font-style: normal; color: var(--t-out); font-variant-numeric: tabular-nums; }
.mini-rows em.in { color: var(--t-in); }
.mini-dock { position: absolute; inset-inline: 6cqw; bottom: 6cqw; display: flex; gap: 2.6cqw; align-items: center; }
.mini-dock div { flex: 1; height: 12cqw; border-radius: 6cqw; background: var(--t-surface); border: 1px solid var(--t-border); }
.mini-dock i { width: 12cqw; height: 12cqw; border-radius: 50%; background: var(--t-primary); flex: none; }

@media (max-width: 860px) {
  .tryon { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .tryon-panel { width: 100%; }
  .tryon-phone { width: min(260px, 70vw); }
  .rail-arrow { display: none; }
  .theme-rail-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .mini, .mini * { transition: none; }
}
