/* 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; } }

/* Aurora split skin for the shared chrome (owner, 2026-11-20; template: ../templates/aurora/).
   Loaded after chrome.css only when cfg["skin"] == "aurora" (site_chrome.stylesheet). It sets the
   Aurora ground and tokens with OptiSafari's values as defaults; a project overrides --brand,
   --brand2, --ground-base and --ground-tint on :root in its own site.css, which comes after this.
   It restyles the chrome's own classes only; the fixed orders in README.md do not change.
   Dark only: the ground is a deep slate, never near-black and never a bright wash. */
:root {
  color-scheme: dark;
  --brand: #10B981;
  --brand2: #c8e991;
  --ground-base: #08121c;
  --ground-tint: 3%;
  --ground: color-mix(in srgb, var(--ground-base) calc(100% - var(--ground-tint)), var(--brand));
  --ink: color-mix(in srgb, white 97%, var(--ground));
  --muted: color-mix(in srgb, var(--ink) 72%, var(--ground));
  --line: color-mix(in srgb, var(--ink) 8%, transparent);
  --glass: color-mix(in srgb, var(--ink) 4%, transparent);
  --panel: color-mix(in srgb, var(--ground) 96%, var(--ink));
  --ambient: color-mix(in srgb, var(--brand) 5%, transparent);
  --grid-line: color-mix(in srgb, var(--ink) 3%, transparent);
  --grid: repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 24px);
  --highlight: linear-gradient(110deg, color-mix(in srgb, var(--ink) 16%, transparent), transparent 75%);
  --accent-line: color-mix(in srgb, var(--brand) 35%, var(--line));
  --accent-glow: color-mix(in srgb, var(--brand) 8%, transparent);
  --scroll-thumb: color-mix(in srgb, var(--ground) 52%, var(--muted));
  --radius: 17px;
  --display: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --chrome-bg: var(--ground);
  --chrome-bg-alt: var(--panel);
  --chrome-surface: var(--panel);
  --chrome-text: var(--ink);
  --chrome-text-2: var(--muted);
  --chrome-text-3: color-mix(in srgb, var(--muted) 80%, var(--ground));
  --chrome-line: var(--line);
  --chrome-brand: var(--brand);
  --chrome-cta-bg: var(--glass);
  --chrome-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --chrome-nav-h: 84px;
  --chrome-radius: var(--radius);
  --chrome-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Apple SD Gothic Neo", "Noto Sans", sans-serif;
}

/* One continuous ground, painted on html and body; no section paints its own. */
html { background: var(--ground); }
body {
  position: relative; isolation: isolate; min-height: 100vh; color: var(--ink);
  background:
    radial-gradient(ellipse 780px 860px at 0% 410px, var(--ambient), transparent 76%),
    radial-gradient(ellipse 670px 920px at 100% 1040px, var(--ambient), transparent 76%),
    radial-gradient(ellipse 760px 1170px at 0% 52%, var(--ambient), transparent 77%),
    radial-gradient(ellipse 850px 1040px at 100% 84%, var(--ambient), transparent 77%),
    var(--ground);
}

body { margin: 0; font: 400 16px/1.6 var(--chrome-font); }
.nav a, .footer a, .guide-cards a, .related a, .crumbs a, .toc a, .store-badge, .nav-lang a, .nav-more a { text-decoration: none; }

/* The glass card every Aurora surface shares: 4 % white, a 1 px hairline, a faint 24 px grid. */
.faq-item, .guide-cards a, .related a, .inline-cta, .toc, .footer-identity, .nav-lang ul, .nav-more ul, .lang ul {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--highlight) top / 100% 1px no-repeat, var(--grid), var(--glass);
  box-shadow: none;
}
.nav-lang ul, .nav-more ul { background: var(--highlight) top / 100% 1px no-repeat, var(--panel); }

/* Header: transparent over the ground, no bar, no border. */
.nav { position: relative; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
.brand { font-family: var(--display); font-weight: 800; font-size: 19px; }
.brand img { border-radius: 10px; }
.nav-links { gap: clamp(16px, 2.4vw, 34px); font-weight: 600; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); text-decoration: none; }
.nav-lang summary, .nav-more summary { min-height: 44px; padding: 0 15px; border: 1px solid var(--line);
  background: var(--highlight) top / 100% 1px no-repeat, var(--panel); color: var(--ink); font-weight: 700; }
.nav-more summary { width: 44px; padding: 0; }
.nav-lang summary:hover, .nav-lang[open] summary, .nav-more summary:hover, .nav-more[open] summary { border-color: var(--brand); background: var(--panel); }
.nav-lang li a, .nav-more li a { color: var(--muted); }
.nav-lang li a:hover, .nav-more li a:hover, .nav-lang a[aria-current], .nav-more a[aria-current] { background: var(--glass); color: var(--ink); }
.nav .btn-small { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--highlight) top / 100% 1px no-repeat, var(--panel); color: var(--ink); font-weight: 700; font-size: 14px; }
.nav .btn-small:hover { border-color: var(--brand); text-decoration: none; }

