/*
 * delaya.app. Layout follows spendlow.app: dark aurora hero with a live phone,
 * chip strip, tabbed moments, bento, screens, steps, plans, FAQ, final CTA.
 * Colors and type are the app's own (src/index.css .dark tokens).
 * The one thing only Delaya has: you can press play and hear it.
 */
:root {
  --bg: #120f1f; --card: #1b1730; --tint: #262042; --ink: #ece8ff; --muted: #a59ec8;
  --line: #302a4e; --line-2: #4e4676; --primary: #b08cff; --blush: #ec96c4; --gold: #f6cd6a;
  --on-primary: #140e2d;
  --l-bg: #fcf6fc; --l-card: #fff; --l-tint: #f6ecfa; --l-ink: #2b1f40; --l-muted: #75678c; --l-primary: #8c5cec; --l-blush: #f08cbe;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --grad: linear-gradient(100deg, var(--primary), var(--blush));
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.08; text-wrap: balance; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.section { position: relative; padding-block: 96px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--primary); font-size: 13px; font-weight: 600; }
.eyebrow::before { content: '✦'; color: var(--gold); }
.h2 { margin-top: 18px; font-size: clamp(34px, 5vw, 56px); }
.lead { margin-top: 16px; max-width: 620px; color: var(--muted); font-size: 18px; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding-right: .06em; }

