/* ═══════════════════════════════════════════════════════════════════════════
   BrandKit landing page

   The idle view is a soft, airy marketing page. The moment a run starts the
   existing dark workspace takes over: everything here is scoped to
   `body[data-view="idle"]`, and `.landing-only` is removed from the tree in
   every other view. Nothing in this file changes the extraction pipeline, the
   deck, or the comparison matrix.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-italic.woff2") format("woff2");
}

/* ── Tokens ───────────────────────────────────────────────────────────────── */

body[data-view="idle"] {
  --lp-bg: #fdf6f9;
  --lp-bg-deep: #fbeaf1;
  --lp-ink: #2a1b22;
  --lp-ink-soft: #4b3741;
  --lp-muted: #6c5762;
  --lp-quiet: #8c6b79;
  --lp-pink: #f4729e;
  --lp-pink-soft: #f8b4c6;
  --lp-pink-deep: #ec407a;
  --lp-rose: #b31b51;
  --lp-line: rgba(96, 48, 69, 0.12);
  --lp-line-strong: rgba(96, 48, 69, 0.2);
  --lp-white: #ffffff;
  --lp-r-sm: 14px;
  --lp-r-md: 24px;
  --lp-r-lg: 34px;
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);

  background: var(--lp-bg);
  color: var(--lp-ink);
  color-scheme: light;
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-stretch: 96%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The idle page supplies its own ground. The old gradient belonged to the
   previous hero and would show through gaps around the full-bleed image. */
body[data-view="idle"]::after { display: none; }

body[data-view="idle"] ::selection {
  background: rgba(248, 180, 198, 0.58);
  color: #331321;
}

html:has(body[data-view="idle"]) { scroll-behavior: smooth; }

body[data-view="idle"] :where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--lp-pink-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

body[data-view="idle"] .skip {
  background: var(--lp-pink-deep);
  color: #fff7fa;
}

body[data-view="idle"] .landing { background: var(--lp-bg); }

body:not([data-view="idle"]) .landing,
body:not([data-view="idle"]) .landing-only,
body:not([data-view="idle"]) .hero-scene,
body:not([data-view="idle"]) .hero-glow { display: none !important; }

/* ── Navbar ───────────────────────────────────────────────────────────────── */

body[data-view="idle"] .appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  padding: 0 24px;
}

body[data-view="idle"] .appbar-inner {
  width: min(1240px, 100%);
  height: 64px;
  margin: 8px auto 0;
  padding: 0 8px 0 18px;
  gap: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  color: var(--lp-ink);
  box-shadow:
    0 18px 50px -32px rgba(76, 27, 48, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: lp-fade 0.7s var(--lp-ease) both;
}

body[data-view="idle"] .brand {
  grid-column: 1;
  justify-self: start;
  gap: 11px;
  color: var(--lp-ink);
  text-decoration: none;
}

body[data-view="idle"] .brand-mark {
  --mascot-bg: var(--lp-pink);
  --mascot-ink: #fff7fa;
  filter: drop-shadow(0 5px 9px rgba(236, 64, 122, 0.24));
}

body[data-view="idle"] .brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

body[data-view="idle"] .nav-links {
  grid-column: 2;
  justify-self: center;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #6a5560;
  font-size: 13.5px;
  font-weight: 580;
  text-decoration: none;
  transition: color 0.2s var(--lp-ease), background 0.2s var(--lp-ease);
}

.nav-links a:hover {
  color: var(--lp-ink);
  background: rgba(255, 255, 255, 0.58);
}

body[data-view="idle"] .appbar-actions {
  grid-column: 3;
  justify-self: end;
}

.lp-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 22px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--lp-pink-soft, var(--accent));
  color: var(--lp-ink, var(--accent-ink));
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.08),
    inset 0 -12px 16px -10px rgba(236, 64, 122, 0.58);
  transition: transform 0.32s var(--lp-ease), filter 0.32s var(--lp-ease), box-shadow 0.32s var(--lp-ease);
}

.lp-nav-cta svg { width: 15px; height: 15px; flex: none; }

.lp-nav-cta:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.1),
    inset 0 -12px 16px -10px rgba(236, 64, 122, 0.58);
}

