/* MUAH beta pages — "Rouge Noir" editorial. Self-contained, no external hosts.
   All styling lives here (strict CSP forbids inline <style>/style=). */

/* ── Tokens (light default) ──────────────────────────────────────────────── */
:root {
  --serif: 'Didot', 'Bodoni 72', 'Bodoni MT', 'Hoefler Text', 'Times New Roman', serif;
  --ground:   #F1E6DE;
  --ground-2: #FBF5F1;
  --ink:      #271A16;
  --muted:    #8A6F64;
  --line:     rgba(39, 26, 22, 0.14);
  --line-2:   rgba(39, 26, 22, 0.07);
  --rose:     #A9505A;
  --gold:     #A9764C;
  --gloss:    linear-gradient(103deg, #E7C6A6 0%, #D2917E 46%, #B15E67 100%);
  --gloss-ink:#2B1A14;
  --glow-a:   rgba(210, 145, 126, 0.42);
  --glow-b:   rgba(177, 94, 103, 0.16);
  --field-bg: #ffffff;
  --screen:   linear-gradient(180deg, #FBF3EC 0%, #F3E7DE 100%);
  --shadow:   0 40px 90px -34px rgba(90, 45, 45, 0.55);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground:   #140D0B;
    --ground-2: #201613;
    --ink:      #F6ECE6;
    --muted:    #B29A8F;
    --line:     rgba(255, 246, 240, 0.13);
    --line-2:   rgba(255, 246, 240, 0.06);
    --rose:     #E39BA0;
    --gold:     #E4B79C;
    --gloss:    linear-gradient(103deg, #F4DBC1 0%, #E3A98C 48%, #CE8890 100%);
    --gloss-ink:#2A1712;
    --glow-a:   rgba(227, 169, 140, 0.30);
    --glow-b:   rgba(206, 136, 144, 0.16);
    --field-bg: rgba(255, 246, 240, 0.05);
    --screen:   linear-gradient(180deg, #241A16 0%, #170F0D 100%);
    --shadow:   0 44px 100px -38px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  --ground: #140D0B; --ground-2: #201613; --ink: #F6ECE6; --muted: #B29A8F;
  --line: rgba(255,246,240,0.13); --line-2: rgba(255,246,240,0.06);
  --rose: #E39BA0; --gold: #E4B79C;
  --gloss: linear-gradient(103deg, #F4DBC1 0%, #E3A98C 48%, #CE8890 100%);
  --gloss-ink: #2A1712; --glow-a: rgba(227,169,140,0.30); --glow-b: rgba(206,136,144,0.16);
  --field-bg: rgba(255,246,240,0.05);
  --screen: linear-gradient(180deg, #241A16 0%, #170F0D 100%);
  --shadow: 0 44px 100px -38px rgba(0,0,0,0.8);
}
:root[data-theme="light"] {
  --ground: #F1E6DE; --ground-2: #FBF5F1; --ink: #271A16; --muted: #8A6F64;
  --line: rgba(39,26,22,0.14); --line-2: rgba(39,26,22,0.07);
  --rose: #A9505A; --gold: #A9764C;
  --gloss: linear-gradient(103deg, #E7C6A6 0%, #D2917E 46%, #B15E67 100%);
  --gloss-ink: #2B1A14; --glow-a: rgba(210,145,126,0.42); --glow-b: rgba(177,94,103,0.16);
  --field-bg: #ffffff;
  --screen: linear-gradient(180deg, #FBF3EC 0%, #F3E7DE 100%);
  --shadow: 0 40px 90px -34px rgba(90,45,45,0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, -apple-system, system-ui, 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46vw 44vw at 74% 34%, var(--glow-a), transparent 60%),
    radial-gradient(50vw 46vw at 20% 8%, var(--glow-b), transparent 62%);
}

.stage {
  position: relative; z-index: 1;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.35rem, 4vw, 3rem);
}
.wrap {
  width: 100%; max-width: 64rem;
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2.6rem, 6vw, 4rem);
  align-items: center; justify-items: center;
}
@media (min-width: 860px) { .wrap { grid-template-columns: 1.05fr 0.95fr; justify-items: stretch; } }

/* ── Copy column ─────────────────────────────────────────────────────────── */
.copy { text-align: center; max-width: 30rem; }
@media (min-width: 860px) { .copy { text-align: left; } }

.top { display: flex; align-items: center; gap: 0.85rem; justify-content: center; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
@media (min-width: 860px) { .top { justify-content: flex-start; } }
.wordmark { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.42em; text-indent: 0.42em; font-weight: 400; }
.eyebrow {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--rose);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.34rem 0.68rem 0.3rem; white-space: nowrap;
}

.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.9rem, 8vw, 4.4rem); line-height: 0.98; letter-spacing: -0.012em;
  text-wrap: balance; margin: 0 0 1.3rem;
}
.display em { font-style: italic; background: var(--gloss); -webkit-background-clip: text; background-clip: text; color: transparent; }

.decode {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.19em; line-height: 1.9;
  color: var(--muted); max-width: 26rem; margin: 0 0 1.5rem;
}
@media (max-width: 859px) { .decode { margin-left: auto; margin-right: auto; } }
.decode .tag { color: var(--ink); font-weight: 400; }
/* Separator between service categories. beta.html loads only beta.css (no
   site.css), so the gloss is baked in here rather than applied via the .gl
   utility the landing page uses. */
.decode .sep {
  font-family: var(--serif); font-style: italic; padding: 0 0.1em;
  background: var(--gloss); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 0.95rem; color: var(--muted); margin: 0; max-width: 24rem; line-height: 1.6; }
@media (max-width: 859px) { .lede { margin-left: auto; margin-right: auto; } }

/* ── iPhone ──────────────────────────────────────────────────────────────── */
.device { display: flex; flex-direction: column; align-items: center; }
.avail {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 1.25rem; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted);
}
.avail svg { width: 12px; height: 12px; flex: 0 0 auto; margin-bottom: 1.5px; opacity: 0.9; }

.phone {
  width: min(324px, 82vw); aspect-ratio: 324 / 690;
  border-radius: 3.2rem; padding: 2.5px;
  background: linear-gradient(150deg, #F4DAC0 0%, #E3A98C 30%, #B9856A 52%, #E9C3A6 74%, #C99B7C 100%);
  box-shadow: var(--shadow), 0 0 0 0.5px rgba(0,0,0,0.1);
  position: relative;
}
.bezel { height: 100%; width: 100%; background: #0a0a0c; border-radius: 3.05rem; padding: 0.5rem; }
.screen {
  position: relative; height: 100%; width: 100%;
  background: var(--screen); border-radius: 2.62rem; overflow: hidden;
  display: flex; flex-direction: column;
}
.island { position: absolute; top: 0.62rem; left: 50%; transform: translateX(-50%); width: 30%; height: 1.55rem; background: #000; border-radius: 1rem; z-index: 5; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 0.62rem 1.35rem 0.2rem; font-size: 0.66rem; font-weight: 500; color: var(--ink); letter-spacing: 0.02em; }
.sb-right { display: flex; gap: 6px; align-items: center; }
.statusbar .sig { display: inline-flex; gap: 2px; align-items: flex-end; opacity: 0.85; }
.statusbar .sig i { width: 3px; background: currentColor; border-radius: 1px; display: block; }
.statusbar .sig i:nth-child(1){ height: 4px; } .statusbar .sig i:nth-child(2){ height: 6px; }
.statusbar .sig i:nth-child(3){ height: 8px; } .statusbar .sig i:nth-child(4){ height: 10px; }
.statusbar .batt { width: 18px; height: 9px; border: 1px solid currentColor; border-radius: 2px; position: relative; opacity: 0.85; }
.statusbar .batt::before { content:""; position:absolute; inset: 1.5px; width: 60%; background: currentColor; border-radius: 1px; }
.statusbar .batt::after { content:""; position:absolute; right:-3px; top: 2.5px; width: 2px; height: 3px; background: currentColor; border-radius: 0 1px 1px 0; }

.app { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0.9rem 1.35rem 0.6rem; display: flex; flex-direction: column; }
.app-mark { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.4em; text-indent: 0.4em; text-align: center; margin: 0.2rem 0 0.15rem; }
.app-tag { text-align: center; font-size: 0.54rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--rose); margin: 0 0 1.05rem; }
.app-h { font-family: var(--serif); font-size: 1.7rem; line-height: 1.05; text-align: center; margin: 0 0 0.45rem; }
.app-h em { font-style: italic; background: var(--gloss); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-lede { text-align: center; font-size: 0.78rem; color: var(--muted); margin: 0 0 1.15rem; line-height: 1.5; }

.field { margin-bottom: 0.72rem; }
label { display: block; font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 0.34rem; }
label .opt { text-transform: none; letter-spacing: 0; font-style: italic; opacity: 0.7; }
input[type="email"], input[type="text"] {
  width: 100%; font-family: inherit; font-size: 0.9rem; font-weight: 300; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--line); border-radius: 11px; padding: 0.66rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder { color: var(--muted); opacity: 0.6; }
input:focus-visible { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--glow-b); }

.consent { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.5rem 0 1rem; font-size: 0.68rem; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 0.1rem; width: 0.95rem; height: 0.95rem; accent-color: var(--rose); flex: 0 0 auto; }
.consent a { color: var(--rose); text-underline-offset: 2px; }

button[type="submit"] {
  width: 100%; font-family: inherit; font-size: 0.64rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.24em; color: var(--gloss-ink);
  background: var(--gloss); border: none; border-radius: 11px; padding: 0.85rem; cursor: pointer;
  box-shadow: 0 9px 24px -12px var(--glow-a);
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
button[type="submit"]:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 14px 32px -13px var(--glow-a); }
button[type="submit"]:active { transform: translateY(0); }
button[type="submit"]:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
button[type="submit"]:disabled { opacity: 0.6; cursor: default; transform: none; }

.status { margin: 0.7rem 0 0.2rem; font-size: 0.72rem; text-align: center; min-height: 1rem; line-height: 1.4; }
.status.ok { color: var(--gold); } .status.err { color: var(--rose); }

.home { margin: 0.15rem auto 0.55rem; width: 34%; height: 4px; border-radius: 3px; background: var(--ink); opacity: 0.35; flex: 0 0 auto; }

.foot { grid-column: 1 / -1; text-align: center; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); opacity: 0.82; margin: 0; max-width: 30rem; justify-self: center; }

/* Off-screen honeypot: humans never see or fill it; bots do. Not display:none
   (some bots skip those); positioned off-screen instead. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Confirmation page ───────────────────────────────────────────────────── */
.confirm-col { position: relative; z-index: 1; width: 100%; max-width: 26rem; margin: 0 auto; text-align: center; }
.confirm-h { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 9vw, 3.2rem); line-height: 1.0; letter-spacing: -0.01em; margin: 1.3rem 0 0.7rem; }
.confirm-h em { font-style: italic; background: var(--gloss); -webkit-background-clip: text; background-clip: text; color: transparent; }
.confirm-card {
  background: var(--ground-2); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.6rem, 5vw, 2.1rem); box-shadow: var(--shadow); margin-top: 1.6rem;
}
.confirm-card button[type="button"] {
  width: 100%; font-family: inherit; font-size: 0.66rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.24em; color: var(--gloss-ink);
  background: var(--gloss); border: none; border-radius: 12px; padding: 1rem; cursor: pointer;
  box-shadow: 0 10px 28px -12px var(--glow-a);
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.confirm-card button[type="button"]:hover { transform: translateY(-1px); filter: brightness(1.04); }
.confirm-card button[type="button"]:active { transform: translateY(0); }
.confirm-card button[type="button"]:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.confirm-card button[type="button"]:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ── Load choreography ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.9s cubic-bezier(0.2,0.8,0.2,1) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.16s; } .d3 { animation-delay: 0.27s; }
.d4 { animation-delay: 0.4s; } .d5 { animation-delay: 0.54s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  button:hover { transform: none !important; }
}
