/* Rêve teaser. One surface (onyx), one metal (copper). */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); }

/* Layout: a window of polished onyx in the brushed surface; the mark is drawn there and becomes the wordmark; one line under it.
   Below, a short column of words beside a recording of the app in a phone, then the waitlist.
   Single look by choice: Rêve has one surface. */
:root {
  color-scheme: dark;
  --onyx: #0D0D0F;
  --onyx-top: #131316;
  --onyx-lift: #17171B;
  --sheet: #050507;
  --ink: #EAE6DD;
  --ink-2: #A89F90;
  --ink-3: #7A7264;
  --copper: #D38246;
  --lemon: #E8D66B;
  --mint: #83C1A5;
  --deep-gold: #D9A62E;
  --emerald: #1AA868;
  --hair: color-mix(in oklch, var(--ink) 12%, transparent);
  --copper-hair: linear-gradient(90deg, transparent, color-mix(in oklch, var(--copper) 55%, transparent) 28%, color-mix(in oklch, var(--copper) 55%, transparent) 72%, transparent);
  --lit: color-mix(in oklch, var(--copper) 58%, white);
  --shade: color-mix(in oklch, var(--copper) 72%, black);
  --ramp: linear-gradient(180deg,
    color-mix(in oklch, var(--copper) 74%, black) 0%,
    var(--copper) 22%,
    color-mix(in oklch, var(--copper) 37%, white) 46%,
    color-mix(in oklch, var(--copper) 87%, black) 58%,
    color-mix(in oklch, var(--copper) 65%, white) 78%,
    color-mix(in oklch, var(--copper) 59%, black) 100%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.55' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='600' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--grain), linear-gradient(180deg, var(--onyx-top) 0%, var(--onyx) 640px), var(--onyx);
  background-color: var(--onyx);
  color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.label { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.lit { fill: var(--lit); } .shade { fill: var(--shade); }

/* ---- the opening: a window of polished onyx in the brushed surface; the mark is drawn in it, its top becomes the circumflex, and the emblem is drawn again beside the name ---- */
/* the header is polished onyx from edge to edge, closed by the app's copper hairline; the brushed surface starts under it */
.open { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: #030304; }
.case { position: relative; width: 100%; }
.hair { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--copper) 85%, transparent) 25%, color-mix(in oklch, var(--copper) 85%, transparent) 75%, transparent); }
.win { position: relative; overflow: hidden; isolation: isolate; width: 100%; height: 100vh; height: 100svh; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px max(24px, env(safe-area-inset-right, 0px)) 56px max(24px, env(safe-area-inset-left, 0px)); }
.plate { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% var(--cy, 46%), color-mix(in oklch, var(--copper) 13%, transparent), transparent 70%),
    linear-gradient(180deg, #08080A 0%, #040405 55%, #020203 100%);
  }
.sheen { position: absolute; z-index: 0; top: -20%; bottom: -20%; left: 0; width: 46%; pointer-events: none; opacity: 0; transform: translateX(-140%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,236,214,0.07) 40%, rgba(255,236,214,0.14) 50%, rgba(255,236,214,0.07) 60%, transparent); }
.logo { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.19em; font-size: clamp(70px, 19vw, 208px); line-height: 1; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
.logo:focus-visible { outline: 1px solid var(--copper); outline-offset: 12px; }
.lk { height: 0.76em; width: auto; display: block; }
.wm { display: inline-flex; gap: 0.08em; font-family: var(--display); font-weight: 600; text-transform: uppercase; color: var(--copper); }
.wm .L { display: inline-block; position: relative; }
.wm .m { display: block; overflow: hidden; padding: 0.04em 0; margin: -0.04em 0; }
.wm .g { display: block;
  background: linear-gradient(105deg, transparent 45%, rgba(255,255,255,0.85) 50%, transparent 55%) 100% 0 / 300% 100% no-repeat, var(--ramp);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.circ { position: absolute; left: 50%; bottom: 0.875em; width: 0.37em; height: auto; transform: translateX(-52%); display: block; overflow: visible; }
.fly { position: absolute; z-index: 1; left: 0; top: 0; pointer-events: none; display: none; will-change: transform, opacity; }
.fly svg { display: block; transform-origin: 0 0; will-change: transform; overflow: visible; }
#gem { overflow: visible; transform-origin: 50% 50%; }
.lk { overflow: visible; } #lkS { opacity: 0; }
.ln { fill: none; stroke: var(--lit); stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.tag { position: relative; z-index: 1; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.9vw, 36px); line-height: 1.3; max-width: 21em; margin: clamp(36px, 5vw, 60px) auto 0; text-wrap: balance; }
.tag i { font-style: normal; color: var(--ink-2); }
.cue { position: absolute; z-index: 1; left: 50%; bottom: 20px; margin-left: -0.5px; width: 1px; height: 40px; background: linear-gradient(180deg, var(--copper), transparent); animation: cue 2.6s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.open.pre .plate, .open.pre .hair, .open.pre .logo, .open.pre .tag, .open.pre .cue { opacity: 0; }

/* ---- the teaser ---- */
.rule { height: 1px; border: 0; margin: 0; background: var(--copper-hair); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 88px; align-items: center; padding-block: 104px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; margin: 16px 0 0; text-wrap: balance; }
.lede { font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(22px, 2.3vw, 27px); line-height: 1.3; color: var(--ink); max-width: 21em; margin: 22px 0 0; text-wrap: balance; }
.what { color: var(--ink-2); font-size: 18px; max-width: 30em; margin: 24px 0 0; }
.lede + .what { margin-top: 18px; }
.points { list-style: none; margin: 40px 0 0; padding: 0; max-width: 34em; }
.points li { padding: 20px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 16px; }
.points li:last-child { border-bottom: 1px solid var(--hair); }
.points svg { width: 16px; height: auto; margin-top: 9px; }
.points b { display: block; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--ink); }
.points span { color: var(--ink-2); font-size: 16px; }

/* ---- the phone: a recording of the app itself ---- */
.stage { position: relative; }
.stage::before { content: ""; position: absolute; inset: 6% -10%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--copper) 15%, transparent), transparent 72%); }
.phone { position: relative; padding: 10px; border-radius: 56px;
  background: linear-gradient(145deg, #2C2C31 0%, #111114 40%, #060607 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09), inset 0 0 0 2px #000, 0 50px 90px -30px rgba(0,0,0,0.95); }
.screen { position: relative; overflow: hidden; border-radius: 46px; aspect-ratio: 402 / 874; background: var(--onyx-top) url("/poster.jpg") center / cover no-repeat; }
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tap { position: absolute; inset: 0; margin: auto; z-index: 2; width: 64px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tap[hidden] { display: none; }
.tap svg { display: block; width: 100%; height: 100%; }
.tap circle { fill: rgba(3, 3, 4, 0.6); stroke: var(--copper); stroke-width: 1; }
.tap path { fill: var(--copper); }
.island { position: absolute; left: 50%; top: 11px; width: 98px; height: 28px; border-radius: 14px; background: #000; transform: translateX(-50%); z-index: 5; }
.eg { text-align: center; margin-top: 18px; }

/* ---- the close: the same polished onyx as the header ---- */
.shut { position: relative; background:
    radial-gradient(60% 320px at 50% 190px, color-mix(in oklch, var(--copper) 11%, transparent), transparent 72%),
    linear-gradient(180deg, #08080A 0%, #040405 55%, #020203 100%); }
.shut .hair.top { top: 0; bottom: auto; }
.shut input[type="email"] { background: #0C0C0E; }

/* ---- waitlist ---- */
.join { text-align: center; padding-block: 104px 96px; }
.join h2 { margin: 0 auto; max-width: 15em; }
form { margin: 40px auto 0; max-width: 460px; }
.field { display: flex; gap: 8px; }
input[type="email"] { flex: 1; min-width: 0; height: 52px; padding: 0 16px; background: var(--onyx-lift); color: var(--ink);
  border: 1px solid var(--hair); border-radius: 4px; font: inherit; font-size: 16px; }
input[type="email"]::placeholder { color: var(--ink-3); }
input[type="email"]:focus-visible, .field button:focus-visible { outline: 1px solid var(--copper); outline-offset: 2px; }
.field button { height: 52px; padding: 0 22px; border: 0; border-radius: 4px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: #1A0F08; white-space: nowrap;
  background: linear-gradient(180deg, color-mix(in oklch, var(--copper) 82%, black) 0%, color-mix(in oklch, var(--copper) 80%, white) 50%, color-mix(in oklch, var(--copper) 82%, black) 100%); transition: filter 150ms ease; }
.field button:hover { filter: brightness(1.08); }
.under { color: var(--ink-3); font-size: 13px; margin: 12px 0 0; }
.under.err { color: var(--ink); }
.field button:disabled { filter: saturate(0.6) brightness(0.8); cursor: default; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.done { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.3; color: var(--copper); margin: 0; }
footer { padding-block: 28px 20px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: baseline; color: var(--ink-3); font-size: 13px; }
footer .stamp { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--ink-2); }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { color: inherit; text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--ink-2); }
footer { padding-bottom: 36px; }

@media (max-width: 880px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: 64px; padding-block: 72px; }
  .stage { max-width: 400px; margin: 0 auto; width: 100%; }
  .stage::before { inset: 6% 0; }
  .join { padding-block: 80px 72px; }
}
@media (max-width: 460px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .field { flex-direction: column; } .field input[type="email"] { flex: none; }
  .phone { border-radius: 50px; } .screen { border-radius: 40px; }
  .win { min-height: 480px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- plain pages (privacy, not found): one quiet column on the same onyx ---- */
.plain { background: #050507; }
.page { max-width: 620px; margin: 0 auto; padding: 96px max(24px, env(safe-area-inset-right, 0px)) 120px max(24px, env(safe-area-inset-left, 0px)); }
.page .label a { color: inherit; text-decoration: none; }
.page h1 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 6vw, 52px); line-height: 1.1; margin: 20px 0 0; color: var(--ink); }
.page .lede { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.35; max-width: none; margin: 18px 0 0; color: var(--ink); }
.page h2 { font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); margin: 44px 0 0; max-width: none; }
.page p { color: var(--ink-2); margin: 10px 0 0; }
.page a { color: var(--ink); text-decoration-color: color-mix(in oklch, var(--copper) 60%, transparent); text-underline-offset: 3px; }
.page .dated { margin-top: 56px; font-size: 13px; color: var(--ink-3); }
