:root {
  --bg: #000;
  --text: #F3EEE4;
  --gold: #C9A45C;
  --gold-deep: #9A7A3C;
  --indigo: #1A1638;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: var(--display); /* one face site-wide */
  --track: 0.24em;          /* every small-capitals signpost uses this */
  --size-label: 0.875rem;   /* 14px: capitals signposts */
  --size-field: 1.125rem;   /* 18px: inputs */
  --size-body: 1.3125rem;   /* 21px: body, italic voice lines */
  --size-lead: 1.5rem;      /* 24px: the pitch */
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--size-body)/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Header: centred logo; its black background is the page background */
.top a { display: block; }

.logo {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: 0 auto;
}

/* "— THE ULTIMATE AESTHETIC INTELLIGENCE —" */
.divider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 24px 0 24px;
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3a3a3a);
}

.divider::after { background: linear-gradient(90deg, #3a3a3a, transparent); }

/* Title: PIONEERING SKINCARE / education / “tagline” */
.title {
  margin: 0 0 18px;
  font-weight: 400;
  text-align: center;
}

.title-main {
  display: block;
  font: 400 clamp(2rem, 5.5vw, 3.75rem) / 1.1 var(--display);
  letter-spacing: 0.18em;
  text-indent: 0.18em; /* optically re-centre: trailing letter-spacing sits after the last glyph */
  text-transform: uppercase;
  color: var(--text);
}

.title-sub {
  display: block;
  margin-top: 4px;
  font: italic 400 clamp(1.5rem, 3.4vw, 2.25rem) / 1.2 var(--display);
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: #D4B383;
}

.tagline {
  margin: 0 auto 32px;
  font: italic 400 clamp(1.3125rem, 2.3vw, 1.5rem) / 1.3 var(--display);
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--text);
}

/* Hero: device frame + pitch */
.hero {
  display: grid;
  gap: 48px;
  align-items: start; /* the form sits high, next to the top of the card, not floating mid-image */
}

.device {
  margin: 0 auto;
  width: min(100%, 440px);
  padding: 8px;
  border: 5px solid #2E2666;
  border-radius: 26px;
  background: #0B0A14;
  box-shadow: 0 30px 80px -20px rgba(90, 70, 170, 0.45), 0 0 40px rgba(90, 70, 170, 0.2);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.pitch {
  order: -1; /* phones: the form comes before the image; desktop puts the image back on the left */
  max-width: 560px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 9px 18px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold);
}

.badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

.lead {
  margin: 0 0 16px;
  font-size: var(--size-lead);
  line-height: 1.4;
  color: #E6E0D6;
  text-wrap: pretty;
}

.cta {
  margin: 0 0 20px;
  font: italic 400 var(--size-body)/1.4 var(--display); /* italic = the brand speaking */
  color: var(--gold);
  text-wrap: pretty; /* no one-word last line */
}

/* Form: pill input + gradient pill button */
.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.waitlist > input {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0 24px;
  font: italic 400 var(--size-field)/1 var(--display);
  color: var(--text);
  background: var(--indigo);
  border: 1px solid #2D2757;
  border-radius: 999px;
}

input::placeholder { color: #B8B0C8; }

.waitlist > input[aria-invalid="true"] { border-color: #E4907F; }

input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
}

button {
  flex: 1 1 200px;
  min-height: 52px;
  padding: 0 22px;
  white-space: nowrap;
  font: 600 var(--size-label)/1 var(--display);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: #1A1612;
  background: linear-gradient(90deg, #D9B36A, #F0A5A0);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }

button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

button:disabled { opacity: 0.6; cursor: default; }

.cf-turnstile { flex-basis: 100%; }

/* Notices: shown by JS (.show) or by the hash the server redirects to (:target) */
.notice:not(:target):not(.show) { display: none; }
#sent:target ~ .waitlist { display: none; }

.notice,
.response p {
  margin: 0 0 16px;
  font: italic 400 var(--size-body)/1.4 var(--display);
}

.notice-error { color: #E4907F; }

.notice:not(.notice-error)::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

/* Off-screen: honeypot (not display:none, so naive bots still fill it) and screen-reader-only labels */
.hp,
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.foot {
  margin-top: 72px;
  text-align: center;
}

.foot p { margin: 0; }

.foot-a {
  font-style: italic;
  color: #C9C2B8;
}

.foot-b {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px; /* space, not middle dots, separates the items */
  font-size: var(--size-label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: #8F857A;
}

.foot-a + .foot-b { margin-top: 24px; }

.foot a {
  color: inherit;
  text-decoration-color: var(--gold-deep);
  text-underline-offset: 3px;
}

.foot a:hover { color: var(--text); }

/* Secondary pages (privacy, confirmed) */
.prose {
  max-width: 62ch;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.prose h1 {
  margin: 0 0 20px;
  font: 500 clamp(2.25rem, 6vw, 3rem) / 1.1 var(--display);
}

.prose h2 {
  margin: 32px 0 8px;
  font: 500 1.375rem/1.2 var(--display);
  color: var(--gold);
}

.prose p { margin: 0 0 12px; }

.prose a {
  color: inherit;
  text-decoration-color: var(--gold-deep);
  text-underline-offset: 3px;
}

@media (min-width: 900px) {
  .page { padding: 20px 40px 48px; }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }

  .device { margin: 0 0 0 auto; } /* hug the centre line, beside the pitch */
  .pitch { order: 0; margin: 0; padding-top: 16px; }
}
