/* Liebesbriefe landing. Tokens are the app's skies (apps/expo/src/theme/skies.ts).
   Everything reads from CSS variables, so `body[data-sky]` re-skins the whole page. */

:root {
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

/* ---------- sky tokens ---------- */
body, body[data-sky="partner-day"] {
  --c0: #EC6A92; --c1: #F07FA2; --c2: #F598B6; --c3: #FAB4C9; --c4: #FFD2DE; --c5: #FFF0F4;
  --ink: #3A0F26; --ink2: #4A1730; --pen: #3A0F26; --graphite: #8C6C7A; --kiss: #D6336C;
  --paper: #FFFAF8; --paper2: #7C4A5E; --cta: #3A0F26; --cta-text: #FFF0F4;
  --glass: rgba(255,240,244,.55); --seg: rgba(58,15,38,.09); --line: rgba(58,15,38,.3);
  --wall: #FBD3E0; --tile: rgba(255,255,255,.55); --arc: rgba(255,255,255,.35); --dock: rgba(255,255,255,.4);
}
body[data-sky="friend-day"] {
  --c0: #E8734F; --c1: #F08B58; --c2: #F59E62; --c3: #FBB777; --c4: #FFCF9A; --c5: #FFE6C4;
  --ink: #2B1220; --ink2: #4A1F1C; --pen: #2B1220; --graphite: #8C7570; --kiss: #D9573A;
  --paper: #FFFAF3; --paper2: #7A5A55; --cta: #2B1220; --cta-text: #FFE6C4;
  --glass: rgba(255,230,196,.55); --seg: rgba(43,18,32,.09); --line: rgba(43,18,32,.3);
  --wall: #FFE0C2;
}
body[data-sky="partner-night"] {
  --c0: #2A0E1F; --c1: #46142F; --c2: #6A1F46; --c3: #942C5E; --c4: #C2457C; --c5: #FFE3EC;
  --ink: #FFE9F0; --ink2: #EBBCCD; --pen: #3A0F26; --graphite: #8C6C7A; --kiss: #D6336C;
  --paper: #F4E7EA; --paper2: #7C4A5E; --cta: #FFE3EC; --cta-text: #2A0E1F;
  --glass: rgba(80,25,55,.6); --seg: rgba(255,233,240,.14); --line: rgba(255,233,240,.26);
  --wall: #1F0C17; --tile: rgba(255,233,240,.13); --arc: rgba(255,233,240,.06); --dock: rgba(255,233,240,.09);
}
body[data-sky="friend-night"] {
  --c0: #2B1410; --c1: #4A2012; --c2: #7A3418; --c3: #B04E1F; --c4: #E0742C; --c5: #FFE9D2;
  --ink: #FFE9D2; --ink2: #F2C7A5; --pen: #2B1220; --graphite: #8C7570; --kiss: #D9573A;
  --paper: #F6EAE0; --paper2: #7A5A55; --cta: #FFE9D2; --cta-text: #2B1410;
  --glass: rgba(90,40,20,.6); --seg: rgba(255,233,210,.14); --line: rgba(255,233,210,.26);
  --wall: #1E0F0A; --tile: rgba(255,233,210,.13); --arc: rgba(255,233,210,.06); --dock: rgba(255,233,210,.09);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { transition: background-color .6s, color .6s, fill .6s, stroke .6s, border-color .6s; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--body); color: var(--ink); background: var(--c0);
  -webkit-font-smoothing: antialiased; overflow-x: clip; line-height: 1.4;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }
em { font-style: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; flex: none; }
.ink { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ink-pen { stroke: var(--pen); }
.ink-kiss { stroke: var(--kiss); }
.ink-ink { stroke: var(--ink); }
.kiss { color: var(--kiss); }
.rings .g0, #skybg .g0 { fill: var(--c0); }
.rings .g1, #skybg .g1 { fill: var(--c1); }
.rings .g2, #skybg .g2 { fill: var(--c2); }
.rings .g3, #skybg .g3 { fill: var(--c3); }
.rings .g4, #skybg .g4 { fill: var(--c4); }
.rings .g5, #skybg .g5 { fill: var(--c5); }
#skybg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
h1 { font-size: clamp(42px, 5.8vw, 94px); }
h2 { font-size: clamp(34px, 5vw, 68px); }
h3 { font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); margin-bottom: 18px; }
.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--ink2); font-weight: 500; max-width: 34em; margin-top: 20px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.note { font-size: 15px; font-weight: 600; color: var(--ink2); }

