/* PhilterAds site — one file, colour tokens shared with the popup. */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --bg:#F7F3FB; --card:#FFFFFF; --border:#E8E1F2; --hover:#F3EEF9;
  --text:#221736; --muted:#6F6482;
  --accent:#D4267C; --accent-soft:#FDE7F1; --on-accent:#FFFFFF; --potion:#FF4FA3;
  --tab-track:#EEE8F5; --danger:#B3362E; --shadow:0 1px 2px rgb(34 23 54/6%);
  --spark-line:#2A1B4E;
  /* site-only */
  --plum:#2A1B4E; --spark:#FFD23F; --cork:#D9985E; --glass:#F1EBFF;
  --link:#B81E6B;
  --ok:#1E8A4C; --on-ok:#FFFFFF;
  --band:#EDE6F7;
  --panel-shadow:6px 8px 0 var(--plum);
  --radius:16px; --radius-lg:24px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ja: "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic Medium", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
}
/* dark palette: follows the device unless the visitor picked a theme (data-theme on <html>, set by lang.js) */
:root { color-scheme: light; }
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){ color-scheme: dark;
  --bg:#15111F; --card:#1F1930; --border:#2E2742; --hover:#27203A;
  --text:#F1ECF8; --muted:#A79EBB;
  --accent:#FF6EB4; --accent-soft:#3A1F37; --on-accent:#2A1B4E; --potion:#FF4FA3;
  --tab-track:#130F1C; --danger:#FF8A80; --shadow:none; --spark-line:#FFF1B8;
  --link:#FF8AC4; --ok:#4ADE80; --on-ok:#0E2A18; --band:#1A1427; --panel-shadow:6px 8px 0 #0E0A16; --panel-line:#4A3A78;
}}
:root[data-theme="dark"]{ color-scheme: dark;
  --bg:#15111F; --card:#1F1930; --border:#2E2742; --hover:#27203A;
  --text:#F1ECF8; --muted:#A79EBB;
  --accent:#FF6EB4; --accent-soft:#3A1F37; --on-accent:#2A1B4E; --potion:#FF4FA3;
  --tab-track:#130F1C; --danger:#FF8A80; --shadow:none; --spark-line:#FFF1B8;
  --link:#FF8AC4; --ok:#4ADE80; --on-ok:#0E2A18; --band:#1A1427; --panel-shadow:6px 8px 0 #0E0A16; --panel-line:#4A3A78;
}

/* JA page: every var(--font-body) consumer follows the JA stack (buttons, h3/h4, prices, wordmark) */
html[lang="ja"] { --font-body: var(--font-ja); }

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* author display rules must not defeat the hidden attribute */
html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; overflow-x: clip;
  font: 400 1.0625rem/1.6 var(--font-body);
  background: var(--bg); color: var(--text);
}
img { max-width: 100%; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
@media (min-width: 880px) { section { padding: 96px 0; } }
@media (max-width: 480px) { .wrap { padding: 0 20px; } }

h1, h2, h3, h4 { margin: 0; font-weight: 800; font-family: "Nunito", var(--font-body); }
h1 { font-size: clamp(2.25rem, 1rem + 4.5vw, 3.75rem); line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1rem + 2.2vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, .scene-text h3, .notfound-text h1 { text-wrap: balance; }
.lead { font-size: 1.1875rem; line-height: 1.55; max-width: 32ch; }
.small { font-size: 0.875rem; }
.eyebrow { margin: 0 0 12px; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--link); }
.sec-head { margin-bottom: 40px; }
.sec-head h2 { max-width: 24ch; }

/* Japanese page: system rounded face, no transforms, looser leading */
html[lang="ja"] body { font-size: 1rem; line-height: 1.8; font-family: var(--font-ja); }
html[lang="ja"] h1, html[lang="ja"] h2 { font-family: "Nunito", var(--font-ja); letter-spacing: normal; font-feature-settings: "palt"; word-break: auto-phrase; overflow-wrap: anywhere; }
html[lang="ja"] h1 { font-size: clamp(1.875rem, 1rem + 3.5vw, 3rem); line-height: 1.3; }
html[lang="ja"] h2 { line-height: 1.35; }
html[lang="ja"] h3 { line-height: 1.5; }
html[lang="ja"] .eyebrow { font-size: 0.9375rem; text-transform: none; letter-spacing: normal; }
html[lang="ja"] .lead { font-size: 1.0625rem; line-height: 1.8; }
html[lang="ja"] .lead, html[lang="ja"] .scene-text p { word-break: auto-phrase; }

/* ---- skip link ---- */
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; transition: top 120ms ease;
}
.skip:focus { top: 12px; }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 50; height: 64px; background: var(--bg); border-bottom: 1px solid var(--border); }
.head-row { height: 64px; display: flex; align-items: center; gap: 18px; }
.wordmark { font-family: "Nunito", var(--font-body); font-weight: 800; font-size: 18px; color: var(--text); }
.site-nav { display: flex; gap: 20px; margin-left: 8px; }
.site-nav a, .gh-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; border-radius: 6px; }
.site-nav a:hover, .gh-link:hover { color: var(--link); }
.site-nav a.nav-support { align-self: center; gap: 6px; min-height: 38px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--link); }
.site-nav a.nav-support svg { width: 16px; height: 16px; fill: var(--accent); }
.site-nav a.nav-support:hover { background: var(--accent); color: var(--on-accent); }
.site-nav a.nav-support:hover svg { fill: currentColor; }
.nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 56px 0 0; padding: 20px 24px; background: var(--accent-soft); border-radius: var(--radius); font-size: 16px; font-weight: 600; }
.nudge .btn svg, .btn svg.heart { width: 18px; height: 18px; margin-right: 8px; fill: currentColor; }
.gh-link { margin-left: auto; }
/* theme toggle: 44px round button; shows the moon in light, the sun in dark */
.theme-btn {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; background: var(--tab-track); color: var(--text); cursor: pointer;
}
.theme-btn:hover { color: var(--link); }
.theme-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.theme-btn { margin-left: auto; }
@media (min-width: 880px) { .gh-link:not([hidden]) + .theme-btn { margin-left: 0; } }

