/* Shared site chrome (agent-workflow/skills/landing-page/chrome): header, language pickers, phone
   menu, store badge, footer and the guide frame. The same form on every app's site; each project
   sets the --chrome-* properties to its own tokens (site_chrome.stylesheet(cfg) appends cfg["theme"]).
   Logical properties only, so right-to-left pages mirror. One line at 375 px, nothing wider than it. */
:root {
  --chrome-bg: #ffffff;
  --chrome-bg-alt: #f5f5f7;
  --chrome-surface: #ffffff;
  --chrome-text: #1d1d1f;
  --chrome-text-2: #4a4a55;
  --chrome-text-3: #6e6e78;
  --chrome-line: rgba(0, 0, 0, .1);
  --chrome-brand: #4648d4;
  --chrome-cta-bg: var(--chrome-bg-alt);
  --chrome-shadow: 0 30px 60px -20px rgba(20, 20, 60, .35), 0 12px 24px -12px rgba(0, 0, 0, .25);
  --chrome-nav-h: 52px;
  --chrome-wrap: 1120px;
  --chrome-radius: 22px;
  --chrome-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue",
    "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --chrome-bg: #000000;
    --chrome-bg-alt: #0e0f13;
    --chrome-surface: #1c1e22;
    --chrome-text: #f5f5f7;
    --chrome-text-2: #c2c3cc;
    --chrome-text-3: #8b8d98;
    --chrome-line: rgba(255, 255, 255, .14);
    --chrome-brand: #9b9dfb;
    --chrome-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 12px 24px -12px rgba(0, 0, 0, .6);
  }
}

.skip { position: absolute; inset-inline-start: 8px; top: -100px; z-index: 100; background: var(--chrome-surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; height: var(--chrome-nav-h); font-family: var(--chrome-font);
  background: color-mix(in srgb, var(--chrome-bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--chrome-line); }
.nav-inner { height: 100%; width: min(var(--chrome-wrap), 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--chrome-text); font-weight: 650; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; font-size: 14px; }
.nav-links a { color: var(--chrome-text-2); }
.nav-lang { position: relative; font-size: 14px; }
.nav-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 32px;
  padding: 0 10px; border-radius: 999px; color: var(--chrome-text-2); }
.nav-lang summary::-webkit-details-marker { display: none; }
.nav-lang summary:hover, .nav-lang[open] summary { color: var(--chrome-text); background: var(--chrome-bg-alt); }
.nav-lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none;
  display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 8px; max-height: min(70vh, 520px); overflow: auto;
  background: var(--chrome-surface); border: 1px solid var(--chrome-line); border-radius: 16px; box-shadow: var(--chrome-shadow); z-index: 60; }
.nav-lang li a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--chrome-text); white-space: nowrap; }
.nav-lang li a:hover { background: var(--chrome-bg-alt); text-decoration: none; }
.nav-lang a[aria-current] { font-weight: 700; color: var(--chrome-brand); }
.nav-links a[aria-current] { color: var(--chrome-text); font-weight: 600; }
/* The header button never wraps: a two-line pill in the bar looks broken. Its colours are the
   project's .btn; its size is fixed here. */
.nav .btn-small { min-height: 32px; padding: 0 14px; font-size: 13px; white-space: nowrap; flex: none; }
/* Phone menu: the links that do not fit in the bar. */
.nav-more { display: none; }
.nav-more summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 999px; color: var(--chrome-text); }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover, .nav-more[open] summary { background: var(--chrome-bg-alt); }
.nav-more ul { position: absolute; inset-inline: 16px; top: calc(var(--chrome-nav-h) + 8px); margin: 0; padding: 8px; list-style: none;
  display: grid; gap: 2px; background: var(--chrome-surface); border: 1px solid var(--chrome-line); border-radius: 16px;
  box-shadow: var(--chrome-shadow); z-index: 60; }
