/* SeeMyChange marketing site — "Modern SaaS"
   Brand-true gradient mesh (sampled from the app icon: blue + coral),
   glass-panel components, pill controls. Single fixed dark aesthetic by
   design (see docs/superpowers/specs/2026-09-17-seemychange-site-design.md,
   Phase 3) — `color-scheme: dark` keeps UA widgets dark in every OS theme.

   2026-10 polish pass: AA contrast on filled buttons (coral-deep → app
   brand coral), fluid type scale, sticky glass header with scrolled state,
   hero before/after comparison slider (site.js), scroll reveals (site.js,
   progressive — nothing is hidden without JS), reduced-motion respected
   everywhere, logical properties for RTL. */


/* Self-hosted fonts (site/fonts/, OFL; built by site-tools/build_fonts.py):
   no request to Google, so no visitor IP leaves for a third party.
   Latin + Latin Extended only; ja/ko/ar text keeps the system fonts. */
@font-face {
  font-family: 'Sora'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url('fonts/sora-v1.woff2') format('woff2');
  unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-036F, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/plus-jakarta-sans-v1.woff2') format('woff2');
  unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-036F, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --bg: #0A0E1A;
  --bg-2: #0E1830;
  --bg-raised: rgba(255,255,255,0.06);
  --bg-raised-strong: rgba(255,255,255,0.10);
  --border-glass: rgba(255,255,255,0.14);
  --border-glass-strong: rgba(255,255,255,0.24);
  --surface-menu: #131A30;

  --text: #F5F7FA;
  --text-muted: rgba(245,247,250,0.72);
  /* 0.6 (was 0.5): keeps small meta text >= 4.5:1 on raised glass too */
  --text-faint: rgba(245,247,250,0.6);
  --on-dark: #FFFFFF;

  --blue: #2E7CF6;
  --blue-deep: #144FBD;
  --blue-soft: rgba(46,124,246,0.16);
  --blue-soft-strong: rgba(46,124,246,0.26);
  --blue-text: #8FB6FC;

  --coral: #FF5C3E;
  --coral-deep: #D93A20;
  --coral-soft: rgba(255,92,62,0.16);
  --coral-soft-strong: rgba(255,92,62,0.26);
  --coral-text: #FF9A85;
  /* Filled-button coral. #FF5C3E under white text is only 3.1:1; these two
     (stil.css coral-deep + the app's SmcColors.light.brand) clear 4.5:1. */
  --coral-fill-1: var(--coral-deep);
  --coral-fill-2: #C13425;
  --coral-fill-pressed: #A42C1F;

  /* legacy names kept so every existing class still resolves */
  --safelight: var(--coral);
  --safelight-dim: var(--coral-deep);
  --support: var(--blue);
  --support-tint: var(--blue-soft);
  --line: var(--border-glass);

  --serif: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (~1.25 ratio, fluid at the top end) */
  --fs-hero: clamp(2.3rem, 1.45rem + 3.3vw, 4.1rem);
  --fs-page: clamp(2.1rem, 1.5rem + 2.2vw, 3.1rem);
  --fs-h2: clamp(1.65rem, 1.25rem + 1.3vw, 2.4rem);
  --fs-h3: 1.18rem;
  --fs-lede: clamp(1.05rem, 1rem + 0.25vw, 1.18rem);

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 999px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.05) inset, 0 18px 40px -22px rgba(0,0,0,0.6);
  --shadow-lift: 0 1px 0 rgba(255,255,255,0.08) inset, 0 26px 50px -24px rgba(0,0,0,0.75);
  --ease-out: cubic-bezier(.2,.75,.25,1);
  --header-offset: 104px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: var(--header-offset);
  overflow-x: hidden; background-color: var(--bg);
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* The brand mesh lives on a fixed layer instead of `background-attachment:
   fixed` (which repaints on every scroll frame and is ignored on iOS). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(255,92,62,0.22), transparent 60%),
    radial-gradient(760px 620px at 8% 18%, rgba(46,124,246,0.24), transparent 58%),
    radial-gradient(700px 560px at 92% 55%, rgba(46,124,246,0.12), transparent 55%),
    radial-gradient(800px 620px at 10% 92%, rgba(255,92,62,0.12), transparent 55%),
    linear-gradient(180deg, #0A0E1A 0%, #0B1224 40%, #0A0E1A 100%);
}

img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; }
::selection { background: var(--coral-soft-strong); color: var(--on-dark); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 0; inset-inline-start: 0; background: var(--coral-fill-2); color: var(--on-dark);
  padding: 10px 16px; z-index: 100; font-family: var(--sans); font-weight: 600;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border-radius: 0 0 12px 0;
}
html[dir="rtl"] .skip-link { border-radius: 0 0 0 12px; }
.skip-link:focus {
  width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal;
  position: fixed; top: 10px; inset-inline-start: 10px; border-radius: 12px;
  outline: 2px solid #fff; outline-offset: 2px;
}

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 20px; max-width: 1180px; margin: 18px auto 0; gap: 16px; position: sticky; top: 14px; z-index: 60;
  background: rgba(15,19,36,0.55); backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px);
  border: 1px solid var(--border-glass); border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
