/* Ta-Duo — taduo.app
   Brand: a jewelry box at night. Near-black ink that matches the reveal video, gold foil,
   Didone display type like the Ta-Ta-Ta-Duo! art, and the app's vibrant moment gradients. */

:root {
  --ink: #07060f;
  --ink-2: #100d22;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f1e6;
  --muted: #a7a3bd;
  --gold: #f3c969;
  --foil: linear-gradient(180deg, #fff1c2 0%, #f3c969 38%, #c98f35 72%, #f2d07a 100%);
  --foil-h: linear-gradient(110deg, #c98f35 0%, #f3c969 25%, #fff3cc 45%, #f3c969 60%, #c98f35 100%);
  --smile: linear-gradient(135deg, #ff6a2b, #ffbd33);
  --cheer: linear-gradient(135deg, #544df7, #a362fb);
  --scream: linear-gradient(135deg, #00a3b8, #4fdc9a);
  --radius: 24px;
  --max: 1180px;
  --didone: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--didone);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Type */
h1, h2, h3 { font-family: var(--body); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(36px, 5.2vw, 64px); }
h3 { font-size: 24px; letter-spacing: -0.02em; }
h2 em, h1 em { font-style: normal; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--muted); max-width: 42ch; }
.eyebrow {
  font: 600 12px/1 var(--body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.gold {
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Nav: floats over the hero video */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 6, 15, 0.55);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px var(--body); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { background: var(--foil); color: #1b1206 !important; padding: 9px 18px; border-radius: 999px; font-weight: 700 !important; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta):not(.keep) { display: none; } .nav-links { gap: 16px; } }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.badge { display: inline-block; transition: transform .25s; }
.badge img { height: 56px; width: auto; }
.badge:hover { transform: translateY(-2px); }
.price-note { color: var(--muted); font-size: 15px; }
.price-note strong { color: var(--text); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  font: 700 16px var(--body);
  border: 1px solid var(--line); background: var(--panel);
  transition: background .2s, transform .2s;
}
.btn:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.btn-gold { background: var(--foil); color: #1b1206; border: 0; }
.btn-gold:hover { background: var(--foil); filter: brightness(1.06); }

/* ---------- Hero: the reveal animation, edge to edge ---------- */
.hero { position: relative; margin-top: -65px; text-align: center; isolation: isolate; overflow-x: clip; }
.hero-video {
  position: relative; width: 100%;
  height: clamp(420px, 72vh, 760px);
  overflow: hidden;
}
.hero-video video, .hero-video img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 70%, transparent 100%);
}
.hero-video::after {
  /* Side vignette so the video melts into the page on wide screens */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 50% 50%, transparent 55%, var(--ink) 100%);
}
.hero-copy { position: relative; margin-top: clamp(-150px, -12vh, -60px); z-index: 2; padding-bottom: 40px; }
.wordmark {
  font-family: var(--didone); line-height: .95; margin: 0 0 22px;
  font-size: clamp(56px, 11vw, 150px); letter-spacing: -0.02em;
  filter: drop-shadow(0 6px 30px rgba(243, 201, 105, .25));
}
.wordmark .ta { font-style: italic; font-weight: 400; font-size: .62em; letter-spacing: 0; }
.wordmark .ta + .ta { font-size: .7em; }
.wordmark .ta + .ta + .ta { font-size: .78em; }
.wordmark .duo { font-weight: 900; }
.wordmark span { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* The lead-in "Ta-Ta-" stays ivory so the gold falls on the app name itself: Ta-Duo! */
.campaign-line .lead-in { background: none; color: var(--text); -webkit-text-fill-color: currentColor; opacity: .9; }
.hero-line { font: 600 clamp(20px, 2.4vw, 28px)/1.3 var(--body); margin: 0 auto 14px; max-width: 30ch; color: var(--text); }
.hero .lead { margin: 0 auto 32px; }
.hero .cta-row { justify-content: center; }
.scroll-cue { margin: 46px auto 0; width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); opacity: .7; }
@media (max-width: 600px) {
  .hero-video { height: auto; aspect-ratio: 1 / 1; }
  .hero-video video, .hero-video img { object-position: 50% 50%; }
  .hero-copy { margin-top: -40px; }
}

/* Sections */
section { padding: 110px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { margin: 20px auto 18px; max-width: 16ch; }
.section-head .lead { margin: 0 auto; }
.glow { overflow-x: clip; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 15% 30%, rgba(98, 60, 220, .16), transparent 70%),
    radial-gradient(40% 50% at 85% 70%, rgba(212, 63, 151, .14), transparent 70%);
}

/* Fold section */
.fold { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.fold-art { position: relative; }
.fold-art img { border-radius: 32px; box-shadow: 0 50px 120px -40px rgba(140, 70, 240, .7); transform: rotate(-2deg); }
.fold-art::after {
  content: ""; position: absolute; inset: 10% -6% -6% 10%; z-index: -1; border-radius: 40px;
  background: var(--foil); opacity: .16; filter: blur(50px);
}
.fold h2 { margin: 20px 0 18px; }
.fold .lead { margin-bottom: 30px; }
.beats { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: beat; }
.beats li { display: grid; grid-template-columns: 54px 1fr; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); counter-increment: beat; }
.beats li::before { content: "0" counter(beat); font: 700 16px var(--body); color: var(--gold); }
.beats strong { display: block; font-weight: 600; }
.beats span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 880px) { .fold { grid-template-columns: 1fr; gap: 48px; } .fold-art { max-width: 460px; margin: 0 auto; } }

/* Three moments */
.moments-banner { border-radius: 32px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 28px; box-shadow: 0 40px 120px -40px rgba(180, 70, 220, .6); }
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.moment {
  position: relative; overflow: hidden; border-radius: 28px; padding: 30px 26px 28px;
  background: var(--ink-2); border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease;
}
.moment::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--g); }
.moment::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: var(--g); opacity: .22; filter: blur(60px); }
.moment:hover { transform: translateY(-6px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.moment > * { position: relative; z-index: 1; }
.moment .tag { font: 600 12px var(--body); letter-spacing: .24em; text-transform: uppercase; background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.moment h3 { font-size: 28px; margin: 12px 0 10px; }
.moment p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.smile { --g: var(--smile); }
.cheer { --g: var(--cheer); }
.scream { --g: var(--scream); }
@media (max-width: 900px) { .moments { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); counter-reset: step; }
.step { padding: 34px 26px; counter-increment: step; }
.step + .step { border-left: 1px solid var(--line); }
.step::before { content: counter(step); display: block; font: 800 44px/1 var(--body); margin-bottom: 18px; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.steps-end { text-align: center; margin-top: 40px; font: 700 clamp(22px, 2.6vw, 30px) var(--body); letter-spacing: -0.02em; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:nth-child(3) { border-left: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: 0; border-top: 1px solid var(--line); } }

/* Screenshot marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 24px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { width: 300px; border-radius: 26px; flex: 0 0 auto; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }
@media (max-width: 600px) { .marquee img { width: 230px; } }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise { text-align: center; padding: 34px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.promise strong { display: block; font: 800 34px/1.1 var(--body); letter-spacing: -0.03em; margin-bottom: 8px; }
.promise span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .promises { grid-template-columns: repeat(2, 1fr); } }

.promise-cta { justify-content: center; margin-top: 44px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Inner pages (press, privacy, support) */
.page { padding: 80px 0 100px; }
.page-head { margin-bottom: 48px; }
.page-head h1 { font-size: clamp(44px, 6.4vw, 72px); margin: 20px 0 16px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin: 46px 0 14px; }
.prose p, .prose li { color: #dcd8ea; margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--gold); }
.card { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }

/* Press kit */
.press-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.press-grid > * { min-width: 0; }
@media (max-width: 900px) { .press-grid { grid-template-columns: 1fr; } }
.facts { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.facts th, .facts td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts td { overflow-wrap: anywhere; }
.facts th { color: var(--muted); font-weight: 500; width: 38%; padding-right: 16px; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.copy-block { position: relative; }
.copy-block + .copy-block { margin-top: 18px; }
.copy-block h3 { font: 600 13px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; padding-right: 80px; }
.copy-block p { color: #dcd8ea; }
.copy-block p + p { margin-top: 12px; }
.copy-btn {
  position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font: 600 13px var(--body);
}
.copy-btn:hover { background: rgba(255,255,255,.12); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.asset { text-decoration: none; display: block; }
.asset img { border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); }
.asset span { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }
.asset-grid.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.download-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 40px; }
.download-card h3 { font-size: 24px; margin-bottom: 4px; }
.download-card p { color: var(--muted); }
.block-title { font-size: 28px; margin: 60px 0 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
