/* Cnap website: light, playful "Café Pop" theme matching the app (Theme.swift). */

:root {
  /* ---------- Brand palette: swap these for each app (match its Swift Theme/Palette) ---------- */
  --brand: #d23f67;        /* links, accent headline words, primary buttons */
  --brand-light: #f0a04b;  /* primary button gradient start */
  --brand-deep: #f2577a;   /* primary button gradient end */
  --brand-glow: #ff9bb3;   /* focus ring, soft glows */
  --accent: #7b61f0;       /* second accent for contrast words (.accent-2) */
  --rim: #ffc8a6;          /* default lifted-card rim (pastel of --brand) */
  --shadow-tint: #6b4430;  /* colored part of big shadows (dark --brand) */

  /* Backgrounds: pastel, light at the bottom, like the App Store screenshots. */
  --sky: #ffe9c7;          /* hero and doc-page top; also app.theme.color in site.js */
  --sky-2: #fff8ec;        /* page background; also app.theme.background */
  --mist: #fff1de;         /* how-it-works band, gallery end, final CTA */
  --sand: #ffe3ea;         /* warm end of the hero gradient */
  --meadow: #fcefdc;       /* privacy and facts bands */
  --night: #2a1a14;        /* footer and the privacy card */
  --night-2: #4a2e22;

  /* Ink */
  --ink: #2a1a14;          /* never pure black */
  --ink-2: #6b4f40;
  --ink-3: #9a7e6c;

  /* Fixed playful tones (feature icons, ticks) */
  --sun: #ffc94a;
  --sun-light: #ffe08a;
  --green: #2e9e7a;

  /* ---------- Shared ---------- */
  --card: #ffffff;
  --line: color-mix(in srgb, var(--ink) 8%, transparent);
  --shadow-sm: 0 2px 6px color-mix(in srgb, var(--ink) 6%, transparent), 0 8px 24px color-mix(in srgb, var(--brand) 8%, transparent);
  --shadow-lg: 0 10px 22px color-mix(in srgb, var(--ink) 10%, transparent), 0 40px 90px color-mix(in srgb, var(--shadow-tint) 22%, transparent);
  --radius: 28px;
  --radius-sm: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sky-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 3px; border-radius: 10px; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 10px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 12px; z-index: 100;
}
.skip-link:focus { left: 10px; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav-inner {
  position: relative;
  pointer-events: auto;
  width: min(var(--max), 100% - 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled .nav-inner, .nav.open .nav-inner { background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 12%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); flex: none; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2);
  font-weight: 700; font-size: 15px;
}
.nav-links a:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.menu-btn {
  display: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 17px; font-family: inherit;
  letter-spacing: -0.01em; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-deep));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover { box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-sm); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn-store { padding: 12px 22px 12px 18px; text-align: left; line-height: 1.1; }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store small { display: block; font-size: 11px; font-weight: 700; opacity: .85; letter-spacing: .02em; }
.btn-store span { font-size: 19px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: 130px 0 60px;
  background:
    radial-gradient(120% 70% at 85% 8%, color-mix(in srgb, var(--sun) 28%, transparent), transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, var(--mist) 48%, var(--sand) 100%);
  overflow: hidden;
  isolation: isolate;
}
#hero3d {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  display: block;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 30px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 14px; color: var(--ink-2);
}
.eyebrow b {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sun-light), var(--sun)); font-size: 14px;
}
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.hero h1 {
  font-size: clamp(42px, 6.2vw, 80px); font-weight: 900; margin: 22px 0 18px;
}
.accent { color: var(--brand); }
.accent-2 { color: var(--accent); }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 540px; margin: 0 0 30px; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--ink-2); font-weight: 700; font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Device + lifted cards ---------- */