html[dir="rtl"] .site-header { padding: 12px 20px 12px 14px; }
.site-header.is-scrolled {
  background: rgba(13,17,32,0.82); border-color: var(--border-glass-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; border-radius: 10px; }
.brand img { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border-glass); transition: transform .4s var(--ease-out); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  color: var(--text-muted); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap;
  padding: 8px 11px; border-radius: var(--radius-sm); transition: color .2s ease, background-color .2s ease;
}
.nav > a:not(.btn):hover, .nav > a:not(.btn):focus-visible { color: var(--text); background: var(--bg-raised); }
.nav > a[aria-current="page"] { color: var(--text); background: var(--bg-raised-strong); }
.nav .btn { margin-inline-start: 8px; white-space: nowrap; }
.nav .lang-switch { margin-inline-start: 6px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 10px; background: var(--bg-raised); border: 1px solid var(--border-glass);
  color: var(--text); font-family: var(--sans); font-size: 14.5px; font-weight: 600; cursor: pointer;
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); position: relative; z-index: 2;
}
.nav-toggle-icon { position: relative; width: 18px; height: 12px; flex-shrink: 0; }
.nav-toggle-icon::before, .nav-toggle-icon::after, .nav-toggle-icon i {
  content: ""; position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease-out), opacity .2s ease, top .25s var(--ease-out);
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon i { top: 5px; }
.nav-toggle-icon::after { top: 10px; }
.nav-toggle[aria-expanded="true"] { background: var(--bg-raised-strong); border-color: var(--border-glass-strong); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 5px; transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i { opacity: 0; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; font-family: var(--sans); }
.lang-switch summary {
  cursor: pointer; list-style: none; color: var(--text); font-size: 14px; font-weight: 600;
  padding: 8px 12px; display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-glass); border-radius: var(--radius-sm); background: var(--bg-raised);
  transition: border-color .2s ease, background-color .2s ease;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: "▾"; font-size: 9px; color: var(--text-muted); transition: transform .2s ease; }
.lang-switch[open] summary::after { transform: rotate(180deg); }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--blue); background: var(--bg-raised-strong); }
.lang-switch .flag { font-size: 15px; line-height: 1; }
.lang-switch .menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: var(--surface-menu); border: 1px solid var(--border-glass);
  min-width: 180px; padding: 6px; z-index: 50; max-height: 340px; overflow-y: auto;
  border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,0.55);
  transform-origin: top right;
}
html[dir="rtl"] .lang-switch .menu { transform-origin: top left; }
.lang-switch[open] .menu { animation: menu-in .18s var(--ease-out); }
.lang-switch .menu a {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; color: var(--text);
  text-decoration: none; font-size: 14px; border-radius: 10px;
}
.lang-switch .menu a:hover, .lang-switch .menu a:focus-visible { background: var(--bg-raised-strong); }
.lang-switch .menu a[aria-current] { color: var(--coral-text); font-weight: 600; background: var(--coral-soft); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px;
  font-family: var(--sans); font-weight: 700; font-size: 14.5px; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-solid, .btn-primary {
  background: linear-gradient(135deg, var(--coral-fill-1), var(--coral-fill-2)); color: var(--on-dark);
  border-color: rgba(255,154,133,0.35);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 12px 28px -10px rgba(255,92,62,0.6);
}
.btn-solid:hover, .btn-primary:hover {
  background: linear-gradient(135deg, var(--coral-fill-2), var(--coral-fill-pressed));
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 18px 34px -12px rgba(255,92,62,0.7);
}
.btn-solid:focus-visible, .btn-primary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-line {
  background: var(--bg-raised); color: var(--text); border-color: var(--border-glass);
  padding: 12px 22px;
}
.btn-line:hover { border-color: var(--blue); background: var(--bg-raised-strong); transform: translateY(-1px); }
.btn .play-mark { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Icon badges ---------- */
.icon-badge {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset;
}
.icon-badge.c-blue { background: var(--blue-soft); color: var(--blue-text); }
.icon-badge.c-coral { background: var(--coral-soft); color: var(--coral-text); }
.icon-badge.lg { width: 56px; height: 56px; border-radius: 16px; }

/* ---------- Badge chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 7px; border-radius: var(--radius-sm);
  background: var(--bg-raised); border: 1px solid var(--border-glass); margin: 0 0 24px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
html[dir="rtl"] .chip { padding: 6px 7px 6px 14px; }
.chip .dot {
  width: 22px; height: 22px; border-radius: 999px; background: linear-gradient(135deg, var(--coral), var(--blue));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff;
}
.chip .dot svg { width: 12px; height: 12px; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 24px 72px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center;
}
.hero > * { min-width: 0; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: var(--fs-hero); line-height: 1.04;
  letter-spacing: -0.035em; margin: 0 0 22px; max-width: 13ch;
  background: linear-gradient(180deg, #FFFFFF 30%, #C9D3E6 115%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="ja"] .hero h1, html[lang="ko"] .hero h1, html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.2; }
.hero .lede { color: var(--text-muted); font-size: var(--fs-lede); line-height: 1.65; max-width: 46ch; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.filmstrip { position: relative; min-width: 0; display: flex; justify-content: center; }
/* Soft brand glow behind the photo stage */
.filmstrip::before {
  content: ""; position: absolute; inset: 8% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,92,62,0.30), transparent), radial-gradient(closest-side at 70% 70%, rgba(46,124,246,0.35), transparent);
  filter: blur(30px);
}
.ruler { display: none; }

.frame-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; min-width: 0; width: 100%; max-width: 520px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-glass); border-radius: 30px;
  padding: 10px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 40px 80px -30px rgba(0,0,0,0.75);
}
.frame {
  background: var(--bg-2); overflow: hidden; position: relative; aspect-ratio: 214 / 385; min-width: 0;
  border-radius: 21px;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .tag { display: none; }
.frame .photo-label {
  position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(10,14,26,0.6); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); color: #fff; padding: 5px 12px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 12.5px; letter-spacing: 0.01em; z-index: 2; border: 1px solid rgba(255,255,255,0.14);
}