/* phones and tablets: nav moves to its own row under the brand row */
@media (max-width: 879px) {
  html { scroll-padding-top: 124px; }
  .site-head { height: auto; }
  .head-row { height: auto; flex-wrap: wrap; gap: 0 8px; padding-top: 10px; }
  .site-nav { order: 10; flex-basis: 100%; margin: 6px 0 0; gap: 0; justify-content: space-between; border-top: 1px solid var(--border); }
  .site-nav a { flex: 1 1 auto; justify-content: center; min-height: 48px; padding: 0 4px; font-size: 14px; white-space: nowrap; }
  .site-nav a.nav-support { flex: 0 1 auto; min-height: 36px; margin: 6px 2px; padding: 0 12px 0 10px; }
  .site-nav a.nav-support svg { width: 14px; height: 14px; }
  .gh-link { display: none; }
}
@media (max-width: 400px) {
  .site-nav a { font-size: 13px; padding: 0 2px; }
  .site-nav a.nav-support { padding: 0 10px; }
  .site-nav a.nav-support svg { display: none; }
}
@media (max-width: 400px) {
  .wordmark { font-size: 17px; }
  .head-row .lang a { padding: 0 11px; }
}

/* language toggle: 44px pill, active segment is --card */
.lang { display: flex; align-items: center; height: 44px; padding: 3px; background: var(--tab-track); border-radius: 999px; }
.lang a {
  display: flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.lang a[aria-current="page"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* ---- Sip mascot (classes + keyframes copied from popup.html) ---- */
.mascot { position: relative; flex: none; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.mascot::after { content: ""; position: absolute; inset: -2px; } /* 44px hit target */
.mascot svg { width: 100%; height: 100%; overflow: visible; display: block; }
.mascot g, .mascot path { transform-box: fill-box; transform-origin: 50% 50%; }
.m-bob { animation: m-bob 3s ease-in-out infinite; transform-origin: 50% 100% !important; }
.m-eyes { animation: m-blink 4.2s infinite; }
.m-spark { animation: m-twinkle 2.4s ease-in-out infinite; }
.m-potion { animation: m-slosh 3s ease-in-out infinite; }
.m-sleep { opacity: 0; }
.mascot.hop .m-bob { animation: m-hop .6s cubic-bezier(.3,1.6,.5,1); }
.mascot.hop .m-potion { animation: m-splash .6s ease-out; }
@keyframes m-bob { 50% { transform: translateY(-4px); } }
@keyframes m-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes m-twinkle { 50% { transform: scale(.7) rotate(25deg); opacity: .75; } }
@keyframes m-slosh { 25% { transform: rotate(3deg); } 75% { transform: rotate(-3deg); } }
@keyframes m-hop { 0% { transform: none; } 30% { transform: translateY(-16px) rotate(-10deg) scale(1.05, .95); } 60% { transform: translateY(0) scale(1.1, .9); } 80% { transform: scale(.97, 1.03); } }
@keyframes m-splash { 30% { transform: rotate(-9deg); } 60% { transform: rotate(7deg); } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: auto; min-height: 48px; padding: 10px 22px; line-height: 1.2; text-align: center;
  border: 0; border-radius: 999px; font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 0 var(--plum); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--plum); }
.btn:active { transform: scale(.98) translateY(0); box-shadow: 0 2px 0 var(--plum); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-primary:hover, :root:not([data-theme="light"]) .btn-primary:active { box-shadow: none; } }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary:hover, :root[data-theme="dark"] .btn-primary:active { box-shadow: none; }

/* ---- CTA group (hero + #get): the state wrapper is the layout box ---- */
.cta > [data-cta-state] { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px; align-items: center; justify-content: start; }
.cta .pill {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--accent-soft); color: var(--link);
  font-size: 14px; font-weight: 700;
}
.cta .pill svg { width: 14px; height: 14px; fill: var(--link); }
.cta .note { grid-column: 1 / -1; margin: 0; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 480px) {
  .cta > [data-cta-state] { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .cta .pill, .get .cta .pill { justify-self: stretch; justify-content: center; }
}

/* ---- store badges: official art, unmodified, links only (Edge: min 32px tall, no tilt/shadow) ---- */
.stores { margin-top: 20px; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.store-badges img { display: block; height: 48px; width: auto; }
.stores-also { margin: 10px 0 0; font-size: 0.875rem; color: var(--muted); }
.get .store-badges { justify-content: center; }
.get .stores-also { text-align: center; }

/* ---- "Works in" browser logos: green check = installs today, faded = on the roadmap ---- */
.browsers { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 28px; margin: 22px 0 0; }
.br-group { display: flex; flex-direction: column; gap: 8px; }
.br-label { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html[lang="ja"] .br-label { letter-spacing: .02em; text-transform: none; }
.br-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.br {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 60px; padding: 8px 6px 6px; border-radius: 14px; border: 1px solid transparent;
  color: var(--text); text-decoration: none; font-size: 0.8125rem; font-weight: 600; line-height: 1.2;
  transition: background-color .15s, border-color .15s;
}
.br img { display: block; width: 32px; height: 32px; }
.br:hover { background: var(--card); border-color: var(--border); }
.br:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.br-mark {
  position: absolute; top: 4px; left: calc(50% + 8px); width: 16px; height: 16px; padding: 2px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 2px var(--bg);
  fill: none; stroke: var(--on-ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.br.is-you { background: var(--card); border-color: var(--ok); }
.br-later .br { color: var(--muted); }
.br-later .br img { filter: grayscale(1); opacity: .55; }
.br-later .br:hover img { opacity: .85; }
.br-later .br.is-you { border-color: var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .br-later .br img { filter: grayscale(1) brightness(1.7); opacity: .6; } }
:root[data-theme="dark"] .br-later .br img { filter: grayscale(1) brightness(1.7); opacity: .6; }
.get .browsers { justify-content: center; margin-top: 28px; }
.get .br-group { align-items: center; }
.get .br-mark { box-shadow: 0 0 0 2px var(--band); }
.br.is-you .br-mark, .br:hover .br-mark { box-shadow: 0 0 0 2px var(--card); }
@media (max-width: 480px) { .browsers { gap: 14px; } .br { min-width: 56px; } }
@media (prefers-reduced-motion: reduce) { .br { transition: none; } }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 0.875rem; font-weight: 600; }
.chips svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- panels (sticker on a manga panel) ---- */
.panel { border: 3px solid var(--panel-line, var(--plum)); border-radius: 24px; overflow: hidden; background: var(--glass); box-shadow: var(--panel-shadow); }
.panel img { display: block; width: 100%; height: auto; }
.panel-tilt { position: relative; margin: 0; }
.hero-panel .panel, .panel-scene { transition: transform 240ms ease; }
@media (min-width: 880px) {
  .hero-panel { transform: rotate(2deg); }
  .scene:nth-of-type(odd) .panel-scene { transform: rotate(-1.5deg); }
  .scene:nth-of-type(even) .panel-scene { transform: rotate(1.5deg); }
  .panel-support { transform: rotate(-2deg); }
  @media (hover: hover) {
    .hero-panel:hover, .panel-scene:hover, .panel-support:hover { transform: rotate(0) scale(1.01); }
  }
}
.panel-hero img { aspect-ratio: 16 / 9; }
.panel-scene img, .panel-support img { aspect-ratio: 1 / 1; }
.spark { position: absolute; fill: var(--spark); stroke: var(--spark-line); stroke-width: 2; stroke-linejoin: round; animation: m-twinkle 2.4s ease-in-out infinite; }
.spark-a { top: -12px; right: -10px; width: 28px; height: 28px; }
.spark-b { bottom: -10px; left: -12px; width: 18px; height: 18px; animation-delay: 1.2s; }

/* ---- hero ---- */
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero-text h1 { margin: 0 0 16px; }
.hero-text .lead { margin-bottom: 24px; }

/* ---- reveal on scroll (JS adds html.js; IntersectionObserver adds .in) ---- */
html.js .reveal { opacity: 0; transform: translateY(12px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity .48s cubic-bezier(.2,.8,.2,1), transform .48s cubic-bezier(.2,.8,.2,1); }
/* stagger grid children by 60ms, cap 4 */
html.js .cards3 > .reveal.in:nth-child(2), html.js .where-grid > .reveal.in:nth-child(2),
html.js .tier-grid > .reveal.in:nth-child(2) { transition-delay: 60ms; }
html.js .cards3 > .reveal.in:nth-child(3), html.js .where-grid > .reveal.in:nth-child(3),
html.js .tier-grid > .reveal.in:nth-child(3) { transition-delay: 120ms; }
html.js .where-grid > .reveal.in:nth-child(4), html.js .tier-grid > .reveal.in:nth-child(4) { transition-delay: 180ms; }
/* components with their own hover transform keep their speed after revealing */
html.js .tier.reveal.in { transition: opacity .48s cubic-bezier(.2,.8,.2,1), transform .16s ease; }

/* ---- promise cards ---- */
.cards3 { display: grid; gap: 16px; }
@media (min-width: 880px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.promise-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.promise-card svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promise-card h4 { margin: 14px 0 8px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
html[lang="ja"] .promise-card h4 { line-height: 1.5; }
.promise-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
html[lang="ja"] .promise-card p { line-height: 1.8; }

/* ---- feature scenes ---- */
.scenes { display: grid; gap: 48px; }
.scene { display: grid; gap: 24px; align-items: center; }
.scene-text { max-width: 44ch; }
.scene-text p { margin: 12px 0 0; }
@media (min-width: 880px) {
  .scenes { gap: 64px; }
  .scene { grid-template-columns: 1fr 1fr; gap: 48px; }
  .scene:nth-of-type(even) .scene-media { order: 2; }
}

/* ---- support band ---- */
.support { background: var(--accent-soft); }
.support-top { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.support-intro h2 { margin-bottom: 12px; }
.support-intro p { max-width: 52ch; }
.support-intro strong { color: var(--text); }
.tiers { margin-top: 48px; }
.tiers h3 { margin-bottom: 4px; }
.tiers-sub { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.tier-grid { display: grid; gap: 16px; padding-top: 12px; }
@media (min-width: 640px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tier-grid { grid-template-columns: repeat(4, 1fr); } }
.tier {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; color: var(--text); text-decoration: none;
  transition: transform 160ms ease;
}
.tier[href]:hover { transform: translateY(-2px); }
.tier[href]:active { transform: scale(.99); }
.tier h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.price { margin: 0; font-family: "Nunito", var(--font-body); font-weight: 800; font-size: 1.75rem; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .cur { margin-left: 2px; font-size: 0.875rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.price .per { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.price-sub { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.tier .thanks { flex: 1; margin: 8px 0 16px; font-size: 15px; line-height: 1.6; color: var(--muted); }
html[lang="ja"] .tier .thanks { line-height: 1.8; }
.tier-cta { font-size: 15px; font-weight: 700; color: var(--link); }
.tier-btn {
  display: flex; align-items: center; justify-content: center; height: 44px; margin-top: auto; padding: 0 18px;
  border: 1.5px solid var(--link); border-radius: 999px; background: var(--card); color: var(--link);
  font: 600 15px/1 var(--font-body); white-space: nowrap;
}
.tier-hot { border: 2px solid var(--accent); padding: 19px; box-shadow: 0 4px 0 var(--plum); }
.tier-hot .tier-btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tier-hot { box-shadow: none; } }
:root[data-theme="dark"] .tier-hot { box-shadow: none; }
.tier-badge {
  position: absolute; top: -13px; left: 18px; height: 26px; padding: 0 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 700 12px/26px var(--font-body); letter-spacing: .02em; white-space: nowrap;
}
.once-label { display: flex; align-items: center; gap: 14px; margin: 28px 0 12px; font-size: 14px; font-weight: 700; color: var(--muted); }
.once-label::before, .once-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.tier-once .amt { font-size: 1.375rem; }
.tier-once .price-sub { margin: 4px 0 0; font-size: 15px; line-height: 1.6; font-weight: 400; color: var(--text); max-width: 56ch; }
.tier-once .thanks { flex: none; margin: 6px 0 0; font-size: 14px; }
@media (min-width: 640px) {
  .tier-once { flex-direction: row; align-items: center; gap: 24px; }
  .once-text { flex: 1; }
  .tier-once .tier-btn { width: max-content; min-width: 160px; margin: 0; }
}
.pay-note { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 70ch; }
.pay-note .lock { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sponsor-soon { margin: 16px 0 0; font-size: 15px; font-weight: 700; color: var(--link); }

.goal {
  display: flex; align-items: center; gap: 12px; margin-top: 32px; padding: 16px 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 15px; line-height: 1.6;
}
.goal > svg { width: 20px; height: 20px; flex: none; fill: var(--accent); }
.goal-live { margin: 20px 0 8px; font-size: 14px; font-weight: 700; }
.goal-meter { height: 8px; border-radius: 999px; background: var(--tab-track); overflow: hidden; }
.goal-meter svg { display: block; width: 100%; height: 8px; }
.goal-meter rect { fill: var(--accent); }

.where { margin-top: 48px; }
.where h3 { margin-bottom: 16px; }
.where-grid { display: grid; gap: 20px 32px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
@media (min-width: 640px) { .where-grid { grid-template-columns: repeat(2, 1fr); } }
.where-item h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.where-item svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.where-item svg.fill { fill: var(--accent); stroke: none; }
.where-item p { margin: 0; padding-left: 32px; font-size: 15px; line-height: 1.6; color: var(--muted); }
html[lang="ja"] .where-item p { line-height: 1.8; }
.where-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.thanks-line { margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.thanks-line svg { width: 20px; height: 20px; fill: var(--accent); vertical-align: -4px; }

/* ---- FAQ ---- */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-wrap details { border-bottom: 1px solid var(--border); }
.faq-wrap summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px;
  padding: 12px 0; font-size: 17px; font-weight: 600; color: var(--text); cursor: pointer; list-style: none;
}
.faq-wrap summary::-webkit-details-marker { display: none; }
.faq-wrap summary .chev { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--link); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms ease; }
.faq-wrap details[open] summary .chev { transform: rotate(180deg); }
.faq-wrap details p { margin: 0; padding: 0 0 20px; font-size: 15px; line-height: 1.7; color: var(--text); }
html[lang="ja"] .faq-wrap details p { line-height: 1.8; }

/* ---- final CTA band ---- */
.get { background: var(--band); text-align: center; }
#promise, #install { background: var(--band); }
.sip-cta { width: 96px; height: 96px; margin: 0 auto 8px; overflow: visible; display: block; }
.sip-cta .m-bob { animation: m-bob 3s ease-in-out infinite; transform-origin: 50% 100% !important; }
.sip-cta g, .sip-cta path { transform-box: fill-box; transform-origin: 50% 50%; }
.get h2 { max-width: none; }
.get .sub { margin: 12px auto 24px; font-size: 1.0625rem; color: var(--muted); }
.get .cta > [data-cta-state] { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.get .cta .pill, .get .cta .note { flex-basis: 100%; justify-content: center; text-align: center; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--border); padding: 48px 0 40px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 720px) {
  .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .foot-grid > nav { display: contents; } /* brand | Product | Project as three grid items, one nav landmark */
}
.foot-brand .wordmark { display: block; font-size: 18px; }
.foot-tagline { margin: 8px 0 0; font-size: 0.875rem; color: var(--muted); }
.foot-col h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; font-family: var(--font-body); }
html[lang="ja"] .foot-col h3 { font-family: var(--font-ja); }
.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col li { margin: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 719px) { .foot-grid > nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; } }
.foot-lang { margin-top: 32px; width: fit-content; }
.foot-legal { margin: 32px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 74ch; }

/* ---- 404 ---- */
.notfound { padding: 64px 0; min-height: calc(100vh - 220px); display: flex; align-items: center; }
.notfound-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 640px) { .notfound-grid { grid-template-columns: 1fr 1.2fr; gap: 48px; } }
.notfound-grid .panel-scene { max-width: 360px; margin: 0 auto; transform: rotate(-1.5deg); }
.notfound-text h1 { font-size: clamp(1.75rem, 1rem + 3vw, 2.5rem); line-height: 1.15; margin-bottom: 12px; }
.notfound-text p[lang="ja"] { margin-bottom: 24px; color: var(--muted); }
.nf-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .nf-cta { flex-direction: column; } .nf-cta .btn { width: 100%; } }

/* ---- roadmap ---- */
.road-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.road-next { border: 2px solid var(--accent); padding: 23px; box-shadow: 0 4px 0 var(--plum); }
.road-stage { display: inline-block; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent-soft); color: var(--link); }
.road-next .road-stage { background: var(--accent); color: var(--on-accent); }
.road-later .road-stage { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.road-card h3 { margin: 12px 0 14px; }
.road-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.road-card li { display: flex; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.road-card li strong { color: var(--text); }
.road-card li a { color: var(--link); }
.road-card li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.road-card li svg.fill { fill: #FFD23F; stroke: var(--plum); stroke-width: 1.6; }
.road-later li svg { fill: var(--muted); stroke: none; }
.road-note { margin: 24px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.road-note a { color: var(--link); }

/* ---- privacy / legal ---- */
a.wordmark { text-decoration: none; }
.legal { padding: 48px 0 72px; }
.legal-body { max-width: 760px; }
.legal-body h1 { font-size: clamp(2rem, 1rem + 3vw, 2.75rem); line-height: 1.12; margin-bottom: 16px; }
.legal-lead { font-size: 1.125rem; line-height: 1.6; color: var(--muted); margin: 0 0 8px; }
.legal-body h2 { font-size: clamp(1.35rem, 1rem + 1vw, 1.6rem); margin: 40px 0 12px; }
.legal-body ul { margin: 0; padding-left: 1.25em; }
.legal-body li { line-height: 1.65; margin: 0 0 10px; }
.legal-body li::marker { color: var(--accent); }
.legal-body p { line-height: 1.65; }
.legal-body a { color: var(--link); }
.legal-body code { font-size: .9em; padding: 1px 5px; border-radius: 6px; background: var(--accent-soft); }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---- phone pass (design review 2026-10-30): shorter page, roomier targets, JA line breaks ---- */
.lang a { position: relative; }
.lang a::after { content: ""; position: absolute; inset: -3px 0; } /* 44px hit, same look */
.nobr { white-space: nowrap; }
html[lang="ja"] h3, html[lang="ja"] h4, html[lang="ja"] .eyebrow, html[lang="ja"] summary { word-break: auto-phrase; overflow-wrap: anywhere; }
@media (max-width: 879px) {
  section { padding: 48px 0; }
  .sec-head { margin-bottom: 28px; }
  .support-top { grid-template-columns: 96px 1fr; gap: 4px 16px; }
  .panel-support { grid-row: 1 / 3; }
  .support-intro { display: contents; }
  .support-intro .eyebrow { grid-column: 2; align-self: end; margin: 0; }
  .support-intro h2 { grid-column: 2; align-self: start; margin: 0; }
  .support-intro p:not(.eyebrow) { grid-column: 1 / -1; margin: 12px 0 0; }
  .support .tiers { margin-top: 28px; }
  .nudge { margin-top: 40px; padding: 18px; }
  .nudge .btn { width: 100%; }
}
@media (max-width: 639px) {
  .panel-scene img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }
  .scenes { gap: 40px; }
  .scene { gap: 20px; }
  .tier-grid { gap: 12px; }
  .tier:not(.tier-once) { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 16px 18px; }
  .tier-hot:not(.tier-once) { padding: 15px 17px; box-shadow: none; }
  .tier:not(.tier-once) h4 { margin: 0; }
  .tier:not(.tier-once) .price { font-size: 1.25rem; text-align: right; }
  .tier .price .cur { font-size: 0.75rem; }
  .tier-badge { position: static; display: inline-block; justify-self: start; grid-column: 1 / -1; height: 22px; margin-bottom: 6px; padding: 0 9px; font-size: 11px; line-height: 22px; }
  .tier:not(.tier-once) .thanks, .tier:not(.tier-once) .tier-cta, .tier:not(.tier-once) .tier-btn { grid-column: 1 / -1; }
  .tier:not(.tier-once) .thanks { margin: 6px 0 10px; }
  .tier-once { padding: 16px 18px; }
  .tier-once .amt { font-size: 1.25rem; }
  .tier-once .thanks { margin: 6px 0 14px; }
  .once-label { margin: 22px 0 10px; }
  html[lang="ja"] .lead, html[lang="ja"] .scene-text p { word-break: normal; }
}
@media (max-width: 479px) {
  .lead { font-size: 1.0625rem; line-height: 1.55; }
  .foot-legal { font-size: 0.875rem; }
}

/* ---- download buttons ---- */
.btn .ico { width: 20px; height: 20px; margin-right: 8px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- hero: the real popup sits on the art ---- */
.hero-panel { margin-bottom: 36px; }
.hero-pop {
  position: absolute; right: -14px; bottom: -40px; width: 44%; max-width: 236px;
  border: 3px solid var(--panel-line, var(--plum)); border-radius: 18px; overflow: hidden;
  background: var(--card); box-shadow: var(--panel-shadow); transform: rotate(-5deg);
}
.hero-pop img { display: block; width: 100%; height: auto; aspect-ratio: 340 / 392; }
.hero-pop .pop-dark { display: none; }
:root[data-theme="dark"] .hero-pop .pop-light { display: none; }
:root[data-theme="dark"] .hero-pop .pop-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-pop .pop-light { display: none; }
  :root:not([data-theme="light"]) .hero-pop .pop-dark { display: block; }
}
@media (max-width: 879px) { .hero-pop { right: 6px; width: 40%; } }

/* ---- screenshot strip ---- */
.look { padding-bottom: 48px; }
.look-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.look-nav { display: flex; gap: 8px; flex: none; }
.look-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
}
.look-btn:hover { color: var(--link); border-color: var(--accent); }
.look-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.look-strip {
  --gutter: max(24px, calc((100vw - 1120px) / 2 + 24px));
  display: flex; gap: 20px; margin: 0; padding: 4px var(--gutter) 20px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.look-slide { flex: none; width: min(84vw, 720px); scroll-snap-align: start; }
.look-slide img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10;
  border: 3px solid var(--panel-line, var(--plum)); border-radius: 20px; box-shadow: var(--panel-shadow);
}
@media (max-width: 560px) { .look-nav { display: none; } }

/* ---- install steps ---- */
.sec-sub { margin: 12px 0 0; max-width: 60ch; color: var(--muted); }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 880px) { .step { flex-direction: column; } }
.step-n {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 800 1rem/1 "Nunito", var(--font-body);
}
.step h3 { margin: 2px 0 6px; font-size: 1.0625rem; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
html[lang="ja"] .step p { line-height: 1.8; }
.step code, .install-notes code { font-size: 0.875em; padding: 1px 6px; border-radius: 6px; background: var(--tab-track); color: var(--text); }
.copy-chip { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: 999px; cursor: pointer;
  background: var(--accent-soft); color: var(--link); border: 0; font: 700 12px/1 var(--font-body);
}
.copy-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-foot { display: grid; gap: 20px; align-items: start; margin-top: 28px; }
@media (min-width: 880px) { .install-foot { grid-template-columns: 1fr; } .install-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.install-notes p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.install-notes b { color: var(--text); }
@media (max-width: 480px) { .install-foot .btn { width: 100%; } }
@media (max-width: 479px) { .site-nav a.nav-install { display: none; } }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(6, 1fr); } .step { grid-column: span 2; } .step:nth-child(4) { grid-column: 2 / span 2; } }
.step code, .copy-btn { white-space: nowrap; }
/* design pass */
.copy-chip { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 6px 0 4px; vertical-align: baseline; }
.look-slide { width: min(78vw, 720px); }
.step code, .install-notes code { font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; padding: 2px 7px; }
.copy-btn { height: 32px; padding: 0 10px; font-size: 13px; }
/* hero v2: popup stands to the right of the art, clear of Sip the flask */
.hero-panel .panel-hero { width: 68%; }
.hero-pop { right: 0; left: auto; top: 50%; bottom: auto; width: 35%; max-width: 220px; transform: translateY(-38%) rotate(-4deg); }
.hero-panel { margin-bottom: 0; }
@media (max-width: 879px) { .hero-pop { right: 8px; width: 34%; } }
.spark-a { right: calc(32% - 12px); }
.feat-strip { margin-bottom: 48px; }

/* ==== Features v2: tabbed showcase + trick cards ==== */
.show { display: grid; gap: 24px; align-items: center; }
@media (min-width: 880px) { .show { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.show-tabs { display: grid; gap: 6px; }
.show-tab {
  position: relative; display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 16px 18px; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius); color: var(--text); font: inherit;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.show-tab:hover { background: var(--card); }
.show-tab[aria-selected="true"] { background: var(--card); border-color: var(--border); box-shadow: var(--shadow); }
.show-tab[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.show-n {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 999px; margin-top: 1px;
  background: var(--accent-soft); color: var(--link); font: 800 0.8125rem/1 "Nunito", var(--font-body); font-variant-numeric: tabular-nums;
}
.show-tab[aria-selected="true"] .show-n { background: var(--accent); color: var(--on-accent); }
.show-txt { display: grid; gap: 4px; min-width: 0; }
.show-title { font: 800 1.125rem/1.3 "Nunito", var(--font-body); }
.show-desc { font-size: 15px; line-height: 1.6; color: var(--muted); }
html[lang="ja"] .show-desc { line-height: 1.8; }
.show-stage { position: relative; }
.show-stage::before {
  content: ""; position: absolute; inset: 8% -4% -6% 6%; z-index: 0; border-radius: 32px;
  background: radial-gradient(60% 60% at 60% 50%, var(--accent-soft), transparent 70%);
}
.show-frame {
  position: relative; z-index: 1; display: grid; overflow: hidden; aspect-ratio: 16 / 10;
  border: 3px solid var(--panel-line, var(--plum)); border-radius: 24px; background: var(--card); box-shadow: var(--panel-shadow);
}
@media (min-width: 880px) { .show-frame { transform: rotate(1.2deg); } }
.show-img { grid-area: 1 / 1; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 260ms ease; }
.show-img.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .show-img, .show-tab { transition: none; } }
/* phones: slide on top, tabs swipe underneath */
@media (max-width: 879px) {
  .show-stage { order: -1; }
  .show-tabs {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: 0 -2px;
    scrollbar-width: none;
  }
  .show-tabs::-webkit-scrollbar { display: none; }
  .show-tab { flex: none; width: min(78vw, 340px); scroll-snap-align: start; background: var(--card); border-color: var(--border); }
  .show-tab[aria-selected="true"] { border-color: var(--accent); }
  .show-tab[aria-selected="true"]::before { display: none; }
}
.tricks-h { margin: 64px 0 24px; font: 800 1.5rem/1.25 "Nunito", var(--font-body); }
.tricks { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.trick {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
  transition: transform 200ms ease;
}
.trick:hover { transform: translateY(-3px); }
.trick-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.trick-text { padding: 18px 20px 22px; }
.trick-text h3 { margin: 0 0 8px; font-size: 1.0625rem; line-height: 1.35; text-wrap: balance; }
.trick-text p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
html[lang="ja"] .trick-text p { line-height: 1.8; }
@media (max-width: 559px) {
  .tricks-h { margin-top: 48px; }
  .tricks { grid-template-columns: 1fr; gap: 14px; }
  .trick { flex-direction: row; align-items: flex-start; }
  .trick-art { flex: none; width: 112px; padding: 14px 0 14px 14px; }
  .trick-art img { border-radius: 14px; }
  .trick-text { padding: 14px 16px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) { .trick { transition: none; } .trick:hover { transform: none; } }
@media (min-width: 560px) { .tricks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tricks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-nudge { margin-top: 48px; }
@media (max-width: 879px) { .hero-nudge { margin-top: 36px; } }

/* features v2: review pass */
@media (min-width: 880px) {
  .show-desc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 220ms ease, opacity 180ms ease; }
  .show-desc > span { min-height: 0; overflow: hidden; }
  .show-tab[aria-selected="true"] .show-desc { grid-template-rows: 1fr; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .show-desc, .show-dots i { transition: none; } }
.show-tab:hover { border-color: var(--border); }
.trick:hover { box-shadow: 0 8px 20px rgb(34 23 54 / 10%); }
.show-dots { display: none; }
@media (max-width: 879px) {
  .show-tabs { margin: 0 -24px; padding: 4px 24px 12px; scroll-padding-inline: 24px; }
  .show-tab { width: min(72vw, 300px); }
  .show-dots { display: flex; justify-content: center; gap: 6px; margin-top: -10px; }
  .show-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: width 180ms ease, background-color 180ms ease; }
  .show-dots i.is-on { width: 22px; background: var(--accent); }
}
@media (max-width: 480px) { .show-tabs { margin: 0 -20px; padding-inline: 20px; scroll-padding-inline: 20px; } }

/* ---- Supporter banner: two quick buttons + one checkout dialog ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nudge-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.nudge .btn-ghost { box-shadow: 0 2px 0 var(--plum); }
.nudge .btn .ico { width: 18px; height: 18px; }
html:has(.sip-dlg[open]) { overflow: hidden; }
.sip-dlg {
  width: min(420px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  border: 2px solid var(--plum); border-radius: var(--radius-lg); background: var(--card); color: var(--text); box-shadow: var(--panel-shadow);
}
.sip-dlg::backdrop { background: rgb(21 17 31 / 55%); }
.sip-dlg[open] { animation: sip-in 220ms cubic-bezier(.2, .8, .3, 1.15); }
@keyframes sip-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.sip-form { position: relative; display: grid; gap: 16px; padding: 22px 22px 24px; }
.sip-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.sip-x:hover { background: var(--hover); color: var(--text); }
.sip-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sip-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sip-head { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.sip-head img { width: 56px; height: 56px; flex: none; object-fit: contain; }
.sip-head h2 { font-size: 1.375rem; line-height: 1.2; text-wrap: balance; }
.sip-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--tab-track); }
.sip-seg label, .sip-chip, .sip-tier { position: relative; }
.sip-seg input, .sip-chip input, .sip-tier input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sip-seg span { display: block; padding: 10px 12px; border-radius: 999px; text-align: center; font-weight: 700; color: var(--muted); transition: background 150ms, color 150ms; }
.sip-seg input:checked + span { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgb(34 23 54 / 18%), 0 0 0 1px var(--border); }
.sip-seg input:focus-visible + span, .sip-chip input:focus-visible + span, .sip-tier input:focus-visible + .sip-tier-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.sip-pane { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.sip-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sip-chip span, .sip-other, .sip-tier-box { border: 1.5px solid var(--border); border-radius: 12px; background: var(--card); transition: border-color 150ms, background 150ms; }
.sip-chip span { display: block; padding: 13px 0; text-align: center; font: 800 1.125rem/1.2 "Nunito", var(--font-body); font-variant-numeric: tabular-nums; }
.sip-chip:hover span, .sip-tier:hover .sip-tier-box, .sip-other:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.sip-chip input:checked + span, .sip-tier input:checked + .sip-tier-box, .sip-other.is-on { border-color: var(--accent); background: var(--accent-soft); }
.sip-other { display: flex; align-items: center; gap: 6px; padding: 0 14px; cursor: text; }
.sip-other:focus-within { border-color: var(--accent); }
.sip-other-l { margin-right: 4px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.sip-cur { font: 800 1.125rem/1 "Nunito", var(--font-body); }
.sip-other input { flex: 1; width: auto; min-width: 0; padding: 13px 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 800 1.125rem/1.2 "Nunito", var(--font-body); font-variant-numeric: tabular-nums; }
.sip-other input::placeholder { font: 600 0.9375rem var(--font-body); color: var(--muted); }
.sip-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 6px; }
.sip-tier-box { display: grid; gap: 2px; height: 100%; padding: 11px 14px; box-sizing: border-box; }
.sip-tier-box b { font: 800 1.25rem/1.2 "Nunito", var(--font-body); font-variant-numeric: tabular-nums; }
.sip-tier-box small { margin-left: 2px; font: 600 0.8125rem var(--font-body); color: var(--muted); }
.sip-tier-box > span { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.sip-tier-box em { position: absolute; top: -9px; right: 10px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 800 0.6875rem/1 "Nunito", var(--font-body); font-style: normal; }
.sip-fine { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.sip-go { width: 100%; height: 52px; font-size: 1.0625rem; }
.sip-go svg { width: 18px; height: 18px; margin-right: 8px; fill: currentColor; }
.sip-go[aria-disabled="true"] { opacity: .45; box-shadow: none; transform: none; cursor: not-allowed; }
@media (max-width: 480px) {
  .nudge-btns { width: 100%; }
  .sip-dlg { width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0; border-width: 2px 0 0; border-radius: 24px 24px 0 0; box-shadow: none; }
  .sip-dlg[open] { animation-name: sip-up; }
  .sip-form { padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes sip-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .sip-dlg[open] { animation: none; } }

/* ---- #support: intro + reasons on the left, the same sip picker as an inline card on the right ---- */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.give { margin-top: 32px; }
.sip-card { padding: 24px; border: 2px solid var(--plum); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--panel-shadow); }
.sip-card-head h3 { font-size: 1.5rem; line-height: 1.2; }
.sip-card-head p { margin: 4px 0 0; font-size: 0.9375rem; color: var(--muted); }
.sip-tiers-full { grid-template-columns: minmax(0, 1fr); }
.sip-tiers-full .sip-tier-box { grid-template-columns: 5.25rem minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 16px; }
.sip-tiers-full .sip-tier-box b { grid-row: 1 / 3; }
.sip-tiers-full .sip-tier-box > span { color: var(--text); font-weight: 700; font-size: 0.9375rem; }
.sip-tiers-full .sip-tier-box > .sip-perk { color: var(--muted); font-weight: 500; font-size: 0.8125rem; line-height: 1.4; }
html[lang="ja"] .sip-tiers-full .sip-tier-box > .sip-perk { line-height: 1.6; }
.sip-secure { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.sip-secure .lock { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.give .sponsor-soon, .give .pay-note { margin-top: 14px; }
@media (min-width: 960px) {
  .support-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 56px; align-items: start; }
  .support-grid > * { grid-column: 1; }
  .support-grid > .give { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; }
  .support-top { grid-template-columns: 160px 1fr; gap: 32px; }
  .support .where-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) and (min-height: 860px) {
  .support-grid > .give { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 480px) { .sip-card { padding: 20px 18px; box-shadow: none; } .sip-tiers-full .sip-tier-box { grid-template-columns: 4.5rem minmax(0, 1fr); } }

/* ---- Mission section: statement, then the three promises ---- */
.mission-sub { max-width: 62ch; font-size: 1.125rem; line-height: 1.6; }
html[lang="ja"] .mission-sub { font-size: 1.0625rem; line-height: 1.8; word-break: auto-phrase; }
.promise-h { margin: 0 0 20px; font: 800 1.5rem/1.25 "Nunito", var(--font-body); }
html[lang="ja"] .promise-h { line-height: 1.5; }
@media (max-width: 480px) { .mission-sub { font-size: 1rem; } }

/* Mission head: Sip (the logo) on guard beside the statement; above it on phones */
.mission-head { display: grid; grid-template-columns: minmax(0, 1fr); }
.mission-sip { position: relative; justify-self: start; width: 104px; height: 104px; margin-bottom: 12px; border-radius: 50%; background: radial-gradient(circle at 50% 55%, var(--accent-soft) 0 62%, transparent 63%); }
.mission-sip img { position: absolute; inset: 6%; width: 88%; height: 88%; animation: mission-bob 3.2s ease-in-out infinite; }
.mission-shield { position: absolute; right: -2px; bottom: 4px; display: grid; place-items: center; width: 38%; height: 38%; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--border), 0 4px 10px rgb(21 17 31 / 14%); }
.mission-shield svg { width: 62%; height: 62%; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes mission-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-3deg); } }
@media (min-width: 880px) {
  .mission-head { grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: center; }
  .mission-head > * { grid-column: 1; }
  .mission-head > .mission-sip { grid-column: 2; grid-row: 1 / span 3; width: 176px; height: 176px; margin: 0 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .mission-sip img { animation: none; } }
/* six nav links on phones: tighter, and JA labels a touch smaller so the row never overflows */
@media (max-width: 479px) {
  .site-nav a { padding: 0 2px; font-size: 13px; }
  .site-nav a.nav-support { margin: 6px 1px; padding: 0 8px 0 7px; gap: 4px; }
  html[lang="ja"] .site-nav a { font-size: 12px; letter-spacing: -0.02em; }
}
@media (max-width: 359px) { .site-nav { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; } .site-nav a { flex: 0 0 auto; padding: 0 6px; } }

/* layout pass: steps never force sideways scroll, download button lives in step 1, compact promise cards on phones/tablets */
.step, .step > div { min-width: 0; }
.step .btn { margin-top: 12px; align-self: flex-start; }
@media (max-width: 359px) { .step code { white-space: normal; overflow-wrap: anywhere; } }
@media (max-width: 879px) {
  .promise-card { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; }
  .promise-card h4 { margin: 0; }
  .promise-card p { grid-column: 1 / -1; margin: 8px 0 0; }
}
.btn { max-width: 100%; }
@media (max-width: 879px) { .show-stage::before { inset: 8% 0 -6% 4%; } }

/* JA header: Japanese breaks between any two characters, so nav and language
   labels must never wrap; JA keeps the two-row header until the row fits. */
.site-nav a, .head-row .lang a { white-space: nowrap; }
.site-nav a, .head-row .lang { flex-shrink: 0; }
@media (min-width: 880px) and (max-width: 1179px) {
  html[lang="ja"] { scroll-padding-top: 124px; }
  html[lang="ja"] .site-head { height: auto; }
  html[lang="ja"] .head-row { height: auto; flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  html[lang="ja"] .site-nav { order: 10; flex-basis: 100%; margin: 6px 0 0; gap: 8px; justify-content: center; border-top: 1px solid var(--border); }
  html[lang="ja"] .site-nav a { padding: 0 12px; min-height: 48px; }
  html[lang="ja"] .site-nav a.nav-support { min-height: 36px; margin: 6px 0; }
}
@media (min-width: 1180px) { html[lang="ja"] .site-nav { gap: 18px; } }
@media (min-width: 880px) and (max-width: 999px) { .gh-link { display: none; } .head-row .gh-link + .theme-btn { margin-left: auto; } }
.site-nav .nav-short { display: none; }
@media (max-width: 419px) { .site-nav .nav-long { display: none; } .site-nav .nav-short { display: inline; } }
@media (min-width: 480px) and (max-width: 599px) {
  html[lang="ja"] .site-nav a.nav-install { display: none; }
  html[lang="ja"] .site-nav a { padding: 0 4px; font-size: 13px; }
}
/* hero CTA: wrap the two buttons instead of forcing a wider column (JA at 480-540) */
@media (min-width: 480px) { .cta > [data-cta-state] { display: flex; flex-wrap: wrap; } .cta .note { flex-basis: 100%; } }
/* guides: numbered steps and inline code in the article layout */
.legal-body ol { margin: 0; padding-left: 1.4em; }
.legal-body ol li::marker { color: var(--accent); font-weight: 700; }
.legal-body p { line-height: 1.7; }
.legal-body code { font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--tab-track); overflow-wrap: anywhere; }
.guide .btn { margin: 8px 0 4px; }
html[lang="ja"] .legal-body p, html[lang="ja"] .legal-body li { line-height: 1.85; }
/* footer has four items now (brand, Product, Guides, Project) */
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
@media (max-width: 719px) { .foot-grid > nav { row-gap: 24px; } }
.legal-body a.btn { color: var(--on-accent); text-decoration: none; }
.legal-body h1 { text-wrap: balance; }
html[lang="ja"] .foot-col a { word-break: auto-phrase; }
/* design QA 2026-10-31 */
html[lang="ja"] body { line-break: strict; }
@media (max-width: 719px) { .foot-grid > nav .foot-col:nth-child(2) { order: 3; } }
@media (min-width: 480px) and (max-width: 639px) { html[lang="ja"] .cta .btn { flex: 1 1 100%; max-width: 420px; } }
html[lang="ja"] .cta .note { word-break: auto-phrase; }
:root[data-theme="dark"] .legal-body code { background: var(--accent-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .legal-body code { background: var(--accent-soft); } }
