/* =========================================================================
   PhotoLess — marketing site
   Palette and feeling are derived directly from the app (src/theme.ts):
   a calm, premium "burgundy-on-cream" world. Nothing here should read like an
   aggressive cleaner; it is quiet, editorial, and trustworthy.
   ========================================================================= */

:root {
  /* Colours — straight from the app token set */
  --bg: #EDE8D0;          /* warm cream */
  --surface: #FFFFFF;
  --surface-alt: #E4DEC8; /* a cream-tinted card, lighter than the app's #c0b9a3 */
  --border: #DED7C2;
  --border-strong: #cdc4ac;

  --text: #2A2420;
  --muted: #6E665A;
  --faint: #A39B8C;

  --burgundy: #7F1734;    /* brand + primary CTA */
  --burgundy-soft: #F3E3E8;
  --wine: #5E0F26;        /* deepest red — final/confirm only */

  --keep: #013e37;        /* forest green — "Keep" */
  --keep-soft: #E1EDE2;
  --mark: #3F6F93;        /* dusty blue — "Review to Delete" (never red) */
  --mark-soft: #DCEAF4;
  --gold: #CE9C34;        /* warm amber — "Pass" */
  --accent: #A4C8E1;      /* trust / privacy sky */

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(42, 36, 32, 0.06), 0 4px 14px rgba(42, 36, 32, 0.05);
  --shadow-md: 0 10px 30px rgba(42, 36, 32, 0.10), 0 2px 6px rgba(42, 36, 32, 0.06);
  --shadow-lg: 0 24px 60px rgba(42, 36, 32, 0.18);

  --maxw: 1120px;
  --font-brand: "DM Serif Display", serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
}
/* Flex column + min-height pins the footer to the bottom so a short page never
   leaves a bare strip of canvas below it; explicit html background removes any
   white the browser would otherwise paint behind the page. */
