/* daiyoapp.com: one stylesheet for the home, support, legal and invite pages.
   Colors and type follow the app (constants/theme.ts): navy, lime, cyan, plum;
   Fraunces for display, Geist for text, JetBrains Mono for small labels. */
@import url("/assets/fonts/fonts.css");

:root {
  --navy: #0e1726;
  --navy-2: #14233b;
  --navy-3: #1b2e4b;
  --lime: #c7f24a;
  --cyan: #4adede;
  --plum: #b98cf0;
  --text: #eaf1fb;
  --body: #c9d3e0;
  --mute: #8a98ae;
  --line: rgba(201, 211, 224, 0.14);
  --radius: 18px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy); color: var(--body); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--lime); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { left: 16px; }

h1, h2, h3 { color: #fff; margin: 0; font-weight: 500; }
h1 { font-family: var(--display); font-size: clamp(44px, 7vw, 80px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-family: var(--display); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; }
h3 { font-family: var(--display); font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--lime); }
p { margin: 0; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin: 0 0 16px; }
.lede { font-size: 19px; max-width: 54ch; margin-top: 22px; }
.lede strong { color: #fff; font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.store-badge img { height: 52px; width: auto; }
.soon { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.soon small { font: 500 10px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.soon span { font-weight: 600; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(14, 23, 38, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { font: italic 500 27px/1 var(--display); color: #fff; letter-spacing: -0.02em; }
.wordmark:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a:not(.btn) { color: var(--body); font-size: 14px; font-weight: 500; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 760px) { .nav-links { gap: 14px; } .nav-links a:not(.btn):not([href^="/support"]) { display: none; } }

/* sections */
.section { padding: clamp(72px, 10vw, 112px) 0; }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { margin-top: 14px; font-size: 18px; color: var(--body); }
.band { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* hero */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 640px; height: 640px; background: radial-gradient(closest-side, rgba(199, 242, 74, 0.14), transparent); pointer-events: none; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

/* the phone: an HTML recreation of the app's plan card, with the app's own cover photo */
.phone { width: min(330px, 100%); margin: 0 auto; border-radius: 44px; padding: 12px; background: #050a12; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.03); }
.screen { border-radius: 34px; overflow: hidden; background: var(--navy); padding: 18px 14px 20px; }
.screen-top { display: flex; justify-content: space-between; align-items: center; font: 600 12px var(--sans); color: #fff; padding: 0 8px 14px; }
.screen-title { font: 500 24px/1.1 var(--display); color: #fff; padding: 0 6px 4px; }
.screen-title em { color: var(--lime); }
.screen-sub { font: 500 10px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); padding: 0 6px 14px; }
.plan-card { border-radius: 20px; overflow: hidden; background: var(--navy-2); border: 1px solid rgba(199, 242, 74, 0.5); }
.plan-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.plan-card-body { padding: 14px; }
.chip { display: inline-block; font: 600 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); background: var(--lime); border-radius: 999px; padding: 4px 9px; }
.plan-card h3 { font-size: 19px; margin: 10px 0 4px; }
.plan-meta { font-size: 13px; color: var(--mute); }
.plan-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--body); }
.waves { color: var(--lime); font-weight: 600; }
.wave-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--navy-2); border: 1px solid var(--line); font-size: 13px; color: var(--body); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--navy); background: linear-gradient(135deg, var(--cyan), var(--plum)); flex: none; }
.wave-row strong { color: #fff; display: block; font-size: 14px; }
.wave-btn { margin-left: auto; background: var(--lime); color: var(--navy); font-weight: 700; font-size: 12px; border-radius: 999px; padding: 6px 12px; }

/* the time window (the idea in one picture) */
.window-card { margin-top: 56px; background: var(--navy-2); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.window-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.window-card .label { font: 500 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.window-card .note { font: italic 400 18px var(--display); color: #fff; }
.window-card .note em { color: var(--lime); }
.track { position: relative; height: 110px; margin: 22px 0 8px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 8)); }
.span { position: absolute; top: 18px; height: 30px; border-radius: 9px; display: flex; align-items: center; padding: 0 12px; font: 600 11px var(--mono); white-space: nowrap; overflow: hidden; }
.span.you { left: 37.5%; width: 37.5%; background: var(--lime); color: var(--navy); box-shadow: 0 0 22px rgba(199, 242, 74, 0.35); }
.span.them { top: 60px; left: 43.75%; width: 37.5%; background: rgba(74, 222, 222, 0.22); color: var(--cyan); border: 1px solid rgba(74, 222, 222, 0.5); }
.hours { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--mute); }
.window-card .caption { margin-top: 18px; font-size: 15px; }
.window-card .caption strong { color: var(--lime); }

/* steps */
.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: "0" counter(step); display: block; font: 500 12px var(--mono); color: var(--lime); margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 15px; }

/* vibes: the app's own cover photos */
.vibes { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .vibes { grid-template-columns: repeat(4, 1fr); } }
.vibe { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-3); }
.vibe img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.vibe:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .vibe img { transition: none; } .vibe:hover img { transform: none; } }
.vibe span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(5, 10, 18, 0.85)); }
.vibes-note { margin-top: 18px; color: var(--mute); font-size: 15px; }