/* ---------- buttons, nav ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 17px/1 var(--display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .2s cubic-bezier(.2,.9,.3,1.3), background-color .6s, color .6s;
}
.cta { background: var(--cta); color: var(--cta-text); }
.pill:hover { transform: scale(1.04); }
.pill:active { transform: scale(.97); }
.pill:disabled { opacity: .6; cursor: wait; transform: none; }

.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; translate: -50% 0; width: min(1160px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 12px;
  border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font: 800 20px/1 var(--display); letter-spacing: -.03em; }
.nav .pill { height: 44px; padding: 0 20px; font-size: 16px; }

/* ---------- waitlist form ---------- */
.wl { margin-top: 28px; max-width: 520px; }
.wl-row { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 2px var(--line); }
.wl input[type=email] { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 0; background: transparent; font: 600 17px var(--body); color: var(--ink); outline: none; border-radius: 999px; }
.wl input[type=email]::placeholder { color: var(--ink2); opacity: .65; }
.wl-row:focus-within { box-shadow: inset 0 0 0 3px var(--ink); }
.wl .pill { height: 48px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-msg { min-height: 1.4em; margin-top: 10px; padding-left: 8px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.wl-msg.err { display: inline-block; padding: 6px 12px; border-radius: 12px; background: var(--cta); color: var(--cta-text); }
.wl-done { display: none; align-items: center; gap: 14px; padding: 6px 0; }
.wl-done p { font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.wl-done b { font-family: var(--display); font-weight: 800; }
.tick { width: 48px; height: 48px; flex: none; }
.tick circle { fill: var(--cta); }
.tick path { fill: none; stroke: var(--cta-text); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.wl.done .wl-row { display: none; }
.wl.done .wl-done { display: flex; }
.wl.done .tick path { animation: draw .6s .15s ease-out forwards; }
.wl.done .wl-msg { display: none; }
.wl.big { margin: 36px auto 0; }
.wl.big .wl-done { justify-content: center; text-align: left; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- phone ---------- */
.phone { position: absolute; left: 0; top: 0; width: 430px; height: 902px; transform-origin: 50% 50%; }
.bezel { position: absolute; inset: 0; background: #1A0A13; border-radius: 62px; box-shadow: 0 30px 60px rgba(40,6,24,.35), inset 0 0 0 2px #3a2230; }
.scr { position: absolute; left: 14px; top: 14px; width: 402px; height: 874px; border-radius: 48px; overflow: hidden; background: var(--c0); font-family: var(--display); }
.scr svg.rings, .scr svg.arcs { position: absolute; inset: 0; }
.island { position: absolute; left: 153px; top: 25px; width: 124px; height: 36px; border-radius: 18px; background: #000; z-index: 20; }
.status { position: absolute; left: 0; top: 0; width: 402px; height: 56px; z-index: 10; font: 600 17px/1 var(--display); color: var(--ink); }
.status .tm { position: absolute; left: 44px; top: 20px; }
.status svg { position: absolute; right: 30px; top: 21px; }
.homebar { position: absolute; left: 134px; bottom: 8px; width: 134px; height: 5px; border-radius: 3px; z-index: 12; background: var(--ink); }
.burst { position: absolute; left: 0; top: 0; width: 430px; height: 902px; pointer-events: none; z-index: 30; }

.phone-holder { --ps: .82; position: relative; width: calc(430px * var(--ps)); height: calc(902px * var(--ps)); justify-self: center; }
.phone-holder.small { --ps: .64; }
.phone-holder .phone { transform-origin: 0 0; transform: scale(var(--ps)); }

.scr.draw .circ { position: absolute; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.nm { position: absolute; left: 20px; top: 116px; font: 800 58px/1 var(--display); letter-spacing: -1.8px; color: var(--ink); }
.meta { position: absolute; left: 21px; top: 188px; font: 400 13px/18px var(--body); color: var(--ink2); }
.sheet { position: absolute; left: 14px; top: 236px; width: 374px; height: 450px; border-radius: 14px; background: var(--paper); box-shadow: 0 2px 0 rgba(58,15,38,.16), 0 16px 30px rgba(58,15,38,.2); transform-origin: 50% 50%; }
.sheet svg { position: absolute; inset: 0; }
.print { position: absolute; left: 26px; right: 26px; bottom: 14px; display: flex; justify-content: space-between; font: 600 12px/14px var(--display); color: var(--paper2); }
.tools { position: absolute; left: 0; width: 402px; top: 712px; height: 48px; color: var(--ink); }
.tools .ic { position: absolute; top: 12px; }
.tools .ic:first-child { left: 34px; }
.tools .ic:last-child { left: 344px; }
.dot { position: absolute; top: 11px; width: 26px; height: 26px; border-radius: 50%; }
.d1 { left: 111px; background: var(--pen); outline: 2px solid var(--pen); outline-offset: 3px; }
.d2 { left: 188px; background: var(--graphite); }
.d3 { left: 266px; background: var(--kiss); }
.send { position: absolute; left: 20px; top: 780px; width: 362px; height: 56px; border-radius: 28px; background: var(--cta); color: var(--cta-text); display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 17px/1 var(--display); letter-spacing: -.3px; }
.send .ic { stroke-width: 2.2; }
.pen-cursor { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255,255,255,.55); border: 2px solid rgba(58,15,38,.28); z-index: 15; opacity: 0; box-shadow: 0 6px 14px rgba(58,15,38,.2); }

.scr.home { background: var(--wall); }
.scr.home .arcs { stroke: var(--arc); }
.wgt { position: absolute; left: 20px; top: 96px; width: 362px; height: 170px; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 24px rgba(30,5,18,.28); }
.wsky svg { position: absolute; inset: 0; }
.wpaper { position: absolute; left: 14px; top: 15px; width: 215px; height: 138px; border-radius: 10px; background: var(--paper); box-shadow: 0 2px 0 rgba(58,15,38,.16), 0 8px 14px rgba(58,15,38,.2); }
.wpaper svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wpaper.new, .wpaper.mine { opacity: 0; }
.wlabel { position: absolute; right: 12px; bottom: 10px; padding: 8px 12px; border-radius: 14px; text-align: right; }
.wname { font: 800 30px/1 var(--display); letter-spacing: -.8px; color: var(--ink); }
.wtime { margin-top: 6px; font: 600 12px/1 var(--display); color: var(--ink2); }
/* The name sits on the sun. At night ink turns light, so give it a cream label with dark text. */
body[data-sky$="night"] .wlabel { background: var(--c5); }
body[data-sky$="night"] .wlabel :is(.wname, .wtime, .wn, .wt) { color: var(--c0); }
.apps { position: absolute; left: 0; top: 300px; width: 402px; }
.app { position: absolute; width: 74px; text-align: center; font: 400 11px/13px var(--body); color: var(--ink); }
.app i { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 17px; background: var(--tile); }
.app img { width: 64px; height: 64px; border-radius: 17px; margin: 0 auto 6px; }
.dock { position: absolute; left: 18px; right: 18px; bottom: 26px; height: 88px; border-radius: 38px; background: var(--dock); }
.dock i { position: absolute; top: 12px; width: 64px; height: 64px; border-radius: 17px; display: grid; place-items: center; background: var(--tile); color: var(--ink); }
.scr.home .ic { color: var(--ink); }

/* ---------- hero ---------- */
#hero { position: relative; height: 640vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-copy { position: absolute; z-index: 5; left: max(28px, 6vw); top: 50%; translate: 0 -50%; width: min(46vw, 640px); padding-top: 24px; will-change: transform, opacity; }
.hero-copy .lede { max-width: 30em; }
.phones { position: absolute; inset: 0; z-index: 3; }
.phones .phone { will-change: transform; }
#trail { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: visible; }
#trail .dots, .fly .dots { stroke: var(--ink); stroke-opacity: .5; stroke-width: 5; stroke-linecap: round; stroke-dasharray: .1 14; }
.envelope { position: absolute; left: 0; top: 0; width: 260px; height: 180px; z-index: 7; opacity: 0; pointer-events: none; transform-origin: 50% 50%; filter: drop-shadow(0 10px 14px rgba(58,15,38,.28)); will-change: transform; }
.envelope svg { display: block; }
.seal { transform-box: fill-box; transform-origin: center; }
.caption {
  position: absolute; z-index: 6; top: 92px; left: 0; right: 0; padding: 0 24px; text-align: center; opacity: 0; pointer-events: none;
  font: 800 clamp(24px, 3.6vw, 56px)/1.06 var(--display); letter-spacing: -.03em; color: var(--ink); transition: opacity .25s;
}
.caption.on { opacity: 1; }
.caption em { position: relative; display: inline-block; }
.caption em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.16em; height: .26em; background: var(--kiss);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 20' preserveAspectRatio='none'%3E%3Cpath d='M4 12 C20 2 30 18 46 9 C62 0 72 17 90 8 C106 1 116 15 134 8 C142 5 150 8 156 10' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 20' preserveAspectRatio='none'%3E%3Cpath d='M4 12 C20 2 30 18 46 9 C62 0 72 17 90 8 C106 1 116 15 134 8 C142 5 150 8 156 10' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.caption .w { display: inline-block; animation: capIn .65s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes capIn { from { opacity: 0; transform: translateY(40px) rotate(2deg); } to { opacity: 1; transform: none; } }
.scroll-hint { position: absolute; z-index: 6; bottom: 22px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 18px; border-radius: 999px; background: var(--cta); color: var(--cta-text); font: 700 14px/1 var(--display); pointer-events: none; }
.scroll-hint .ic { width: 18px; height: 18px; }
.scroll-hint .ic { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.hero-copy h1 .kiss { display: inline-block; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s, transform .8s cubic-bezier(.2,.9,.3,1), background-color .6s, color .6s; }
[data-reveal].in { opacity: 1; transform: none; }
.head { max-width: 760px; }
.head.center { margin-inline: auto; }

.ctl { margin-top: 36px; display: grid; gap: 22px; max-width: 460px; }
.seg { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: var(--seg); width: fit-content; }
.seg button, .chips button { height: 42px; padding: 0 22px; border-radius: 999px; font: 700 16px/1 var(--display); letter-spacing: -.01em; transition: background-color .25s, color .25s, transform .2s; }
.seg button[aria-pressed=true], .chips button[aria-pressed=true] { background: var(--cta); color: var(--cta-text); }
.seg button:hover, .chips button:hover { transform: scale(1.04); }
.slider label { display: flex; justify-content: space-between; font: 700 15px/1 var(--display); margin-bottom: 12px; }
.slider b { font-weight: 800; font-variant-numeric: tabular-nums; }
.slider input { --fill: 40%; -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(to right, var(--cta) var(--fill), var(--seg) var(--fill)); }
.slider input::-moz-range-track { height: 10px; border-radius: 5px; background: var(--seg); }
.slider input::-moz-range-progress { height: 10px; border-radius: 5px; background: var(--cta); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--c5); border: 4px solid var(--cta); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.slider input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--c5); border: 4px solid var(--cta); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.tip { margin-top: 26px; font: 700 15px/1 var(--display); color: var(--ink2); }

/* ---------- try it ---------- */
.try-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: center; justify-items: center; margin-top: 56px; }
.try-left { width: min(100%, 380px); }
.try-sheet { position: relative; width: 100%; aspect-ratio: 340 / 400; border-radius: 14px; background: var(--paper); box-shadow: 0 2px 0 rgba(58,15,38,.16), 0 18px 36px rgba(58,15,38,.22); touch-action: none; transform-origin: 50% 50%; }
.try-sheet svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; border-radius: 14px; }
.try-hint { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; pointer-events: none; font: 800 24px/1 var(--display); color: var(--paper2); opacity: .7; transition: opacity .3s; }
.try-hint.gone { opacity: 0; }
.try-hint::after { content: ""; width: 90px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 20'%3E%3Cpath d='M4 12 C20 2 30 18 46 9 C62 0 72 17 90 8 C106 1 116 15 134 8 C142 5 150 8 156 10' fill='none' stroke='%237C4A5E' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.try-sheet .print { bottom: 12px; pointer-events: none; }
.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-9px) rotate(-1deg); } 45% { transform: translateX(8px) rotate(1deg); } 70% { transform: translateX(-4px); } }
.try-tools { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 0 10px; }
.try-tools .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); color: var(--ink); }
.pen-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--c); outline: 2px solid transparent; outline-offset: 4px; transition: outline-color .2s, transform .2s; }
.pen-dot:hover { transform: scale(1.1); }
.pen-dot[aria-pressed=true] { outline-color: var(--c); }
.send-big { width: 100%; margin-top: 18px; height: 58px; }
.try-right { display: grid; justify-items: center; gap: 14px; }
.cap { font: 700 14px/1 var(--display); color: var(--ink2); }
.fly { position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; overflow: visible; }
.envelope.small { z-index: 10; }
#try { overflow: hidden; }
#try .wrap { position: relative; }