.lp-nav-cta:active { transform: scale(0.99); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

body[data-view="idle"] .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100svh;
  padding: clamp(132px, 16vh, 194px) 24px 64px;
  overflow: hidden;
  isolation: isolate;
  background: var(--lp-bg);
}

.hero-scene,
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-scene {
  background-image: url("/hero.webp");
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* A light radial veil, as specified, plus a quiet fade into the page so the
   meadow does not end in a hard cut. The image itself is untouched. */
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 44% at 50% 8%, rgba(255, 255, 255, 0.2), transparent 70%),
    linear-gradient(to bottom, transparent 78%, #fdf6f9 100%);
}

.hero-glow {
  background: radial-gradient(46% 40% at 50% 34%, rgba(255, 255, 255, 0.22), transparent 72%);
}

body[data-view="idle"] .hero-copy,
body[data-view="idle"] .hero-inner {
  position: relative;
  z-index: 1;
}

body[data-view="idle"] .hero-copy {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: #5a3c49;
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.005em;
  line-height: 1.2;
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: 0 8px 24px -20px rgba(74, 31, 49, 0.5);
  animation: lp-blur-rise 0.8s var(--lp-ease) both;
}

.hero-eyebrow svg {
  width: 15px;
  height: 15px;
  color: var(--lp-pink-deep);
  flex: none;
}

body[data-view="idle"] .hero-title {
  max-width: 900px;
  margin: 0;
  color: var(--lp-ink);
  font-size: clamp(48px, 6.9vw, 78px);
  font-weight: 650;
  line-height: 1.01;
  letter-spacing: -0.046em;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: lp-blur-rise 0.85s var(--lp-ease) 0.08s both;
}

body[data-view="idle"] .hero-title em {
  position: relative;
  color: var(--lp-rose);
  font-style: normal;
  font-weight: inherit;
  white-space: nowrap;
  background-image: linear-gradient(90deg, rgba(248, 180, 198, 0.08), rgba(248, 180, 198, 0.78) 12%, rgba(248, 180, 198, 0.78) 88%, rgba(248, 180, 198, 0.08));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.15em;
}

.hero-sub {
  max-width: 630px;
  margin: 0;
  color: var(--lp-ink-soft);
  font-size: clamp(16.5px, 1.45vw, 19.5px);
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: -0.012em;
  text-wrap: balance;
  animation: lp-blur-rise 0.85s var(--lp-ease) 0.16s both;
}

body[data-view="idle"] .hero-inner {
  width: 100%;
  max-width: 720px;
  gap: 12px;
  margin: 30px auto 0;
  animation: lp-blur-rise 0.85s var(--lp-ease) 0.28s both;
}

/* ── Hero tabs ────────────────────────────────────────────────────────────── */