/* Before/after comparison (site.js adds .is-compare + the range input).
   Without JS the two frames simply stay side by side. */
.frame-pair.is-compare {
  grid-template-columns: 1fr; max-width: 340px; padding: 9px; border-radius: 34px;
  --pos: 50%;
}
.frame-pair.is-compare .frame { grid-area: 1 / 1; border-radius: 26px; }
.frame-pair.is-compare .frame-before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
html[dir="rtl"] .frame-pair.is-compare .frame-before { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.frame-pair.is-compare .frame-after .photo-label { inset-inline-start: auto; inset-inline-end: 14px; }
.compare-range {
  position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); margin: 0; z-index: 4;
  opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; background: none;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2px; height: 100%; }
.compare-range::-moz-range-thumb { width: 2px; height: 100%; border: 0; }
.compare-handle {
  position: absolute; top: 9px; bottom: 9px; z-index: 3; pointer-events: none;
  inset-inline-start: calc(9px + (100% - 18px) * var(--pos-n, 0.5));
  width: 2px; margin-inline-start: -1px; background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(10,14,26,0.25), 0 0 18px rgba(255,255,255,0.35);
}
/* The knob is the app's alignment reticle — the "Align" step, literally. */
.compare-knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(10,14,26,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 2px solid #fff; color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  transition: transform .25s var(--ease-out), background-color .2s ease;
}
.compare-knob svg { width: 26px; height: 26px; }
.frame-pair.is-compare:hover .compare-knob { transform: translate(-50%, -50%) scale(1.06); }
.frame-pair.is-dragging .compare-knob { transform: translate(-50%, -50%) scale(0.94); background: rgba(193,52,37,0.75); }
.compare-range:focus-visible + .compare-handle .compare-knob { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ---------- Breadcrumbs (subpages only) ---------- */
.crumbs { padding: 26px 24px 0; font-size: 13.5px; color: var(--text-faint); }
.crumbs a { color: var(--text-faint); text-decoration: none; transition: color .2s ease; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: 0.6; }

/* ---------- Category/article intro ---------- */
.page-intro { padding: 32px 24px 56px; }
.page-intro .fnum { display: none; }
.page-intro .icon-badge { margin-bottom: 22px; }
.page-intro h1 { font-family: var(--serif); font-weight: 700; font-size: var(--fs-page); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 18px; max-width: 20ch; }
html[lang="ja"] .page-intro h1, html[lang="ko"] .page-intro h1, html[lang="ar"] .page-intro h1 { letter-spacing: 0; line-height: 1.3; }
.page-intro .lede { color: var(--text-muted); font-size: var(--fs-lede); line-height: 1.65; max-width: 62ch; margin: 0 0 28px; }
.page-intro .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-faint); font-size: 13.5px; margin: 0 0 20px; }
.page-intro .meta .cat { color: var(--coral-text); font-weight: 600; }

/* ---------- Blog index + cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card {
  background: var(--bg-raised); border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  overflow: hidden; box-shadow: var(--shadow-card); position: relative;
  transition: transform .3s var(--ease-out), border-color .25s ease, background-color .25s ease, box-shadow .3s ease;
}
.blog-card:hover, .blog-card:focus-visible { border-color: var(--border-glass-strong); background: var(--bg-raised-strong); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.blog-card .thumb { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; transition: transform .6s var(--ease-out); transform-origin: 50% 100%; background: var(--bg-2); }
.blog-card:hover .thumb { transform: scale(1.03); }
.blog-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card .cat-tag {
  display: inline-flex; align-self: flex-start; padding: 4px 12px; border-radius: var(--radius-sm);
  background: var(--coral-soft); color: var(--coral-text); font-size: 12.5px; font-weight: 700; border: 1px solid rgba(255,154,133,0.25);
}
.blog-card h3 { font-family: var(--serif); font-weight: 700; font-size: 21px; margin: 0; line-height: 1.28; letter-spacing: -0.018em; color: var(--text-strong); }
.blog-card p {
  color: var(--text-muted); font-size: 15px; margin: 0; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card .read-more { color: var(--text-faint); font-size: 13.5px; margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 7px; }
.blog-card .read-more::before {
  content: ""; width: 14px; height: 14px; background: currentColor; flex-shrink: 0; opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Main blog index (enhance_site.py adds .blog-grid-index): the newest post is
   the featured card until a search or topic filter is active (site.js adds .is-filtered). */