/* ---------- widget looks ---------- */
.chips { display: flex; gap: 8px; justify-content: safe center; margin: 40px auto 26px; overflow-x: auto; padding: 6px; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; background: var(--seg); }
.style-card { width: min(100%, 580px); margin: 0 auto; padding: 22px 20px 26px; border-radius: 34px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.zoomer { --z: 1; height: calc(158px * var(--z) + 26px); display: flex; justify-content: center; align-items: flex-start; padding-top: 10px; }
.widget-stage { width: 338px; height: 158px; flex: none; transform: scale(var(--z)); transform-origin: 50% 0; }
.widget-stage.swap { animation: swap .55s cubic-bezier(.2,.9,.3,1.25); }
@keyframes swap { from { opacity: 0; transform: scale(calc(var(--z) * .86)) rotate(-3deg); } to { opacity: 1; transform: scale(var(--z)); } }
.style-card .note { text-align: center; margin-top: 8px; font-size: 16px; }

.wd { position: relative; width: 338px; height: 158px; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 28px rgba(30,5,18,.25); font-family: var(--display); }
.wd * { transition: none; }
.wd .paper, .wd .note-paper { background: var(--paper); border-radius: 8px; box-shadow: 0 2px 0 rgba(58,15,38,.16), 0 6px 12px rgba(58,15,38,.18); }
.wd svg { display: block; }
.wd .wn { position: static; font: 800 26px/1 var(--display); letter-spacing: -.6px; color: var(--ink); }
.wd .wt { font: 600 12px/1 var(--display); color: var(--ink2); }
.w-sky { background: radial-gradient(circle at 80% 36%, var(--c5) 0 26px, var(--c4) 0 49px, var(--c3) 0 75px, var(--c2) 0 101px, var(--c1) 0 127px, var(--c0) 0); }
.w-sky .note { position: absolute; left: 14px; top: 10px; width: 200px; height: 138px; }
.w-sky .note svg { width: 100%; height: 100%; }
.w-sky .wlabel { right: 10px; bottom: 10px; }
.wd .wlabel .wt { margin-top: 5px; }

.w-env { background: var(--c3); }
.w-env .sheet { position: absolute; left: 62px; top: 8px; width: 214px; height: 124px; transform: rotate(-2deg); }
.w-env .sheet svg { width: 100%; height: 100%; }
.w-env .pocket { position: absolute; left: 36px; top: 54px; width: 266px; height: 104px; filter: drop-shadow(0 -2px 4px rgba(58,15,38,.12)); }
.w-env .seal { position: absolute; left: 153px; top: 99px; width: 32px; height: 32px; filter: drop-shadow(0 2px 3px rgba(58,15,38,.3)); }
.w-env .wn { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 17px; color: #3A0F26; letter-spacing: -.3px; }

.w-post { background: repeating-linear-gradient(135deg, var(--kiss) 0 10px, #F2E8DA 10px 17px, #3C5C9E 17px 27px, #F2E8DA 27px 34px); }
.w-post .inner { position: absolute; inset: 7px; border-radius: 16px; background: var(--paper); }
.w-post .msg { position: absolute; left: 8px; top: 6px; width: 180px; height: 130px; }
.w-post .msg svg { width: 100%; height: 100%; }
.w-post .split { position: absolute; left: 196px; top: 12px; bottom: 12px; border-left: 1.5px solid rgba(43,18,32,.2); }
.w-post .stamp { position: absolute; right: 14px; top: 12px; width: 40px; height: 48px; padding: 4px; background: #fff; box-shadow: 0 1px 0 rgba(43,18,32,.2); }
.w-post .stamp i { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 70% 30%, var(--c5) 0 5px, var(--c4) 0 9px, var(--c3) 0 14px, var(--c2) 0 19px, var(--c0) 0); }
.w-post .pm { position: absolute; right: 52px; top: 24px; width: 48px; height: 48px; border: 1.8px solid rgba(43,18,32,.5); border-radius: 50%; transform: rotate(-12deg); display: grid; place-content: center; text-align: center; font: 700 8px/1.25 var(--display); letter-spacing: .04em; color: rgba(43,18,32,.6); }
.w-post .addr { position: absolute; left: 208px; right: 16px; bottom: 18px; }
.w-post .addr span { font: 800 17px/1 var(--display); color: #3A0F26; }
.w-post .addr b { display: block; height: 1.5px; background: rgba(43,18,32,.25); margin-top: 11px; }

.w-pola { background: var(--c4); }
.w-pola .pic { position: absolute; left: 24px; top: 12px; width: 140px; height: 146px; padding: 8px 8px 0; background: #fff; border-radius: 4px; transform: rotate(-5deg); box-shadow: 0 8px 14px -4px rgba(43,18,32,.4); }
.w-pola .photo { height: 112px; background: var(--paper); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(43,18,32,.08); }
.w-pola .photo svg { width: 100%; height: 100%; }
.w-pola .tape { position: absolute; left: 42px; top: -8px; width: 54px; height: 16px; background: rgba(255,226,140,.82); box-shadow: 0 1px 0 rgba(0,0,0,.12); transform: rotate(-2deg); clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 100% 0, 94% 50%, 100% 100%, 18% 100%, 12% 90%, 6% 100%, 0 92%, 5% 50%); }
.w-pola .wlabel { right: 14px; top: 46px; bottom: auto; }
.w-pola .wn { font-size: 28px; }

.w-fridge { background: linear-gradient(160deg, #F4F5F3, #DFE3E1); }
.w-fridge .sheet { position: absolute; left: 22px; top: 16px; width: 190px; height: 130px; transform: rotate(2deg); }
.w-fridge .sheet svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-fridge .magnet { position: absolute; left: 84px; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55) 0 14%, transparent 15%), var(--kiss); box-shadow: 0 2px 3px rgba(0,0,0,.3), inset 0 -2px 3px rgba(0,0,0,.18); }
.w-fridge .tiles { position: absolute; right: 14px; top: 28px; width: 100px; display: flex; flex-wrap: wrap; gap: 5px; }
.w-fridge .tiles b { width: 30px; height: 34px; border-radius: 8px; display: grid; place-items: center; font: 800 20px/1 var(--display); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.2), inset 0 -3px 0 rgba(0,0,0,.14); }

.w-moon { background: linear-gradient(170deg, #1B1F5E, #3C2A7C 70%, #5B3A8E); }
.w-moon .star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #FFF4C2; animation: tw 2.4s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .25; transform: scale(.6); } }
.w-moon .moonball { position: absolute; right: 24px; top: 18px; width: 62px; height: 62px; border-radius: 50%; background: #FFE9A8; box-shadow: inset -9px -5px 0 #F3CF7B, 0 0 40px 8px rgba(255,233,168,.28); }
.w-moon .moonball i { position: absolute; }
.w-moon .e1, .w-moon .e2, .w-moon .mo { top: 25px; width: 10px; height: 5px; border-bottom: 2.2px solid #8A6A2B; border-radius: 0 0 10px 10px; }
.w-moon .e1 { left: 14px; } .w-moon .e2 { left: 36px; } .w-moon .mo { left: 25px; top: 38px; }
.w-moon .ch1, .w-moon .ch2 { top: 33px; width: 9px; height: 6px; border-radius: 50%; background: #F4A3A0; opacity: .8; }
.w-moon .ch1 { left: 5px; } .w-moon .ch2 { right: 5px; }
.w-moon .cloud { position: absolute; left: 16px; top: 22px; width: 206px; height: 112px; background: #fff; border-radius: 20px; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.w-moon .cloud::before, .w-moon .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.w-moon .cloud::before { width: 44px; height: 44px; left: 18px; top: -18px; }
.w-moon .cloud::after { width: 32px; height: 32px; left: 56px; top: -12px; }
.w-moon .cloud .paper { position: absolute; inset: 8px; z-index: 1; box-shadow: none; }
.w-moon .cloud .paper svg { width: 100%; height: 100%; }
.w-moon .wn { position: absolute; right: 22px; bottom: 14px; font-size: 16px; color: #FFE9A8; }

/* ---------- details ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.card { display: flex; flex-direction: column; padding: 28px; border-radius: 30px; background: var(--paper); color: var(--pen); box-shadow: 0 2px 0 rgba(58,15,38,.16), 0 18px 34px rgba(58,15,38,.16); }
.card h3 { margin-top: 24px; }
.card p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--paper2); }
.clocks { display: grid; gap: 14px; align-content: center; min-height: 150px; }
.clk { display: flex; align-items: center; gap: 14px; }
.clk .disc { width: 56px; height: 56px; flex: none; border-radius: 50%; background: radial-gradient(circle at 70% 30%, var(--d5, #FFF0F4) 0 7px, var(--d4, #FFD2DE) 0 14px, var(--d3, #FAB4C9) 0 21px, var(--d2, #F598B6) 0 28px, var(--d0, #EC6A92) 0); transition: none; }
.clk b { display: block; font: 700 13px/1 var(--body); letter-spacing: .04em; color: var(--paper2); margin-bottom: 4px; }
.clk .t { font: 800 32px/1 var(--display); letter-spacing: -.03em; margin-right: 10px; font-variant-numeric: tabular-nums; }
.clk em { font: 600 13px/1 var(--body); color: var(--paper2); }
.code { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 112px; }
.ch { width: 40px; height: 62px; border-radius: 12px; display: grid; place-items: center; background: rgba(58,15,38,.07); font: 800 32px/1 var(--display); color: var(--paper); transition: background-color .25s, transform .25s cubic-bezier(.2,.9,.3,1.4); }
.ch.on { background: var(--pen); animation: pop .4s cubic-bezier(.2,.9,.3,1.5); }
.ch.next { box-shadow: inset 0 0 0 2.5px var(--kiss); }
.ch.next::after { content: ""; width: 2px; height: 28px; background: var(--kiss); animation: blink 1s steps(1) infinite; }
.code .gap { width: 10px; }
@keyframes pop { from { transform: scale(.7); } }
@keyframes blink { 50% { opacity: 0; } }
.timer { text-align: center; font: 600 14px/1 var(--body); color: var(--paper2); margin-top: 12px; min-height: 26px; }
.card .timer { margin-top: 12px; }
.card p.timer { font-size: 14px; margin-top: 12px; }
.timer b { font-variant-numeric: tabular-nums; color: var(--pen); }
.stack { position: relative; height: 150px; }
.stack .sh { position: absolute; left: 50%; top: 10px; width: 152px; height: 112px; margin-left: -76px; border-radius: 10px; background: var(--paper); box-shadow: 0 2px 0 rgba(58,15,38,.16), 0 8px 14px rgba(58,15,38,.14); border: 1px solid rgba(58,15,38,.06); transition: transform .5s cubic-bezier(.2,.9,.3,1.2); }
.stack .sh svg { width: 100%; height: 100%; }
.sh0 { transform: rotate(-9deg) translate(-30px, 6px); }
.sh1 { transform: rotate(7deg) translate(30px, 2px); }
.sh2 { transform: rotate(-1deg) translateY(12px); }
.card:hover .sh0 { transform: rotate(-14deg) translate(-44px, 4px); }
.card:hover .sh1 { transform: rotate(12deg) translate(44px, 0); }
.card:hover .sh2 { transform: rotate(0) translateY(4px); }

/* ---------- join + footer ---------- */
.final { padding-bottom: clamp(100px, 13vw, 170px); }
.app-icon { margin: 0 auto 32px; width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 22px 44px rgba(58,15,38,.3); }
.final h2 { font-size: clamp(38px, 6vw, 84px); }
.final .lede { margin-top: 24px; }
.foot { padding: 36px 0 48px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink2); }

/* ---------- responsive ---------- */
@media (max-width: 899px) {
  #hero { height: 560vh; }
  .hero-copy { left: 22px; right: 22px; top: 88px; translate: none; width: auto; padding-top: 0; }
  .hero-copy h1 { font-size: clamp(36px, 10.4vw, 54px); }
  .hero-copy .lede { font-size: 16px; margin-top: 14px; }
  .hero-copy .eyebrow { margin-bottom: 12px; }
  .hero-copy .wl { margin-top: 18px; }
  .caption { top: 76px; font-size: clamp(22px, 6.2vw, 34px); }
  .two { grid-template-columns: 1fr; gap: 40px; }
  .phone-holder { --ps: .72; }
  .try-stage { grid-template-columns: 1fr; gap: 44px; }
  .phone-holder.small { --ps: .62; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero-copy .lede { display: none; }
  .scroll-hint { bottom: 14px; }
}
@media (max-width: 520px) {
  .wl { max-width: none; }
  .wl-row { flex-direction: column; gap: 8px; padding: 8px; border-radius: 36px; }
  .wl input[type=email] { flex: none; width: 100%; height: 64px; font-size: 19px; background: var(--paper); color: var(--pen); text-align: center; }
  .wl input[type=email]::placeholder { color: var(--paper2); opacity: .8; }
  .wl .pill { height: 64px; font-size: 19px; }
  .nav .pill { padding: 0 16px; font-size: 15px; }
  .brand span { font-size: 18px; }
  .phone-holder { --ps: .66; }
}
@media (max-height: 640px) and (min-width: 900px) {
  .hero-copy .lede { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
