/* AppPalette surfaces and brand colors from lib/ui/app_theme.dart. */
:root { color-scheme: light dark; --bg: #f2f2f7; --surface: #fff; --fill: #e9e9ef; --ink: #1c1c1e; --muted: #62626a; --line: #e1e1e6; --accent: #b51e1e; --on-accent: #fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: .2em; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-weight: 850; letter-spacing: -.06em; font-size: 27px; white-space: nowrap; }
.brand span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
nav a { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; transform: translateY(-160%); background: var(--surface); padding: 12px; z-index: 10; }
.skip-link:focus { transform: none; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -.04em; margin: 18px 0 24px; max-width: 15ch; }
h2 { font-size: clamp(27px, 3.7vw, 40px); letter-spacing: -.025em; margin: 0 0 28px; }
h3 { font-size: 21px; margin: 0 0 16px; }
p { margin: 0 0 20px; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 750; letter-spacing: .025em; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(24px, 6vw, 80px); padding-block: 56px 72px; }
.hero-copy { min-width: 0; }
.intro { font-size: clamp(18px, 2vw, 21px); line-height: 1.65; max-width: 65ch; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 30px 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px; border-radius: 15px; font-size: 16px; font-weight: 650; text-decoration: none; text-align: center; }
.primary { background: var(--accent); color: var(--on-accent); }
.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.fineprint { color: var(--muted); font-size: 14px; line-height: 1.7; }
figure { margin: 0; min-width: 0; }
.app-preview { justify-self: center; max-width: 340px; width: 100%; padding: 8px; background: var(--surface); border-radius: 27px; border: 1px solid var(--line); box-shadow: 0 18px 55px #00000012; }
.app-preview img { display: block; width: 100%; height: auto; border-radius: 20px; }
.section { padding-block: 64px; border-top: 1px solid var(--line); }
.guide-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-block: 30px 44px; }
.guide-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: var(--surface); border-radius: 20px; display: block; }
.guide-gallery figcaption { font-size: 14px; color: var(--muted); margin-block-start: 10px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 28px; border-radius: 22px; min-width: 0; }
.card p:last-child { margin: 0; }
.ratios { font-size: 23px; font-variant-numeric: tabular-nums; letter-spacing: .05em; margin-block: 30px 10px; }
.split-label { font-size: 15px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: steps; gap: 32px; }
.steps li::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); color: var(--accent); display: block; margin-bottom: 18px; font-size: 14px; font-weight: 750; }
.steps p { color: var(--muted); }
.shared { background: var(--fill); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 32px; }
.plus { border-color: var(--accent); }
.badge { display: inline-block; color: var(--accent); font-weight: 750; margin-bottom: 12px; }
details { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 16px 20px; margin-block: 22px; }
summary { cursor: pointer; font-weight: 650; min-height: 32px; }
details[open] summary { margin-bottom: 18px; }
.legal-links { margin-block: 24px; }
footer { padding-block: 8px 36px; }
.language-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 6px 16px; }
.language-links a { display: flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.language-links a[aria-current] { color: var(--ink); background: var(--fill); font-weight: 700; }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: normal; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-block: 18px; }
  .site-header nav { gap: 8px 18px; }
  .hero { grid-template-columns: 1fr; padding-block: 38px 44px; gap: 32px; }
  h1 { max-width: 20ch; }
  .app-preview { max-width: 300px; }
  .section { padding-block: 42px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 14px; }
  .steps li::before { grid-row: span 2; margin-top: 3px; }
  .steps p { grid-column: 2; }
  .guide-gallery { gap: 14px; margin-block: 20px 30px; }
  .card { padding: 22px; }
}
@media (max-width: 520px) {
  .features, .plans { grid-template-columns: 1fr; }
  .downloads { flex-direction: column; align-items: stretch; }
  .guide-gallery { grid-template-columns: 1fr; }
  .guide-gallery img { aspect-ratio: 4 / 5; }
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --surface: #1c1c1e; --fill: #2c2c2e; --ink: #fff; --muted: #a1a1a8; --line: #38383a; --accent: #ff7474; --on-accent: #000; }
  .app-preview { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