.nav-more li a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--chrome-text); font-size: 16px; }
.nav-more li a:hover { background: var(--chrome-bg-alt); text-decoration: none; }
.nav-more a[aria-current] { font-weight: 700; color: var(--chrome-brand); }
@media (max-width: 720px) {
  .nav-inner { gap: 8px; }
  .nav-more { display: block; }
  .nav-links { display: none; }
  .nav-lang { position: static; margin-inline-start: auto; }
  .nav-lang summary span { display: none; }
  /* Full width under the bar: anchored to the globe, the list would run off a phone's edge. */
  .nav-lang ul { inset-inline: 16px; top: calc(var(--chrome-nav-h) + 8px); grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  /* The narrowest phones: the icon alone is the brand, so the button and both menus still fit. */
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* App Store badge */
.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.store-badge:hover { text-decoration: none; background: #111; }
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: flex; flex-direction: column; font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.store-badge small { font-size: 11px; font-weight: 500; letter-spacing: .02em; margin-bottom: 3px; }
.store-badge.light { background: #fff; color: #000; border-color: transparent; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 28px 0 14px; }

/* FAQ entries (guides, home, support) */
.faq-item { background: var(--chrome-surface); border-radius: 16px; margin-bottom: 12px; }
.faq-item summary { cursor: pointer; list-style: none; padding-block: 20px; padding-inline: 24px 52px; font-weight: 600; font-size: 18px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--chrome-text-3); }
.faq-item[open] summary::after { content: "−"; }
.faq-item div { padding: 0 24px 18px; color: var(--chrome-text-2); }
.faq-item div p:last-child { margin-bottom: 0; }

/* Guide frame */
.guide-head { background: var(--chrome-bg-alt); padding: 56px 0 0; overflow: hidden; }
.guide-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.guide-grid > div:first-child { padding-bottom: 64px; }
.guide-grid.no-media { grid-template-columns: minmax(0, 1fr); }
.guide-grid.no-media > div:first-child { max-width: 820px; }
.guide-head h1 { font-size: clamp(34px, 4.4vw, 54px); }
.crumbs { font-size: 14px; color: var(--chrome-text-3); margin-bottom: 20px; }
.crumbs span { margin: 0 6px; }
.guide-media { display: flex; justify-content: center; gap: 16px; height: 460px; align-items: flex-start; }
.guide-media .phone { width: 250px; }
.guide-media.phones-2 .phone { width: 210px; }
.guide-media.phones-2 .phone:last-child { margin-top: 50px; }
.guide-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 56px; }
.guide-body .prose { max-width: 720px; }
/* Two classes, so a project's own .wrap padding (DeviceBox) cannot drop the space above the body. */
.guide .guide-body { padding-top: 56px; }
/* A wide table scrolls inside its own box; no body content can widen the page. */
.guide-body > * { min-width: 0; }
.guide-body .prose table { max-width: 100%; }
.guide-body .table-wrap { max-width: 100%; overflow-x: auto; }
.toc { position: sticky; top: calc(var(--chrome-nav-h) + 24px); align-self: start; font-size: 14px; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--chrome-text-2); }
.inline-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px; border-radius: 20px; background: var(--chrome-cta-bg); margin: 40px 0; }
.inline-cta img { border-radius: 13px; }
.inline-cta div { flex: 1; min-width: 200px; }
.inline-cta p { margin: 0; }
.related { list-style: none; padding: 0; display: grid; gap: 12px; }
.related a { display: block; padding: 18px 20px; border-radius: 16px; background: var(--chrome-bg-alt); color: var(--chrome-text); }
.related a:hover { text-decoration: none; background: color-mix(in srgb, var(--chrome-brand) 10%, var(--chrome-bg-alt)); }
.related span { display: block; color: var(--chrome-text-2); font-size: 15px; margin-top: 4px; }
/* Guides index cards: kicker, title, description and date each on their own line. */
.guide-cards { list-style: none; padding: 0 0 100px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.guide-cards a { display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: var(--chrome-radius); background: var(--chrome-bg-alt); color: var(--chrome-text); overflow: hidden; }
.guide-cards a:hover { text-decoration: none; transform: translateY(-2px); }
.guide-cards img { width: 130px; border-radius: 18px; margin-bottom: 18px; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }
.guide-cards strong { font-size: 21px; line-height: 1.2; margin-bottom: 6px; }
.guide-cards .desc { color: var(--chrome-text-2); font-size: 15px; }
.guide-cards .fine { margin-top: 10px; }
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; }
  /* min-width: 0: the screens shrink to the column instead of widening the page on a phone. */
  .guide-grid > *, .guide-media .phone { min-width: 0; }
  .guide-grid > div:first-child { padding-bottom: 8px; }
  .guide-media { height: 360px; }
  .guide-media .phone { width: 200px; }
  /* minmax(0, …): a plain 1fr column cannot be narrower than its widest table, which pushed the
     whole page wider than a phone. */
  .guide-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; margin-bottom: 24px; }
}

