:root {
  --ink: #3B2F2A;
  --ink-deep: #221A16;
  --surface: #F6F0E9;
  --on-ink-muted: #E3D3C6;
  --rose-clay: #E3C7BC;
  --text-faint: #B9A698;
  --star-1: #45372F;
  --star-2: #433530;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Albert Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ink); color: var(--surface); font-family: var(--font-sans); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--rose-clay); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { position: relative; min-height: 100vh; overflow: hidden; }

/* Background stars */
.star { position: absolute; }
.star--big { left: -200px; top: -180px; width: 900px; height: 900px; fill: var(--star-1); }
.star--small { right: -140px; bottom: -240px; width: 600px; height: 600px; fill: var(--star-2); }
.star--twinkle { left: 47%; top: 120px; width: 26px; height: 26px; fill: var(--rose-clay); animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .star--twinkle { animation: none; } }

.wrap {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: 22px 40px 32px; min-height: 100vh;
  display: flex; flex-direction: column;
}

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__name { font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: -0.01em; }

/* Hero */
.hero {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center; padding: 48px 0 40px;
}
.hero__text { display: flex; flex-direction: column; gap: 26px; }
.h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 84px; line-height: 0.95; letter-spacing: -0.01em; }
.h1 em { color: var(--rose-clay); }
.lead { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--on-ink-muted); }

/* Mailing list */
.signup-block { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 22px;
  font-size: 14px; font-weight: 500; color: var(--on-ink-muted);
  border: 1px solid rgba(246,240,233,0.28); background: transparent;
  transition: background .15s ease, border-color .15s ease;
}
.pill input:checked + span { background: var(--rose-clay); color: var(--ink); border-color: var(--rose-clay); }
.pill input:focus-visible + span { outline: 2px solid var(--rose-clay); outline-offset: 2px; }

.signup {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px;
  border-radius: 34px; background: var(--surface); box-shadow: 0 24px 60px rgba(20,14,11,0.35);
}
.fld { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.fld::placeholder { color: #A8968A; }
.btn {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 26px; border: 0;
  background: var(--ink); color: var(--surface); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.err { font-size: 13px; font-weight: 500; color: #F2B8C2; min-height: 18px; }
.err:empty { display: none; }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--text-faint); }

.done {
  display: flex; align-items: center; gap: 18px; max-width: 560px; padding: 20px 22px; border-radius: 26px;
  background: rgba(246,240,233,0.08); border: 1px solid rgba(246,240,233,0.18);
}
.done__icon { width: 52px; height: 52px; border-radius: 26px; flex: none; background: var(--rose-clay); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.done__text { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--on-ink-muted); }
.done__text strong { color: var(--surface); font-weight: 600; }
.done__title { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--surface); }

/* Phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  width: 336px; padding: 12px; border-radius: 54px; background: var(--ink-deep);
  box-shadow: 0 40px 90px rgba(20,14,11,0.5), 0 0 0 1px rgba(246,240,233,0.08);
  transform: rotate(3deg);
}
.screen { position: relative; width: 312px; height: 675px; border-radius: 42px; overflow: hidden; background: var(--surface); }
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 14px; background: var(--ink-deep); }

/* Abstract, blurred stand-in for the app home screen */
.appshot {
  position: absolute; inset: 0; padding: 62px 18px 0; display: flex; flex-direction: column; gap: 14px;
  filter: blur(7px) saturate(0.9); transform: scale(1.04);
}
.appshot__title { width: 70%; height: 30px; border-radius: 10px; background: #D9CCBF; }
.appshot__card { height: 230px; border-radius: 26px; background: #3B2F2A; }
.appshot__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.appshot__row span { height: 56px; border-radius: 20px; background: #FFFDFA; border: 1px solid #E7DCD1; }
.appshot__row--tall span { height: 150px; background: #E3C7BC; }
.appshot__row--tall span + span { background: #A9B3A0; }
.appshot__nav { position: absolute; left: 12px; right: 12px; bottom: 18px; height: 54px; border-radius: 27px; background: #FFFDFA; }

.lock {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center; background: rgba(59,47,42,0.28);
}
.lock__icon { width: 64px; height: 64px; border-radius: 32px; background: var(--ink); color: var(--surface); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(20,14,11,0.35); }
.lock__label { padding: 8px 14px; border-radius: 14px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 600; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 13px; color: var(--text-faint); }

/* Responsive */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; align-content: center; gap: 40px; padding-top: 32px; }
  .phone-wrap { padding: 8px 0 24px; }
  .phone { zoom: 0.7; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .h1 { font-size: 52px; }
  .hero__text { align-items: center; text-align: center; }
  .roles { justify-content: center; }
  .signup-block, .done { width: 100%; }
  .done { text-align: left; }
  .phone { zoom: 0.55; }
  .signup { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 8px; }
  .fld { padding: 0 12px; }
  .signup .btn { width: 100%; }
}