/* Store button: the brand pill with Apple's mark, one line. The only filled brand surface. */
.store-badge { height: auto; min-height: 50px; padding: 12px 22px; gap: 8px; border: 0; border-radius: 100px;
  background: var(--brand); color: var(--ground); box-shadow: 0 6px 24px var(--accent-glow); }
.store-badge:hover { background: color-mix(in srgb, var(--brand) 86%, var(--ink)); }
.store-badge svg { width: 16px; height: 16px; }
.store-badge span { flex-direction: row; gap: .3em; font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.store-badge small { font-size: inherit; font-weight: inherit; letter-spacing: 0; margin: 0; }
.store-badge.light { background: var(--brand); color: var(--ground); }

/* FAQ entries: glass cards, a brand plus that turns into a minus. */
.faq-item { margin-bottom: 9px; }
.faq-item summary { padding-block: 15px; padding-inline: 17px 48px; font-size: 16px; font-weight: 700; color: var(--ink); }
.faq-item summary::after { content: ""; width: 16px; height: 16px; inset-inline-end: 17px;
  background: linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 12px no-repeat; }
.faq-item[open] summary::after { content: ""; background-size: 12px 2px, 0 0; }
.faq-item div { padding: 0 17px 16px; color: var(--muted); font-size: 15px; }

/* Guide frame: no band of its own; the article column is 720 px with a sticky rail. */
.guide-head { background: none; }
.guide-head h1 { font-family: var(--display); letter-spacing: -.039em; line-height: 1.07; font-size: clamp(37px, 5.3vw, 60px); }
.crumbs { color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.guide-body { grid-template-columns: minmax(0, 720px) minmax(170px, 248px); justify-content: center; }
.guide-body .toc { grid-column: 2; grid-row: 1; }
.guide-body .prose { grid-column: 1; grid-row: 1; color: var(--muted); }
.toc { padding: 15px 18px; top: 22px; }
.toc p { color: var(--ink); font-size: 15px; }
.toc ol { gap: 0; }
.toc li + li { border-top: 1px solid var(--line); }
.toc a { display: flex; min-height: 44px; align-items: center; padding-block: 5px; color: var(--muted); line-height: 1.35; }
.toc a:hover { color: var(--brand); }
.inline-cta { border-radius: var(--radius); }
.related a { color: var(--ink); }
.related a:hover { background: var(--highlight) top / 100% 1px no-repeat, var(--grid), var(--glass); border-color: var(--accent-line); }
.related span { color: var(--muted); }

/* Guides index cards. */
.guide-cards { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.guide-cards > li { display: flex; min-width: 0; }
.guide-cards a { flex: 1; height: auto; padding: clamp(20px, 2.5vw, 31px); color: var(--ink); }
.guide-cards .fine { margin-top: auto; padding-top: 15px; color: var(--muted); font-size: 13px; }
.guide-cards a:hover { transform: none; border-color: var(--accent-line); }
.guide-cards strong { font-family: var(--display); font-size: clamp(21px, 2vw, 25px); line-height: 1.22; }
.guide-cards .desc { color: var(--muted); }
.guide-cards .kicker { color: color-mix(in srgb, var(--brand) 75%, var(--muted)); }
/* A lone last card spans the row instead of leaving a gap. */
@media (min-width: 980px) {
  .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-cards > li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}

/* Footer: no band; a hairline above, muted text. */
.footer { background: none; border-top: 1px solid var(--line); color: var(--muted); }
.footer h2 { color: var(--muted); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); text-decoration: none; }
.footer-identity strong { color: var(--ink); }
.footer-social .social { border-color: var(--line); background: var(--glass); color: var(--ink); }
.footer .footer-base { border-top-color: var(--line); color: color-mix(in srgb, var(--muted) 80%, var(--ground)); }
.lang summary { border-color: var(--line); background: var(--glass); color: var(--ink); }

@media (max-width: 900px) {
  .guide-body { grid-template-columns: minmax(0, 1fr); }
  .guide-body .toc, .guide-body .prose { grid-column: 1; grid-row: auto; }
}
@media (max-width: 720px) {
  .nav-lang summary { padding: 0 12px; }
}
.guide-body .prose h2, .guide-body .prose h3, .guide-body .prose strong { color: var(--ink); font-family: var(--display); }
.guide-body .prose strong { font-family: inherit; }
.guide-body .prose a, .faq-item div a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.guide-body .prose a:hover, .faq-item div a:hover { color: var(--ink); }
/* OptiPixel, 2026-11-20: the prose link colour made the store button's label brand on brand inside
   the guide's call-to-action box; table cells broke words mid-word; nested lists inside a numbered
   step were counted as steps (a page's own counters must count direct children only: `> li`). */
.guide-body .prose a.store-badge, .inline-cta a.store-badge, .faq-item div a.store-badge { color: var(--ground); text-decoration: none; }
.guide-body .prose td, .guide-body .prose th { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.guide-body .prose li li { counter-increment: none; }

/* OptiSafari's Aurora theme. The shared Aurora skin supplies the chrome, glass tokens and
   continuous ground on html and body. These settings also drive the skin's --chrome-* colours. */
:root {
  color-scheme: dark;
  --brand: #10B981;
  --brand2: #c8e991;
  --ground-base: #08121c;
  --ground-tint: 3%;
  --ground: color-mix(in srgb, var(--ground-base) calc(100% - var(--ground-tint)), var(--brand));
  --ribbon-blue: #78accd;
  --ribbon-shadow: color-mix(in srgb, var(--ground) 88%, var(--ribbon-blue));
  --gutter: clamp(18px, 4.5vw, 56px);
  --space: clamp(68px, 8vw, 112px);
  --art-angle: -8deg;
  --art-shift: -5%;
  font: 400 16px/1.6 var(--chrome-font);
  color: var(--ink);
}
@supports (color: oklch(from red .73 .085 calc(h + 92))) {
  :root { --ribbon-blue: oklch(from var(--brand) .73 .085 calc(h + 92)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
body::before, body::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: min(30vw, 390px);
  height: clamp(320px, 50vw, 760px);
  mask-image: linear-gradient(125deg, transparent 5%, black 50%, transparent 90%);
}
body::before {
  inset: 100px auto auto 0;
  background: radial-gradient(ellipse 125% 51% at -45% 48%, transparent calc(100% - 1px), var(--glass) 100%, transparent calc(100% + 1px));
}
body::after {
  inset: auto 0 7% auto;
  background: radial-gradient(ellipse 125% 51% at 145% 52%, transparent calc(100% - 1px), var(--glass) 100%, transparent calc(100% + 1px));
}
[dir="rtl"] { --art-angle: 8deg; --art-shift: 5%; }
[dir="rtl"] body::before, [dir="rtl"] body::after { scale: -1 1; }
[dir="rtl"] body::before { inset: 100px 0 auto auto; }
[dir="rtl"] body::after { inset: auto auto 7% 0; }

h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; overflow-wrap: anywhere; }
h1, h2 { font-weight: 700; }
h2 { font-size: clamp(29px, 3.65vw, 48px); line-height: 1.13; letter-spacing: -.03em; }
h3 { font-weight: 600; line-height: 1.22; letter-spacing: -.025em; }
p { text-wrap: pretty; }
h1 em, h2 em, h3 em { font-style: normal; }
.hero h1 em, .guide-head h1 em { color: var(--brand); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.store-badge:focus-visible { outline-color: var(--ground); outline-offset: -5px; }
[id] { scroll-margin-top: 64px; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--chrome-wrap)); margin-inline: auto; }
.section { margin-block-start: var(--space); }
.section-heading { max-width: 740px; margin: 0 auto 29px; text-align: center; }
.section-heading p { margin-block-start: 10px; color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; }
.kicker { color: var(--muted); font-size: 13px; font-weight: 700; }
.lead { color: var(--muted); font-size: clamp(16px, 1.45vw, 18px); line-height: 1.6; }
.glyph { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] :is(.text-link, .btn) .glyph { scale: -1 1; }
[dir="rtl"] .contact-heading .btn .glyph { scale: 1; }

.btn, .guide-topics button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--highlight) top / 100% 1px no-repeat, var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.btn:hover, .guide-topics button:hover { text-decoration: none; border-color: var(--brand); }
.btn .glyph, .text-link .glyph { width: 16px; height: 16px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--highlight) top / 100% 1px no-repeat, var(--grid), var(--card-glow, none), var(--glass);
}
.tile {
  display: inline-grid;
  flex: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--brand);
}