.stage { position: relative; height: 660px; display: grid; place-items: center; }
.phone {
  position: relative;
  width: 300px; aspect-ratio: 1179 / 2556;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(145deg, #3b4652, #12171c 40%, #2a333c);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 4px; border-radius: 4px; background: #2a333c;
}
.phone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 64px 0 #2a333c; }
.phone::after { right: -3px; top: 28%; height: 13%; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 44px; }
.phone.small { width: 250px; padding: 9px; border-radius: 46px; }
.phone.small img { border-radius: 38px; }

/* A real UI card cropped from a capture, "popping out" of the phone, like the App Store screenshots. */
.lift {
  position: absolute; z-index: 2;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 0 0 6px var(--rim),
    0 0 0 7.5px rgba(255, 255, 255, 0.9) inset,
    0 10px 20px color-mix(in srgb, var(--ink) 12%, transparent),
    0 34px 70px color-mix(in srgb, var(--shadow-tint) 30%, transparent);
  overflow: hidden;
  will-change: transform;
}
.lift img { width: 100%; height: auto; }
.float { animation: float 6s ease-in-out infinite; }
.float.d1 { animation-delay: -2s; }
.float.d2 { animation-delay: -4s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
/* Hero composition: a big card over the top of the screen, a badge lower right, a strip lower left. */
.stage .lift.main { width: 360px; left: 50%; top: 96px; margin-left: -180px; }
.stage .lift.right { width: 340px; right: -6%; bottom: 120px; border-radius: 20px; }
.stage .lift.left { width: 330px; left: -9%; bottom: 46px; border-radius: 20px; }

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; font-size: 14px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 900; text-wrap: balance; }
.section-head p { font-size: 19px; color: var(--ink-2); font-weight: 600; margin: 18px auto 0; max-width: 620px; }

/* Features */
.features { background: linear-gradient(180deg, var(--sand) 0%, #ffffff 30%, #ffffff 100%); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 18px 44px color-mix(in srgb, var(--brand) 16%, transparent); }
.icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px;
  color: #fff; box-shadow: 0 8px 18px var(--glow, color-mix(in srgb, var(--brand) 30%, transparent));
}
.icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 23px; font-weight: 850; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-2); font-weight: 600; }
.i-brand { background: linear-gradient(135deg, var(--brand-glow), var(--brand)); --glow: color-mix(in srgb, var(--brand) 35%, transparent); }
.i-coral { background: linear-gradient(135deg, #ffa07d, #f2643f); --glow: rgba(242, 100, 63, .35); }
.i-green { background: linear-gradient(135deg, #3ad6a0, #0b8f6b); --glow: rgba(11, 143, 107, .35); }
.i-purple { background: linear-gradient(135deg, #a98af0, #7b4bd6); --glow: rgba(123, 75, 214, .35); }
.i-blue { background: linear-gradient(135deg, #6aa6ff, #2f6fdb); --glow: rgba(47, 111, 219, .35); }
.i-sun { background: linear-gradient(135deg, #ffd56b, #f0a500); --glow: rgba(240, 165, 0, .35); }
.i-pink { background: linear-gradient(135deg, #ff9ecb, #e0457b); --glow: rgba(224, 69, 123, .35); }

/* Spotlight rows */
.spotlight { background: #fff; padding-top: 30px; }
.spot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
  padding: 40px 0;
}
.spot + .spot { margin-top: 40px; }
.spot.reverse .spot-visual { order: 2; }
.spot-copy h2 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 900; margin-bottom: 18px; }
.spot-copy p { font-size: 19px; color: var(--ink-2); font-weight: 600; margin: 0 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ink); }
.ticks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.ticks li::after {
  content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px;
  background: var(--brand);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}
.spot-visual {
  position: relative; display: grid; place-items: center; min-height: 600px;
  border-radius: 40px;
  background: radial-gradient(58% 52% at 50% 50%, var(--tint, #cdeedd), transparent 75%);
}
.spot-visual .lift { position: absolute; }
/* Spotlight card positions: a tall card centered low (card-a), a wide strip near the bottom (card-b). */
.spot-visual .lift.card-a { width: 320px; top: 210px; }
.spot-visual .lift.card-b { width: 360px; bottom: 90px; border-radius: 20px; }

/* Screenshot gallery */
.screens { background: linear-gradient(180deg, #ffffff 0%, var(--mist) 100%); overflow: hidden; }
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2)) 40px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  margin: 0; flex: 0 0 auto; width: clamp(220px, 24vw, 290px); scroll-snap-align: center;
  border-radius: 30px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--shadow-tint) 16%, transparent);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.gallery figure:hover { transform: translateY(-8px) rotate(-.6deg); }
.gallery img { width: 100%; height: auto; object-fit: cover; }
.gallery-controls { display: flex; justify-content: center; gap: 12px; }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.round-btn:hover { transform: scale(1.08); }
.round-btn svg { width: 22px; height: 22px; }

/* How it works */
.how { background: var(--mist); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: #fff; border-radius: var(--radius); padding: 34px 30px 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light), var(--brand)); color: #fff;
  font-weight: 900; font-size: 20px; margin-bottom: 18px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 30%, transparent);
}
.step h3 { font-size: 22px; font-weight: 850; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-weight: 600; }

/* Optional "two looks" section (themes, worlds, light/dark). Each card sets --bg inline. */
.worlds { background: linear-gradient(180deg, var(--mist), var(--meadow)); }
.world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.world {
  position: relative; border-radius: 36px; padding: 34px 34px 0; overflow: hidden; min-height: 560px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg, linear-gradient(180deg, var(--sky), var(--sand)));
  box-shadow: var(--shadow-sm);
}
.world h3 { font-size: 34px; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.world h3 img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.world p { color: var(--ink-2); font-weight: 600; margin: 10px 0 28px; max-width: 380px; }
.world .phone { width: 270px; margin-bottom: -180px; }

/* Privacy band */
.privacy-section { background: var(--meadow); padding-top: 30px; }
.privacy-band {
  margin: 0 auto; border-radius: 40px; padding: 60px; color: #fff; text-align: center;
  background:
    radial-gradient(60% 120% at 10% 0%, color-mix(in srgb, var(--brand-glow) 45%, transparent), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
    linear-gradient(135deg, var(--night-2), var(--night));
  box-shadow: var(--shadow-lg);
}
.privacy-band h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 900; }
.privacy-band p { font-size: 19px; opacity: .85; font-weight: 600; max-width: 640px; margin: 16px auto 34px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 800;
}
.pill svg { width: 20px; height: 20px; }

/* At a glance */
.glance { background: linear-gradient(180deg, var(--meadow) 0%, #ffffff 55%); padding-bottom: 20px; }
.facts {
  max-width: 1000px; margin: 0 auto; padding: 10px 34px;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-weight: 900; color: var(--brand); }
.facts dd { margin: 0; color: var(--ink-2); font-weight: 600; }

/* FAQ */
.faq-section { background: #ffffff; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 4px 24px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 850; font-size: 19px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-size: 22px; font-weight: 700;
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); font-weight: 600; }
.faq-more { text-align: center; color: var(--ink-2); font-weight: 600; margin: 28px auto 0; max-width: 620px; }
.faq-more a { color: var(--brand); font-weight: 800; }

/* Final CTA */
.final {
  text-align: center; padding: 120px 0 140px;
  background:
    radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--brand-glow) 35%, transparent), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--mist));
}
.final img.app-icon { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 28px; box-shadow: 0 18px 40px color-mix(in srgb, var(--shadow-tint) 30%, transparent); }
.final h2, .final h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 900; }
.final p { font-size: 20px; color: var(--ink-2); font-weight: 600; margin: 18px 0 34px; }

/* 404 */
.not-found { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 40px 20px; }
.not-found .not-found-emoji { font-size: 96px; line-height: 1; margin: 0 0 18px; }

/* Footer */
.footer { background: var(--night); color: rgba(255, 255, 255, .78); padding: 50px 0; padding-bottom: max(50px, env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer .brand { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: rgba(255, 255, 255, .85); font-weight: 700; }
.footer small { display: block; margin-top: 8px; color: rgba(255, 255, 255, .55); font-weight: 600; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Document pages (privacy / support) ---------- */

.doc-hero {
  padding: 150px 0 50px; text-align: center;
  background: linear-gradient(180deg, var(--sky), var(--sky-2));
}
.doc-hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; }
.doc-hero p { color: var(--ink-2); font-weight: 600; font-size: 18px; margin: 14px 0 0; }
.doc { padding: 30px 0 110px; background: var(--sky-2); }
.doc-card {
  max-width: 820px; margin: 0 auto; background: #fff; border-radius: 32px; padding: 46px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.doc-card h2 { font-size: 24px; font-weight: 850; margin: 34px 0 8px; letter-spacing: -0.02em; }
.doc-card p, .doc-card li { color: var(--ink-2); font-weight: 600; }
.doc-card strong { color: var(--ink); }
.doc-card .faq-title { margin-top: 40px; margin-bottom: 18px; }
.summary-box { background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: 20px; padding: 20px 22px; color: var(--ink) !important; font-weight: 700 !important; }
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(135deg, var(--mist), var(--sand)); border-radius: 26px; padding: 26px 28px; margin-bottom: 28px;
}
.contact-card h2 { margin: 0 0 4px; font-size: 24px; }
.contact-card p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-inner, .spot, .world-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .stage { height: 620px; margin-top: 10px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .spot.reverse .spot-visual { order: 0; }
  .spot { gap: 30px; text-align: left; }
}

@media (max-width: 720px) {
  .menu-btn { display: grid; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 10px; border-radius: 26px;
    background: #fff; border: 1px solid var(--line);
    box-shadow: 0 18px 44px color-mix(in srgb, var(--ink) 16%, transparent);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 18px; font-size: 17px; color: var(--ink); border-radius: 18px; }

  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head p, .spot-copy p { font-size: 17px; }
  .stage { height: 600px; }
  .stage .phone { width: 262px; }
  .stage .lift.main { width: 296px; margin-left: -148px; top: 80px; }
  .stage .lift.right { width: 268px; right: 0; bottom: 170px; border-radius: 16px; }
  .stage .lift.left { width: 250px; left: 0; bottom: 70px; border-radius: 16px; }
  .lift { box-shadow: 0 0 0 5px var(--rim), 0 8px 16px color-mix(in srgb, var(--ink) 12%, transparent), 0 24px 50px color-mix(in srgb, var(--shadow-tint) 28%, transparent); }
  /* Smaller phone and card instead of scaling the block (a transform would fight .reveal). */
  .spot-visual { min-height: 0; padding: 10px 0 30px; }
  .spot-visual .phone.small { width: 230px; padding: 8px; border-radius: 42px; }
  .spot-visual .phone.small img { border-radius: 35px; }
  .spot-visual .lift.card-a { width: 290px; top: auto; bottom: 20px; }
  .spot-visual .lift.card-b { width: min(320px, 100%); bottom: 70px; border-radius: 16px; }
  .privacy-band { padding: 44px 22px; border-radius: 30px; }
  .doc-hero { padding: 130px 0 40px; }
  .doc-card { padding: 30px 22px; border-radius: 26px; }
  .contact-card { padding: 22px; }
  .contact-card .btn { width: 100%; font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
  .world { min-height: 500px; padding: 28px 22px 0; }
  .faq details { padding: 2px 18px; }
  .faq summary { font-size: 17px; }
  .facts { grid-template-columns: 1fr; padding: 6px 22px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .facts > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .final { padding: 90px 0 110px; }
}

@media (max-width: 420px) {
  .nav-inner { gap: 8px; padding: 8px 8px 8px 12px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .btn-small { padding: 9px 14px; font-size: 14px; }
  .menu-btn { width: 40px; height: 40px; }
  .stage { height: 560px; }
  .stage .phone { width: 240px; }
  .stage .lift.main { width: 272px; margin-left: -136px; top: 72px; }
  .stage .lift.right { width: 236px; bottom: 150px; }
  .stage .lift.left { width: 226px; bottom: 60px; }
  .btn-store { width: 100%; max-width: 320px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Cnap: emoji badge in the Coffee Cards headings (instead of an app icon) */
.world h3 .card-dot {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 26px; background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

/* Cnap: the stamped polaroid is tall, so it sits small at the lower right and the selfie bubble stays visible. */
.spot-visual .lift.card-a.stamped { width: 230px; top: auto; bottom: 34px; left: calc(50% + 30px); rotate: 4deg; }
@media (max-width: 720px) {
  .spot-visual .lift.card-a.stamped { width: 170px; bottom: 16px; left: auto; right: 4px; }
}
