/* Furstume web: landing + legal pages. Matches the app's design system. */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --ink: #16161A;
  --ink-2: #4A4A55;
  --ink-3: #8A8A96;
  --line: #ECE8E2;
  --coral: #FF6B4A;
  --coral-2: #FF8A5C;
  --gold: #F5B841;
  --shadow: 0 1px 2px rgba(22,22,26,.04), 0 8px 24px rgba(22,22,26,.06), 0 24px 64px rgba(22,22,26,.06);
  --radius: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111114; --surface: #1B1B20; --ink: #F4F2EE; --ink-2: #C4C2CC; --ink-3: #8E8C98;
    --line: #2A2A31; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111114; --surface: #1B1B20; --ink: #F4F2EE; --ink-2: #C4C2CC; --ink-3: #8E8C98;
  --line: #2A2A31; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Nav */
/* Floating glass pill: transparent strip, the inner bar carries the frosted glass. */
.nav { position: sticky; top: 0; z-index: 10; padding: 14px 0 0; pointer-events: none; }
.nav .wrap {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  width: min(1120px, 100% - 24px); height: 62px; padding: 0 10px 0 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 24px rgba(22,22,26,.06);
  transition: box-shadow .3s ease, background .3s ease;
}
.nav.scrolled .wrap {
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 12px 36px rgba(0,0,0,.16);
}
@media (max-width: 720px) { .nav .wrap { padding-left: 12px; } .nav { padding-top: 10px; } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 6px; align-items: center; font-size: 15px; color: var(--ink-2); }
.nav-links a:not(.btn) { padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:not(.btn):hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav-links .btn { margin-left: 6px; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links .btn-primary:hover { color: var(--bg); transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--coral) 30%, transparent); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.eyebrow .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-left: 4px;
  background: linear-gradient(135deg, var(--gold), var(--coral)); box-shadow: 0 0 8px color-mix(in srgb, var(--coral) 45%, transparent); }
h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -.045em; margin: 20px 0 18px; font-weight: 800; }
h1 .accent { background: linear-gradient(100deg, var(--coral) 10%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 30em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* Before/after comparison slider */
.compare-wrap { width: 100%; max-width: 460px; justify-self: center; }
.compare { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--line); user-select: none; touch-action: pan-y; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-img.before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px);
  box-shadow: 0 0 12px rgba(0,0,0,.25); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.compare-handle span::before, .compare-handle span::after { content: ""; position: absolute; top: 50%; border: 6px solid transparent; transform: translateY(-50%); }
.compare-handle span::before { left: 8px; border-right-color: #16161A; }
.compare-handle span::after { right: 8px; border-left-color: #16161A; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.9); color: #16161A; backdrop-filter: blur(8px); pointer-events: none; }
.tag-before { left: 14px; }
.tag-after { right: 14px; background: rgba(22,22,26,.78); color: #fff; }
.pair-picker { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pair-thumb { width: 52px; height: 65px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; cursor: pointer;
  background: var(--line); opacity: .65; transition: opacity .2s, transform .2s, border-color .2s; }
.pair-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pair-thumb:hover { opacity: 1; }
.pair-thumb.active { opacity: 1; border-color: var(--coral); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none !important; } }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
h2 { font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--ink-2); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 26px; box-shadow: var(--shadow); }
.step-media { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin-bottom: 20px; background: var(--line); }
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-media.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.step .num, .step h3, .step p { margin-left: 12px; margin-right: 12px; }
.step .num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800;
  background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); margin-bottom: 18px; }
.step h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Costume gallery (two marquee rows) */
.gallery-section { overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); padding: 6px 0; }
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 70s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.costume { margin: 0; width: 176px; flex: none; }
.costume img { width: 176px; height: 220px; object-fit: cover; border-radius: 20px; background: var(--line); box-shadow: 0 6px 18px rgba(22,22,26,.08); }
.costume figcaption { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; }
@media (max-width: 600px) { .costume, .costume img { width: 136px; } .costume img { height: 170px; } }

