/* Fairytale Cam. The Storybook brand: midnight blue, cream and gold. */
:root {
  --night: #070c16;
  --ground: #0d1626;
  --card: #15233a;
  --line: #2b3f5f;
  --cream: #fff4de;
  --soft: #c9d3e6;
  --faint: #8fa0bc;
  --gold: #e9b44c;
  --rec: #e5484d;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Nunito Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wide: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--soft);
  font: 600 18px/1.6 var(--sans);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
/* The glow behind the phone is wider than a phone screen. It must not make the page scroll sideways. */
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* The night sky behind everything: two layers of stars and a faint grain. */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(233, 180, 76, 0.13), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(71, 110, 178, 0.22), transparent 62%),
    linear-gradient(180deg, #070c16 0%, #0d1626 46%, #070c16 100%);
}
.sky::before, .sky::after {
  content: ''; position: absolute; inset: -50%;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 244, 222, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 62%, rgba(255, 244, 222, 0.7) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 58% 27%, rgba(233, 180, 76, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 71%, rgba(255, 244, 222, 0.6) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 91% 39%, rgba(255, 244, 222, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 88%, rgba(255, 244, 222, 0.5) 50%, transparent 51%);
  background-size: 520px 520px;
  animation: drift 160s linear infinite;
  opacity: 0.55;
}
.sky::after { background-size: 340px 340px; opacity: 0.3; animation-duration: 240s; animation-direction: reverse; }
@keyframes drift { to { transform: translate3d(-260px, -260px, 0); } }

/* ---------- The top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.92), rgba(7, 12, 22, 0.6) 70%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font: 700 21px/1 var(--serif); letter-spacing: 0.2px; }
.mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 15px; font-weight: 800; }
.nav nav a { text-decoration: none; color: var(--soft); transition: color 0.2s; }
.nav nav a:hover { color: var(--cream); }
.pill { white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: var(--gold); color: #1b1404 !important; }
.pill:hover { background: #f4c563; }

/* ---------- Shared type ---------- */
.eyebrow { font: italic 600 19px/1.2 var(--serif); color: var(--gold); margin-bottom: 14px; }
h1 { font: 700 clamp(44px, 6.4vw, 86px)/1.02 var(--serif); letter-spacing: -1.2px; color: var(--cream); text-wrap: balance; }
h2 { font: 700 clamp(32px, 4.3vw, 54px)/1.08 var(--serif); letter-spacing: -0.6px; color: var(--cream); text-wrap: balance; }
h3 { font: 800 20px/1.25 var(--sans); color: var(--cream); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; max-width: 34em; margin-top: 22px; }
.sub { font-size: 19px; max-width: 38em; margin-top: 16px; }
.fine { font-size: 14px; color: var(--faint); margin-top: 22px; }
.block { width: min(var(--wide), 100% - 36px); margin: 0 auto; padding: clamp(70px, 9vw, 130px) 0 0; }

/* ---------- The first screen ---------- */
.hero {
  width: min(var(--wide), 100% - 36px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(30px, 5vw, 80px); align-items: center;
  padding: clamp(34px, 6vw, 84px) 0 clamp(40px, 6vw, 80px);
}
.join { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; max-width: 520px; }
.join input {
  flex: 1 1 220px; min-width: 0; height: 58px; padding: 0 22px; border-radius: 999px;
  border: 2px solid var(--line); background: rgba(21, 35, 58, 0.8); color: var(--cream); font: 700 17px var(--sans); outline: none;
}
.join input::placeholder { color: var(--faint); }
.join input:focus { border-color: var(--gold); }
.join button {
  flex: 0 0 auto; height: 58px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: #1b1404; font: 800 17px var(--sans); transition: transform 0.15s, background 0.2s;
}
.join button:hover { background: #f4c563; transform: translateY(-1px); }
.join button:disabled { opacity: 0.6; cursor: default; transform: none; }
.join-note { flex: 1 0 100%; font-size: 14px; color: var(--faint); padding-left: 6px; }
.join-note.good { color: var(--gold); font-weight: 800; }
.join-note.bad { color: #ff9b9e; font-weight: 800; }

.hero-phone { position: relative; justify-self: center; width: min(340px, 78vw); }
.glow { position: absolute; inset: -18% -30%; background: radial-gradient(closest-side, rgba(233, 180, 76, 0.26), transparent 70%); filter: blur(10px); }
.phone {
  position: relative; aspect-ratio: 9 / 19.3; border-radius: 52px; padding: 11px;
  background: linear-gradient(160deg, #2a3446, #05080f 40%, #1a2233);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1.5px rgba(255, 244, 222, 0.1) inset;
  transform: rotate(3deg);
}
.phone.small { transform: rotate(-3deg); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #000; }
.screen video, .tape video { width: 100%; height: 100%; object-fit: cover; }
.phone::after { content: ''; position: absolute; top: 22px; left: 50%; width: 30%; height: 24px; margin-left: -15%; border-radius: 16px; background: #000; }

/* The marks a security camera draws. script.js adds them to every .cam. */
.cam { position: relative; }
.cam .marks { position: absolute; inset: 0; pointer-events: none; font: 600 11px/1 var(--mono); letter-spacing: 1.2px; color: rgba(255, 255, 255, 0.9); text-shadow: 0 0 3px #000; }
.cam .marks::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 4px); }
.cam .marks i { position: absolute; width: 20px; height: 20px; border: 0 solid rgba(255, 255, 255, 0.72); }
.cam .marks i:nth-of-type(1) { top: 46px; left: 12px; border-width: 2px 0 0 2px; }
.cam .marks i:nth-of-type(2) { top: 46px; right: 12px; border-width: 2px 2px 0 0; }
.cam .marks i:nth-of-type(3) { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.cam .marks i:nth-of-type(4) { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }
.cam .marks span { position: absolute; }
.cam .marks .rec { top: 54px; left: 24px; display: flex; align-items: center; gap: 6px; }
.cam .marks .rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: blink 1.6s steps(1) infinite; }
.cam .marks .name { top: 54px; right: 24px; }
.cam .marks .room { bottom: 21px; left: 24px; }
.cam .marks .time { bottom: 21px; right: 24px; }
.tape .cam .marks i:nth-of-type(1), .tape .cam .marks i:nth-of-type(2) { top: 12px; }
.tape .cam .marks .rec, .tape .cam .marks .name { top: 20px; }
.tape .cam .marks .date, .phone.small .cam .marks .date { display: none; }
.cam .marks .time { display: flex; gap: 8px; }
@keyframes blink { 50% { opacity: 0.25; } }

.alert {
  position: absolute; left: -18%; bottom: 13%; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 22px; background: var(--cream); color: #16203a;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.8); animation: rise 0.9s 0.6s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.alert svg { width: 44px; height: 44px; flex: none; }
.alert small { display: block; font-size: 12px; font-weight: 700; color: #5a6680; }
.alert b { display: block; font: 800 15px/1.25 var(--sans); max-width: 11em; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ---------- Three facts ---------- */
.strip {
  width: min(var(--wide), 100% - 36px); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--line);
}
.strip p { padding: 22px 26px; background: rgba(13, 22, 38, 0.86); font-size: 16px; }
.strip b { display: block; font: 700 21px/1.2 var(--serif); color: var(--cream); margin-bottom: 4px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; counter-reset: step; }
.steps figure { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.steps figure img { width: 100%; height: 100%; object-fit: cover; }
.steps figure.face img { object-position: 50% 20%; }
.tag { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(7, 12, 22, 0.78); color: var(--cream); font-size: 13px; font-weight: 800; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tag.gold { background: var(--gold); color: #1b1404; }
.steps h3 { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px; font-size: 22px; }
.steps h3 span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1b1404; font: 700 18px var(--serif); }
.steps p { font-size: 17px; }

/* ---------- The reel of videos ---------- */
.reel {
  display: flex; gap: 18px; margin: 40px calc(50% - 50vw) 0; padding: 6px max(18px, calc(50vw - var(--wide) / 2)) 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent; outline: none;
}
.tape { flex: 0 0 min(250px, 62vw); scroll-snap-align: center; }
.tape .cam { aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line); transition: transform 0.25s, border-color 0.25s; }
.tape:hover .cam { transform: translateY(-6px); border-color: var(--gold); }
.tape figcaption { padding: 12px 4px 0; font-size: 15px; color: var(--faint); }
.tape figcaption b { display: block; font: 700 19px/1.2 var(--serif); color: var(--cream); }

/* ---------- Who visits ---------- */
.lineup { margin-top: 40px; border-radius: 30px; overflow: hidden; border: 1px solid var(--line); }
.lineup img { width: 100%; }
.cast { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 14px; margin-top: 30px; }
.cast li { text-align: center; }
.cast img { width: min(132px, 100%); aspect-ratio: 1; margin: 0 auto 10px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); transition: border-color 0.2s, transform 0.2s; }
.cast li:hover img { border-color: var(--gold); transform: scale(1.04); }
.cast b { display: block; font: 800 16px/1.2 var(--sans); color: var(--cream); }
.cast span { font-size: 14px; color: var(--faint); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.note { padding: 26px 28px; border-radius: 24px; background: rgba(21, 35, 58, 0.7); border: 1px solid var(--line); }
.note p { margin-top: 8px; font-size: 17px; }

/* ---------- Match the mess ---------- */
.mess { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.mess-phone { justify-self: center; width: min(290px, 70vw); }
.tip { margin-top: 28px; padding: 18px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); max-width: 30em; }
.tip small { display: block; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.tip b { display: block; margin: 6px 0 2px; font-size: 19px; color: var(--cream); }
.tip span { font-size: 15px; color: var(--faint); }

/* ---------- The storybook ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; max-width: 880px; }
.vol { position: relative; aspect-ratio: 3 / 4; border-radius: 8px 20px 20px 8px; overflow: hidden; background: var(--card); box-shadow: 8px 0 0 -2px #d9cdb2, 12px 0 0 -3px #a99e86, 0 30px 50px -24px rgba(0, 0, 0, 0.9); }
.vol img { width: 100%; height: 100%; object-fit: cover; }
.vol::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--line); z-index: 1; }
.vol.now::before { background: var(--gold); }
.vol figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px 26px; background: linear-gradient(180deg, transparent, rgba(7, 12, 22, 0.94)); font-size: 14px; color: var(--soft); }
.vol figcaption b { display: block; font: 700 24px/1.1 var(--serif); color: var(--cream); }
.vol.now figcaption b { color: var(--gold); }
.vol.empty { background: none; box-shadow: none; border: 2px dashed #5b7299; }
.vol.empty::before { display: none; }
.vol.empty figcaption { position: static; height: 100%; display: grid; place-content: center; text-align: center; padding: 0; background: none; color: var(--faint); }
.vol.empty figcaption b { color: var(--soft); }

/* ---------- Made with care ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.cards li { padding: 26px 24px; border-radius: 24px; background: rgba(21, 35, 58, 0.7); border: 1px solid var(--line); }
.cards p { margin-top: 8px; font-size: 16px; }

/* ---------- Price ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; align-items: stretch; }
.plan { position: relative; padding: 32px 30px; border-radius: 28px; background: rgba(21, 35, 58, 0.72); border: 1px solid var(--line); }
.plan.best { border: 2px solid var(--gold); background: linear-gradient(180deg, rgba(233, 180, 76, 0.12), rgba(21, 35, 58, 0.72) 46%); }
.flag { position: absolute; top: -14px; left: 28px; padding: 5px 14px; border-radius: 999px; background: var(--gold); color: #1b1404; font-size: 13px; font-weight: 900; }
.plan h3 { font: 700 26px/1.1 var(--serif); }
.amount { margin-top: 16px; font-size: 18px; color: var(--soft); }
.amount b { font: 700 46px/1 var(--serif); color: var(--cream); letter-spacing: -1px; margin-right: 4px; }
.or { margin-top: 6px; font-size: 15px; color: var(--faint); }
.plan ul { margin-top: 22px; display: grid; gap: 10px; font-size: 16px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border: solid var(--gold); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }

/* ---------- Questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 30px clamp(30px, 6vw, 90px); align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 800 20px/1.3 var(--sans); color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font: 500 30px/1 var(--serif); color: var(--gold); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 24px 0; }

/* ---------- The last call ---------- */
.ready { margin-top: clamp(80px, 10vw, 140px); padding: 0 18px; }
.ready-in {
  width: min(900px, 100%); margin: 0 auto; padding: clamp(44px, 6vw, 80px) clamp(22px, 5vw, 70px); text-align: center; border-radius: 40px;
  border: 1px solid var(--line);
  background: radial-gradient(600px 300px at 50% 0%, rgba(233, 180, 76, 0.2), transparent 70%), rgba(21, 35, 58, 0.8);
}
.mark.big { width: 64px; height: 64px; margin: 0 auto 20px; }
.ready .sub { margin-left: auto; margin-right: auto; }
.join.wide { margin: 30px auto 0; justify-content: center; }
.join.wide .join-note { text-align: center; padding: 0; }

.foot { width: min(var(--wide), 100% - 36px); margin: 70px auto 0; padding: 30px 0 50px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 14px 30px; align-items: center; font-size: 14px; color: var(--faint); }
.foot nav { display: flex; gap: 20px; font-weight: 800; }
.foot .copy { grid-column: 1 / -1; }

/* ---------- Plain pages (privacy, terms) ---------- */
.page { width: min(760px, 100% - 36px); margin: 0 auto; padding: 50px 0 20px; }
.page h1 { font-size: clamp(38px, 5vw, 56px); }
.page h2 { font-size: 27px; margin-top: 44px; letter-spacing: -0.2px; }
.page p, .page li { margin-top: 14px; font-size: 18px; }
.page ul { list-style: disc; padding-left: 24px; }
.page .draft { margin-top: 26px; padding: 16px 20px; border-radius: 16px; border: 2px solid var(--gold); color: var(--cream); }

/* ---------- Things appear as they scroll into view ---------- */
.show { opacity: 0; transform: translateY(22px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.show.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero, .mess, .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .hero-words { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .join { margin-left: auto; margin-right: auto; justify-content: center; }
  .join-note { text-align: center; padding: 0; }
  .alert { left: -6%; }
  .strip, .steps, .plans, .pair { grid-template-columns: 1fr; }
  .steps figure { aspect-ratio: 16 / 11; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cast { grid-template-columns: repeat(3, 1fr); }
  .shelf { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
  .nav nav a:not(.pill) { display: none; }
  .foot { grid-template-columns: 1fr; }
  .mess-phone { order: -1; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .cast { grid-template-columns: repeat(2, 1fr); }
  .pill { padding: 9px 13px; font-size: 13px; }
  .brand { font-size: 18px; gap: 8px; }
  .mark { width: 26px; height: 26px; }
  .nav { padding: 12px 16px; gap: 10px; }
  .cam .marks .date { display: none; }
  .join button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sky::before, .sky::after, .cam .marks .rec::before, .alert { animation: none; }
  .show { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
.cam .marks b { font-weight: inherit; }