/* Keep the compact chrome on widths where the translated navigation would crowd its pills. */
.nav-inner { width: min(calc(100% - 2 * var(--gutter)), var(--chrome-wrap)); }
.nav-links a { display: flex; align-items: center; min-height: 44px; white-space: nowrap; }
.footer-brand, .footer-grid > div { min-width: 0; }
.footer-identity { overflow-wrap: anywhere; }
.footer .lang ul { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }

.aurora {
  position: absolute;
  display: grid;
  place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, black 12% 88%, transparent),
    linear-gradient(180deg, transparent, black 19% 80%, transparent);
  mask-composite: intersect;
}
.aurora svg { width: 100%; height: 100%; }
[dir="rtl"] .aurora svg { scale: -1 1; }

.hero {
  position: relative;
  display: grid;
  grid-template: "copy" auto "art" auto / minmax(0, 1fr);
  overflow: clip;
  text-align: center;
}
.hero-content { grid-area: copy; position: relative; z-index: 1; padding-block-start: clamp(24px, 5vw, 62px); }
.hero h1 { font-size: clamp(43px, 6.7vw, 72px); line-height: 1.02; letter-spacing: -.03em; }
.hero h1 em { display: block; }
.hero-category { margin-block-start: 17px; font-size: 15px; font-weight: 600; }
.hero-lead { max-width: 590px; margin: 9px auto 0; color: var(--muted); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.55; }
.hero .cta-row { justify-content: center; gap: 12px; margin: 24px 0 14px; }
.hero .fine { max-width: 46ch; margin-inline: auto; }
.hero-art, .hero .aurora {
  grid-area: art;
  display: grid;
  place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.hero-art { min-height: clamp(230px, 36vw, 400px); mix-blend-mode: lighten; }
.hero .aurora { inset: 0; }
.hero .aurora svg { width: max(100%, 760px); }
.hero-film {
  width: min(92vw, 960px);
  max-width: none;
  transform: rotate(var(--art-angle));
  mask-image: linear-gradient(90deg, transparent, black 15% 85%, transparent),
    linear-gradient(180deg, transparent 5%, black 24% 72%, transparent 92%);
  mask-composite: intersect;
}
@media (min-width: 980px) {
  .hero {
    grid-template: "copy art" auto / minmax(0, 48%) minmax(0, 52%);
    min-height: clamp(490px, 40vw, 610px);
    align-items: center;
    text-align: start;
  }
  .hero-content {
    width: auto;
    margin-inline: max(var(--gutter), calc((100vw - var(--chrome-wrap)) / 2)) 0;
    padding-block: 26px 38px;
  }
  .hero h1 { font-size: clamp(40px, 4vw, 58px); max-width: 9.6em; }
  .hero-lead { max-width: 445px; }
  .hero-lead, .hero .fine { margin-inline: 0; }
  .hero .cta-row { justify-content: flex-start; }
  .hero-art { align-self: stretch; min-height: 0; }
  .hero .aurora {
    grid-area: 1 / 1 / 2 / -1;
    inset-block: 0;
    height: clamp(310px, 30vw, 490px);
    margin-block: auto;
    mask-image: linear-gradient(to right, transparent, #0005 14% 40%, black 60% 91%, transparent),
      linear-gradient(180deg, transparent, black 19% 80%, transparent);
  }
  [dir="rtl"] .hero .aurora {
    mask-image: linear-gradient(to left, transparent, #0005 14% 40%, black 60% 91%, transparent),
      linear-gradient(180deg, transparent, black 19% 80%, transparent);
  }
  .hero-film { width: min(54vw, 880px); transform: translateX(var(--art-shift)) rotate(var(--art-angle)); }
}

.reason-grid, .feature-grid, .plans { display: grid; gap: 16px; }
.reason-grid, .feature-points, .plans ul, .privacy-points, .shot-strip, .link-list { padding: 0; list-style: none; }
.reason-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reason { padding: clamp(21px, 2.35vw, 31px); }
.reason h3 { margin-block: 16px 7px; font-size: 23px; }
.reason p, .feature p, .plan li { color: var(--muted); font-size: 15px; }

/* Featured on / External Launch & Directory Badges strip */
.featured-section { margin-block-start: clamp(22px, 3vw, 34px); }
.featured-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: clamp(18px, 2.4vw, 24px) clamp(22px, 3vw, 34px);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background:
    radial-gradient(ellipse 60% 120% at 90% 50%, rgba(16, 185, 129, .10), transparent 70%),
    var(--highlight) top / 100% 1px no-repeat,
    var(--grid),
    var(--glass);
}
.featured-copy { display: grid; gap: 4px; max-width: 540px; }
.featured-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand2);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.featured-kicker .glyph { width: 14px; height: 14px; color: var(--brand); }
.featured-copy p { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.featured-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.featured-badge-link {
  display: inline-flex;
  border-radius: 12px;
  transition: transform .18s ease, filter .18s ease;
}
.featured-badge-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  text-decoration: none;
}
.featured-badge-link img {
  height: 54px;
  width: auto;
  border-radius: 10px;
}
@media (max-width: 760px) {
  .featured-band { justify-content: center; text-align: center; }
  .featured-copy { justify-items: center; }
  .featured-badges { justify-content: center; }
}
#features .section-heading { margin-block-end: 6px; }
.feature-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin-block-end: 18px; }
.feature-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 700; }
.feature-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.feature { grid-column: span 4; display: grid; grid-template-rows: 1fr auto; isolation: isolate; overflow: clip; }
.feature:first-child {
  --card-glow: radial-gradient(ellipse 65% 85% at var(--focal-glow, 78% 50%), var(--accent-glow), transparent 73%);
  grid-column: span 7;
  grid-template: 1fr / minmax(0, 3fr) minmax(0, 2fr);
  border-color: var(--accent-line);
}
[dir="rtl"] .feature:first-child { --focal-glow: 22% 50%; }
.feature:nth-child(2) { grid-column: span 5; }
.feature-copy { position: relative; z-index: 1; padding: clamp(21px, 2.4vw, 32px); }
.feature:first-child .feature-copy { align-self: center; }
.feature .feature-label { display: flex; gap: 10px; align-items: center; margin-block-end: 14px; font-size: 13px; font-weight: 700; }
.feature-label .tile { width: 36px; height: 36px; }
.feature-label .glyph { width: 18px; height: 18px; }
.feature h3 { margin-block-end: 9px; font-size: clamp(22px, 2.1vw, 29px); text-wrap: pretty; }
.feature:nth-child(-n + 2) h3 { font-size: clamp(24px, 2.6vw, 35px); }
.feature-points { display: grid; gap: 6px; margin-block-start: 14px; color: var(--muted); font-size: 13px; line-height: 1.48; }
.feature-points li { position: relative; padding-inline-start: 15px; }
.feature-points li::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  inset-block-start: .57em;
  inset-inline-start: 0;
  background: var(--brand);
}
.feature .text-link { margin-block-start: 6px; text-decoration: underline; text-underline-offset: 4px; }
.feature-media {
  position: relative;
  min-height: 164px;
  margin-block-start: -10px;
  mask-image: linear-gradient(180deg, transparent, black 43% 78%, transparent);
}
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.feature:nth-child(2) .feature-media { min-height: 183px; }
.feature:first-child .feature-media {
  margin: 0;
  mix-blend-mode: lighten;
  mask-image: linear-gradient(to right, transparent, black 34% 94%, transparent),
    linear-gradient(180deg, transparent, black 12% 85%, transparent);
  mask-composite: intersect;
}
[dir="rtl"] .feature:first-child .feature-media {
  mask-image: linear-gradient(to left, transparent, black 34% 94%, transparent),
    linear-gradient(180deg, transparent, black 12% 85%, transparent);
}
.feature:first-child .feature-media img { object-position: 57% 55%; }
#watch img { object-position: center 50%; }
#offline img { object-position: center 47%; }