/* safety */
.safety-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .safety-grid { grid-template-columns: 1.2fr 0.8fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(74, 222, 222, 0.15); }
.checks strong { color: #fff; }
.meter { background: var(--navy-2); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.meter h3 { font-style: italic; font-weight: 400; }
.meter-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 18px 0 20px; background: var(--navy-3); }
.meter-bar .base { width: 50%; background: #2f6f86; }
.meter-bar .verified { width: 40%; background: var(--cyan); }
.meter dl { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.meter dl div { display: flex; justify-content: space-between; gap: 12px; }
.meter dt { color: var(--body); }
.meter dd { margin: 0; font: 500 13px var(--mono); color: var(--mute); }
.meter .up dt, .meter .up dd { color: var(--cyan); }
.meter .down dd { color: var(--plum); }
.meter p { margin-top: 16px; font-size: 13px; color: var(--mute); }

/* pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--navy-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; }
.tier.featured { border-color: rgba(199, 242, 74, 0.6); box-shadow: 0 0 0 1px rgba(199, 242, 74, 0.25), 0 24px 60px rgba(0, 0, 0, 0.3); }
.tier .tag { font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.tier h3 { font-size: 26px; }
.price { margin: 14px 0 4px; font: 500 40px/1 var(--display); color: #fff; letter-spacing: -0.02em; }
.price small { font: 500 15px var(--sans); color: var(--mute); letter-spacing: 0; }
.price-alt { font-size: 14px; color: var(--mute); }
.tier ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.tier li { padding-left: 22px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 9px; height: 5px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.fineprint { margin-top: 20px; font-size: 13px; color: var(--mute); max-width: 80ch; }

/* faq */
.faq { max-width: 780px; display: grid; gap: 12px; }
.faq details { background: var(--navy-2); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; color: #fff; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; }

/* support cards and the closing card */
.cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; }
.card .card-link { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--lime); }
.card.urgent { border-color: rgba(185, 140, 240, 0.5); }
.card.urgent .card-link { color: var(--plum); }
.closing { background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); border: 1px solid var(--line); border-radius: 26px; padding: clamp(28px, 5vw, 48px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .closing { grid-template-columns: 1fr auto; } }
.closing p { margin-top: 10px; max-width: 56ch; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--mute); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--body); }

/* page hero (support, legal) */
.page-hero { padding-top: clamp(56px, 8vw, 88px); padding-bottom: 24px; }

/* legal pages (Markdown from ../legal) */
.legal { max-width: 760px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 26px; margin: 44px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal h3 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { margin: 10px 0; }
.legal ul, .legal ol { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal code { font-family: var(--mono); font-size: 0.9em; }
.legal-index { list-style: none; padding: 0; display: grid; gap: 12px; }

/* invite page */
.invite { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.invite main { max-width: 440px; text-align: center; }
.invite h1 { font-size: clamp(34px, 8vw, 44px); margin: 14px 0 10px; }
.invite p { margin: 6px 0; }
.invite .btn { display: flex; width: 100%; margin-top: 14px; }
.invite small { display: block; margin-top: 24px; color: var(--mute); line-height: 1.5; }