body[data-view="idle"] .hero-tabs {
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px -24px rgba(74, 31, 49, 0.55);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

body[data-view="idle"] .hero-tab {
  padding: 8px 22px;
  color: #6a5560;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
}

body[data-view="idle"] .hero-tab:hover {
  color: var(--lp-ink);
  background: rgba(255, 255, 255, 0.34);
}

body[data-view="idle"] .hero-tab[aria-pressed="true"] {
  background: #fff;
  color: var(--lp-ink);
  font-weight: 680;
  box-shadow: 0 5px 14px -10px rgba(74, 31, 49, 0.55);
}

/* ── The search pill ──────────────────────────────────────────────────────── */

body[data-view="idle"] .hero-bar {
  width: 100%;
  max-width: 720px;
  gap: 12px;
}

body[data-view="idle"] .search-pill {
  z-index: 2;
  height: 56px;
  padding: 0 7px 0 19px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 42px -30px rgba(48, 18, 32, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

body[data-view="idle"] .pill-icon {
  width: 17px;
  height: 17px;
  color: #b06c84;
}

body[data-view="idle"] .pill-fields input,
body[data-view="idle"] .pill-fields input:focus,
body[data-view="idle"] .pill-fields input:focus-visible {
  height: 54px;
  color: var(--lp-ink);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
}

body[data-view="idle"] .pill-fields input:focus,
body[data-view="idle"] .pill-fields input:focus-visible {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

body[data-view="idle"] .pill-fields input::placeholder {
  color: #a08591;
  opacity: 1;
}

body[data-view="idle"] .pill-vs {
  color: var(--lp-rose);
  border-color: rgba(236, 64, 122, 0.26);
  background: rgba(255, 255, 255, 0.36);
}

body[data-view="idle"] .pill-select-trigger {
  height: 40px;
  padding: 0 12px 0 13px;
  color: #6f5762;
  font-size: 13px;
  font-weight: 620;
}

body[data-view="idle"] .pill-select-trigger:hover {
  color: var(--lp-ink);
  background: #fbe7ee;
}

body[data-view="idle"] .pill-select-trigger[aria-expanded="true"] { color: var(--lp-ink); }

body[data-view="idle"] .pill-caret {
  width: 15px;
  height: 15px;
  color: #a08591;
}

body[data-view="idle"] .pill-menu {
  min-width: 156px;
  padding: 5px;
  background: #fffafc;
  border-color: #f3d5e0;
  box-shadow: 0 20px 44px -18px rgba(74, 31, 49, 0.32);
}

body[data-view="idle"] .pill-menu-option {
  padding: 9px 13px;
  color: #6f5762;
}

body[data-view="idle"] .pill-menu-option:hover,
body[data-view="idle"] .pill-menu-option:focus-visible {
  background: #fbe7ee;
  color: var(--lp-ink);
}

body[data-view="idle"] .pill-menu-option[aria-selected="true"] {
  background: #fce3ec;
  color: #7a2342;
}

/* ── The primary button ───────────────────────────────────────────────────── */

body[data-view="idle"] .hero-cta {
  min-width: 174px;
  height: 56px;
  padding: 0 24px;
  border: 5px solid #fff;
  border-radius: 999px;
  background: var(--lp-pink-soft);
  color: #3b0f22;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.012em;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.08),
    0 16px 36px -24px rgba(236, 64, 122, 0.54),
    inset 0 -18px 22px -13px rgba(236, 64, 122, 0.6);
  transition: transform 0.34s var(--lp-ease), filter 0.34s var(--lp-ease), box-shadow 0.34s var(--lp-ease);
}

body[data-view="idle"] .hero-cta:hover:not(:disabled) {
  transform: scale(1.03);
  filter: brightness(1.05);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.1),
    0 20px 44px -24px rgba(236, 64, 122, 0.58),
    inset 0 -18px 22px -13px rgba(236, 64, 122, 0.6);
}

body[data-view="idle"] .hero-cta:active:not(:disabled) { transform: scale(0.995); }
body[data-view="idle"] .hero-cta:disabled { opacity: 0.78; }

/* ── Under-bar notes ──────────────────────────────────────────────────────── */

body[data-view="idle"] .hero-under {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 1px;
}

body[data-view="idle"] .hero-note {
  display: block;
  margin: 0;
  color: #5a4550;
  font-size: 12.5px;
  line-height: 1.5;
}

.hero-how {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 2px;
  color: #8f2a55;
  border-bottom: 1px solid rgba(143, 42, 85, 0.28);
  font-size: 12.5px;
  font-weight: 660;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s var(--lp-ease), border-color 0.2s var(--lp-ease);
}

.hero-how svg { width: 13px; height: 13px; }
.hero-how:hover { color: var(--lp-rose); border-color: var(--lp-rose); }

body[data-view="idle"] .hero-error {
  margin: 0;
  color: #8f1438;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ── Landing sections ─────────────────────────────────────────────────────── */

.landing {
  position: relative;
  z-index: 2;
  overflow-x: clip;
}

.lp-section {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(84px, 10vw, 136px) 32px;
}

#features,
#guides,
#how-it-works,
#exports { scroll-margin-top: 104px; }

.lp-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 62px);
}

.lp-head-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.72fr);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
}

.lp-head-split > div { display: flex; flex-direction: column; gap: 15px; }

.lp-title {
  margin: 0;
  color: var(--lp-ink);
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 610;
  line-height: 1.02;
  letter-spacing: -0.043em;
  text-wrap: balance;
}