.shot-strip {
  --strip-gutter: clamp(18px, 2.4vw, 38px);
  display: flex;
  gap: clamp(12px, 1.25vw, 18px);
  padding: 2px var(--strip-gutter) 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--ground);
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: var(--strip-gutter);
}
.shot-strip:focus-visible { outline-offset: -3px; }
.shot-strip li { flex: 0 0 clamp(166px, 16vw, 224px); scroll-snap-align: start; }
.shot-strip img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }

.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; max-width: 880px; margin-inline: auto; }

/* Full-width Top Promo Bar (sticky at top on scroll, OptiPixel style) */
.promo-bar {
  position: sticky;
  top: 0;
  z-index: 70;
  border-block-end: 1px solid color-mix(in srgb, var(--brand2) 32%, transparent);
  background: linear-gradient(90deg, rgba(6, 60, 46, .94) 0%, rgba(5, 122, 85, .94) 48%, rgba(12, 100, 120, .94) 100%);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.35;
}
.promo-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  width: min(calc(100% - 2 * var(--gutter)), var(--chrome-wrap));
  margin-inline: auto;
  padding: 9px 12px;
  color: #fff;
  text-align: center;
}
.promo-bar-inner:hover { text-decoration: none; }
.promo-bar-inner:hover .promo-bar-cta { text-decoration: underline; }
.promo-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .28);
  color: var(--brand2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.promo-bar-badge .glyph { width: 13px; height: 13px; color: var(--brand2); }
.promo-bar-discount {
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--brand2);
  color: #06281e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.promo-bar-title { font-weight: 700; color: #fff; }
.promo-bar-prices {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .28);
}
.promo-bar-prices strong { color: #fff; font-size: 13px; }
.promo-bar-prices s { color: rgba(255, 255, 255, .62); font-size: 12.5px; }
.promo-bar-prices b { color: var(--brand2); font-size: 14.5px; font-weight: 800; }
.promo-bar-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border: 1px solid rgba(120, 172, 205, .45);
  border-radius: 99px;
  background: rgba(8, 18, 28, .42);
  color: #e2f2ff;
  font-size: 12.5px;
}
.promo-bar-code-pill b { color: #7dd3fc; font-weight: 800; }
.promo-bar-code-pill code {
  font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .05em;
  color: #fff;
}
.promo-bar-until {
  padding: 2px 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 99px;
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 600;
}
.promo-bar-cta {
  padding: 3px 11px;
  border-radius: 99px;
  background: #fff;
  color: #06281e;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* Priority Dual-Offer Showcase Right Under Hero */
.offers-showcase {
  position: relative;
  z-index: 2;
  margin-block-start: clamp(20px, 3vw, 36px);
}
.offer-top-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-block-end: 14px;
}
.event-until-chip {
  padding: 4px 11px;
  border: 1px solid var(--accent-line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.offer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 2.8vw, 34px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .42);
}
.offer-lifetime {
  --card-glow: radial-gradient(ellipse 85% 90% at 80% 18%, rgba(16, 185, 129, .24), transparent 74%);
  border: 1.5px solid color-mix(in srgb, var(--brand2) 48%, var(--accent-line));
}
.offer-trial {
  --card-glow: radial-gradient(ellipse 85% 90% at 80% 18%, rgba(56, 189, 248, .22), transparent 74%);
  border: 1.5px solid rgba(56, 189, 248, .42);
}
.offer-ribbon {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--brand2);
  color: #06281e;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.offer-ribbon-trial {
  background: #7dd3fc;
  color: #062235;
}
.offer-card h2 {
  margin-block-end: 10px;
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.15;
}
.offer-lifetime h2 em { color: var(--brand2); }
.offer-trial h2 em { color: #7dd3fc; }
.offer-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.event-ticket {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 18px;
  border: 1px solid color-mix(in srgb, var(--brand2) 35%, var(--line));
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(16, 185, 129, .15), rgba(8, 18, 28, .90));
}
.event-ticket-trial {
  border-color: rgba(56, 189, 248, .38);
  background: linear-gradient(160deg, rgba(56, 189, 248, .15), rgba(8, 18, 28, .90));
}
.event-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-block: 2px;
}
.event-price-old {
  color: var(--muted);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-color: #f87171;
  text-decoration-thickness: 2px;
}
.event-price-arrow { color: var(--muted); font-size: 18px; }
.event-price-new {
  color: var(--brand2);
  font-family: var(--display);
  font-size: clamp(34px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.trial-code-label {
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trial-code-box {
  padding: 8px 22px;
  border: 1.5px dashed rgba(125, 211, 252, .6);
  border-radius: 12px;
  background: rgba(6, 20, 32, .75);
}
.trial-code-box code {
  color: #fff;
  font: 800 clamp(24px, 2.8vw, 32px)/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  user-select: all;
}
.btn-redeem {
  border-color: rgba(125, 211, 252, .55);
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(14, 165, 233, .28);
}
.btn-redeem:hover {
  border-color: #bae6fd;
  filter: brightness(1.07);
}
.event-ticket-note {
  margin-block-end: 4px;
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 600;
}
@media (max-width: 860px) {
  .offers-grid { grid-template-columns: 1fr; }
}
.plan { padding: clamp(22px, 2.8vw, 36px); }
.plan h3 { margin-block: 16px 7px; font-size: clamp(25px, 2.8vw, 33px); }
.plans ul { display: grid; gap: 8px; padding-block-start: 17px; margin-block-start: 17px; border-block-start: 1px solid var(--line); }
.plans li { display: flex; gap: 9px; align-items: start; }
.plan .glyph { color: var(--brand); }
.plan li .glyph { width: 16px; height: 16px; margin-block-start: 4px; }
.plan-note { max-width: 670px; margin: 17px auto 0; text-align: center; }

.privacy-band, .final-cta { position: relative; isolation: isolate; display: grid; justify-items: center; text-align: center; }
.privacy-band { padding-block: clamp(24px, 4vw, 51px); }
.privacy-band::before, .final-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse closest-side, var(--ambient), transparent);
}
.privacy-band h2, .final-cta h2 { margin-block-start: 15px; }
.privacy-band p { max-width: 475px; margin-block-start: 9px; color: var(--muted); font-size: 15px; }
.privacy-band .text-link { margin-block: 8px 17px; }
.privacy-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; max-width: 880px; margin-inline: auto; text-align: start; }
.privacy-points li { display: flex; gap: 9px; color: var(--muted); font-size: 13px; }
.privacy-points li::before { content: "✓"; color: var(--brand); font-weight: 700; }
.faq-list { max-width: 740px; margin-inline: auto; }
.faq-item summary { min-height: 44px; }
.faq-item summary:focus-visible { border-radius: var(--radius); outline-offset: -3px; }
.faq-item div p + p { margin-block-start: .7em; }
.faq-item a { text-decoration: underline; text-underline-offset: .2em; }
.faq-split .section-heading { margin-block-end: 18px; }
.faq-split .text-link { margin-block-start: 6px; }
@media (min-width: 980px) {
  .faq-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; gap: clamp(24px, 5vw, 70px); }
  .faq-split .section-heading { margin: 0; text-align: start; }
  .faq-split .text-link { margin-block-start: 15px; }
  .faq-split .faq-list { max-width: none; margin: 0; }
}

