/* 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-0: color-mix(in oklch, var(--copper) 74%, black);
  --ramp-1: var(--copper);
  --ramp-2: color-mix(in oklch, var(--copper) 37%, white);
  --ramp-3: color-mix(in oklch, var(--copper) 87%, black);
  --ramp-4: color-mix(in oklch, var(--copper) 65%, white);
  --ramp-5: color-mix(in oklch, var(--copper) 59%, black);
  --ramp: linear-gradient(180deg, var(--ramp-0) 0%, var(--ramp-1) 22%, var(--ramp-2) 46%, var(--ramp-3) 58%, var(--ramp-4) 78%, var(--ramp-5) 100%);
  --shade-ground: color-mix(in oklch, var(--copper) 50%, black);
  --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; }
/* The Rivet: the copper ramp on the lit face; on the shade face each stop is held a quarter of the way out of a deep copper ground.
   The page points the faces at these two gradients; the flat fills here are the fallback. */
.lit { fill: var(--lit); } .shade { fill: var(--shade); }
#rvLit stop:nth-child(1) { stop-color: var(--ramp-0); } #rvLit stop:nth-child(2) { stop-color: var(--ramp-1); } #rvLit stop:nth-child(3) { stop-color: var(--ramp-2); }
#rvLit stop:nth-child(4) { stop-color: var(--ramp-3); } #rvLit stop:nth-child(5) { stop-color: var(--ramp-4); } #rvLit stop:nth-child(6) { stop-color: var(--ramp-5); }
#rvShade stop:nth-child(1) { stop-color: color-mix(in oklch, var(--ramp-0) 25%, var(--shade-ground)); } #rvShade stop:nth-child(2) { stop-color: color-mix(in oklch, var(--ramp-1) 25%, var(--shade-ground)); }
#rvShade stop:nth-child(3) { stop-color: color-mix(in oklch, var(--ramp-2) 25%, var(--shade-ground)); } #rvShade stop:nth-child(4) { stop-color: color-mix(in oklch, var(--ramp-3) 25%, var(--shade-ground)); }
#rvShade stop:nth-child(5) { stop-color: color-mix(in oklch, var(--ramp-4) 25%, var(--shade-ground)); } #rvShade stop:nth-child(6) { stop-color: color-mix(in oklch, var(--ramp-5) 25%, var(--shade-ground)); }

/* ---- 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; }

/* ---- how we're paid: one line in the largest type on the page, four facts under it ---- */
.paid { padding-block: 96px 104px; }
.paid .big { font-size: clamp(42px, 6.8vw, 92px); line-height: 1.02; max-width: 11.5em; margin-top: 22px; }
.paid .big em { font-style: italic; background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; row-gap: 48px; max-width: 900px; margin-top: 80px; }
.facts > div { border-top: 1px solid color-mix(in oklch, var(--copper) 45%, transparent); padding-top: 22px; min-width: 0; }
.facts b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(19px, calc((100vw - 120px) / 39), 24px); line-height: 1.2; color: var(--ink); }
.facts span { display: block; color: var(--ink-2); font-size: 16px; margin-top: 10px; }
.paid .also { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.3vw, 27px); line-height: 1.3; color: var(--ink); margin: 64px 0 0; max-width: 28em; text-wrap: balance; }
.paid .foot { color: var(--ink-2); font-size: 16px; max-width: 44em; margin: 32px 0 0; }

/* ---- 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, #3A3A40 0%, #1C1C20 38%, #0A0A0C 100%);
  /* a wide copper light behind the phone, so it stands off the stone the way the Rivet does under the header's light */
  box-shadow: inset 0 0 0 2px #000,
    0 0 150px 20px color-mix(in oklch, var(--copper) 18%, transparent), 0 0 40px 0 color-mix(in oklch, var(--copper) 10%, transparent),
    0 50px 90px -30px rgba(0,0,0,0.95); }
/* the frame catches the light at its top left, like the Rivet's lit face, and fades around the sides */
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 6;
  background: linear-gradient(150deg, color-mix(in oklch, var(--copper) 55%, white 25%) 0%, color-mix(in oklch, var(--copper) 30%, transparent) 22%, transparent 45%, transparent 80%, color-mix(in oklch, var(--copper) 18%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.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 ---- */
/* the copper light sits behind the heading and the form and is gone by --light-end; the lines start below that (see .join), so the two never overlap */
.shut { position: relative; --light-y: 180px; --light-r: 260px; --light-end: calc(var(--light-y) + var(--light-r) * 0.72);
  background:
    radial-gradient(60% var(--light-r) at 50% var(--light-y), 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; }
/* the orchestration lines: three faint copper curves in a band under the waitlist. Copper only, never near a chart, and the words sit wholly above the band. */
.lines { display: block; width: 100%; height: clamp(140px, 15vw, 210px); pointer-events: none; }
.lines path { fill: none; stroke: var(--copper); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lines path:nth-child(1) { stroke-opacity: 0.10; }
.lines path:nth-child(2) { stroke-opacity: 0.07; }
.lines path:nth-child(3) { stroke-opacity: 0.05; }

/* ---- waitlist ---- */
.join { text-align: center; padding-block: 104px 40px; min-height: calc(var(--light-end) + 6px); }   /* never shorter than the light, so the band of lines always starts clear of it */
.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; }

/* between the one-column layout and the full width, the phone's glow would reach past the window's edge and let the page scroll sideways */
@media (min-width: 881px) and (max-width: 1112px) {
  .stage::before { inset: 6% -24px; }
}
@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; }
  .paid { padding-block: 72px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 56px; }
  .facts b { font-size: 26px; }
  .join { padding-block: 80px 32px; }
}
@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; }
  /* nothing waits on the opening: the finished header shows at once, before any script runs */
  .open.pre .plate, .open.pre .hair, .open.pre .logo, .open.pre .tag, .open.pre .cue { opacity: 1; }
}

/* ---- 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); }