.lp-title em {
  color: var(--lp-rose);
  font-style: normal;
  font-weight: inherit;
}

.lp-lede {
  max-width: 60ch;
  margin: 0;
  color: var(--lp-muted);
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  font-weight: 440;
  line-height: 1.64;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

/* ── Features ─────────────────────────────────────────────────────────────── */

.lp-features::before {
  content: "";
  position: absolute;
  top: 4%;
  right: -12%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 180, 198, 0.3), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.lp-features::after {
  content: "";
  position: absolute;
  top: 34%;
  left: -16%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 197, 238, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.lp-features > * { position: relative; z-index: 1; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 326px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.5));
  box-shadow:
    0 28px 60px -48px rgba(73, 24, 46, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.5s var(--lp-ease), box-shadow 0.5s var(--lp-ease), border-color 0.5s var(--lp-ease);
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 180, 198, 0.26), transparent 68%);
  pointer-events: none;
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid #ffedf3;
  border-radius: 17px;
  background: linear-gradient(145deg, #ffe5ed, #fdf5f8);
  color: #c22d62;
  box-shadow:
    inset 0 1px 0 #fff,
    0 12px 24px -18px rgba(194, 45, 98, 0.6);
}

.feature-icon svg { width: 23px; height: 23px; }

.feature-index {
  color: #b18c9a;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin: 0;
  color: var(--lp-ink);
  font-size: clamp(20px, 1.7vw, 22px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.16;
}

.feature-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--lp-muted);
  font-size: 14.5px;
  font-weight: 440;
  line-height: 1.62;
  letter-spacing: -0.006em;
}

.feature-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto !important;
  padding-top: 12px;
  color: #9a3c61 !important;
  font-size: 10.5px !important;
  font-weight: 680 !important;
  letter-spacing: 0.09em;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

.feature-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-pink-deep);
  box-shadow: 0 0 0 3px rgba(236, 64, 122, 0.11);
}

/* ── Real guides ──────────────────────────────────────────────────────────── */

.lp-guides .lp-head { margin-bottom: clamp(34px, 4vw, 48px); }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.guide-card { margin: 0; }

/*
 * One page of the capture fills the frame, so the guide reads like a PDF: the
 * cover fills the view and the remaining pages are a scroll away. The ratio
 * leaves room for a classic scrollbar and stops short of the shortest cover so
 * no card reveals the next page's break bar at rest.
 */
.guide-frame {
  position: relative;
  aspect-ratio: 1134 / 826;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 32px 66px -48px rgba(60, 23, 39, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.94) inset;
  transition: transform 0.5s var(--lp-ease), box-shadow 0.5s var(--lp-ease);
}

/*
 * The scrollbar stays visible rather than appearing on hover: it is the one
 * thing on the card that says there are more pages below the fold. Native
 * scrolling keeps wheel, trackpad, keyboard and touch working for free.
 */
.guide-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: inherit;
  scrollbar-width: thin;
  scrollbar-color: rgba(236, 64, 122, 0.3) transparent;
}

/* The scroll pane paints its outline under the page image, so the ring is drawn
   on the frame instead, where nothing covers it. */
.guide-frame:has(.guide-scroll:focus-visible) {
  outline: 2px solid var(--lp-pink-deep);
  outline-offset: 2px;
}

.guide-scroll::-webkit-scrollbar { width: 9px; }
.guide-scroll::-webkit-scrollbar-track { background: transparent; }
.guide-scroll::-webkit-scrollbar-thumb {
  background: rgba(236, 64, 122, 0.3);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}
.guide-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(236, 64, 122, 0.6);
  border: 3px solid transparent;
  background-clip: content-box;
}

.guide-scroll img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-stat {
  position: absolute;
  top: 12px;
  right: 20px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #6b4655;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 5px 14px -10px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.guide-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 4px 0;
}

.guide-brand {
  color: var(--lp-ink);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.022em;
}

.guide-case {
  color: var(--lp-quiet);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ── How it works ─────────────────────────────────────────────────────────── */

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--lp-line-strong);
  list-style: none;
}