/* buttons */
.btn, .store { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.btn { padding-inline: 26px; border: 0; border-radius: 999px; font-weight: 700; }
.btn:hover, a.store:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: var(--on-primary); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--card); }
.btn-sm { height: 40px; padding-inline: 18px; font-size: 14px; }
.store { padding: 0 20px 0 16px; border: 1px solid #a6a6a6; border-radius: 12px; background: #000; color: #fff; }
.store svg { width: 25px; height: 25px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 11px; }
.store strong { font: 600 20px/1.1 -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

/* header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; background: var(--bg); transition: background .3s, border-color .3s; }
.home .header:not(.scrolled):not(.open) { background: transparent; }
.header.scrolled { border-bottom-color: var(--line); background: rgb(18 15 31 / .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.logo img { width: 36px; height: 36px; border-radius: 11px; }
.logo b { color: var(--primary); font-weight: inherit; }
.links { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
.links a:hover, .footer a:hover { color: var(--ink); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); font-size: 18px; }
.menu { display: none; padding: 4px 20px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.menu a { display: block; padding-block: 13px; border-bottom: 1px solid var(--line); color: var(--muted); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 132px 0 88px; }
.aurora { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); animation: drift 20s ease-in-out infinite alternate; }
.blob-1 { width: 620px; height: 620px; left: -180px; top: -150px; background: radial-gradient(circle, rgb(110 70 200 / .55), transparent 70%); }
.blob-2 { width: 560px; height: 560px; right: -150px; top: 90px; background: radial-gradient(circle, rgb(200 80 150 / .42), transparent 70%); animation-delay: -7s; }
.blob-3 { width: 380px; height: 380px; left: 38%; bottom: -180px; background: radial-gradient(circle, rgb(246 205 106 / .22), transparent 70%); animation-delay: -12s; }
.stars { position: absolute; inset: 0; }
.stars i { position: absolute; color: var(--gold); font-style: normal; animation: twinkle 4s ease-in-out infinite; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 6.6vw, 82px); }
.hero h1 .accent { display: block; padding-bottom: .12em; }
.hero-sub { max-width: 540px; margin-top: 18px; color: var(--muted); font-size: 19px; }
.note { margin-top: 16px; color: var(--muted); font-size: 13px; }
.enter { animation: enter .9s var(--ease) both; }

.stage { position: relative; display: flex; justify-content: center; }
.stage { perspective: 1100px; }
.phone { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out; position: relative; width: 310px; height: 626px; padding: 12px; border-radius: 50px; background: linear-gradient(160deg, var(--line), var(--on-primary)); box-shadow: 0 0 0 1px var(--line-2), 0 36px 90px -24px rgb(176 140 255 / .4); }
.screen { position: relative; height: 100%; overflow: hidden; padding: 56px 16px 16px; border-radius: 39px; color: var(--l-ink); background: radial-gradient(120% 60% at 0 0, rgb(214 196 255 / .55), transparent 60%), radial-gradient(110% 60% at 100% 100%, rgb(250 196 222 / .55), transparent 60%), var(--l-bg); }
.island { position: absolute; top: 11px; left: 50%; width: 96px; height: 27px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.s-brand { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; }
.s-brand img { width: 22px; height: 22px; border-radius: 7px; }
.s-brand b { color: var(--l-primary); font-weight: inherit; }
.s-hello { margin-top: 14px; font: 600 25px/1.2 var(--serif); }
.s-card { margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--l-card); box-shadow: 0 4px 18px rgb(43 31 64 / .07); }
.s-label { color: var(--l-muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.s-title { margin-top: 6px; font: 600 18px/1.2 var(--serif); }
.wave { display: flex; align-items: center; justify-content: space-between; height: 46px; margin-top: 12px; }
.wave i { width: 4px; height: 40%; border-radius: 3px; background: linear-gradient(var(--l-primary), var(--l-blush)); animation: wave 1.1s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { height: 80%; animation-delay: -.4s; }
.wave i:nth-child(4n) { height: 60%; animation-delay: -.8s; }
.wave i:nth-child(5n) { height: 25%; animation-delay: -.2s; }
.read { min-height: 128px; margin-top: 12px; font-size: 13px; line-height: 1.6; }
.read span { transition: color .3s; }
.read span.todo { color: var(--l-muted); opacity: .6; }
.s-affirm { margin-top: 14px; padding: 16px; border-radius: 20px; background: linear-gradient(100deg, var(--l-primary), var(--l-blush)); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.35; }
.s-affirm small { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 500; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 16px; background: rgb(27 23 48 / .95); font-size: 13px; font-weight: 700; white-space: nowrap; animation: float 6s ease-in-out infinite; }
.chip small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.chip em { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--tint); color: var(--gold); font-style: normal; }
.chip-1 { left: -78px; top: 150px; }
.chip-2 { right: -70px; top: 318px; animation-delay: -2s; }
.chip-3 { left: -64px; bottom: 26px; animation-delay: -4s; }

/* strip */
.strip { padding-block: 26px; border-block: 1px solid var(--line); }
.strip-label { margin-bottom: 16px; color: var(--muted); font-size: 11px; letter-spacing: .18em; text-align: center; text-transform: uppercase; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; width: max-content; animation: slide 45s linear infinite; }
.track > * { margin-right: 14px; }
.marquee:hover .track { animation-play-state: paused; }
.tag { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 14px; white-space: nowrap; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px auto 34px; }
.tab { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 14px; font-weight: 600; }
.tab[aria-selected='true'] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.moment { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(160deg, var(--card), var(--bg)); }
.moment h3 { font: 600 clamp(27px, 3.4vw, 40px)/1.12 var(--serif); }
.moment p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.moment img { width: 250px; height: auto; aspect-ratio: 640 / 1387; object-fit: cover; margin: 0 auto; border-radius: 26px; transition: opacity .25s, transform .4s var(--ease); }
.moment img.swap { opacity: 0; transform: translateY(12px) rotate(2deg); }
.checks { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: '✓'; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: var(--primary); font-size: 12px; font-weight: 800; }

/* the story that lights up as you scroll */
.scene { position: relative; height: 230vh; }
.scene-pin { position: sticky; top: 0; display: grid; align-items: center; height: 100vh; height: 100svh; overflow: hidden; }
.scene-bg { position: absolute; top: 0; right: 0; width: 56%; height: 100%; object-fit: cover; object-position: center 64%; opacity: .75; transform: scale(var(--zoom, 1)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 62%); mask-image: linear-gradient(90deg, transparent, #000 62%); }
.scene .wrap { position: relative; }
.scene-copy { max-width: 690px; }
.scene-story { margin-top: 24px; font: 600 clamp(27px, 3.6vw, 48px)/1.27 var(--serif); }
.scene-story span { opacity: .22; transition: opacity .25s; }
.scene-story span.lit { opacity: 1; }
.scene-sig { margin-top: 22px; color: var(--blush); font: italic 600 20px var(--serif); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.feat { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); transition: border-color .3s; }
.feat::before { content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(236 150 196 / .16), transparent 45%); }
.feat:hover { border-color: var(--line-2); }
.feat:hover::before { opacity: 1; }
.feat.wide { grid-column: span 2; }
.feat.photo { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 24px; padding-block: 0; padding-right: 0; }
.feat.photo > div { align-self: center; padding-block: 28px; }
.feat.photo img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; object-position: center 66%; }
.ico svg { width: 23px; height: 23px; }
.chip svg { width: 17px; height: 17px; }
.mira { width: 88px; height: 88px; margin-bottom: 16px; border-radius: 26px; animation: float 5s ease-in-out infinite; }
.ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; background: var(--tint); color: var(--gold); font-size: 21px; }
.feat p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mini span { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--primary); font-size: 12px; }

/* narrators */
.voices { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.voice { display: flex; align-items: center; gap: 12px; width: 258px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); text-align: left; }
.voice em { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: var(--on-primary); font-style: normal; }
.voice strong, .voice small { display: block; }
.voice small { color: var(--muted); font-size: 13px; }
.voice[aria-pressed='true'] { border-color: var(--primary); background: var(--tint); }

/* screens */
.shots { margin-top: 52px; }
.shots .track { animation-duration: 60s; }
.shots img { width: 230px; height: auto; aspect-ratio: 640 / 1387; margin-right: 20px; border-radius: 26px; }

