/* Daily landing page — ported from design/Landing.dc.html (#74 / Spec #65).
   The design carried 117 inline styles and no stylesheet; these are the same
   values, lifted into real CSS so media queries and prefers-reduced-motion can
   reach them. */

@font-face {
  font-family: 'Gabarito';
  src: url('/fonts/Gabarito.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'InstrumentSans';
  src: url('/fonts/InstrumentSans.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0c0a14;
  --text: #f5f3f9;
  --muted: #c4c1d0;
  --dim: #9c99a6;
  --faint: #8b8898;
  --accent: #7c5cff;
  --accent-soft: rgba(124, 92, 255, .2);
  --accent-text: #c9bcff;
  --pink: #ff5ea8;
  --mint: #2fd0a6;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .1);
  --field: #171522;
  --display: 'Gabarito', system-ui, -apple-system, sans-serif;
  --body: 'InstrumentSans', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Ambient background --------------------------------------------------- */
.blobs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; }
.b1 {
  top: -12%; left: -10%; width: 52%; height: 52%;
  background: radial-gradient(circle, rgba(124,92,255,.5) 0%, transparent 66%);
  filter: blur(70px); animation: lb1 16s ease-in-out infinite;
}
.b2 {
  top: 20%; right: -16%; width: 56%; height: 56%;
  background: radial-gradient(circle, rgba(255,94,168,.34) 0%, transparent 66%);
  filter: blur(80px); animation: lb2 20s ease-in-out infinite;
}
.b3 {
  bottom: -16%; left: 14%; width: 56%; height: 56%;
  background: radial-gradient(circle, rgba(47,208,166,.32) 0%, transparent 66%);
  filter: blur(84px); animation: lb3 24s ease-in-out infinite;
}

@keyframes lb1 { 0%,100% { transform: translate(-6%,-4%) scale(1); } 50% { transform: translate(14%,10%) scale(1.3); } }
@keyframes lb2 { 0%,100% { transform: translate(8%,10%) scale(1.15); } 50% { transform: translate(-12%,-8%) scale(.9); } }
@keyframes lb3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-10%,12%) scale(1.25); } }
@keyframes lfloat { 0%,100% { transform: translateY(0) rotate(calc(var(--r,0deg) - 1deg)); } 50% { transform: translateY(-13px) rotate(calc(var(--r,0deg) + 1deg)); } }
@keyframes lflame { 0%,100% { transform: scale(1); } 50% { transform: scale(1.14) translateY(-1px); } }
@keyframes lgrad { to { background-position: 300% 0; } }
@keyframes lpulse { 0%,100% { box-shadow: 0 10px 26px rgba(124,92,255,.5); } 50% { box-shadow: 0 16px 44px rgba(124,92,255,.92); } }
@keyframes lping { 0% { box-shadow: 0 0 0 0 rgba(124,92,255,.55); } 70%,100% { box-shadow: 0 0 0 9px rgba(124,92,255,0); } }

