/* Falling Jigsaw: native blue, gold and purple palette.
   The captures are proportional copies of real iOS gameplay; no simulated UI. */
body.falling-jigsaw-page {
  --paper: #F5FAFF;
  --ink: #203B64;
  --ink-2: #435675;
  --ink-3: #53647D;
  --line: #D6E5F5;
  --line-strong: #B9CEE7;
  --accent: #2255BA;
  --accent-dark: #183F8F;
  --font-display: ui-rounded, 'Arial Rounded MT Bold', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Noto Sans SC', 'Microsoft YaHei', monospace;
  --fj-gold: #FFD34B;
  --fj-purple: #5D34BE;
  --fj-surface: #FFFFFF;
  min-height: 100vh;
  overflow-x: visible;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
}

.falling-jigsaw-page img { max-width: 100%; }
.falling-jigsaw-page h1,
.falling-jigsaw-page h2,
.falling-jigsaw-page h3 { font-family: var(--font-display); }
.falling-jigsaw-page .navbar.scrolled {
  background: var(--paper);
  border-bottom-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.falling-jigsaw-page .nav-container { max-width: 1160px; }
.falling-jigsaw-page .nav-logo,
.falling-jigsaw-page .lang-toggle { min-height: 44px; display: inline-flex; align-items: center; }
.falling-jigsaw-page .lang-toggle { font-size: 0.95rem; letter-spacing: 0; }
.falling-jigsaw-page a:focus-visible { outline: 3px solid var(--fj-purple); outline-offset: 5px; }
.falling-jigsaw-page ::selection { background: var(--fj-gold); color: var(--ink); }

.fj-container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.falling-jigsaw-page section[id] { scroll-margin-top: 100px; }
.fj-hero { padding: 132px 0 64px; background: linear-gradient(160deg, #E8F4FF, #F5FAFF 65%); }
.fj-hero-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 64px; }
.fj-hero-copy { min-width: 0; }
.fj-product { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.fj-app-icon { width: 64px; height: 64px; border-radius: 16px; }
.fj-product-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.3; }
.fj-product-kind { color: var(--ink-2); font-size: 0.92rem; margin-top: 4px; }
.fj-title { font-size: clamp(2.6rem, 5.3vw, 4.8rem); font-weight: 850; line-height: 1.08; letter-spacing: -0.055em; text-wrap: balance; }
.fj-title span { color: var(--fj-purple); display: block; margin-top: 10px; }
.fj-lede { max-width: 49ch; margin-top: 24px; font-size: 1.08rem; line-height: 1.75; }
.fj-release-note { max-width: 52ch; border-inline-start: 3px solid var(--accent); padding-inline-start: 14px; margin-top: 24px; font-size: 0.93rem; color: var(--ink-2); }
.fj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 28px; }
.fj-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 22px; border-radius: 12px; background: var(--fj-gold); color: var(--ink); font-weight: 750; text-decoration: none; }
.fj-text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; color: var(--accent); font-weight: 650; text-underline-offset: 5px; }
.fj-capture { width: min(100%, 320px); margin: 0 auto; }
.fj-capture img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 20px 45px rgb(32 59 100 / 14%); }
.fj-capture figcaption { margin-top: 14px; color: var(--ink-2); font-size: 0.82rem; text-align: center; line-height: 1.6; }

.fj-play { padding: 80px 0; background: var(--fj-surface); }
.fj-play-heading { max-width: 650px; margin-bottom: 38px; }
.fj-section-title { font-size: clamp(1.85rem, 3vw, 2.8rem); line-height: 1.18; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.fj-section-intro { margin-top: 16px; color: var(--ink-2); font-size: 1.04rem; max-width: 60ch; }
.fj-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.fj-steps li { border-top: 3px solid var(--fj-gold); padding-top: 24px; min-width: 0; }
.fj-step-number { color: var(--fj-purple); font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; }
.fj-steps h3 { font-size: 1.35rem; line-height: 1.35; margin-top: 12px; }
.fj-steps p { color: var(--ink-2); margin-top: 12px; }

.fj-campaign { padding: 88px 0; }
.fj-campaign-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 80px; }
.fj-campaign-copy { min-width: 0; }
.fj-campaign-copy > p { max-width: 56ch; margin-top: 20px; color: var(--ink-2); }
.fj-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0; padding: 26px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.fj-facts dt { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1.2; color: var(--accent); }
.fj-facts dd { color: var(--ink-2); font-size: 0.92rem; margin-top: 8px; }
.fj-facts .fj-board-sizes { font-size: 1.03rem; letter-spacing: -0.03em; line-height: 1.6; white-space: nowrap; }
.fj-benefits { margin-top: 28px; }
.fj-benefits > div { margin-top: 22px; }
.fj-benefits dt { font-weight: 750; font-size: 1.05rem; }
.fj-benefits dd { margin-top: 7px; color: var(--ink-2); max-width: 56ch; }