.step {
  position: relative;
  padding: 30px 34px 0 0;
}

.step + .step {
  padding-left: 34px;
  border-left: 1px solid var(--lp-line);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.step-num {
  color: #f0bfd0;
  font-size: 42px;
  font-weight: 760;
  line-height: 0.9;
  letter-spacing: -0.055em;
  transition: color 0.4s var(--lp-ease);
}

.step-tag {
  color: #9a3c61;
  font-size: 10.5px;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step h3 {
  margin: 0 0 10px;
  color: var(--lp-ink);
  font-size: clamp(21px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.14;
}

.step p {
  max-width: 36ch;
  margin: 0;
  color: var(--lp-muted);
  font-size: 14.5px;
  line-height: 1.64;
}

/* ── Exports ──────────────────────────────────────────────────────────────── */

.export-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(34px, 5vw, 68px);
  padding: clamp(34px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 40px;
  background:
    radial-gradient(120% 140% at 0% 0%, #fffafc 0%, #fdebf2 48%, #fbd9e5 100%);
  box-shadow:
    0 44px 100px -66px rgba(73, 24, 46, 0.55),
    inset 0 1px 0 #fff;
}

.export-panel::before {
  content: "";
  position: absolute;
  top: -32%;
  right: -8%;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 66%);
  pointer-events: none;
}

.export-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.export-copy .lp-title { font-size: clamp(34px, 3.9vw, 52px); }
.export-copy .lp-lede { max-width: 44ch; }

.export-sample {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 30px -26px rgba(73, 24, 46, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sample-dot {
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 5px;
  background: #7070ff;
  box-shadow: 0 2px 6px -3px rgba(48, 48, 160, 0.6);
}

body[data-view="idle"] .export-sample code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3a2630;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: -0.01em;
}

.sample-source {
  padding-left: 10px;
  border-left: 1px solid var(--lp-line);
  color: #8c6b79;
  font-size: 10.5px;
  white-space: nowrap;
}

.format-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.format-grid li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: #4a303c;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s var(--lp-ease), transform 0.25s var(--lp-ease), border-color 0.25s var(--lp-ease);
}

.format-grid li:last-child { grid-column: 1 / -1; }

.format-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid rgba(236, 64, 122, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #b01e52;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* ── Final CTA ────────────────────────────────────────────────────────────── */

.lp-final {
  position: relative;
  padding: clamp(54px, 8vw, 100px) 28px clamp(76px, 9vw, 116px);
  overflow: hidden;
}

.final-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  pointer-events: none;
}

.final-orb-a {
  top: 8%;
  left: -7%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(248, 180, 198, 0.54), transparent 68%);
}

.final-orb-b {
  right: -6%;
  bottom: -8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(244, 114, 158, 0.26), transparent 68%);
}

.final-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) clamp(24px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 44px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(255, 246, 250, 0.48));
  box-shadow:
    0 52px 120px -74px rgba(73, 24, 46, 0.58),
    inset 0 1px 0 #fff;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.final-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  width: 700px;
  height: 500px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 180, 198, 0.3), transparent 66%);
  pointer-events: none;
}

.final-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  --mascot-bg: var(--lp-pink);
  --mascot-ink: #fff7fa;
  filter: drop-shadow(0 12px 22px rgba(236, 64, 122, 0.26));
}

.final-mark svg { width: 52px; height: 52px; }

.final-card .lp-title {
  position: relative;
  z-index: 1;
  max-width: 840px;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.01;
}

.final-card .lp-lede {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: center;
}

.lp-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 62px;
  margin-top: 6px;
  padding: 16px 38px;
  border: 6px solid #fff;
  border-radius: 999px;
  background: var(--lp-pink-soft);
  color: #3b0f22;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.08),
    0 20px 48px -26px rgba(236, 64, 122, 0.6),
    inset 0 -20px 26px -14px rgba(236, 64, 122, 0.62);
  transition: transform 0.34s var(--lp-ease), filter 0.34s var(--lp-ease), box-shadow 0.34s var(--lp-ease);
}

.lp-button svg { width: 16px; height: 16px; }

