/*
 * Kept - kept.film
 *
 * Tokens mirror mobile/src/theme.ts so the site and the app read as one
 * thing. Pure black, white, Playfair for display, Inter for everything else,
 * gold exactly once.
 *
 * No framework, no build step. The phone mockups are CSS, not screenshots,
 * so they stay sharp at any density and cost nothing to load.
 */

:root {
  --bg: #000;
  --surface: #0e0e0e;
  --surface-raised: #161616;
  --surface-pressed: #202020;
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.56);
  --text-faint: rgba(255, 255, 255, 0.32);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --gold: #c4a44a;
  --gold-dim: rgba(196, 164, 74, 0.1);
  --gold-border: rgba(196, 164, 74, 0.28);

  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max: 1120px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.025em;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-muted); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-secondary { background: var(--surface-raised); color: var(--text); border-color: var(--border); }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* --- Nav ------------------------------------------------------------ */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 23px; }
.brand svg { width: 28px; height: 28px; color: var(--text); }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--text-muted); }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* --- Section rhythm ------------------------------------------------- */

section { padding: clamp(72px, 11vw, 128px) 0; border-bottom: 1px solid var(--border); }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 5.2vw, 50px); line-height: 1.1; margin: 14px 0 18px; }

/* --- Phone mockup --------------------------------------------------- */
/* Drawn rather than screenshotted: sharp at any density, themeable, and it
   never drifts out of sync with a build. */

.phone {
  --w: 268px;
  width: var(--w);
  aspect-ratio: 268 / 566;
  border-radius: 40px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  padding: 9px;
  position: relative;
  flex: none;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.9);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Dynamic island */
.phone::before {
  content: "";
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 20px; border-radius: 999px;
  background: #000; border: 1px solid rgba(255,255,255,0.08);
  z-index: 5;
}

.scr { flex: 1; display: flex; flex-direction: column; padding: 40px 14px 16px; gap: 10px; }

/* Stand-in photography. Real photos would be better, but a tuned gradient
   never ships a stock-image licence problem with it. */
.photo {
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,0.22), transparent 60%),
    linear-gradient(155deg, #4a423c 0%, #2a2522 45%, #0d0c0b 100%);
}

/* -- Join screen -- */
.scr-join { padding: 0; }
.scr-join .cover { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 14px; gap: 7px; }
.scr-join .cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 35%, rgba(0,0,0,0.92) 82%, #000 100%);
}
.scr-join .pill, .scr-join .title, .scr-join .meta { position: relative; z-index: 2; }
.scr-join .pill { background: rgba(0,0,0,0.45); border-radius: 999px; padding: 4px 11px; font-size: 9px; color: #fff; }
.scr-join .title { font-family: var(--serif); font-size: 22px; line-height: 1.1; text-align: center; }
.scr-join .meta { font-size: 9px; color: var(--text-muted); }
.scr-join .form { padding: 12px 14px 20px; display: flex; flex-direction: column; gap: 8px; }

.field { height: 34px; border-radius: 999px; background: var(--surface-raised); display: flex; align-items: center; padding: 0 14px; font-size: 10px; color: var(--text-faint); }
.cta { height: 34px; border-radius: 999px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; }

/* -- Camera screen -- */
.scr-cam .cam-head { display: flex; align-items: center; gap: 8px; }
.sq { width: 26px; height: 26px; border-radius: 8px; background: var(--surface); flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-muted); }
.cam-title { flex: 1; text-align: center; }
.cam-title .t { font-family: var(--serif); font-size: 14px; line-height: 1.15; }
.cam-title .c { font-size: 8px; color: var(--text-muted); }
.viewfinder { flex: 1; border-radius: 18px; overflow: hidden; }
.cam-controls { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px; color: var(--text-muted); font-size: 11px; }
.zoom { display: flex; gap: 2px; background: var(--surface); border-radius: 999px; padding: 2px; }
.zoom span { padding: 2px 7px; border-radius: 999px; font-size: 9px; }
.zoom .on { background: var(--surface-pressed); color: var(--text); }
.cam-bottom { display: flex; align-items: center; justify-content: space-between; }
.counter { width: 48px; height: 36px; border-radius: 9px; background: var(--surface); display: flex; align-items: center; justify-content: center; gap: 4px; overflow: hidden; }
.counter .n { font-family: var(--serif); font-size: 12px; color: var(--text-faint); }
.counter .now { font-size: 16px; color: var(--text); }
.shutter { width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--border-strong); display: flex; align-items: center; justify-content: center; }
.shutter i { width: 34px; height: 34px; border-radius: 999px; background: var(--surface-raised); display: block; }