.fj-support { padding: 72px 0 80px; background: var(--fj-surface); border-top: 1px solid var(--line); }
.fj-support-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.fj-email { display: inline-block; margin-top: 20px; color: var(--accent); font-weight: 700; text-underline-offset: 5px; overflow-wrap: anywhere; }
.fj-link-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }
.fj-link-row:first-child { border-top: 1px solid var(--line-strong); }
.fj-link-row strong { font-size: 1.06rem; }
.fj-link-row p { color: var(--ink-2); margin-top: 6px; font-size: 0.94rem; }
.fj-link-arrow { color: var(--accent); font-size: 1.45rem; flex: 0 0 auto; }

.fj-legal-content { max-width: 780px; padding-top: 128px; padding-bottom: 72px; overflow-wrap: break-word; }
.fj-legal-nav { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-underline-offset: 4px; margin-bottom: 24px; }
.fj-legal-content h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.2; letter-spacing: -0.035em; margin-bottom: 18px; text-wrap: balance; }
.fj-legal-content h2 { font-size: 1.35rem; line-height: 1.4; margin-top: 32px; margin-bottom: 12px; }
.fj-legal-content p { margin-top: 12px; }
.fj-legal-content a { color: var(--accent); text-underline-offset: 4px; }
.fj-legal-content li { margin-top: 8px; }
.fj-legal-content ul { padding-inline-start: 24px; margin-top: 12px; }
.falling-jigsaw-page .footer-column-title { font-family: var(--font-body); }
.falling-jigsaw-page .footer { margin-top: 0; }

@media (hover: hover) and (pointer: fine) {
  .fj-button:hover { background: #FFE080; }
  .fj-text-link:hover, .fj-email:hover, .fj-legal-nav:hover { color: var(--accent-dark); }
  .fj-link-row:hover strong { color: var(--accent); }
}

@media (max-width: 880px) {
  .fj-hero-layout, .fj-campaign-layout { gap: 36px; }
  .fj-title { font-size: clamp(2.5rem, 5.6vw, 3.7rem); }
  .fj-hero { padding-top: 116px; }
  .fj-support-layout { gap: 36px; }
}

@media (max-width: 680px) {
  .fj-container { width: calc(100% - 40px); }
  .fj-hero { padding: 108px 0 52px; }
  .fj-hero-layout, .fj-campaign-layout, .fj-support-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fj-product { margin-bottom: 24px; gap: 12px; }
  .fj-app-icon { width: 56px; height: 56px; border-radius: 14px; }
  .fj-title { font-size: clamp(2.2rem, 9.3vw, 3.2rem); letter-spacing: -0.045em; }
  .fj-lede { font-size: 1rem; margin-top: 20px; }
  .fj-release-note { font-size: 0.89rem; }
  .fj-capture { width: min(100%, 310px); }
  .fj-play, .fj-campaign { padding: 56px 0; }
  .fj-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fj-steps li { padding-top: 18px; }
  .fj-steps h3 { margin-top: 8px; }
  .fj-facts { gap: 12px; }
  .fj-facts dt { font-size: 2rem; }
  .fj-facts dd { font-size: 0.82rem; }
  .fj-facts .fj-board-sizes { font-size: 0.84rem; }
  .fj-support { padding: 52px 0; }
  .fj-legal-content { padding-top: 108px; padding-bottom: 56px; }
}

@media (max-width: 360px) {
  .fj-container { width: calc(100% - 32px); }
  .fj-actions { gap: 12px 20px; }
  .fj-facts { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .fj-facts > div { display: flex; align-items: baseline; gap: 20px; }
  .fj-facts dt { min-width: 82px; }
  .fj-facts dd { margin-top: 0; }
  .fj-facts .fj-board-sizes { font-size: 1rem; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.falling-jigsaw-page) { scroll-behavior: auto; }
  .falling-jigsaw-page *, .falling-jigsaw-page *::before, .falling-jigsaw-page *::after { scroll-behavior: auto; transition: none; animation: none; }
}