/* steps + plans */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.step { padding: 30px; border: 1px solid var(--line); border-radius: 24px; }
.step i { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 12px; background: var(--grad); color: var(--on-primary); font-style: normal; font-weight: 800; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 880px; margin: 48px auto 0; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 120deg; }
.plan.pro { border: 1.5px solid transparent; background: linear-gradient(160deg, var(--tint), var(--card)) padding-box, conic-gradient(from var(--spin), var(--primary), var(--blush), var(--gold), var(--line), var(--primary)) border-box; animation: spin 7s linear infinite; }
.plan .desc, .price span, .price-note { color: var(--muted); }
.plan .desc { margin-top: 6px; font-size: 15px; }
.seg { display: flex; align-self: flex-start; margin-top: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.seg button { padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.price { display: flex; align-items: baseline; gap: 7px; margin-top: 22px; }
.price strong { font-size: 48px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-note { min-height: 22px; font-size: 13px; }
.plan .checks { flex: 1; align-content: start; margin-block: 24px 28px; }
.plan .store { align-self: center; }

/* faq */
.faq { max-width: 760px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; padding-block: 22px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: 22px; color: var(--muted); font-size: 15px; }
.faq details p a { color: var(--primary); text-decoration: underline; }

/* final + footer */
.final { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 36px; background: radial-gradient(90% 120% at 0 0, rgb(110 70 200 / .4), transparent 65%), var(--card); }
.final-copy { padding: 72px 12px 72px 56px; }
.final h2 { font-size: clamp(36px, 5vw, 60px); }
.final h2 .accent { display: block; padding-bottom: .12em; }
.final p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.final > img { width: 100%; height: 100%; max-height: 500px; object-fit: cover; object-position: center 22%; }
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .logo { margin-bottom: 14px; color: var(--ink); }
.footer h4 { margin: 0 0 14px; color: var(--ink); }
.footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* privacy, terms, support, 404 */
.doc { min-height: 70vh; max-width: 780px; padding-block: 124px 80px; line-height: 1.75; }
.doc h1 { margin-bottom: 14px; font-size: clamp(36px, 6vw, 54px); }
.doc h2 { margin: 36px 0 8px; font-size: 25px; }
.doc p, .doc ul { margin-block: 10px; }
.doc li { margin-block: 6px; }
.doc a:not(.btn) { color: var(--primary); text-decoration: underline; }
.doc .muted { color: var(--muted); font-size: 14px; }

/* Reveal only when the script runs, so the page reads without it. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.seen { opacity: 1; transform: none; }

@keyframes spin { to { --spin: 480deg; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes float { 50% { transform: translateY(-9px); } }
@keyframes drift { to { transform: translate(50px, 30px) scale(1.1); } }
@keyframes twinkle { 50% { opacity: .2; } }
@keyframes wave { to { transform: scaleY(.35); } }
@keyframes enter { from { opacity: 0; filter: blur(12px); transform: translateY(18px); } }

@media (max-width: 1180px) {
  .chip-1, .chip-3 { left: 0; }
  .chip-1 { top: -26px; }
  .chip-2 { display: none; }
}
@media (max-width: 960px) {
  .links, .nav .btn { display: none; }
  .burger { display: block; }
  .header.open .menu { display: block; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero { padding-top: 116px; }
  .stage { width: 100%; max-width: 440px; margin-inline: auto; }
  .scene-bg { width: 100%; opacity: .25; -webkit-mask-image: none; mask-image: none; }
  .moment { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 26px; }
  .moment img { width: 230px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
  .final { grid-template-columns: minmax(0, 1fr) 270px; }
  .final-copy { padding-left: 32px; }
}
@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .bento, .plans, .footer-grid, .final { grid-template-columns: minmax(0, 1fr); }
  .feat.wide, .footer-grid > :first-child { grid-column: auto; }
  .feat.photo { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .feat.photo > div { padding: 28px; }
  .feat.photo img { height: 280px; max-height: none; object-position: center 72%; }
  .stars i:nth-child(-n+3) { display: none; }
  .phone { width: 280px; height: 600px; }
  .read { min-height: 146px; }
  .s-affirm { margin-top: 10px; }
  .chip { padding: 8px 11px; font-size: 12px; }
  .chip-1 { left: -4px; top: -32px; }
  .chip-2 { display: none; }
  .chip-3 { left: auto; right: -4px; bottom: -26px; }
  .voice { width: 100%; }
  .shots img { width: 180px; }
  .hero .btn, .hero .store { flex: 1 1 auto; }
  .final-copy { padding: 52px 24px 28px; text-align: center; }
  .final .ctas { justify-content: center; }
  .final > img { height: 330px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .dup { display: none !important; }
  .scene { height: auto; }
  .scene-pin { position: relative; }
  .scene-story span { opacity: 1; }
  .track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 10px; }
  .shots { overflow-x: auto; }
  .shots .track { flex-wrap: nowrap; width: max-content; }
}