body {
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* The hero swipe card is the one motion we keep under reduced-motion: a card
     that teleports off-screen reads as a glitch, not a calmer experience. The
     slide-off is the whole point of the demo, so let its transform animate.
     Higher specificity (.card) beats the * !important reset above. */
  .card { transition-duration: 0.35s !important; }
  .card.gone { transition-duration: 0.5s !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { background: var(--bg); }

/* Section colour rhythm — as you scroll, the ground shifts tone so the page
   reads as distinct chapters rather than one flat cream sheet. Bands run
   full-bleed; the radial accents below are scoped to their section (not fixed)
   so each one moves with its content. */
.band-airy   { background: #FAF7EF; }                 /* near-white cream — airy */
.band-cream  { background: var(--bg); }               /* base warm cream */
.band-warm   { background: linear-gradient(180deg, #FAF7EF 0%, #E9E1C7 100%); } /* deepens on scroll */
.band-cool   { background: linear-gradient(180deg, #EDE8D0 0%, #E7EDEE 100%); } /* warms into a calm sky */

a { color: inherit; text-decoration: none; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section rhythm ---------------------------------------------------------- */
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--burgundy);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  /* Fraunces optical sizing — let large headings use the display optical axis */
  font-optical-sizing: auto;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.2; }

.brand-wordmark {
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0;
}
.brand-photo { color: var(--keep); }
.brand-less { color: var(--burgundy); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 52ch;
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 232, 208, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(237, 232, 208, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
/* Full wordmark logo (cream-backed, blends into the header) */
.brand .logo {
  height: 52px;
  width: auto;
  display: block;
}
@media (max-width: 520px) { .brand .logo { height: 40px; } }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
/* The store link in the nav is a button, not a nav link — win the cascade back
   from `.nav-links a` (which is more specific than `.pill-store` alone). */
.nav-links a.pill-store,
.nav-links a.pill-store:hover { color: #fff; }

/* "Coming soon" availability pill — honest, no fake App Store link yet */
.pill-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--burgundy);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: default;
}
.pill-soon .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(206, 156, 52, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(206, 156, 52, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(206, 156, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(206, 156, 52, 0); }
}

/* App Store links — the app is live, so every former "coming soon" pill is now a
   real link. Two sizes: `.pill-store` in the nav (compact, burgundy, matches the
   old pill's weight) and `.btn-store` for the hero / closing CTA (the black
   Apple-badge look, with the Apple mark). */
.pill-store,
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.pill-store {
  padding: 9px 16px;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.9rem;
}
.btn-store {
  padding: 12px 22px;
  background: #000;
  color: #fff;
  font-size: 1rem;
}
.pill-store:hover,
.btn-store:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md, 0 10px 24px rgba(0, 0, 0, 0.18));
}
.pill-store .apple-mark,
.btn-store .apple-mark {
  width: 1em;
  height: 1.15em;
  flex: none;
  /* The glyph's optical centre sits a touch high next to text. */
  margin-top: -2px;
}

/* Footer social row — Instagram / TikTok, quiet until hovered. */
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.footer-social a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  color: #fff;
  transform: translateY(-1px);
}
.footer-social svg { width: 20px; height: 20px; display: block; }

.nav-toggle { display: none; }

/* Language picker — a native select so it works everywhere, dressed to match
   the nav links rather than the OS. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}
.lang-switch:hover { color: var(--text); }
.lang-switch svg { width: 17px; height: 17px; flex: none; }
.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 0 2px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
}
.lang-switch select:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 4px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   Right-to-left (Arabic)
   The layout is flex/grid and mostly mirrors itself; these are the places
   that hard-code a direction.
   ========================================================================= */
[dir="rtl"] .hero-copy,
[dir="rtl"] .doc-wrap { text-align: right; }
[dir="rtl"] .back svg { transform: scaleX(-1); }
[dir="rtl"] .tag.keep::after,
[dir="rtl"] .tag.mark::before { transform: scaleX(-1); }
[dir="rtl"] blockquote { text-align: right; }
[dir="rtl"] .doc-wrap ul { padding-right: 20px; padding-left: 0; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  min-height: calc(100svh - 84px);
  padding: 42px 0 72px;
  position: relative;
  display: grid;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(127, 23, 52, 0.08), transparent 60%),
    radial-gradient(760px 420px at -6% 8%, rgba(63, 111, 147, 0.07), transparent 55%);
}
.hero > .wrap { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(4.1rem, 9vw, 6.8rem);
  font-weight: 400;
  letter-spacing: 0;
}
.hero h1 .accent-word {
  font-style: italic;
  color: var(--burgundy);
}
.hero .lead { margin: 22px 0 0; }
.hero .lead strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.hero-proof li {
  border: 1px solid rgba(127, 23, 52, 0.18);
  background: rgba(255, 255, 255, 0.36);
  color: var(--muted);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 650;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  font-weight: 650;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--burgundy);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); }

.hero-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
}
.demo-phone {
  width: min(410px, 100%);
  padding: 18px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(250, 247, 239, 0.88));
  border: 1px solid rgba(205, 196, 172, 0.82);
  box-shadow: 0 28px 70px rgba(42, 36, 32, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.demo-topbar,
.demo-decision-row {
  align-items: center;
  gap: 12px;
}
.demo-topbar {
  display: flex;
  justify-content: space-between;
}
.demo-topbar {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 750;
  padding: 4px 4px 12px;
}
.demo-topbar strong {
  color: var(--keep);
  background: var(--keep-soft);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 0.76rem;
}
.demo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.demo-stats span {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  padding: 9px 8px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.15;
}
.demo-stats b {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.1;
}
.demo-decision-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}
.decision-chip {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  text-align: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.52);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.08;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.decision-chip:hover { transform: translateY(-1px); }
.decision-chip.decision-review { color: var(--mark); background: var(--mark-soft); border-color: rgba(63, 111, 147, 0.18); }
.decision-chip.decision-keep { color: var(--keep); background: var(--keep-soft); border-color: rgba(1, 62, 55, 0.14); }

/* ---- The signature: a live, draggable swipe card stack ------------------ */
.swipe-stage {
  position: relative;
  height: 398px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}
.swipe-stage .glow {
  position: absolute;
  inset: 13% 14%;
  background: radial-gradient(closest-side, rgba(127, 23, 52, 0.10), transparent);
  filter: blur(20px);
}
.card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.card.dragging { transition: none; cursor: grabbing; }
.card.gone { transition: transform 0.5s cubic-bezier(0.55, 0, 0.4, 1); }

/* "Memory" placeholder — we cannot show a real photo, because only you ever
   see yours. A soft gradient + a quiet caption stands in for the moment. */
.card .photo {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px 82px;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
}
/* The PhotoLess character art fills the card; the gradient behind shows through
   any transparent edges and keeps the caption legible. */
.card .photo .shot {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98);
}
.card-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  padding: 10px 0;
  font-size: clamp(2.6rem, 10vw, 4rem);
  line-height: 1;
  text-shadow: 0 18px 34px rgba(42, 36, 32, 0.12);
}
.card .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(42, 36, 32, 0.16));
}
.card .caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 56px;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.card .caption small {
  display: block;
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.8rem;
  margin-top: 2px;
}
.card .meta {
  display: none;
}