.final-cta { padding-block: clamp(42px, 6vw, 82px); }
.final-film { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; pointer-events: none;
  mask-image: radial-gradient(ellipse closest-side, black 25%, transparent); }
.final-icon { border-radius: var(--radius); box-shadow: 0 8px 30px var(--accent-glow); }
.final-cta p { margin-block: 8px 19px; color: var(--muted); }

/* Guides index. The featured card and its media use the same shared card renderer as the list. */
.page-head { margin-block-start: clamp(36px, 6vw, 86px); max-width: 740px; text-align: center; }
.page-title { font-size: clamp(37px, 5.3vw, 60px); line-height: 1.07; letter-spacing: -.039em; }
.page-head .lead { margin-block-start: 10px; }
.page-head .fine { margin-block-start: 12px; }
.guide-library { margin-block-start: clamp(24px, 4vw, 44px); }
.guide-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin-block-end: clamp(24px, 3vw, 37px); }
.guide-topics button { min-height: 44px; padding: 5px 12px; background-color: transparent; color: var(--muted); cursor: pointer; }
.guide-topics button[aria-pressed="true"] { border-color: var(--accent-line); background-color: var(--ambient); color: var(--ink); }
.guide-library .guide-cards { padding-block-end: var(--space); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-cards a:focus-visible { border-color: var(--accent-line); }
.guide-cards a > .fine { margin-block-start: auto; padding-block-start: 15px; }
.guide-cards li:has(.featured-art) { grid-column: 1 / -1; }
.guide-cards a:has(.featured-art) {
  --featured-glow: 82% 52%;
  --card-glow: radial-gradient(ellipse 70% 85% at var(--featured-glow), var(--accent-glow), transparent 75%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-content: center;
  column-gap: clamp(15px, 5vw, 70px);
  min-height: 310px;
  padding: clamp(22px, 4.5vw, 62px);
  background: var(--highlight) top / 100% 1px no-repeat, var(--grid), var(--card-glow), var(--glass);
}
[dir="rtl"] .guide-cards a:has(.featured-art) { --featured-glow: 18% 52%; }
.guide-cards a:has(.featured-art) > :not(.featured-art) { grid-column: 1; }
.guide-cards a:has(.featured-art) strong { font-size: clamp(30px, 4vw, 50px); }
.guide-cards a:has(.featured-art) .desc { max-width: 43ch; font-size: clamp(15px, 1.55vw, 18px); }
.featured-art { position: relative; grid-column: 2; grid-row: 1 / span 4; display: grid; place-items: center; min-height: 195px; }
.featured-art img {
  position: absolute;
  inset-block-start: 50%;
  width: min(72%, 235px);
  margin: 0;
  transform: translateY(-40%) rotate(var(--art-angle));
  mask-image: linear-gradient(180deg, black 55%, transparent 94%);
}
.guide-library .guide-cards > li:last-child { grid-column: auto; }
.guide-library .guide-cards > li:last-child:nth-child(3n + 2), .guide-library .guide-cards > li:only-child { grid-column: 1 / -1; }
.guide-library:has(button[aria-pressed="true"]:not([data-topic=""])) .guide-cards > li:last-child:not(:has(.featured-art)) { grid-column: auto; }
.empty { padding-block: 24px var(--space); text-align: center; }
.empty p { margin-block-end: 12px; }

/* Article chrome keeps its original markup and order. */
.guide-head { padding-block: clamp(28px, 4.6vw, 65px) 0; overflow: clip; }
.guide-grid { position: relative; isolation: isolate; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(14px, 5vw, 75px); }
.guide-grid > div:first-child { position: relative; z-index: 1; padding: 0; }
.guide-head h1 { font-size: clamp(34px, 4.3vw, 60px); }
.crumbs { margin-block-end: 8px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-head .kicker { margin-block: 8px 5px; }
.guide-head .lead { max-width: 54ch; margin-block: 14px 22px; }
.guide-head .cta-row { margin-block: 0 14px; }
.guide-media {
  --ribbon-fold-opacity: .1;
  align-items: center;
  height: auto;
  padding-block: 22px;
}
.guide-media .aurora { inset: 3% max(-5vw, -1 * var(--gutter)) 3% 14%; z-index: -1; }
[dir="rtl"] .guide-media .aurora { inset: 3% 14% 3% max(-5vw, -1 * var(--gutter)); }
.guide-media .phone {
  width: clamp(172px, 20vw, 256px);
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--highlight) top / 100% 1px no-repeat, var(--panel);
  box-shadow: 0 16px 38px var(--accent-glow);
  transform: rotate(var(--art-angle));
}
.guide-media.phones-2 .phone { width: clamp(125px, 14vw, 205px); }
.guide-media.phones-2 .phone:last-child { margin-block-start: 32px; }
.phone img { width: 100%; border-radius: 17px; }
.guide .guide-body { padding-block: clamp(38px, 7vw, 93px) var(--space); }
.guide-body .prose { font-size: 18px; }
.toc { max-height: calc(100vh - 44px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--ground); }
.inline-cta > div { min-width: min(200px, 100%); }
.inline-cta .fine { margin-block-start: 4px; }
.prose { min-width: 0; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.prose :is(h2, h3, strong) { color: var(--ink); }
.prose h2 { margin-block-end: 15px; font-size: clamp(24px, 3vw, 34px); line-height: 1.24; }
.prose h2:not(:first-child) { margin-block-start: clamp(35px, 5vw, 58px); }
.prose h3 { margin-block: 26px 10px; font-size: clamp(20px, 2.35vw, 24px); }
.prose :is(p, ul, ol) + :is(p, ul, ol) { margin-block-start: 12px; }
.prose :is(ul, ol):not(.related) { padding-inline-start: 1.35em; }
.prose li + li { margin-block-start: 8px; }
.prose a { text-decoration: underline; text-underline-offset: .2em; }
.prose a:hover, .faq-item a:hover { color: var(--ink); }
.prose .related a, .prose .store-badge { text-decoration: none; }
.prose .related li + li { margin: 0; }
.prose .store-badge:hover { color: var(--ground); }
.prose code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--glass); border-radius: 5px; padding: .1em .35em; }
.prose .steps { padding-inline-start: 0; counter-reset: step; list-style: none; }
.steps li { position: relative; padding-inline-start: 43px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--ambient);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.prose .note {
  margin-block-start: 25px;
  padding: 16px 21px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--highlight) top / 100% 1px no-repeat, var(--grid), var(--glass);
}
.table-wrap { margin-block: 17px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px clamp(10px, 2vw, 23px); text-align: start; vertical-align: top; }
th { color: var(--ink); background: var(--glass); font-size: 15px; }
tbody, tr + tr { border-block-start: 1px solid var(--line); }
td:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Support, privacy, terms and the shared 404. */
.contact-heading { max-width: 630px; }
.contact-heading .btn { margin-block-start: 19px; }
.contact-heading .glyph { color: var(--brand); }
.support-faq { display: grid; gap: 9px; max-width: 920px; margin-inline: auto; }
.support-faq .faq-item { margin: 0; }
.support-more { margin-block: clamp(40px, 6vw, 68px) var(--space); text-align: center; }
.support-more h2 { font-size: 24px; }
.link-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.legal-layout { display: grid; gap: 25px clamp(26px, 5.5vw, 72px); margin-block: clamp(37px, 6vw, 82px) var(--space); }
.legal-layout .prose { font-size: 17px; }
.legal-intro .fine { margin-block: 12px 24px; }
.legal-summary { padding: clamp(18px, 3vw, 30px); }
@media (min-width: 901px) {
  .legal-layout { grid-template: "intro toc" auto "policy toc" auto / minmax(0, 760px) minmax(170px, 248px); }
  .legal-intro { grid-area: intro; }
  .legal-prose { grid-area: policy; }
  .legal-layout .toc { grid-area: toc; margin-block-start: 5px; }
}
@media (min-width: 821px) {
  .support-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
}
.error-page { position: relative; isolation: isolate; display: grid; place-items: center; min-height: min(66vh, 670px); padding-block: 56px; text-align: center; }
.error-page .aurora { --ribbon-fold-opacity: .1; z-index: -1; inset: 13% 0; opacity: .75; }
.error-copy { width: min(100%, 640px); }
.error-code {
  margin-block-end: 12px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--ink) 45%, var(--ground)), var(--panel) 92%);
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  font: 800 clamp(104px, 18vw, 220px)/.86 var(--display);
  letter-spacing: -.09em;
  padding-inline-end: .09em;
}
.error-copy .page-title { font-size: clamp(30px, 4vw, 48px); }
.error-copy .lead { margin-block: 11px 23px; }