.lp-button:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.1),
    0 24px 56px -26px rgba(236, 64, 122, 0.64),
    inset 0 -20px 26px -14px rgba(236, 64, 122, 0.62);
}

.lp-button:active { transform: scale(1); }

.final-note {
  position: relative;
  z-index: 1;
  margin: 1px 0 0;
  color: #8c6b79;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.lp-footer {
  border-top: 1px solid var(--lp-line);
  background: rgba(255, 255, 255, 0.26);
}

.lp-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 32px 28px;
}

.lp-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.lp-footer .brand {
  color: var(--lp-ink);
  text-decoration: none;
}

.lp-footer .brand-mark {
  --mascot-bg: var(--lp-pink);
  --mascot-ink: #fff7fa;
}

.lp-footer .brand-name { font-size: 16px; }

.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.lp-footer-links a {
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
  transition: color 0.2s var(--lp-ease);
}

.lp-footer-links a:hover { color: var(--lp-rose); }

.lp-social { display: flex; align-items: center; gap: 6px; }

.lp-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(96, 48, 69, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #6c5762;
  transition: color 0.2s var(--lp-ease), background 0.2s var(--lp-ease), transform 0.2s var(--lp-ease);
}

.lp-social a:hover {
  color: var(--lp-rose);
  background: #fff;
  transform: translateY(-1px);
}

.lp-social svg { width: 17px; height: 17px; }

.lp-footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(96, 48, 69, 0.1);
}

.lp-footer-base p {
  margin: 0;
  color: var(--lp-quiet);
  font-size: 11.5px;
  letter-spacing: 0.002em;
  line-height: 1.5;
}

/* ── Settings, idle ───────────────────────────────────────────────────────── */