/* -- Roll screen -- */
.scr-roll .roll-title { font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.scr-roll .roll-meta { font-size: 8px; color: var(--text-muted); }
.roll-actions { display: flex; gap: 5px; }
.roll-actions span { flex: 1; height: 26px; border-radius: 999px; background: var(--surface-raised); display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--text-muted); }
.roll-actions span.pri { background: #fff; color: #000; flex: 1.4; }
.upsell-mini { border: 1px solid var(--gold-border); background: var(--gold-dim); border-radius: 11px; padding: 8px 10px; }
.upsell-mini .a { font-family: var(--serif); font-size: 11px; color: var(--gold); }
.upsell-mini .b { font-size: 8px; color: rgba(196,164,74,0.65); }
.roll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.roll-grid i {
  aspect-ratio: 4/5; border-radius: 9px; background: var(--surface);
  border: 1px solid var(--border); display: block;
}

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

.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 9vw, 112px); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; margin-bottom: 22px; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--text-muted); max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 14px; color: var(--text-faint); }
.hero-phone { display: flex; justify-content: center; }
.hero-phone .phone { --w: 296px; transform: rotate(2.5deg); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-phone { order: -1; margin-bottom: 12px; }
  .hero-phone .phone { --w: 240px; transform: none; }
}

/* --- Proof ---------------------------------------------------------- */

.proof { padding: 34px 0; border-bottom: 1px solid var(--border); }
.proof-inner { display: flex; justify-content: center; gap: clamp(26px, 7vw, 84px); flex-wrap: wrap; text-align: center; }
.proof-stat .n { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.proof-stat .l { font-size: 13px; color: var(--text-faint); }

/* --- Steps (three phones) ------------------------------------------- */

.steps { display: flex; gap: clamp(20px, 4vw, 44px); justify-content: center; flex-wrap: wrap; }
.step { width: 268px; }
.step .cap { margin-top: 26px; }
.step .num { font-family: var(--serif); font-size: 14px; color: var(--text-faint); margin-bottom: 9px; }
.step h3 { font-size: 21px; margin-bottom: 7px; }
.step p { font-size: 15px; color: var(--text-muted); }

/* --- Reveal (interactive) ------------------------------------------- */

.reveal { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .reveal { grid-template-columns: 1fr; } }
.reveal h2 { font-size: clamp(32px, 5.2vw, 50px); line-height: 1.1; margin-bottom: 20px; }
.reveal p + p { margin-top: 15px; }
.reveal-controls { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.reveal-status { font-size: 14px; color: var(--text-faint); }

.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.demo-frame {
  aspect-ratio: 4/5;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 11px;
  font-size: 12px;
  color: var(--text-faint);
  position: relative;
  overflow: hidden;
  transition: background 0.7s var(--ease), border-color 0.7s var(--ease), color 0.7s var(--ease);
}
/* The photo is a real <img>, not a CSS background. object-fit does the
   cropping, the browser gets to lazy-load it, and it carries alt text. */
.demo-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s var(--ease), transform 1.4s var(--ease);
}
.demo-frame span { position: relative; z-index: 2; }
.demo-frame .lab {
  position: absolute; inset: auto 0 0 0; padding: 9px 11px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  opacity: 0; transition: opacity 0.7s var(--ease);
}
.is-developed .demo-frame { border-color: var(--border-strong); color: var(--text); }
.is-developed .demo-frame img { opacity: 1; transform: none; }
.is-developed .demo-frame .lab { opacity: 1; }
.is-developed .demo-frame .wait { opacity: 0; }
.demo-frame .wait { transition: opacity 0.4s var(--ease); }

/* --- Occasions marquee ---------------------------------------------- */

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tag { border: 1px solid var(--border); border-radius: 999px; padding: 11px 22px; font-size: 16px; color: var(--text-muted); white-space: nowrap; }

/* --- Pricing (interactive) ------------------------------------------ */

.price-panel { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .price-panel { grid-template-columns: 1fr; } }

.guest-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  border-radius: 999px; padding: 11px 20px; font-family: var(--sans); font-size: 15px;
  cursor: pointer; transition: all 0.18s var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.price-card { border: 1px solid var(--border-strong); border-radius: 22px; background: var(--surface); padding: 30px; }
.price-card .lbl { font-size: 13px; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; }
.price-card .amt { font-family: var(--serif); font-size: 60px; line-height: 1; margin: 12px 0 6px; }
.price-card .cmp { font-size: 15px; color: var(--text-muted); min-height: 24px; }
.price-card .cmp s { color: var(--text-faint); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--border); padding-top: 20px; }
.price-card li { font-size: 15px; color: var(--text-muted); padding: 5px 0 5px 22px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 999px; background: var(--border-strong); }