.shell { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* Nav ------------------------------------------------------------------ */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.mark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.mark-dot {
  width: 38px; height: 38px; border-radius: 12px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(124,92,255,.5);
}
.mark-dot i { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; display: block; }
.mark-name { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.3px; }

/* Hero ----------------------------------------------------------------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 38px 0 70px; }
.hero-copy { flex: 1; min-width: 330px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  background: rgba(124,92,255,.16); border: 1px solid rgba(124,92,255,.4);
  color: var(--accent-text); font-size: 13px; font-weight: 700;
  padding: 7px 13px; border-radius: 999px; letter-spacing: .3px;
}
.ping { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: lping 2s ease-out infinite; }

h1 {
  font-family: var(--display); font-size: clamp(46px, 7vw, 86px); font-weight: 700;
  line-height: .95; letter-spacing: -.8px; margin: 20px 0 0;
}
.grad {
  background: linear-gradient(90deg, #7c5cff, #ff5ea8, #2fd0a6, #7c5cff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: lgrad 7s linear infinite;
}
.lede { font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: var(--muted); max-width: 480px; margin: 20px 0 0; }

.hero-art {
  flex: 1; min-width: 380px; position: relative; height: 620px;
  display: flex; justify-content: center; align-items: flex-start;
}
.art-glow {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.55), transparent 68%);
  filter: blur(60px); pointer-events: none;
}
.phone {
  position: relative; overflow: hidden;
  /* Fluid, but never wider than the 402x600 crop the asset was exported at. */
  width: min(402px, 100%); aspect-ratio: 402 / 600;
  border-radius: 34px; box-shadow: 0 44px 90px rgba(0,0,0,.6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 130px;
  background: linear-gradient(to top, var(--bg), transparent); pointer-events: none;
}

.chip {
  position: absolute; margin: 0; display: flex; align-items: center; gap: 8px;
  background: rgba(20,17,30,.92); box-shadow: 0 14px 34px rgba(0,0,0,.55);
  border-radius: 15px; padding: 11px 15px; font-size: 13px; font-weight: 700;
  will-change: transform;
}
.chip-streak {
  top: 250px; left: -12px; border: 1px solid rgba(124,92,255,.55);
  color: var(--accent-text); --r: -3deg; animation: lfloat 4.6s ease-in-out infinite;
}
.chip-streak svg { color: var(--accent); transform-origin: center bottom; animation: lflame 1.6s ease-in-out infinite; }
.chip-streak b { font-family: var(--display); font-size: 19px; color: var(--accent); }
.chip-streak span { font-size: 12px; }
.chip-posted {
  top: 298px; right: -14px; border: 1px solid rgba(47,208,166,.5);
  color: #eafff8; --r: 3deg; animation: lfloat 5.4s ease-in-out .8s infinite;
}
.tick { width: 18px; height: 18px; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tick::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(-45deg); margin-top: -1px; }
.chip-likes {
  bottom: 62px; left: 4px; border: 1px solid rgba(255,94,168,.5);
  color: #ffe4f1; gap: 6px; padding: 10px 14px; --r: -2deg;
  animation: lfloat 4.2s ease-in-out .4s infinite;
}

/* Shared card ---------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }

.section-head { text-align: center; margin-bottom: 44px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 0; }
.section-head h2 { font-family: var(--display); font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; letter-spacing: -.8px; margin: 10px 0 0; }

/* Waitlist ------------------------------------------------------------- */
.waitlist { border-radius: 28px; padding: 34px; margin: 0 0 90px; }
.waitlist-inner { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; }
.waitlist-copy { min-width: 260px; }
.waitlist-copy h2 { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.6px; margin: 0; }
.waitlist-copy p { font-size: 15px; color: var(--muted); margin: 8px 0 0; max-width: 360px; }

.waitlist-form { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 11px; }
.waitlist-form input {
  background: var(--field); border: 1.5px solid rgba(255,255,255,.14); border-radius: 14px;
  padding: 14px 15px; font-size: 16px; color: #fff; outline: none; font-family: var(--body);
}
.waitlist-form input::placeholder { color: var(--faint); }
.waitlist-form input[aria-invalid="true"] { border-color: rgba(255,90,77,.7); }

.cta {
  height: 54px; border: none; border-radius: 14px; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; font-family: var(--body); cursor: pointer;
  box-shadow: 0 10px 26px rgba(124,92,255,.5); animation: lpulse 2.6s ease-in-out infinite;
}
.cta:active { transform: scale(.98); }
.cta[disabled] { cursor: default; opacity: .75; animation: none; }

.field-error { margin: 0; font-size: 13px; font-weight: 600; color: #ff8a80; }
.fineprint { font-size: 12px; color: var(--faint); text-align: center; margin: 0; }
.fineprint a { color: var(--faint); }

.waitlist-done { text-align: center; padding: 12px 0; }
.done-tick {
  width: 66px; height: 66px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  box-shadow: 0 12px 30px rgba(124,92,255,.5);
}
.done-tick::after { content: ''; width: 26px; height: 14px; border-left: 5px solid #fff; border-bottom: 5px solid #fff; transform: rotate(-45deg); margin-top: -5px; }
.waitlist-done h2 { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.6px; margin: 0; }
.waitlist-done p { font-size: 15px; color: var(--muted); margin: 10px 0 0; }

/* Steps ---------------------------------------------------------------- */
.steps { padding: 0 0 90px; }
.step-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.step { flex: 1; min-width: 260px; max-width: 340px; padding: 26px; }
.step-n {
  width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin: 0;
  font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--accent);
}
.step h3 { font-family: var(--display); font-size: 21px; font-weight: 700; margin: 16px 0 0; }
.step p { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }

/* Peek inside ---------------------------------------------------------- */
.peek { padding: 0 0 90px; }
.peek-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; justify-content: center; max-width: 1000px; margin: 0 auto; }
.peek-copy { flex: 1; min-width: 300px; max-width: 400px; }
.peek-card { background: var(--surface-2); border-color: rgba(255,255,255,.12); border-radius: 24px; padding: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.peek-hed { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -.8px; line-height: 1.04; margin: 0; }
.accent { color: var(--accent); }
.peek-card p { font-size: 15px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.features { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.features li { display: flex; align-items: center; gap: 14px; }
.feat-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fi-purple { background: rgba(124,92,255,.16); border: 1px solid rgba(124,92,255,.35); }
.fi-mint { background: rgba(47,208,166,.14); border: 1px solid rgba(47,208,166,.35); }
.fi-pink { background: rgba(255,94,168,.14); border: 1px solid rgba(255,94,168,.35); }
.features b { display: block; font-size: 15px; font-weight: 700; }
.features small { display: block; font-size: 13px; color: var(--dim); }
.peek-art { flex: 0 0 auto; min-width: 0; height: 620px; }

/* FAQ ------------------------------------------------------------------ */
.faq { padding: 0 0 80px; max-width: 720px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.faq-item { border-radius: 16px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: none; padding: 18px 20px; cursor: pointer;
  font-family: var(--body); font-size: 16px; font-weight: 700; color: var(--text); text-align: left;
}
.plus { font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

/* Closing -------------------------------------------------------------- */
.closing { text-align: center; padding: 0 0 60px; }
.closing h2 { font-family: var(--display); font-size: clamp(30px, 5vw, 54px); font-weight: 700; letter-spacing: -.6px; margin: 0 0 8px; }
.closing-sub { font-size: 16px; color: var(--muted); margin: 0 0 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 26px; }
.store-badge {
  display: flex; align-items: center; gap: 10px; margin: 0;
  background: var(--field); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 11px 18px; text-align: left;
}
.store-badge span { line-height: 1.1; }
.store-badge small { display: block; font-size: 10px; color: var(--faint); }
.store-badge b { display: block; font-size: 15px; }

/* Footer --------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line); padding: 28px 0 46px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.copy, .footer-links { font-size: 13px; color: var(--faint); margin: 0; }
.footer-links a { color: var(--muted); }
.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------------------- */
/* Accessibility, responsive and motion (#75).                            */
/* The source design had zero @media queries and no reduced-motion support.*/
/* ---------------------------------------------------------------------- */

/* Visible focus on every interactive control. The design had none, and its
   controls were non-focusable divs before the port made them semantic. */
:where(a, button, input):focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Tablet and below ------------------------------------------------------ */
@media (max-width: 768px) {
  .shell { padding: 0 20px; }

  /* Every fixed floor in the design has to be released, not just the frame
     width: min-width 380/330 in the hero and 300 in "peek inside" each force
     overflow at 375px on their own, as does the hero's fixed 620px height. */
  .hero { flex-direction: column; align-items: stretch; gap: 28px; padding: 24px 0 56px; }
  .hero-copy { min-width: 0; }
  .hero-art { min-width: 0; width: 100%; height: auto; }
  .lede { max-width: none; }
  .art-glow { width: 320px; height: 320px; }

  /* The floating chips are absolutely positioned against a 402px frame and
     collide with it once the frame scales down. */
  .chip { display: none; }

  .waitlist { padding: 24px; margin-bottom: 64px; }
  .waitlist-inner { flex-direction: column; align-items: stretch; gap: 22px; }
  .waitlist-copy { min-width: 0; }
  .waitlist-copy p { max-width: none; }
  .waitlist-form { min-width: 0; }

  .step-grid { flex-direction: column; align-items: stretch; }
  .step { min-width: 0; max-width: none; }

  .peek-grid { flex-direction: column; gap: 32px; }
  .peek-copy { min-width: 0; max-width: none; width: 100%; }
  .peek-art { min-width: 0; width: 100%; height: auto; }

  .section-head { margin-bottom: 32px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Phone ----------------------------------------------------------------- */
@media (max-width: 420px) {
  .shell { padding: 0 16px; }
  h1 { font-size: clamp(38px, 11vw, 52px); }
  .waitlist { padding: 20px; border-radius: 22px; }
  .waitlist-copy h2, .waitlist-done h2 { font-size: 26px; }
  .peek-hed { font-size: 26px; }
  .badges { flex-direction: column; align-items: stretch; }
  .store-badge { justify-content: center; }
  .faq-q { padding: 16px; }
  .faq-a { padding: 0 16px 16px; }
}

/* Reduced motion --------------------------------------------------------- */
/* All eight infinite animations: lb1, lb2, lb3 (blobs), lfloat (chips),
   lflame (streak icon), lgrad (headline sweep), lping (badge dot) and
   lpulse (CTA glow). lrise is one-shot and was never ported. */
@media (prefers-reduced-motion: reduce) {
  .b1, .b2, .b3,
  .chip-streak, .chip-posted, .chip-likes,
  .chip-streak svg,
  .grad, .ping, .cta {
    animation: none !important;
  }
  /* The headline keeps its gradient, just frozen at the start of the sweep. */
  .grad { background-position: 0 0; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Tapes: approved identity and current episodic product preview. */
[hidden] { display: none !important; }
.brand-lockup { display: block; width: 128px; height: 40px; object-fit: contain; }
.hero { padding-bottom: 56px; }
.art-caption { position: relative; font-size: 11px; color: var(--dim); margin: 28px 12px 0; text-align: center; }
.peek-art { height: auto; }
.editor-preview { margin: 0; width: min(320px, 100%); }
.editor-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 24px 65px #0006; }
.editor-preview figcaption { margin-top: 16px; font-size: 12px; text-align: center; color: var(--dim); }
.peek-card .peek-hed { font: 800 32px/1.08 var(--display); color: var(--text); margin: 0; }
.closing-link { display: inline-flex; align-items: center; gap: 20px; padding: 15px 23px; background: var(--accent); color: white; text-decoration: none; border-radius: 14px; font-weight: 700; }
/* Calm static artwork keeps the words and product in focus. */
.b1, .b2, .b3, .grad, .ping, .cta { animation: none; }
@media (max-width: 768px) {
  .peek-art { display: flex; justify-content: center; }
}
@media (max-width: 420px) {
  .art-glow { max-width: 100%; }
  .waitlist-form input { min-width: 0; width: 100%; }
}
