/* ============================================================
   Spieglein Spieglein — Web
   ============================================================ */

:root {
  /* Color — OKLCH, cool platinum neutrals + subtle champagne accent */
  --bg:           oklch(0.155 0.004 250);
  --bg-deep:      oklch(0.115 0.004 250);
  --bg-elevated:  oklch(0.215 0.005 250);
  --line:         oklch(0.30 0.006 250);
  --line-strong:  oklch(0.42 0.008 250);
  --ink:          oklch(0.97 0.003 250);
  --ink-muted:    oklch(0.78 0.006 250);
  --ink-dim:      oklch(0.55 0.008 250);
  /* Accent — pewter/champagne, deliberately desaturated so it whispers, not shouts */
  --bronze:       oklch(0.74 0.022 90);
  --bronze-warm:  oklch(0.86 0.035 92);

  /* Type */
  --serif:  'Fraunces', 'Cormorant Garamond', 'Iowan Old Style', 'Times New Roman', serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.78rem + 0.18vw, 0.92rem);
  --step-0:  clamp(0.98rem, 0.94rem + 0.22vw, 1.08rem);
  --step-1:  clamp(1.18rem, 1.10rem + 0.40vw, 1.38rem);
  --step-2:  clamp(1.45rem, 1.28rem + 0.85vw, 1.90rem);
  --step-3:  clamp(1.90rem, 1.55rem + 1.75vw, 2.85rem);
  --step-4:  clamp(2.55rem, 1.95rem + 3.00vw, 4.10rem);
  --step-5:  clamp(3.30rem, 2.30rem + 5.00vw, 6.50rem);

  /* Layout */
  --gutter: clamp(1.25rem, 1rem + 1.25vw, 2rem);
  --content-w: 68rem;
  --prose-w: 38rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 220ms var(--ease-out);
}
a:hover { color: var(--bronze-warm); }

::selection {
  background: var(--bronze);
  color: var(--bg-deep);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--bronze-warm);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   Atmospheric backdrop — fluid marble glow
   ============================================================ */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.atmosphere::before,
.atmosphere::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  mix-blend-mode: screen;
}
.atmosphere::before {
  top: -20vh;
  right: -10vw;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle at 30% 30%, oklch(0.62 0.018 240 / 0.45), transparent 65%);
}
.atmosphere::after {
  bottom: -30vh;
  left: -20vw;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle at 60% 40%, oklch(0.50 0.012 250 / 0.45), transparent 70%);
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 8vh, 7rem); }

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line) 20%,
    var(--line-strong) 50%,
    var(--line) 80%,
    transparent
  );
  border: 0;
  margin: 0;
}

/* ============================================================
   Typography
   ============================================================ */

.display {
  font-family: var(--serif);
  font-weight: 350;
  font-style: normal;
  font-size: var(--step-5);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.display em {
  font-style: italic;
  font-weight: 320;
  color: var(--bronze-warm);
}

.h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0;
  font-variation-settings: "opsz" 100;
}
.h2 em { font-style: italic; color: var(--bronze-warm); font-weight: 340; }

.h3 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  font-variation-settings: "opsz" 36;
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1rem;
}

.lead {
  font-family: var(--sans);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-muted);
  font-weight: 380;
  max-width: 36ch;
  margin: 0;
}

.prose {
  max-width: var(--prose-w);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-muted);
}
.prose p { margin: 0 0 1.2em; }
.prose h2 { color: var(--ink); margin-top: 2.5em; margin-bottom: 0.6em; }
.prose h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
  letter-spacing: -0.005em;
}
.prose a { color: var(--bronze-warm); border-bottom: 1px solid var(--line-strong); }
.prose a:hover { color: var(--ink); border-color: var(--bronze); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .todo {
  background: oklch(0.30 0.02 250 / 0.35);
  padding: 0.15em 0.45em;
  border-radius: 2px;
  color: var(--bronze-warm);
  font-style: italic;
}

/* ============================================================
   Top nav
   ============================================================ */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-block: 1.5rem;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-weight: 420;
  font-size: var(--step-0);
  letter-spacing: 0.02em;
}
.nav-mark img { width: 32px; height: 32px; border-radius: 6px; }
.nav-mark span { opacity: 0.9; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(7rem, 14vh, 11rem) 0 clamp(3rem, 6vh, 5rem);
  text-align: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vh, 2.4rem);
}
.hero-icon {
  width: clamp(96px, 12vw, 148px);
  height: clamp(96px, 12vw, 148px);
  border-radius: clamp(22px, 2.7vw, 34px);
  box-shadow:
    0 30px 60px -20px oklch(0.05 0 0 / 0.7),
    0 0 0 1px oklch(0.5 0.03 65 / 0.18) inset;
  overflow: hidden;
}
.hero-icon img { width: 100%; height: 100%; object-fit: cover; }

.hero-title {
  max-width: 18ch;
}
.hero-subline {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: var(--step-1);
  line-height: 1.45;
  font-weight: 380;
}

