/* rndvu.tech
   The app's palette (src/config/theme.ts in the app): warm near-black, chalk
   text, a sunset that runs orange into pink. One typeface, Figtree, from light
   body to a heavy wordmark. The one loud thing on the page is the live Find
   list in the hero; everything else stays quiet. */

:root {
  --night: #0b0a10;
  --dusk: #16141c;
  --dusk-2: #1f1c27;
  --line: rgba(255, 255, 255, 0.09);
  --chalk: #f5f2ee;
  --ash: #a39fab;
  --mute: #6b6774;
  --amber: #ff9a3c;
  --ember: #ff7e4a;
  --coral: #ff6a5c;
  --rose: #ff4f8b;
  --sunset: linear-gradient(100deg, var(--amber), var(--coral) 55%, var(--rose));
  --ok: #4ade80;
  --warn: #fbbf24;
  --error: #ff5a5f;

  --measure: 36rem;
  --wide: 70rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 24px;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2rem;
  --step-4: clamp(2.5rem, 2rem + 2.4vw, 3.75rem);
  --step-5: clamp(2.75rem, 1.9rem + 3.4vw, 4.75rem);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font-family: Figtree, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; }
p, li { max-width: var(--measure); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: rgba(245, 242, 238, 0.35); text-underline-offset: 0.16em; }
a:hover { text-decoration-color: currentColor; }
strong { font-weight: 600; color: var(--chalk); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ash); }
.quiet { color: var(--ash); }
.small { font-size: var(--step--1); }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -4rem; padding: .6rem 1rem; background: var(--chalk); color: var(--night); border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 900; letter-spacing: .32em; font-size: 1.05rem; }
.wordmark img { width: 40px; height: auto; }
.top nav { display: flex; gap: 1.6rem; align-items: center; }
.top nav a { text-decoration: none; color: var(--ash); font-weight: 500; }
.top nav a:hover, .top nav a[aria-current] { color: var(--chalk); }
.top nav a.button { color: var(--night); padding: .7rem 1.15rem; }
.top nav a.button:hover { color: var(--night); }
@media (max-width: 720px) { .top nav a:not(.button) { display: none; } }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  color: var(--night); background: var(--sunset); transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { box-shadow: 0 8px 28px rgba(255, 106, 92, 0.28); }
.button:active { transform: translateY(1px); }
.button.ghost { background: transparent; color: var(--chalk); border-color: var(--line); }
.button.ghost:hover { border-color: rgba(255, 255, 255, 0.25); box-shadow: none; }
.button[disabled] { opacity: .6; cursor: default; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 6rem); display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr 1fr; } }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* The Find list: the app's Find tab, alive. */
.phone {
  justify-self: center; width: min(100%, 23rem);
  background: var(--dusk); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.25rem 1.1rem 1rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.phone-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9rem; padding: 0 .25rem; }
.phone-head h2 { font-size: var(--step-2); }
.phone-head .status { color: var(--ok); font-size: var(--step--1); font-weight: 500; }
.find { list-style: none; margin: 0; padding: 0; }
.find li { display: grid; grid-template-columns: 2.6rem 1fr auto; gap: .9rem; align-items: center; padding: .8rem .25rem; border-top: 1px solid var(--line); }
.find li:first-child { border-top: 0; }
.avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--night); font-size: .95rem; }
.avatar.spot { background: var(--dusk-2); color: var(--chalk); }
.who { line-height: 1.25; }
.who .name { font-weight: 600; display: block; }
.who .meta { color: var(--ash); font-size: var(--step--1); }
.where { display: flex; align-items: center; gap: .55rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.arrow { width: 1.35rem; height: 1.35rem; color: var(--ember); transition: transform 1.6s cubic-bezier(.3, .7, .3, 1); }
.phone-foot { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--mute); font-size: var(--step--1); }

/* Sections */
section { padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
section > .wrap > h2 { margin-bottom: .6rem; }
section > .wrap > .lead { margin-bottom: 2.5rem; }
.two { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.two h3 { margin-bottom: .75rem; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: .85rem 0; border-top: 1px solid var(--line); }
.feature-list li:first-child { border-top: 0; padding-top: 0; }
.feature-list b { font-weight: 600; }

/* How it works: a real sequence, so the numbers mean something. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; font-size: var(--step-4); font-weight: 800; line-height: 1;
  background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .75rem;
}
.steps h3 { margin-bottom: .5rem; }

.limits { display: grid; gap: 1.25rem 3rem; }
@media (min-width: 820px) { .limits { grid-template-columns: 1fr 1fr; } }
.limits p { margin: 0; }

/* Form */
.signup { display: grid; gap: 1.1rem; max-width: 34rem; }
.signup .row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .signup .row { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: .4rem; font-weight: 500; font-size: var(--step--1); color: var(--ash); }
input, select, textarea {
  font: inherit; color: var(--chalk); background: var(--dusk); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .8rem .95rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ember); outline-offset: 0; border-color: transparent; }
textarea { min-height: 5.5rem; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a39fab' stroke-width='1.8'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; color: var(--mute); font-size: var(--step--1); }
.form-result { border-radius: var(--radius); padding: .9rem 1rem; font-weight: 500; }
.form-result.ok { background: rgba(74, 222, 128, 0.12); color: var(--ok); }
.form-result.error { background: rgba(255, 90, 95, 0.12); color: var(--error); }
[hidden] { display: none !important; }

/* Long-form pages */
.page { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.page h1 { font-size: var(--step-4); margin-bottom: 1rem; }
.page h2 { font-size: var(--step-2); margin: 2.5rem 0 .75rem; }
.page h3 { margin: 1.75rem 0 .5rem; }
.page ul, .page ol { padding-left: 1.3rem; }
.page li { margin: .4rem 0; }
.page .lead { margin-bottom: 2rem; }
.callout { border-left: 3px solid var(--ember); padding: .25rem 0 .25rem 1.1rem; margin: 1.5rem 0; color: var(--ash); max-width: var(--measure); }
.callout p:last-child { margin: 0; }
.facts { display: grid; gap: .5rem 2rem; margin: 1.5rem 0 2rem; max-width: var(--measure); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--ash); } .facts dd { margin: 0; }
.faq details { border-top: 1px solid var(--line); padding: .25rem 0; max-width: var(--measure); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: .9rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ash); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ash); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--ash); font-size: var(--step--1); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--chalk); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