body[data-view="idle"] .sheet-backdrop {
  background: rgba(44, 20, 32, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body[data-view="idle"] .sheet {
  background: #fffafc;
  border-color: rgba(236, 64, 122, 0.16);
  color: var(--lp-ink);
  box-shadow: 0 34px 90px -38px rgba(74, 28, 47, 0.35);
}

body[data-view="idle"] .sheet-head { border-bottom-color: var(--lp-line); }
body[data-view="idle"] .sheet-title { color: var(--lp-ink); font-weight: 640; }

body[data-view="idle"] .sheet-close { color: var(--lp-muted); }
body[data-view="idle"] .sheet-close:hover { color: var(--lp-ink); background: #fbe7ee; }

body[data-view="idle"] .sheet-divider { background: var(--lp-line); }

body[data-view="idle"] .field-label { color: #725765; }
body[data-view="idle"] .field-help { color: var(--lp-quiet); }
body[data-view="idle"] .field-error { color: #a2274a; }
body[data-view="idle"] .sheet-note { color: var(--lp-quiet); }

body[data-view="idle"] .sheet input[type="text"],
body[data-view="idle"] .sheet input[type="password"],
body[data-view="idle"] .sheet input[type="url"],
body[data-view="idle"] .sheet select {
  background-color: #fff;
  color: var(--lp-ink);
  border-color: #ead5de;
}

body[data-view="idle"] .sheet input::placeholder { color: #a98e9a; opacity: 1; }

body[data-view="idle"] .sheet input:hover,
body[data-view="idle"] .sheet select:hover { border-color: #e2c2ce; }

body[data-view="idle"] .sheet input:focus,
body[data-view="idle"] .sheet select:focus {
  border-color: var(--lp-pink);
  box-shadow: 0 0 0 3px rgba(244, 114, 158, 0.14);
  outline: none;
}

body[data-view="idle"] .sheet select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.5 8 10.5l4-4' fill='none' stroke='%236c5762' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body[data-view="idle"] .sheet select option { background: #fff; color: var(--lp-ink); }

body[data-view="idle"] .sheet #llm-base[readonly] { color: var(--lp-muted); }
body[data-view="idle"] .sheet #llm-base[readonly]:hover { border-color: #ead5de; }
body[data-view="idle"] .sheet #llm-base[readonly]:focus { border-color: var(--lp-pink); }

body[data-view="idle"] .sheet .field-link { color: #b01e52; }
body[data-view="idle"] .sheet .field-link:hover { color: var(--lp-rose); }

body[data-view="idle"] .sheet .tag {
  background: #fbe7ee;
  border-color: #f3cfdc;
  color: #6b3b4c;
}

body[data-view="idle"] .sheet .tag-free {
  background: rgba(39, 138, 94, 0.09);
  border-color: rgba(39, 138, 94, 0.22);
  color: #1f7a55;
}

body[data-view="idle"] .sheet .field-ok {
  background: rgba(39, 138, 94, 0.08);
  border-color: rgba(39, 138, 94, 0.22);
  color: #1f6d4d;
}

body[data-view="idle"] .sheet .btn-ghost {
  color: #6b5560;
  border-color: #ead7e0;
  background: transparent;
}

body[data-view="idle"] .sheet .btn-ghost:hover {
  color: var(--lp-ink);
  background: #fbe7ee;
  border-color: #ecc8d6;
}

body[data-view="idle"] .sheet .btn-danger { color: #b3355e; border-color: rgba(179, 53, 94, 0.24); }
body[data-view="idle"] .sheet .btn-danger:hover { color: #8f1438; background: #fbe7ee; }

body[data-view="idle"] .sheet .btn-primary {
  background: var(--lp-pink-soft);
  color: #3b0f22;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: inset 0 -12px 18px -12px rgba(236, 64, 122, 0.55), 0 6px 14px -10px rgba(236, 64, 122, 0.4);
}

body[data-view="idle"] .sheet .btn-primary:hover:not(:disabled) { filter: brightness(1.04); }

body[data-view="idle"] .sheet .sheet-foot { border-top-color: var(--lp-line); }

/* ── Motion ───────────────────────────────────────────────────────────────── */

@keyframes lp-blur-rise {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes lp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.js [data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px);
  transition:
    opacity 0.85s var(--lp-ease),
    transform 0.85s var(--lp-ease),
    filter 0.85s var(--lp-ease);
  transition-delay: calc(var(--i, 0) * 85ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* ── Pointer polish ───────────────────────────────────────────────────────── */

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-5px);
    border-color: #fff;
    box-shadow:
      0 38px 76px -50px rgba(73, 24, 46, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.98);
  }

  .feature-card:hover .step-num,
  .step:hover .step-num { color: #e7a2b9; }

  .guide-card:hover .guide-frame {
    transform: translateY(-5px);
    box-shadow:
      0 42px 80px -50px rgba(60, 23, 39, 0.54),
      0 1px 0 rgba(255, 255, 255, 0.94) inset;
  }

  .format-grid li:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.82);
    border-color: #fff;
  }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1120px) {
  .nav-links { gap: 0; }
  .nav-links a { padding-inline: 10px; font-size: 13px; }
  .feature-grid { gap: 16px; }
  .feature-card { padding: 28px; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .lp-head-split { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .guide-grid {
    display: flex;
    gap: 18px;
    margin-inline: -32px;
    padding: 0 32px 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .guide-grid::-webkit-scrollbar { display: none; }
  .guide-card {
    flex: 0 0 min(76vw, 390px);
    scroll-snap-align: center;
  }
  .export-panel { grid-template-columns: 1fr; gap: 34px; }
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card h3 { font-size: 22px; }
  .step-grid { grid-template-columns: 1fr; }
  .step { padding: 28px 0 0; }
  .step + .step {
    margin-top: 28px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--lp-line);
  }
  .step-top { margin-bottom: 20px; }
  .step p { max-width: 54ch; }
}

@media (max-width: 760px) {
  body[data-view="idle"] .appbar {
    height: 72px;
    padding: 0 14px;
  }

  body[data-view="idle"] .appbar-inner {
    width: 100%;
    height: 56px;
    margin-top: 8px;
    padding: 0 6px 0 14px;
    gap: 8px;
  }

  body[data-view="idle"] .brand-name { font-size: 16px; }
  body[data-view="idle"] .brand-mark { width: 25px; height: 25px; }

  .lp-nav-cta {
    height: 40px;
    padding: 0 16px;
    font-size: 12.5px;
    border-width: 3px;
  }

  body[data-view="idle"] .hero {
    min-height: 100svh;
    padding: 112px 18px 46px;
  }

  .hero-scene { background-position: 52% 36%; }

  .hero-scene::after {
    background:
      radial-gradient(90% 46% at 50% 4%, rgba(255, 255, 255, 0.28), transparent 72%),
      linear-gradient(to bottom, transparent 72%, #fdf6f9 100%);
  }

  .hero-eyebrow {
    padding: 6px 12px 6px 10px;
    font-size: 11.5px;
  }

  body[data-view="idle"] .hero-title {
    font-size: clamp(39px, 10.6vw, 58px);
    line-height: 1.03;
    letter-spacing: -0.043em;
  }

  .hero-sub {
    max-width: 34ch;
    font-size: 16px;
    line-height: 1.52;
  }

  body[data-view="idle"] .hero-inner {
    gap: 12px;
    margin-top: 27px;
  }

  body[data-view="idle"] .hero-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body[data-view="idle"] .search-pill {
    height: 52px;
    padding-left: 16px;
  }

  body[data-view="idle"] .pill-fields input,
  body[data-view="idle"] .pill-fields input:focus,
  body[data-view="idle"] .pill-fields input:focus-visible {
    height: 50px;
    font-size: 15.5px;
  }

  body[data-view="idle"] .pill-select-trigger {
    height: 38px;
    padding-inline: 10px;
    font-size: 12.5px;
  }

  body[data-view="idle"] .hero-cta {
    width: 100%;
    min-width: 0;
    height: 52px;
    font-size: 14px;
  }

  body[data-view="idle"] .hero-under {
    flex-direction: column;
    gap: 7px;
  }

  body[data-view="idle"] .hero-note {
    max-width: 34ch;
    font-size: 12px;
  }

  .hero-how { font-size: 12px; }

  .lp-section {
    padding: 76px 20px;
  }

  .lp-head { gap: 13px; margin-bottom: 38px; }
  .lp-title { font-size: clamp(34px, 9vw, 48px); }
  .lp-lede { font-size: 15.5px; }

  .feature-card { padding: 26px; border-radius: 24px; }

  .guide-grid {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .guide-card { flex-basis: min(82vw, 360px); }

  .export-panel {
    padding: 30px 22px;
    border-radius: 30px;
  }
  .export-copy .lp-title { font-size: clamp(32px, 8.4vw, 44px); }

  .format-grid { grid-template-columns: 1fr; }
  .format-grid li:last-child { grid-column: auto; }

  .final-orb-a { width: 320px; height: 320px; }
  .final-orb-b { width: 360px; height: 360px; }

  .final-card {
    padding: 50px 22px;
    border-radius: 32px;
    gap: 17px;
  }
  .final-card .lp-title { font-size: clamp(35px, 9.3vw, 50px); }
  .lp-button { width: 100%; max-width: 320px; }

  .lp-footer-inner { padding: 34px 20px 24px; }
  .lp-footer-top { align-items: flex-start; }
  .lp-footer-links { order: 3; width: 100%; gap: 6px 18px; }
  .lp-footer-base { margin-top: 26px; }
}

@media (max-width: 440px) {
  body[data-view="idle"] .brand-name { font-size: 15.5px; }
  .lp-nav-cta { padding: 0 14px; }
  body[data-view="idle"] .hero-title { font-size: clamp(36px, 11.4vw, 46px); }
  .hero-sub { font-size: 15.5px; }
  .hero-eyebrow { font-size: 11px; }
  .sample-source { display: none; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html:has(body[data-view="idle"]) { scroll-behavior: auto; }

  .hero-eyebrow,
  body[data-view="idle"] .hero-title,
  .hero-sub,
  body[data-view="idle"] .hero-inner,
  body[data-view="idle"] .appbar-inner {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .feature-card,
  .guide-frame,
  .format-grid li,
  .lp-button,
  .lp-nav-cta,
  .lp-social a {
    transition: none !important;
  }

  .feature-card:hover,
  .guide-card:hover .guide-frame,
  .lp-button:hover,
  .lp-nav-cta:hover {
    transform: none !important;
  }
}