.blog-card .latest-badge {
  display: none; position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; font-size: 13px; font-weight: 700; color: #fff;
  padding: 5px 13px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--coral-fill-1), var(--coral-fill-2));
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.6);
}
@media (min-width: 901px) {
  .blog-grid-index:not(.is-filtered) > .blog-card:first-child { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .blog-grid-index:not(.is-filtered) > .blog-card:first-child .thumb { width: 58%; height: auto; flex-shrink: 0; align-self: center; }
  .blog-grid-index:not(.is-filtered) > .blog-card:first-child .blog-card-body { padding: 40px 44px; justify-content: center; gap: 16px; }
  .blog-grid-index:not(.is-filtered) > .blog-card:first-child h3 { font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.18; letter-spacing: -0.025em; }
  .blog-grid-index:not(.is-filtered) > .blog-card:first-child p { font-size: 17px; -webkit-line-clamp: 4; line-clamp: 4; }
  .blog-grid-index:not(.is-filtered) > .blog-card:first-child .read-more { margin-top: 8px; font-size: 14.5px; }
}
.blog-grid-index:not(.is-filtered) > .blog-card:first-child .latest-badge { display: inline-flex; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.chip-row a, .filter-chip {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: var(--radius-sm); min-height: 40px;
  background: var(--bg-raised); border: 1px solid var(--border-glass);
  color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.chip-row a:hover, .chip-row a:focus-visible, .filter-chip:hover { border-color: var(--border-glass-strong); color: var(--text); background: var(--bg-raised-strong); }
.chip-row a[aria-current], .filter-chip[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--coral-fill-1), var(--coral-fill-2)); }

.blog-tools { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin: 0 0 28px; }
.blog-tools .blog-search { margin: 0; flex: 0 1 340px; width: 100%; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.load-more-wrap { display: flex; justify-content: center; margin: 36px 0 0; }

/* ---------- Article layout + body (long-form) ---------- */
/* Reading colour: near-white (#E6EAF2 on #0A0E1A is ~15:1) instead of the
   72% muted grey used for UI copy. */
:root { --text-body: #E6EAF2; --text-strong: #FFFFFF; --measure: 720px; }

.article-layout {
  display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 270px);
  grid-template-areas: "body aside"; column-gap: clamp(40px, 6vw, 80px); align-items: start;
}
.article-layout > .article-body { grid-area: body; min-width: 0; max-width: none; }
.article-aside {
  grid-area: aside; position: sticky; top: calc(var(--header-offset) + 12px); align-self: start;
  max-height: calc(100vh - var(--header-offset) - 28px); overflow-y: auto; overscroll-behavior: contain;
  padding-top: 6px; scrollbar-width: thin;
}
.article-body { max-width: var(--measure); }
.article-hero {
  width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block;
  border-radius: var(--radius-lg); border: 1px solid var(--border-glass); margin: 0 0 40px; background: var(--bg-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
}

/* byline (enhance_site.py) */
.byline { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; font-size: 14.5px; color: var(--text-muted); }
.byline img { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border-glass); flex-shrink: 0; }
.byline .who { display: grid; gap: 1px; line-height: 1.35; }
.byline strong { color: var(--text); font-family: var(--serif); font-size: 15px; font-weight: 700; }
.byline .article-date { color: var(--text-muted); }

.article-body > p, .article-body > ul, .article-body > ol, .article-body > blockquote,
.article-body > table, .article-body > .callout, .article-body > figure { color: var(--text-body); }
.article-body p { color: var(--text-body); font-size: 18.5px; line-height: 1.7; margin: 0 0 24px; }
.article-body > .article-hero + p, .article-body > picture + p { font-size: 20px; line-height: 1.65; color: var(--text-strong); }
.article-body h2 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.95rem);
  line-height: 1.22; margin: 64px 0 20px; letter-spacing: -0.02em; color: var(--text-strong);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.18rem, 1.05rem + 0.4vw, 1.4rem);
  line-height: 1.3; margin: 40px 0 12px; letter-spacing: -0.012em; color: var(--text-strong);
}
.article-body h4 { font-family: var(--serif); font-size: 1.05rem; margin: 28px 0 8px; color: var(--text-strong); }
.article-body ul, .article-body ol { color: var(--text-body); font-size: 18.5px; line-height: 1.7; margin: 0 0 26px; padding-inline-start: 1.4em; }
.article-body li { margin-bottom: 10px; padding-inline-start: 4px; }
.article-body li > ul, .article-body li > ol { margin: 10px 0 0; font-size: 1em; }
.article-body li::marker { color: var(--coral-text); font-weight: 700; }
.article-body strong, .article-body b { color: var(--text-strong); font-weight: 700; }
.article-body a:not(.btn) { color: var(--blue-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:not(.btn):hover { color: #fff; }
.article-body hr { border: 0; height: 1px; background: var(--border-glass); margin: 48px 0; }
.article-body code, .article-body kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em;
  background: var(--bg-raised-strong); border: 1px solid var(--border-glass); border-radius: 6px; padding: 1px 6px;
}
.article-body blockquote {
  margin: 40px 0; padding: 4px 0 4px 28px; border-inline-start: 3px solid var(--coral);
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.4; letter-spacing: -0.01em; color: var(--text-strong);
}
.article-body blockquote p { font-size: inherit; line-height: inherit; color: inherit; margin: 0 0 12px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote cite, .article-body blockquote footer {
  display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 14.5px; color: var(--text-muted);
}
html[dir="rtl"] .article-body blockquote { padding: 4px 28px 4px 0; }
/* Callout boxes:  <aside class="callout [callout-tip|callout-warn]"><strong>Title</strong><p>…</p></aside> */
.article-body .callout {
  margin: 36px 0; padding: 20px 24px; border-radius: var(--radius-md);
  background: var(--blue-soft); border: 1px solid rgba(143,182,252,0.32); border-inline-start: 4px solid var(--blue);
}
.article-body .callout.callout-tip { background: var(--coral-soft); border-color: rgba(255,154,133,0.32); border-inline-start-color: var(--coral); }
.article-body .callout.callout-warn { background: rgba(255,200,87,0.12); border-color: rgba(255,200,87,0.35); border-inline-start-color: #FFC857; }
.article-body .callout > strong:first-child { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 16px; }
.article-body .callout p { font-size: 17px; line-height: 1.65; margin: 0 0 12px; }
.article-body .callout > :last-child { margin-bottom: 0; }
/* Tables scroll sideways inside themselves on narrow screens */
.article-body table {
  display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 32px 0;
  font-size: 16px; line-height: 1.55; border: 1px solid var(--border-glass); border-radius: var(--radius-md); background: var(--bg-raised);
}
.article-body th, .article-body td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--border-glass); vertical-align: top; min-width: 120px; }
.article-body thead th { font-family: var(--serif); font-size: 14px; color: var(--text-strong); background: var(--bg-raised-strong); white-space: nowrap; }
.article-body tbody tr:last-child td, .article-body tbody tr:last-child th { border-bottom: 0; }
.article-body td { color: var(--text-body); }
/* Inline figures */
.article-body figure { margin: 40px 0; }
.article-body figure img { width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--border-glass); }
.article-body figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }

/* End-of-article and mid-article CTA */
.article-cta {
  margin-top: 56px; padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(46,124,246,0.20), rgba(255,92,62,0.18));
  border: 1px solid var(--border-glass-strong); display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-card);
}
.article-cta h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.35; margin: 0; max-width: 30ch; color: var(--text-strong); }
.article-body .article-cta h3 { margin: 0; }
.article-cta.mid-cta { margin: 56px 0; padding: 22px 24px; gap: 16px; }
.article-cta.mid-cta h3 { font-size: 17px; max-width: 34ch; }
.related-link { margin-top: 28px; }
.related-link a { color: var(--coral-text); font-weight: 600; text-decoration: none; }
.related-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.related-link a::after { content: "→"; display: inline-block; margin-inline-start: .35em; transition: transform .2s var(--ease-out); }
.related-link a:hover::after { transform: translateX(3px); }
html[dir="rtl"] .related-link a::after { content: "←"; }
html[dir="rtl"] .related-link a:hover::after { transform: translateX(-3px); }

/* ---------- Share row (blog articles) ---------- */
/* Injected by site.js at the end of .article-body on article pages only.
   Reuses the glass-pill vocabulary; no new colors (see seo-content rules). */
.share-block {
  margin: 48px 0 4px; padding-top: 28px; border-top: 1px solid var(--border-glass);
}
.share-label {
  font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--text);
  margin: 0 0 16px; display: flex; align-items: center; gap: 10px;
}
.share-label .icon-badge { width: 32px; height: 32px; border-radius: 10px; }
.share-label .icon-badge svg { width: 16px; height: 16px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  width: 46px; height: 46px; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-raised); border: 1px solid var(--border-glass); color: var(--text-muted);
  cursor: pointer; text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}
.share-btn:hover, .share-btn:focus-visible {
  color: var(--text); border-color: var(--border-glass-strong);
  background: var(--bg-raised-strong); transform: translateY(-2px);
}
.share-btn svg { width: 19px; height: 19px; }
.share-btn.is-copied { color: var(--blue-text); border-color: var(--blue); background: var(--blue-soft); }

/* ---------- Reading progress bar (blog articles) ---------- */
.read-progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; z-index: 70;
  background: linear-gradient(90deg, var(--coral), var(--blue)); pointer-events: none;
  transition: width .1s linear;
}
html[dir="rtl"] .read-progress { background: linear-gradient(270deg, var(--coral), var(--blue)); }

/* ---------- Features page ---------- */
.feature-group { padding-top: 20px; padding-bottom: 20px; }
.feature-group h2 { margin-bottom: 22px; max-width: none; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  background: var(--bg-raised); border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  padding: 24px 22px; box-shadow: var(--shadow-card);
}
.feature-card .icon-badge { margin-bottom: 16px; }
.feature-card h3 { font-family: var(--serif); font-weight: 700; font-size: 17px; margin: 0 0 8px; line-height: 1.35; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.pro-badge {
  display: inline-flex; vertical-align: 2px; margin-inline-start: 6px; padding: 2px 9px; border-radius: 999px;
  background: linear-gradient(90deg, var(--coral-fill-1), var(--blue-deep)); color: #fff;
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
}
.plan-table-wrap {
  overflow-x: auto; border: 1px solid var(--border-glass); border-radius: var(--radius-lg); background: var(--bg-raised);
}
.plan-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.plan-table th, .plan-table td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--border-glass); }
.plan-table tbody tr:last-child th, .plan-table tbody tr:last-child td { border-bottom: none; }
.plan-table thead th { font-family: var(--serif); font-size: 13px; color: var(--text-faint); font-weight: 700; text-transform: none; }
.plan-table tbody th { font-weight: 500; color: var(--text); }
.plan-table td { color: var(--text-muted); white-space: nowrap; }
.plan-table td.yes .tick { display: inline-flex; color: var(--blue-text); }
.plan-table td.no { color: var(--text-faint); }
.plan-table thead th:last-child, .plan-table td:last-child { background: var(--blue-soft); }

/* ---------- Table of contents (blog articles) ---------- */
/* One <details class="toc">: a sticky rail on desktop, a collapsible card on
   phones (site.js closes it below 1025px; without JS it simply stays open). */
.toc { margin: 0; }
.toc > summary {
  list-style: none; cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 12px;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -4px; opacity: 0; transition: transform .2s var(--ease-out); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; border-inline-start: 2px solid var(--border-glass); }