.addon {
  margin-top: 20px; border: 1px solid var(--gold-border); background: var(--gold-dim);
  border-radius: 18px; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.addon .t { font-family: var(--serif); font-size: 21px; color: var(--gold); }
.addon .d { font-size: 14px; color: rgba(196,164,74,0.7); }
.addon .p { font-family: var(--serif); font-size: 26px; color: var(--gold); }

/* --- FAQ ------------------------------------------------------------ */

.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-of-type { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; padding: 25px 44px 25px 0; font-size: 18px; font-weight: 500; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-size: 24px; font-weight: 300; color: var(--text-faint); transition: transform 0.2s var(--ease); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .answer { padding: 0 44px 26px 0; color: var(--text-muted); font-size: 16px; max-width: 720px; }

/* --- Closing + footer ----------------------------------------------- */

.closing { text-align: center; padding: clamp(80px, 12vw, 130px) 0; }
.closing h2 { font-size: clamp(34px, 6.2vw, 62px); line-height: 1.06; margin-bottom: 20px; }
.closing p { color: var(--text-muted); max-width: 460px; margin: 0 auto 32px; }
.closing .hero-actions { justify-content: center; }

footer { padding: 44px 0 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--text-faint); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color 0.15s; }
.footer-links a:hover { color: var(--text-muted); }

/* --- Scroll-in ------------------------------------------------------ */

.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* --- Legal pages ----------------------------------------------------- */
/* Long-form reading, so the measure narrows and the rhythm loosens. */

.legal { max-width: 720px; padding: clamp(56px, 8vw, 96px) var(--gutter) 96px; margin: 0 auto; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.06; margin-bottom: 14px; }
.legal .updated { font-size: 14px; color: var(--text-faint); margin-bottom: 12px; }
.legal .lede { color: var(--text-muted); font-size: 18px; margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.legal h2 { font-size: 26px; margin: 48px 0 14px; }
.legal h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin: 28px 0 8px; letter-spacing: 0; }
.legal p { color: var(--text-muted); margin-bottom: 14px; }
.legal ul { color: var(--text-muted); padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-block; margin-bottom: 40px; font-size: 15px; color: var(--text-muted); }
.legal .back:hover { color: var(--text); text-decoration: none; }
.legal .note {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); padding: 20px 22px; margin: 32px 0;
  font-size: 15px;
}