.hero-stores {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: cue 2.4s var(--ease-out-soft) infinite;
}
@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ============================================================
   Store badges (CTA)
   ============================================================ */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.3rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg-deep);
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  transition: transform 280ms var(--ease-out), background 280ms var(--ease-out);
  position: relative;
}
.store-badge:hover {
  transform: translateY(-2px);
  background: var(--bronze-warm);
  color: var(--bg-deep);
}
.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.store-badge-top {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  line-height: 1;
  margin-bottom: 3px;
}
.store-badge-main {
  display: block;
  font-family: var(--serif);
  font-weight: 420;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.store-badge.is-placeholder {
  opacity: 0.55;
  cursor: not-allowed;
}
.store-badge.is-placeholder:hover {
  transform: none;
  background: var(--ink);
  color: var(--bg-deep);
}

/* ============================================================
   Gallery — AppStore-style swipe
   ============================================================ */

.gallery {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 6vh, 5rem) clamp(4rem, 8vh, 6rem);
}
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-inline: var(--gutter);
  max-width: var(--content-w);
  margin: 0 auto 2.5rem;
}
.gallery-head-text { max-width: 32rem; }
.gallery-head-text .h2 { margin-top: 0.4rem; }

.gallery-controls {
  display: flex;
  gap: 0.6rem;
}
.gctrl {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out), color 220ms var(--ease-out);
}
.gctrl:hover { background: var(--bronze-warm); border-color: var(--bronze-warm); color: var(--bg-deep); }
.gctrl:disabled { opacity: 0.3; cursor: default; }
.gctrl:disabled:hover { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.gctrl svg { width: 18px; height: 18px; }

.gallery-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem var(--gutter) 2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: var(--gutter);
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-card {
  flex: 0 0 auto;
  margin: 0;
  width: clamp(220px, 30vw, 320px);
  aspect-ratio: 1290 / 2796;
  border-radius: clamp(22px, 2.3vw, 32px);
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  background: var(--bg-elevated);
  box-shadow:
    0 24px 60px -28px oklch(0.05 0 0 / 0.9),
    0 0 0 1px oklch(0.5 0.03 65 / 0.12) inset;
  transition: transform 600ms var(--ease-out-soft);
}
.gallery-card:hover {
  transform: translateY(-4px);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
}
.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 220ms var(--ease-out), width 320ms var(--ease-out);
}
.gallery-dot.is-active {
  background: var(--bronze-warm);
  width: 22px;
  border-radius: 3px;
}

/* ============================================================
   Features (USP trio)
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature {
  padding: clamp(2rem, 4vh, 3rem) clamp(1.4rem, 3vw, 2.2rem);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.feature + .feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--line);
}
.feature-num {
  font-family: var(--serif);
  font-weight: 360;
  font-style: italic;
  font-size: var(--step-2);
  color: var(--bronze-warm);
  line-height: 1;
  font-variation-settings: "opsz" 72;
}
.feature .h3 { color: var(--ink); }
.feature p {
  color: var(--ink-muted);
  font-size: var(--step-0);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Founders / Trust strip
   ============================================================ */

.founders {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.founders-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: var(--step-3);
  line-height: 1.18;
  letter-spacing: -0.012em;
  max-width: 24ch;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 72;
}
.founders-quote::before,
.founders-quote::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--bronze);
  margin: 1.2rem auto;
}
.founders-byline {
  font-family: var(--sans);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.founders-byline strong { color: var(--ink-muted); font-weight: 500; }

/* ============================================================
   Pricing CTA
   ============================================================ */

.pricing {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-block: clamp(5rem, 10vh, 8rem);
}
.pricing-price {
  font-family: var(--serif);
  font-weight: 320;
  font-size: var(--step-5);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bronze-warm);
  font-variation-settings: "opsz" 144;
  margin: 0;
}
.pricing-price .sup {
  font-size: 0.4em;
  vertical-align: super;
  margin-left: 0.05em;
  color: var(--ink-muted);
}
.pricing-headline {
  font-family: var(--serif);
  font-weight: 380;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin: 0;
}
.pricing-sub {
  color: var(--ink-muted);
  max-width: 38ch;
  font-size: var(--step-0);
  margin: 0;
}
.pricing-stores {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ============================================================
   Page header (Legal pages)
   ============================================================ */

.page-header {
  padding-block: clamp(7rem, 14vh, 10rem) clamp(2rem, 5vh, 4rem);
}
.page-header .h2 { max-width: 18ch; }
.page-header .eyebrow { color: var(--bronze); }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  margin-top: 4rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: var(--step-0);
  font-weight: 420;
}
.footer-mark img { width: 36px; height: 36px; border-radius: 7px; }
.footer-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.footer-links a { transition: color 220ms var(--ease-out); }
.footer-meta {
  font-size: var(--step--1);
  color: var(--ink-dim);
}

/* ============================================================
   Entrance animations
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 900ms var(--ease-out-soft), transform 900ms var(--ease-out-soft);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Responsive tweaks
   ============================================================ */

@media (max-width: 640px) {
  .hero { min-height: auto; padding-top: 7rem; }
  .gallery-head { align-items: flex-start; }
  .gallery-controls { display: none; }
  .gallery-card { width: 78vw; }
  .feature + .feature::before { display: none; }
  .feature + .feature { border-top: 1px solid var(--line); }
}
