/* Talisman Pro landing — sumi-e ink-wash aesthetic.
   Palette mirrors the app design tokens: rice paper / deep ink / cinnabar / antique gold. */

:root {
  --paper: #f2ebe1;
  --paper-deep: #eae1d3;
  --ink: #1b1a17;
  --ink-soft: #4a463f;
  --cinnabar: #a12011;
  --gold: #a18669;
  --font-display: "Cormorant Garamond", "Songti SC", serif;
  --font-body: "Karla", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  /* Rice-paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Atmosphere ─────────────────────────────── */
.ink-atmosphere { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.mountains { position: absolute; width: 100%; }
.mountains-top { top: 0; right: 0; height: 40vh; filter: blur(1px); }
.mountains-bottom { bottom: 0; height: 46vh; filter: blur(0.5px); }

/* ── Nav ────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); background: rgba(242, 235, 225, 0.82); border-bottom: 1px solid rgba(27, 26, 23, 0.08); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 8px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; }
.nav-cta { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--cinnabar); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.7; }

/* ── Hero ───────────────────────────────────── */
.hero { max-width: 1120px; margin: 0 auto; padding: 72px 24px 48px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.08; letter-spacing: -0.01em; }
.ink-underline { position: relative; white-space: nowrap; }
.ink-underline::after {
  content: ""; position: absolute; left: -4%; right: -6%; bottom: 0.02em; height: 0.14em;
  background: var(--ink); border-radius: 45% 55% 60% 40% / 60% 45% 55% 40%; opacity: 0.85; transform: rotate(-1.2deg);
}
.hero-sub { margin-top: 22px; max-width: 46ch; font-size: 1.06rem; color: var(--ink-soft); }
.hero-note { margin-top: 16px; font-size: 0.86rem; color: var(--gold); letter-spacing: 0.04em; }

/* Store badges */
.badges { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badges-center { justify-content: center; }
.badge { display: inline-flex; position: relative; }
.badge img { height: 56px; width: auto; display: block; }
.badge-ios img { height: 56px; padding: 8.5px 0; }
.badge-play img { height: 84px; margin: -14px; } /* Google badge PNG has built-in padding */
.badge-disabled { filter: grayscale(1); opacity: 0.55; cursor: default; }
.soon-tag { position: absolute; top: -9px; right: -12px; background: var(--cinnabar); color: var(--paper); font-style: normal; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; filter: none; }

/* Phone mockup */
.hero-phone { position: relative; display: flex; justify-content: center; }
.ink-splash { position: absolute; inset: -8% -14%; z-index: -1; background: radial-gradient(ellipse 60% 48% at 52% 48%, rgba(27, 26, 23, 0.14), transparent 70%); filter: blur(6px); }
.phone { width: min(280px, 72vw); border-radius: 38px; padding: 12px; background: var(--ink); box-shadow: 0 24px 60px -18px rgba(27, 26, 23, 0.45); }
.phone img { width: 100%; height: auto; border-radius: 28px; display: block; }
.seal-mark { position: absolute; width: 44px; height: 44px; right: 6%; bottom: -10px; transform: rotate(6deg); opacity: 0.92; }

/* ── Brush divider ──────────────────────────── */
.brush-divider { max-width: 900px; margin: 24px auto; padding: 0 24px; }
.brush-divider svg { width: 100%; height: 18px; }

/* ── Features ───────────────────────────────── */
.features { max-width: 1120px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 14px 0 8px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; max-width: 34ch; }
.feature-seal { display: inline-flex; width: 52px; height: 52px; padding: 9px; color: var(--cinnabar); border: 2px solid var(--cinnabar); border-radius: 8px; box-shadow: 2px 2px 0 rgba(161, 32, 17, 0.18); }
.feature-seal svg { width: 100%; height: 100%; }

/* ── Gallery ────────────────────────────────── */
.gallery { padding: 56px 24px 40px; }
.gallery-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); text-align: center; margin-bottom: 40px; }
.gallery-strip { max-width: 980px; margin: 0 auto; display: flex; justify-content: center; gap: 28px; }
.shot { width: min(250px, 28vw); border-radius: 22px; overflow: hidden; box-shadow: 0 18px 44px -16px rgba(27, 26, 23, 0.4); border: 1px solid rgba(27, 26, 23, 0.1); }
.shot img { width: 100%; height: auto; display: block; }
.shot-raised { transform: translateY(-24px); }

/* ── Final CTA ──────────────────────────────── */
.final-cta { text-align: center; padding: 56px 24px 72px; }
.final-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 26px; }

/* ── Footer ─────────────────────────────────── */
.footer { border-top: 1px solid rgba(27, 26, 23, 0.1); background: var(--paper-deep); padding: 36px 24px 42px; text-align: center; }
.disclaimer { max-width: 72ch; margin: 0 auto; font-size: 0.8rem; color: var(--ink-soft); opacity: 0.85; }
.footer-links { margin-top: 18px; display: flex; justify-content: center; gap: 12px; font-size: 0.88rem; }
.footer-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
.footer-links a:hover { color: var(--cinnabar); }
.copyright { margin-top: 16px; font-size: 0.72rem; color: var(--ink-soft); opacity: 0.7; }

/* ── Reveal animation ───────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay.is-visible { transition-delay: 0.12s; }
.reveal-delay2.is-visible { transition-delay: 0.24s; }
.shot-raised.is-visible { transform: translateY(-24px); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot-raised { transform: translateY(-24px); }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .features { grid-template-columns: 1fr; text-align: center; }
  .feature p { margin: 0 auto; }
  .gallery-strip { flex-direction: column; align-items: center; gap: 24px; }
  .shot { width: min(260px, 78vw); }
  .shot-raised { transform: none; }
  .shot-raised.is-visible { transform: none; }
}