/* Free credits */
.free { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .free { grid-template-columns: 1fr; } }
.tile { border-radius: var(--radius); padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.tile .big { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.tile-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--gold) 22%, transparent); color: #B7791F; }
.tile .big { font-size: 24px; }
.tile p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* Final CTA */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: 32px; padding: 36px 20px; color: #fff;
  background: #E8553A; box-shadow: var(--shadow); }
/* Tilted rows of real portraits behind a coral wash */
.final-bg { position: absolute; inset: -30% -10%; z-index: -2; display: flex; flex-direction: column; justify-content: center; gap: 16px; transform: rotate(-8deg); }
.final-row { display: flex; gap: 16px; justify-content: center; animation: drift 40s linear infinite alternate; }
.final-row:nth-child(2) { animation-direction: alternate-reverse; }
.final-row img { width: 170px; height: 212px; flex: none; object-fit: cover; border-radius: 22px; }
@keyframes drift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 140% at 20% 0%, rgba(255,155,106,.88), rgba(255,107,74,.86) 45%, rgba(216,69,45,.92)); }
/* Frosted glass card */
.final-glass { max-width: 980px; margin: 0 auto; padding: 24px 28px; border-radius: 26px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; text-align: left;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 20px 50px rgba(120,30,10,.25); }
@media (prefers-reduced-motion: reduce) { .final-row { animation: none; } }
.final h2 { color: #fff; }
.final-logo { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.final h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 4px; }
.final-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) {
  .final-glass { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 16px; padding: 28px 20px; }
  .final-actions { justify-content: center; }
}
.final p { color: rgba(255,255,255,.9); margin: 0; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal / doc pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 0 24px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-top: 0; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--ink-2); }
.doc .updated { color: var(--ink-3); font-size: 14px; margin-top: -6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin: 20px 0; }
.table-scroll { overflow-x: auto; }

/* Smooth pet switch: fade + soft zoom */
.compare .compare-img, .compare .tag { transition: opacity .42s ease, transform .42s ease; }
.compare.swapping .compare-img { opacity: 0; transform: scale(1.04); }
.compare.swapping .tag-after { opacity: 0; transform: translateY(-4px); }
.compare.swapping .compare-handle { opacity: 0; }
.compare-handle { transition: opacity .3s ease; }
.pair-thumb { transition: opacity .3s, transform .3s, border-color .3s; }

/* Line icons in the "free" tiles */
.tile-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-icon svg .fill { fill: currentColor; stroke: none; }
.tile:nth-child(1) .tile-icon { background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral); }
.tile:nth-child(2) .tile-icon { background: color-mix(in srgb, var(--gold) 20%, transparent); color: #D99A1E; }
.tile:nth-child(3) .tile-icon { background: color-mix(in srgb, #FF5A3C 16%, transparent); color: #FF5A3C; }
.tile { transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Store buttons (Google Play live, App Store coming soon) */
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px 0 8px; border-radius: 16px;
  text-decoration: none; background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease; }
.store-btn:hover { transform: translateY(-2px); }
.store-btn:active { transform: scale(.97); }
.store-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 14%, transparent); }
.store-ic svg { width: 19px; height: 19px; fill: currentColor; }
.store-txt { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.store-txt small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-bottom: 2px; }
.store-btn.alt { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.store-btn.alt .store-ic { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.store-btn.light { background: #fff; color: #16161A; }
.store-btn.light .store-ic { background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); }
.store-btn.glass { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.store-btn.glass .store-ic { background: rgba(255,255,255,.18); }
.store-btn.soon { cursor: default; }
.store-btn.soon:hover, .store-btn.soon:active { transform: none; }
.store-btn.soon .store-txt { opacity: .85; }
.eyebrow .spark { width: 16px; height: 16px; flex: none; margin-left: 2px; filter: drop-shadow(0 0 6px rgba(255,107,74,.45));
  animation: sparkle 3.2s ease-in-out infinite; }
@keyframes sparkle { 0%,100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.12) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .eyebrow .spark { animation: none; } }