/* Decision stamps that fade in as you drag */
.card .stamp {
  position: absolute;
  top: 26px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  z-index: 2;
}
.card .stamp.keep {
  right: 20px;
  color: #fff;
  background: var(--keep);
  border: 2px solid rgba(255,255,255,0.5);
  transform: rotate(8deg);
}
.card .stamp.del {
  left: 20px;
  color: #fff;
  background: var(--burgundy);
  border: 2px solid rgba(255,255,255,0.5);
  transform: rotate(-8deg);
}

.swipe-actions { display: none; }

.download-ready .swipe-actions,
.download-ready .demo-decision-row {
  opacity: 0;
  pointer-events: none;
}
.download-ready .swipe-stage {
  background: transparent;
  border-color: transparent;
}

.download-card {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 28px;
  text-align: center;
  color: var(--text);
  transform: none;
  animation: downloadCardIn 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.download-card:hover {
  transform: none;
}
.download-kicker {
  color: var(--burgundy);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.download-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  max-width: 100%;
  background: var(--bg);
  border-radius: 14px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border);
}
.download-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
}
.download-logo .brand-wordmark {
  font-size: 2.02rem;
  line-height: 1;
  white-space: nowrap;
}
.download-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 560;
  line-height: 1.08;
  color: var(--text);
}
.download-copy {
  max-width: 25ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}
.download-button {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(240px, 100%);
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: var(--burgundy);
  color: #fff;
  font-weight: 750;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}
@keyframes downloadCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.swipe-hint {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--faint);
  font-weight: 500;
  transition: opacity 0.3s ease;
}

/* =========================================================================
   Trust band (the four privacy reassurances — copy mirrors the app)
   ========================================================================= */
.trust .head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.trust .head .lead { margin: 16px auto 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trust-card .ic {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--keep-soft);
  color: var(--keep);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.trust-card .ic svg { width: 26px; height: 26px; }
.trust-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.trust-card p { color: var(--muted); font-size: 0.95rem; margin: 8px 0 0; }

.trust-foot {
  margin-top: 40px;
  text-align: center;
  color: var(--keep);
  font-weight: 600;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
}

/* =========================================================================
   How it works — a real 3-step sequence, so numbering carries meaning
   ========================================================================= */
.how .head { max-width: 560px; margin-bottom: 56px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--border-strong);
}
.step .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--burgundy);
  line-height: 1;
}
.step h3 { font-family: var(--font-body); font-weight: 700; margin: 14px 0 8px; font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.step .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.tag.keep { background: var(--keep-soft); color: var(--keep); }
.tag.mark { background: var(--mark-soft); color: var(--mark); }
.tag.wine { background: var(--burgundy-soft); color: var(--wine); }

/* =========================================================================
   Studio tools
   ========================================================================= */
.studio .head { max-width: 600px; margin-bottom: 48px; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool .thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
  overflow: hidden;
}
.tool .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.tool .body { padding: 20px 22px 24px; }
.tool h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.tool .badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.tool p { color: var(--muted); font-size: 0.93rem; margin: 8px 0 0; }

/* =========================================================================
   Value strip — a quick reassuring rhythm just under the hero
   ========================================================================= */
.strip { padding: 0; }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-item {
  background: var(--bg);
  padding: 26px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.strip-item .si {
  color: var(--burgundy);
  flex: 0 0 auto;
}
.strip-item .si svg { width: 22px; height: 22px; }
.strip-item b { display: block; font-size: 1rem; color: var(--text); }
.strip-item span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 820px) { .strip-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .strip-inner { grid-template-columns: 1fr; } }

/* =========================================================================
   FAQ — real content, plain and scannable
   ========================================================================= */
.faq .head { max-width: 560px; margin-bottom: 44px; }
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
}
.faq-item {
  border-top: 1px solid var(--border-strong);
  padding-top: 20px;
}
.faq-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  gap: 10px;
}
.faq-item h3::before {
  content: "?";
  font-family: var(--font-display);
  color: var(--burgundy);
  font-weight: 600;
}
.faq-item p { color: var(--muted); font-size: 0.96rem; margin: 8px 0 0; }
@media (max-width: 720px) { .faq-list { grid-template-columns: 1fr; } }

/* =========================================================================
   Testimonials — early-tester voices
   ========================================================================= */
.reviews .head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.reviews .head .lead { margin: 16px auto 0; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review .stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 16px; }
.review .stars svg { width: 18px; height: 18px; }
.review blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.5;
  font-weight: 440;
  color: var(--text);
}
.review .who {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.review .avatar {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.review .who b { display: block; font-size: 0.95rem; color: var(--text); }
.review .who span { font-size: 0.82rem; color: var(--muted); }
.reviews .note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--faint);
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
}