.toc li { margin: 0; }
.toc a {
  display: block; color: var(--text-muted); text-decoration: none; font-size: 14.5px; line-height: 1.4;
  padding: 7px 12px; margin-inline-start: -2px; border-inline-start: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.toc a:hover, .toc a:focus-visible { color: var(--text); }
.toc a[aria-current="true"] { color: var(--text); border-inline-start-color: var(--coral); font-weight: 600; }
.article-body h2[id] { scroll-margin-top: var(--header-offset); }
.article-date { color: var(--text-faint); }
.related-posts { padding-top: 10px; }
.related-posts h2 { max-width: none; }
.related-posts .blog-grid { margin-top: 0; }
.related-posts .blog-card h3 { font-size: 19px; }
.related-posts .blog-card p { -webkit-line-clamp: 2; line-clamp: 2; }
@media (min-width: 1025px) { .toc > summary { pointer-events: none; cursor: default; } }
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "aside" "body"; }
  .article-aside { position: static; max-height: none; overflow: visible; margin: 0 0 32px; max-width: var(--measure); padding: 0; }
  .toc { background: var(--bg-raised); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 4px 20px; }
  .toc > summary { padding: 14px 0; min-height: 48px; }
  .toc > summary::after { opacity: .7; }
  .toc[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .toc ol { margin-bottom: 14px; }
}

/* ---------- Blog index search ---------- */
.blog-search { margin: 0 0 26px; max-width: 420px; position: relative; }
.blog-search input {
  width: 100%; padding: 12px 18px; border-radius: 999px; font: inherit; font-size: 15px;
  background: var(--bg-raised); color: var(--text); border: 1px solid var(--border-glass);
  transition: border-color .2s ease, background-color .2s ease;
}
.blog-search input:hover { border-color: var(--border-glass-strong); }
.blog-search input::placeholder { color: var(--text-faint); }
.blog-search input:focus { outline: 2px solid var(--blue); outline-offset: 2px; border-color: transparent; background: var(--bg-raised-strong); }
.blog-search-empty { color: var(--text-muted); margin: 0 0 20px; }

/* ---------- Section shell ---------- */
.section { padding: 88px 24px; }
.page-intro + .section { padding-top: 8px; }
.section > .lede { color: var(--text-muted); font-size: var(--fs-lede); line-height: 1.7; margin: 0; }
.section h2 { font-family: var(--serif); font-weight: 700; font-size: var(--fs-h2); line-height: 1.15; margin: 0 0 40px; max-width: 22ch; letter-spacing: -0.025em; }
html[lang="ja"] .section h2, html[lang="ko"] .section h2, html[lang="ar"] .section h2 { letter-spacing: 0; line-height: 1.3; }


