/* App pages share the existing HANABI LENS palette, without loading ad scripts. */
:root {
  color-scheme: dark;
  --app-bg: #0c1117;
  --app-surface: #161b22;
  --app-text: #e6edf3;
  --app-muted: #aebbc8;
  --app-orange: #f0883e;
  --app-line: #34404d;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--app-bg); color: var(--app-text); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; line-height: 1.85; -webkit-font-smoothing: antialiased; }
a { color: #88c3ff; text-underline-offset: .22em; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--app-orange); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.45; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 500; padding: 8px 16px; background: var(--app-text); color: var(--app-bg); }
.skip-link:focus { top: 8px; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(24px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--app-line); background: var(--app-surface); position: relative; z-index: 200; }
.nav-logo { color: var(--app-orange); font-weight: 750; letter-spacing: .14em; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { color: var(--app-muted); text-decoration: none; font-size: 14px; padding: 10px 12px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--app-text); text-decoration: underline; text-decoration-color: var(--app-orange); }
.nav-toggle { display: none; width: 44px; min-height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 8px; background: transparent; border: 1px solid var(--app-line); border-radius: 6px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--app-text); }
.app-wrap { max-width: 1160px; margin-inline: auto; padding-inline: 28px; }
.app-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 72px 80px; }
.app-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; font-weight: 600; }
.app-identity img { border-radius: 14px; width: 58px; height: 58px; }
.app-identity small { display: block; font-size: 13px; color: var(--app-muted); font-weight: 400; }
.app-hero h1 { font-size: clamp(32px, 3.8vw, 50px); font-weight: 750; letter-spacing: -.04em; line-height: 1.5; margin-bottom: 24px; }
.app-lead { max-width: 31em; font-size: 17px; color: var(--app-muted); }
.app-availability { border-left: 3px solid var(--app-orange); padding-left: 16px; margin-top: 32px; }
.app-availability strong { display: block; font-size: 16px; }
.app-availability p { font-size: 13px; color: var(--app-muted); margin-top: 3px; }
.app-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 26px; }
.app-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 8px; background: var(--app-orange); color: var(--app-bg); font-weight: 700; text-decoration: none; }
.app-button:hover { color: var(--app-bg); background: #ffa657; }
.app-actions > a:not(.app-button) { font-size: 14px; }
.app-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.app-screens figure:first-child { margin-top: 54px; }
.app-screens img { border-radius: 22px; border: 1px solid #7d8590; background: #f2f3f8; }
.app-screens a { display: block; border-radius: 22px; }
.app-screens figcaption { font-size: 13px; text-align: center; color: var(--app-muted); margin-top: 12px; }
.app-section { border-top: 1px solid var(--app-line); padding-block: 60px; }
.app-section h2 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.02em; margin-bottom: 30px; }
.app-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.app-features h3 { font-size: 18px; margin-bottom: 12px; }
.app-features p { color: var(--app-muted); font-size: 15px; }
.app-footnote { margin-top: 28px; color: var(--app-muted); font-size: 13px; max-width: 68em; }
.app-support-callout { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.app-support-callout h2 { margin-bottom: 12px; }
.app-support-callout p { color: var(--app-muted); }
.app-support-callout .app-button { flex-shrink: 0; }
.app-footer { border-top: 1px solid var(--app-line); background: var(--app-surface); padding: 32px 28px; }
.app-footer-inner { max-width: 1104px; margin-inline: auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.app-footer p, .app-footer a { color: var(--app-muted); font-size: 13px; }
.app-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.app-doc { max-width: 1000px; padding: 56px 28px 80px; margin-inline: auto; }
.app-doc-heading { margin-bottom: 40px; }
.app-doc-heading h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.app-doc-heading p { color: var(--app-muted); max-width: 44em; }
.app-doc-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 48px; align-items: start; }
.app-toc { position: sticky; top: 24px; font-size: 14px; }
.app-toc p { font-weight: 600; margin-bottom: 10px; }
.app-toc a { display: block; padding: 9px 0; color: var(--app-muted); text-decoration: none; }
.app-toc a:hover { color: var(--app-text); text-decoration: underline; }
.app-article section { border-top: 1px solid var(--app-line); padding-block: 28px; }
.app-article h2 { font-size: 22px; margin-bottom: 16px; }
.app-article h3 { font-size: 17px; margin-top: 24px; margin-bottom: 10px; }
.app-article p, .app-article ul, .app-article ol { color: var(--app-muted); font-size: 15px; }
.app-article p + p, .app-article p + ul, .app-article p + ol { margin-top: 14px; }
.app-article ul, .app-article ol { padding-left: 1.5em; margin-bottom: 0; }
.app-article li + li { margin-top: 10px; }
.app-article .app-button { margin-block: 18px; }
.app-article details { border-top: 1px solid var(--app-line); padding-block: 16px; }
.app-article details:first-of-type { border-top: 0; }
.app-article summary { font-weight: 600; cursor: pointer; padding-right: 8px; }
.app-article details p { padding-top: 14px; }
.app-article strong { color: var(--app-text); }
.app-article .app-meta { font-size: 13px; margin-top: 24px; }
.app-privacy { max-width: 810px; }
.app-privacy .app-article section:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 800px) {
  .app-hero { gap: 30px; padding-block: 48px; }
  .app-hero h1 { font-size: 32px; }
  .app-screens { gap: 12px; }
  .app-features { gap: 24px; }
  .app-doc-grid { grid-template-columns: 160px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 680px) {
  .site-nav { padding: 10px 20px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--app-surface); padding: 12px 16px; border-bottom: 1px solid var(--app-line); }
  .nav-links.open { display: flex; flex-direction: column; }
  .nav-links a { min-height: 44px; }
  .app-wrap { padding-inline: 22px; }
  .app-hero { grid-template-columns: 1fr; padding-block: 36px 48px; gap: 40px; }
  .app-identity { margin-bottom: 24px; }
  .app-hero h1 { font-size: clamp(29px, 7.6vw, 42px); }
  .app-lead { font-size: 16px; }
  .app-screens { width: min(100%, 420px); margin-inline: auto; gap: 16px; }
  .app-screens img { border-radius: 16px; }
  .app-screens figure:first-child { margin-top: 32px; }
  .app-section { padding-block: 40px; }
  .app-features { grid-template-columns: 1fr; gap: 28px; }
  .app-support-callout { align-items: flex-start; flex-direction: column; gap: 24px; }
  .app-doc { padding: 36px 22px 48px; }
  .app-doc-grid { display: block; }
  .app-toc { position: static; border-block: 1px solid var(--app-line); padding-block: 16px; margin-bottom: 28px; }
  .app-doc-heading { margin-bottom: 28px; }
  .app-toc a { padding-block: 8px; }
  .app-article h2 { font-size: 21px; }
  .app-doc-grid .app-article section:first-child { border-top: 0; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