/* Footer */
.footer { background: var(--chrome-bg-alt); border-top: 1px solid var(--chrome-line); padding: 56px 0 28px; font-size: 14px; color: var(--chrome-text-2); font-family: var(--chrome-font); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--chrome-text-3); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--chrome-text-2); }
.footer-brand p { margin: 12px 0 18px; max-width: 26em; }
.footer-identity { font-size: 13px; line-height: 1.6; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--chrome-surface) 65%, transparent); border: 1px solid var(--chrome-line); }
.footer-identity p { margin: 0; }
.footer-identity strong { color: var(--chrome-text); }
.footer-social { margin: 0 0 18px; display: flex; gap: 12px; }
.footer-social .social { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--chrome-line); color: var(--chrome-text); font-weight: 600; }
.footer-social .social:hover { border-color: var(--chrome-text-3); }
.footer .footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--chrome-line); margin-top: 36px; padding-top: 18px; font-size: 12px; color: var(--chrome-text-3); }
.footer-base p { margin: 0; }
.lang summary { cursor: pointer; display: inline-block; padding: 8px 14px; border: 1px solid var(--chrome-line); border-radius: 999px; }
.lang ul { margin-top: 10px; grid-template-columns: repeat(2, max-content); gap: 6px 22px; }
.lang a[aria-current] { color: var(--chrome-text); font-weight: 700; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* DoseMate chrome theme (cfg['theme']) */
:root {
  --chrome-bg: var(--bg);
  --chrome-bg-alt: var(--bg-alt);
  --chrome-surface: var(--surface);
  --chrome-text: var(--ink);
  --chrome-text-2: var(--muted);
  --chrome-text-3: var(--muted);
  --chrome-line: var(--line);
  --chrome-brand: var(--accent-text);
  --chrome-cta-bg: var(--accent-soft);
  --chrome-shadow: var(--shadow);
  --chrome-nav-h: var(--nav-h);
  --chrome-wrap: var(--wrap);
  --chrome-radius: var(--radius);
}

/* DoseMate website. Colours mirror the app's theme (docs/design/THEME.md: neutrals from the brand primary
   #0061A4, Light not glaring, Dark not black). The header, footer, store badge, FAQ entries and guide frame
   come from the shared chrome.css (agent-workflow/skills/landing-page/chrome), written in front of this file. */
:root {
  --bg: #f6f9fb;
  --bg-alt: #e9eff3;
  --surface: #ffffff;
  --ink: #182025;
  --muted: #4d5c66;
  --line: #c2cdd4;
  --accent: #0061a4;
  --accent-text: #0061a4;
  --accent-soft: #dceaf6;
  --on-accent: #ffffff;
  --walk: #0061a4;
  --premium: #8a5a00;
  --premium-soft: #f4ecd5;
  --fog: #0a0f18;
  --fog-2: #0e1e3a;
  --radius: 26px;
  --wrap: 1120px;
  --nav-h: 56px;
  --shadow: 0 30px 60px -24px rgba(24, 32, 37, .35), 0 10px 20px -12px rgba(24, 32, 37, .2);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #162026;
    --bg-alt: #222d34;
    --surface: #222d34;
    --ink: #f8fafb;
    --muted: #9aaab5;
    --line: #3e4b54;
    --accent: #0078ce;
    --accent-text: #7fb6ff;
    --accent-soft: rgba(0, 120, 206, .18);
    --on-accent: #ffffff;
    --premium: #f2c76b;
    --premium-soft: rgba(240, 190, 80, .16);
    --shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 10px 20px -12px rgba(0, 0, 0, .6);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans",
    "Apple SD Gothic Neo", "Noto Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .45em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: normal; color: var(--accent-text); }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-alt); padding: .1em .35em; border-radius: 6px; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); }
.center { text-align: center; }
.fine { font-size: .875rem; color: var(--muted); }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .6em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: .9rem; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Hero as a cover: the App Store filmstrip, far larger than the frame and tilted, so no slide is
   seen whole. A blurred copy fills the frame; the sharp one shows through a soft window beside the
   copy, and darkness takes the cut edges. Always dark, in both themes. */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #f1f5f9; background: #0a0f18; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
.hero-film { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; min-height: min(100svh, 920px); padding: 96px 0 72px; }
.hero-film .hero-grid { grid-template-columns: minmax(0, 620px); }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); letter-spacing: -.035em; }
.hero em { background: linear-gradient(120deg, #3991fa, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #cbd5e1; max-width: 34em; }
.hero .fine { color: #94a3b8; }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.app-id img { border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.app-name { font-weight: 800; font-size: 1.4rem; margin: 0; }
.app-by { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9ecaff;
  background: rgba(57, 145, 250, .16); border: 1px solid rgba(127, 182, 255, .32); padding: 2px 9px; border-radius: 999px; margin: 3px 0 5px; }
.app-sub { margin: 0; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.hero .btn-ghost { color: #f1f5f9; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.film-soft { position: absolute; z-index: -3; inset: -12%; background: center / cover no-repeat;
  filter: brightness(.5) saturate(1.2); transform: rotate(-9deg) scale(1.25); }
.film-sharp { position: absolute; z-index: -2; top: 50%; inset-inline-end: -34%; width: 118%; max-width: none; height: auto;
  transform: translateY(-50%) rotate(-9deg);
  -webkit-mask-image: radial-gradient(ellipse 34% 50% at 52% 50%, #000 35%, transparent 80%);
          mask-image: radial-gradient(ellipse 34% 50% at 52% 50%, #000 35%, transparent 80%); }
.hero-film::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
    linear-gradient(90deg, #0a0f18 0%, rgba(10, 15, 24, .9) 28%, rgba(10, 15, 24, .3) 54%, transparent 72%),
    radial-gradient(ellipse 120% 90% at 62% 50%, transparent 42%, rgba(10, 15, 24, .7) 80%, #0a0f18 100%),
    linear-gradient(180deg, rgba(10, 15, 24, .8) 0%, transparent 18%, transparent 74%, #0a0f18 100%); }
[dir="rtl"] .film-sharp { transform: translateY(-50%) rotate(9deg); }
[dir="rtl"] .film-soft { transform: rotate(9deg) scale(1.25); }
[dir="rtl"] .hero-film::after { background:
    linear-gradient(270deg, #0a0f18 0%, rgba(10, 15, 24, .9) 28%, rgba(10, 15, 24, .3) 54%, transparent 72%),
    radial-gradient(ellipse 120% 90% at 38% 50%, transparent 42%, rgba(10, 15, 24, .7) 80%, #0a0f18 100%),
    linear-gradient(180deg, rgba(10, 15, 24, .8) 0%, transparent 18%, transparent 74%, #0a0f18 100%); }
@media (max-width: 860px) {
  .hero-film { align-content: end; min-height: 0; padding: min(46svh, 380px) 0 40px; }
  .film-sharp { top: 0; inset-inline-end: -52%; width: 200%; transform: rotate(-9deg);
    -webkit-mask-image: radial-gradient(ellipse 36% 46% at 50% 40%, #000 35%, transparent 82%);
            mask-image: radial-gradient(ellipse 36% 46% at 50% 40%, #000 35%, transparent 82%); }
  [dir="rtl"] .film-sharp { transform: rotate(9deg); }
  .hero-film::after, [dir="rtl"] .hero-film::after { background:
    linear-gradient(180deg, rgba(10, 15, 24, .75) 0%, transparent 12%, transparent 30%, rgba(10, 15, 24, .88) 50%, #0a0f18 64%); }
}
.phone { border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); background: #0a0f18; }
.phone img { width: 100%; }

/* Sections */
section { padding-block: 64px; }
.section-title { text-align: center; margin-bottom: .6em; }
.section-lead { text-align: center; color: var(--muted); max-width: 40em; margin-inline: auto; margin-bottom: 2em; }
.reason-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.reason-grid li { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; }
.reason-grid p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .reason-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding-block: 40px; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.feature-copy .why { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-inline-start: 28px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 14px; height: 8px; border: solid var(--accent); border-width: 0 0 3px 3px; transform: rotate(-45deg) scale(.9); }
.feature-media { display: flex; justify-content: center; direction: ltr; }
/* A feature's picture: a close view of its own slide of the same filmstrip, the rest in the dark. */
.film-window { position: relative; display: block; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1; border-radius: 36px; overflow: hidden;
  background: #0a0f18; isolation: isolate; box-shadow: var(--shadow); }
.film-window img { position: absolute; top: 50%; left: 50%; width: 106%; max-width: none; height: auto;
  transform: translate(-50%, -50%) rotate(-4deg); }
.film-window::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 78% 78% at 50% 50%, transparent 55%, rgba(10, 15, 24, .6) 85%, #0a0f18 100%); }
@media (min-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .feature.reverse .feature-media { order: -1; }
}
.shot-strip { list-style: none; display: flex; gap: 16px; overflow-x: auto; padding: 4px 20px 24px; margin: 0; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; direction: ltr; }
.shot-strip li { flex: none; width: 220px; scroll-snap-align: start; }
.shot-strip img { border-radius: 22px; box-shadow: var(--shadow); }
.gallery { background: var(--bg-alt); }
.plans { display: grid; gap: 16px; }
.plan { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; }
.plan-premium { background: var(--premium-soft); }
.plan h3 { margin-bottom: .5em; }
.plan-premium h3 { color: var(--premium); }
.plan ul { margin: 0; }
.plan li { margin-bottom: 6px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1.3fr; } }
.privacy-band { background: var(--fog); color: #e2e8f0; }
.privacy-band .section-lead { color: #94a3b8; }
.privacy-band em { color: #34d399; }
.privacy-points { list-style: none; padding: 0; max-width: 720px; margin: 0 auto 20px; display: grid; gap: 10px; }
.privacy-points li { background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 14px 18px; }
.privacy-band a { color: #34d399; }
.faq { background: var(--bg-alt); }
.final-cta { text-align: center; background: linear-gradient(160deg, #064e3b, #0b1220); color: #f1f5f9; }
.final-cta img { margin: 0 auto 18px; border-radius: 24px; }
.final-cta p { color: #cbd5e1; }
.final-cta em { color: #34d399; }
.final-cta .store-badge { margin-top: 8px; }

/* Inner pages */
.page-head { padding-block: 56px 24px; }
.page-head.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose { padding-bottom: 64px; }
.note { background: var(--bg-alt); border-radius: 14px; padding: 14px 18px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.card { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin-top: 28px; }
.card h2 { font-size: 1.2rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: 8px; }
.empty { text-align: center; padding-block: 24px 96px; }


/* Motion */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2 { word-break: auto-phrase; letter-spacing: -.01em; }
:lang(ko) p { word-break: keep-all; }

.feature-link { margin: 1.2em 0 0; font-weight: 600; }