@media (min-width: 721px) and (max-width: 960px) {
  .nav-inner { gap: 8px; }
  .nav-links { display: none; }
  .nav-more { display: block; }
  .nav-lang { margin-inline-start: auto; }
}
@media (max-width: 900px) {
  .guide-media { position: relative; isolation: isolate; }
  .guide-media .aurora, [dir="rtl"] .guide-media .aurora { inset: 0; opacity: .75; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-grid h1 { max-width: 22ch; }
  .toc { max-height: none; overflow: visible; }
  .legal-layout .toc { margin: 0; }
}
@media (max-width: 850px) {
  .guide-library .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-library .guide-cards > li:last-child:nth-child(3n + 2) { grid-column: auto; }
}
@media (max-width: 820px) {
  .feature:first-child { grid-template: 1fr auto / minmax(0, 1fr); }
  .feature:first-child, [dir="rtl"] .feature:first-child { --focal-glow: 50% 93%; }
  .feature:first-child .feature-media, [dir="rtl"] .feature:first-child .feature-media {
    min-height: 183px;
    mask-image: linear-gradient(180deg, transparent, black 40% 78%, transparent);
  }
  .feature:first-child .feature-media img { object-position: center 44%; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature:first-child, .feature:nth-child(2) { grid-column: auto; }
}
@media (max-width: 760px) {
  .privacy-points { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  :root { --chrome-nav-h: 66px; }
  .nav-inner { width: calc(100% - 2 * var(--gutter)); }
  .nav .btn-small { padding-inline: 12px; font-size: 13px; }
  .nav-lang summary { justify-content: center; min-width: 44px; padding-inline: 8px; }
  .hero h1 { font-size: clamp(30px, 9.65vw, 59px); }
  .hero-category { margin-block-start: 12px; font-size: 14px; text-wrap: balance; }
  .hero-lead { margin-block-start: 8px; }
  .hero .cta-row { gap: 8px; margin-block-start: 16px; }
  .hero .cta-row :is(.btn, .store-badge) { min-height: 46px; padding-inline: 12px; }
  .hero .cta-row :is(.btn, .store-badge span) { font-size: 13px; }
  .hero-art { min-height: clamp(192px, 52vw, 295px); }
  .hero-film {
    width: clamp(350px, 102vw, 690px);
    mask-image: linear-gradient(90deg, transparent, black 16% 84%, transparent),
      linear-gradient(180deg, transparent, black 19% 78%, transparent);
  }
  .section-heading { margin-block-end: 22px; }
  .feature-nav { gap: 0 15px; margin-block-end: 14px; }
  .reason-grid, .feature-grid, .plans, .guide-library .guide-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature-media, .feature:first-child .feature-media, .feature:nth-child(2) .feature-media { min-height: 168px; }
  .shot-strip li { flex-basis: clamp(166px, 44vw, 220px); }
  .guide-cards a:has(.featured-art) { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block-end: 0; }
  .featured-art { grid-column: 1; grid-row: 5; min-height: 0; margin-block-start: 16px; }
  .featured-art img { position: static; width: min(70%, 205px); transform: rotate(var(--art-angle)); }
  .guide-head h1 { font-size: clamp(33px, 8.5vw, 48px); text-wrap: pretty; }
  .guide-media { padding-block: 16px; }
  .guide-media .phone { width: min(53vw, 242px); }
  .guide-media.phones-2 .phone { width: min(36vw, 160px); }
  th, td { line-height: 1.45; }
}
@media (max-width: 420px) {
  .nav-inner { width: calc(100% - 24px); gap: 6px; }
  .nav-more summary { width: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) { .error-code { color: CanvasText; -webkit-text-stroke: 0; } }
:lang(ja) :is(h1, h2), :lang(ko) :is(h1, h2) { word-break: auto-phrase; letter-spacing: -.01em; }
:lang(ko) p { word-break: keep-all; }