/* =========================================================================
   Closing CTA
   ========================================================================= */
.closing { text-align: center; }
.closing-card {
  background: var(--burgundy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 72px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.closing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 360px at 15% -20%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(600px 340px at 110% 120%, rgba(164,200,225,0.18), transparent 55%);
}
.closing-card > * { position: relative; }
.closing-card h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.closing-card .italic { font-style: italic; color: var(--accent); }
.closing-card p { color: rgba(255,255,255,0.82); max-width: 46ch; margin: 18px auto 0; }
.closing-card .pill-soon {
  margin-top: 32px;
  background: #fff;
  color: var(--burgundy);
  padding: 14px 28px;
  font-size: 1rem;
}
.closing-card .pill-soon .dot { background: var(--gold); }
/* On the dark closing card the black badge would disappear — invert it. */
.closing-card .btn-store {
  margin-top: 32px;
  background: #fff;
  color: var(--burgundy);
  padding: 14px 28px;
}

/* =========================================================================
   Footer
   ========================================================================= */
/* Grounded, dark wine footer — a confident full stop after the cream page */
.site-footer {
  padding: 64px 0 44px;
  background: var(--wine);
  color: rgba(255, 255, 255, 0.72);
}
.site-footer .brand { color: #fff; }
.site-footer .brand .logo {
  /* the cream-backed wordmark needs a soft plate to sit on dark wine */
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 12px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-top .brand { margin-bottom: 16px; }
.footer-tag { max-width: 32ch; font-size: 0.95rem; color: rgba(255, 255, 255, 0.66); }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 14px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================================
   Legal document pages (privacy)
   ========================================================================= */
.doc { padding: 32px 0 80px; }
.doc-wrap { max-width: 760px; }
.doc .back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-weight: 500; font-size: 0.92rem; margin-bottom: 28px;
}
.doc .back:hover { color: var(--burgundy); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.doc .updated { color: var(--faint); font-size: 0.9rem; margin-bottom: 8px; }
.doc .summary {
  background: var(--keep-soft);
  border: 1px solid #cfe0d1;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 32px 0;
  color: #1d3a2e;
}
.doc .summary strong { color: var(--keep); }
.doc h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.doc h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin: 28px 0 8px; }
.doc p, .doc li { color: #3c352e; font-size: 1.02rem; }
.doc p { margin: 0 0 16px; }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc a.inline { color: var(--burgundy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc .contact {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

/* =========================================================================
   Reveal-on-scroll (progressive enhancement; content shows even without JS)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 920px) {
  .hero {
    min-height: 0;
    padding: 24px 0 64px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 680px; }
  .demo-phone { width: min(390px, 100%); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { height: 72px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
  }
  .nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links.open .lang-switch { padding: 14px 0; }
  .nav-links.open .pill-soon { margin-top: 14px; justify-content: center; }
  .nav-links.open .pill-store {
    margin-top: 14px;
    justify-content: center;
    border-bottom: none;
    padding: 12px 16px;
  }
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--border-strong);
    border-radius: 12px; cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; color: var(--text); }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 18px; }
  .doc { padding-top: 20px; }
}
@media (max-width: 520px) {
  .trust-grid, .tools-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.45rem, 18vw, 4.6rem); }
  .hero .lead { font-size: 1.04rem; }
  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-proof li {
    padding: 7px 6px;
    text-align: center;
    font-size: 0.76rem;
    white-space: nowrap;
  }
  .demo-phone {
    width: 100%;
    padding: 14px;
    border-radius: 28px;
  }
  .demo-stats { gap: 6px; }
  .demo-stats span { padding: 8px 6px; font-size: 0.7rem; }
  .swipe-stage {
    height: 350px;
    border-radius: 0;
  }
  .card {
    width: 100%;
    height: 100%;
  }
  .card .caption { font-size: 0.86rem; }
  .card .caption small { font-size: 0.74rem; }
  .download-card {
    width: 100%;
    min-height: 0;
    padding: 28px 20px;
    gap: 10px;
  }
  .download-logo {
    padding: 7px 12px 7px 9px;
  }
  .download-mark {
    width: 34px;
    height: 34px;
  }
  .download-logo .brand-wordmark { font-size: 1.78rem; }
  .download-title { font-size: 1.25rem; }
  .download-copy { font-size: 0.82rem; }
  .download-button {
    min-height: 40px;
    font-size: 0.84rem;
  }
  .closing-card { padding: 48px 22px; }
  .hero-cta .btn, .hero-cta .pill-soon, .hero-cta .btn-store { width: 100%; justify-content: center; }
  .review blockquote { font-size: 1.05rem; }
}