/* ---------- Home: section heads, hero extras, trust strip, why-table ---------- */
.section-head { max-width: 62ch; margin: 0 0 44px; }
.section .section-head h2 { margin: 0 0 14px; max-width: 24ch; }
.section-head .lede { color: var(--text-muted); font-size: var(--fs-lede); line-height: 1.65; margin: 0; }
.hero .lede { color: rgba(245,247,250,0.84); }
.btn-play { padding: 15px 28px; font-size: 15.5px; }
.btn-play .play-mark { width: 18px; height: 18px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--text-muted); max-width: 46ch; }
.trust { padding: 0 24px 8px; }
.trust-list {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--border-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); overflow: hidden;
}
.trust-list li { background: #0D1325; padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; }
.trust-list .icon-badge { width: 38px; height: 38px; border-radius: 12px; }
.trust-list strong { display: block; font-family: var(--serif); font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.trust-list span.sub { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.feature-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-table { font-size: 15.5px; }
.why-table th, .why-table td { padding: 18px 22px; }
.why-table td { white-space: normal; vertical-align: top; }
.why-table thead th { font-size: 14.5px; color: var(--text); }
.why-table td:last-child { color: var(--text); }
.why-table .tick { display: inline-flex; vertical-align: -3px; margin-inline-end: 8px; color: var(--blue-text); }
.why-table .tick svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .trust { padding-inline: 18px; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { padding: 16px 18px; }
  .feature-grid.cols-3 { grid-template-columns: 1fr; }
  .why-table th, .why-table td { padding: 14px 14px; }
  .btn-play { width: 100%; }
}

/* ---------- Real app screens (home + Features; site-tools/app_screens.py) ---------- */
.screens > .lede { margin: -18px 0 36px; max-width: 62ch; }
.screen-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.screen-row li { min-width: 0; }
.screen-row figure { margin: 0; }
.screen-shot {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover;
  border-radius: 24px; background: #F7F3F1; border: 1px solid var(--border-glass-strong);
  box-shadow: 0 0 0 5px rgba(255,255,255,0.04), var(--shadow-lift);
  transition: transform .35s var(--ease-out);
}
.screen-row li:hover .screen-shot { transform: translateY(-4px); }
.screen-row figcaption { margin-top: 18px; }
.screen-row h3 { font-family: var(--serif); font-weight: 700; font-size: 15.5px; line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.01em; }
html[lang="ja"] .screen-row h3, html[lang="ko"] .screen-row h3, html[lang="ar"] .screen-row h3 { letter-spacing: 0; line-height: 1.45; }
.screen-row p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 900px) {
  .screen-row {
    display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: -24px; padding: 4px 24px 14px; scroll-padding-inline: 24px; scrollbar-width: thin;
  }
  .screen-row li { flex: 0 0 min(62vw, 240px); scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .screen-row { margin-inline: -18px; padding-inline: 18px; scroll-padding-inline: 18px; }
}

/* ---------- The loop (a real 3-step sequence, so it is numbered) ---------- */
.loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.loop-item {
  padding: 28px 26px; background: var(--bg-raised); border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); position: relative; counter-increment: step;
}
.loop-item::after {
  content: "0" counter(step); position: absolute; top: 24px; inset-inline-end: 24px;
  font-family: var(--serif); font-weight: 700; font-size: 13px; color: var(--text-faint); letter-spacing: 0.04em;
}
/* hairline connector between steps (desktop only) */
.loop-item + .loop-item::before {
  content: ""; position: absolute; top: 48px; inset-inline-end: 100%; width: 20px; height: 1px;
  background: linear-gradient(90deg, var(--coral), var(--blue)); opacity: 0.7;
}
.loop-item .fnum { display: none; }
.loop-item h3 { font-family: var(--serif); font-weight: 700; font-size: var(--fs-h3); margin: 18px 0 8px; letter-spacing: -0.01em; }
.loop-item p { color: var(--text-muted); margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- Categories ---------- */
.sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sheet a {
  background: var(--bg-raised); border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text); padding: 22px 22px 24px; display: block; min-height: 156px; position: relative;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease-out), border-color .25s ease, background-color .25s ease, box-shadow .3s ease;
}
.sheet a::after {
  content: "→"; position: absolute; top: 24px; inset-inline-end: 22px; color: var(--text-faint); font-size: 18px; line-height: 1;
  opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .3s var(--ease-out), color .2s ease;
}
html[dir="rtl"] .sheet a::after { content: "←"; transform: translateX(6px); }
.sheet a:hover, .sheet a:focus-visible { border-color: var(--border-glass-strong); background: var(--bg-raised-strong); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.sheet a:hover::after, .sheet a:focus-visible::after { opacity: 1; transform: none; color: var(--coral-text); }
.sheet .fnum { display: none; }
.sheet h3 { font-family: var(--serif); font-weight: 700; font-size: 17px; margin: 16px 0 6px; letter-spacing: -0.01em; }
.sheet p { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* ---------- Privacy band ---------- */
.privacy { padding: 24px 24px 72px; }
.privacy .wrap {
  max-width: 1132px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(120deg, var(--blue-soft), var(--coral-soft));
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 48px 52px;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.privacy .wrap::before {
  content: ""; position: absolute; width: 340px; height: 340px; inset-inline-end: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.10), transparent); pointer-events: none;
}
.privacy h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; margin: 0; color: var(--text); max-width: 16ch; letter-spacing: -0.02em; }
.privacy p { color: var(--text-muted); margin: 0; font-size: 16px; line-height: 1.7; max-width: 48ch; }
.privacy .mark { display: none; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--bg-raised); border: 1px solid var(--border-glass); border-radius: var(--radius-md);
  margin-bottom: 12px; max-width: 860px; transition: border-color .2s ease, background-color .2s ease;
}
.faq-item:hover { border-color: var(--border-glass-strong); }
.faq-item[open] { background: var(--bg-raised-strong); }
.faq-item summary {
  cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 16.5px; line-height: 1.4; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; border-radius: var(--radius-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .mk {
  font-family: var(--sans); font-weight: 400; color: var(--coral-text); font-size: 20px; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--coral-soft); transition: transform .25s var(--ease-out);
}
.faq-item[open] summary .mk { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); margin: 0; padding: 0 24px 22px; font-size: 15px; line-height: 1.65; max-width: 68ch; }
.faq-item[open] p { animation: faq-in .25s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Closing ---------- */
.closing { padding: 24px 24px 88px; }
.closing .wrap {
  max-width: 1132px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(255,92,62,0.28), transparent 70%),
    linear-gradient(120deg, rgba(46,124,246,0.20), rgba(255,92,62,0.16));
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 52px 52px;
  box-shadow: var(--shadow-card);
}
.closing h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.15; margin: 0; max-width: 18ch; letter-spacing: -0.025em; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 8px 24px 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 40px; align-items: start;
}
/* hairline inside the content box, so it lines up with the sections above */
.site-footer::before { content: ""; grid-column: 1 / -1; grid-row: 1; height: 1px; background: var(--border-glass); margin-bottom: 34px; }
.footer-nav { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px 24px; grid-column: 1; grid-row: 2; }
.footer-nav a { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; grid-column: 2; grid-row: 2; justify-content: flex-end; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover, .footer-links a:hover, .footer-nav a:focus-visible, .footer-links a:focus-visible { color: var(--coral-text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .disclaimer { color: var(--text-faint); font-size: 13px; max-width: 70ch; line-height: 1.6; grid-column: 1 / -1; margin: 18px 0 0; }
.rights { color: var(--text-faint); font-size: 13px; margin: 10px 0 0; grid-column: 1 / -1; }

/* ---------- Download bar (phones only — the sticky header CTA covers desktop) ---------- */
.download-bar {
  position: fixed; inset-inline: 16px; bottom: 14px; z-index: 40; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 11px 12px 11px 16px;
  background: rgba(15,19,36,0.86); border: 1px solid var(--border-glass); border-radius: 22px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.45);
  transition: transform .45s var(--ease-out), opacity .3s ease;
}
html[dir="rtl"] .download-bar { padding: 11px 16px 11px 12px; }
.download-bar.is-parked, .download-bar.is-cta-parked { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.download-bar img { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border-glass); }
.download-bar .txt { flex: 1; font-size: 14px; min-width: 0; }
.download-bar .txt strong { display: block; font-family: var(--serif); font-size: 14.5px; font-weight: 700; }
.download-bar .txt span { color: var(--text-muted); font-size: 12.5px; }
.download-bar .btn { padding: 10px 18px; }
.download-bar button.close {
  background: none; border: none; font-size: 22px; line-height: 1; color: var(--text-muted); cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.download-bar button.close:hover { color: var(--text); background: var(--bg-raised-strong); }
.is-hidden { display: none !important; }
@media (min-width: 901px) {
  .download-bar { display: none; }
}
@media (max-width: 900px) {
  .site-footer { padding-bottom: 120px; }
}

/* ---------- Scroll reveal (site.js; only below-the-fold elements, only with JS) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { padding: 96px 24px 120px; text-align: center; }
.notfound .code {
  font-family: var(--serif); font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; letter-spacing: -0.05em; margin: 0 0 8px;
  background: linear-gradient(120deg, var(--coral), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { font-family: var(--serif); font-size: var(--fs-page); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 14px; }
.notfound .lede { color: var(--text-muted); font-size: var(--fs-lede); max-width: 46ch; margin: 0 auto 30px; }
.notfound .cta-row { justify-content: center; }
.notfound .locales { list-style: none; padding: 0; margin: 40px auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 640px; }
.notfound .locales a {
  display: inline-flex; padding: 7px 14px; border-radius: var(--radius-sm); background: var(--bg-raised); border: 1px solid var(--border-glass);
  color: var(--text-muted); text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.notfound .locales a:hover, .notfound .locales a:focus-visible { color: var(--text); border-color: var(--border-glass-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-header { margin: 10px 12px 0; padding: 6px 6px 6px 16px; top: 8px; }
  html[dir="rtl"] .site-header { padding: 6px 16px 6px 6px; }
  .brand { position: relative; z-index: 2; }
  .nav-toggle { display: inline-flex; }
  /* Drawer: a full-height sheet. (The header's backdrop-filter would make it
     the containing block of a fixed child, so site.js adds .has-nav-open to
     drop the filter while the sheet is open.) */
  .site-header.has-nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; box-shadow: none; }
  .nav {
    position: fixed; z-index: 1; inset-block: 0; inset-inline: auto 0; width: min(420px, 100%); margin: 0;
    background: var(--surface-menu); border-inline-start: 1px solid var(--border-glass);
    box-shadow: 0 0 0 100vmax rgba(5,8,16,0.62);
    flex-direction: column; align-items: stretch; gap: 0; padding: 84px 22px 28px; overflow-y: auto; overscroll-behavior: contain;
  }
  .nav:not(.nav-closed) { animation: sheet-in .28s var(--ease-out); }
  .nav.nav-closed { display: none; }
  .nav > a:not(.btn) {
    padding: 16px 4px; font-size: 19px; font-family: var(--serif); font-weight: 600; color: var(--text); border-radius: 0;
    border-bottom: 1px solid var(--border-glass); white-space: normal;
  }
  .nav > a:not(.btn):hover, .nav > a:not(.btn):focus-visible { background: none; color: var(--coral-text); }
  .nav > a[aria-current="page"] { background: none; color: var(--coral-text); }
  .nav .btn { margin: 22px 0 0; padding: 16px 24px; font-size: 16px; }
  .nav .lang-switch { margin: 18px 0 0; width: 100%; }
  .lang-switch summary { justify-content: flex-start; padding: 12px 16px; min-height: 48px; }
  .lang-switch .menu {
    position: static; border: none; padding: 8px 0 0; max-height: none; background: none; box-shadow: none;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px; animation: none;
  }
  html.nav-lock { overflow: hidden; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
html[dir="rtl"] .nav { animation-name: sheet-in-rtl; }
@keyframes sheet-in-rtl { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .nav { width: 100%; border-inline-start: 0; box-shadow: none; }
  .brand span { font-size: 16px; }
  .brand img { width: 28px; height: 28px; }
  .nav-toggle { padding: 0 12px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 900px) {
  :root { --header-offset: 88px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 24px 40px; }
  .hero h1 { max-width: 14ch; }
  .loop { grid-template-columns: 1fr; gap: 14px; }
  .loop-item + .loop-item::before { display: none; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy .wrap { grid-template-columns: 1fr; padding: 34px 30px; gap: 18px; }
  .closing .wrap { padding: 36px 30px; flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 24px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .wrap { padding-inline: 18px; }
  .hero, .section, .page-intro, .crumbs, .privacy, .closing, .site-footer { padding-inline: 18px; }
  .hero { padding-top: 24px; }
  .hero h1 { max-width: none; }
  .cta-row .btn { flex: 1 1 auto; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  h1, h2 { overflow-wrap: break-word; hyphens: auto; }
  .sheet h3 { font-size: 16px; overflow-wrap: anywhere; hyphens: auto; }
  .sheet p { overflow-wrap: anywhere; }
  .sheet a { padding: 18px 16px 20px; min-height: 0; }
  .sheet a::after { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .plan-table th, .plan-table td { padding: 12px 12px; }
  .plan-table td { white-space: normal; }
  .article-cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .privacy .wrap, .closing .wrap { padding: 28px 22px; }
  .frame-pair.is-compare { max-width: 300px; }
  .article-body p, .article-body ul, .article-body ol { font-size: 17.5px; line-height: 1.7; }
  .article-body > .article-hero + p, .article-body > picture + p { font-size: 18.5px; }
  .article-body h2 { margin-top: 52px; }
  .article-body blockquote { padding-inline-start: 20px; margin: 32px 0; }
  .article-cta.mid-cta { margin: 40px 0; }
}

/* ---------- Motion & print safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .blog-card:hover, .sheet a:hover, .share-btn:hover, .share-btn:focus-visible, .screen-row li:hover .screen-shot { transform: none; }
  .blog-card:hover .thumb { transform: none; }
  .nav:not(.nav-closed) { animation: none; }
}
@media (forced-colors: active) {
  .hero h1, .notfound .code { background: none; color: CanvasText; }
  .compare-handle { background: CanvasText; }
}
@media print {
  body::before, .site-header, .download-bar, .read-progress, .share-block, .compare-handle, .compare-range { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { color: #000; background: #fff; }
}
