/* Delv marketing site. Plain CSS, no build step. */

:root {
  --bg: #14120f;
  --bg-2: #1d1a16;
  --surface: #26221c;
  --border: #342f27;
  --text: #f5f1e8;
  --muted: #b3ab9c;
  --accent: #fbbf24;
  --accent-hot: #f59e0b;
  --accent-soft: #fcd34d;
  --on-accent: #1c1917;
  --paper: #fdf6e3;
  --ink: #1c1917;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 70rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--accent); color: var(--on-accent); padding: 0.5rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { left: 0.5rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: rgb(251 191 36 / 0.1);
  border: 1px solid rgb(251 191 36 / 0.3);
  padding: 0.3rem 0.75rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; text-decoration: none;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  box-shadow: 0 6px 24px rgb(251 191 36 / 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-soft); color: var(--on-accent); transform: translateY(-2px); }
.btn--small { padding: 0.5rem 1rem; font-size: 0.9rem; box-shadow: none; }
.btn--big { font-size: 1.15rem; padding: 1rem 2rem; }

.link-arrow { color: var(--text); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; color: var(--accent); }
.link-arrow:hover { color: var(--accent); }

.fine { color: var(--muted); font-size: 0.875rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Signup form */
.signup { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 32rem; margin: 2rem 0 0; }
.signup input {
  flex: 1 1 14rem; min-width: 0;
  font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.8rem 1.25rem;
}
.signup input::placeholder { color: var(--muted); opacity: 0.8; }
.signup input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 999px; border-color: var(--accent); }
.signup button { font: inherit; font-weight: 700; border: 0; cursor: pointer; flex: 0 0 auto; }
@media (max-width: 30rem) { .signup button { flex: 1 1 100%; } }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.nav nav { display: flex; align-items: center; gap: 1.25rem; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 40rem) {
  .nav nav a[href^="#"] { display: none; }
}

.logo { color: var(--text); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--text); }
.logo--small { font-size: 1.1rem; margin-right: 0.35rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; padding-top: 3rem; padding-bottom: 5rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 1rem 0 0.5rem; }
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
}

.hero__art { position: relative; min-height: 26rem; }
.note {
  position: absolute; width: min(20rem, 82%);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.45);
}
.note__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.note--before {
  top: 0; left: 0; transform: rotate(-4deg);
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.note--before ul { margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.note--before li { padding: 0.3rem 0; border-bottom: 1px dashed var(--border); }
.note--before li:last-child { border-bottom: 0; }
.note--before li:nth-child(odd) { text-decoration: line-through; text-decoration-color: rgb(245 158 11 / 0.7); }
.note--after {
  bottom: 0; right: 0; transform: rotate(3deg);
  background: var(--accent); color: var(--on-accent);
}
.note--after .note__label { opacity: 0.7; }
.note__big { font-size: 1.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 0.5rem; }
.note__small { font-size: 0.95rem; margin: 0; }
@media (max-width: 52rem) {
  .hero__art { min-height: 0; display: grid; gap: 1.25rem; }
  .note { position: static; width: 100%; max-width: 24rem; }
  .note--after { justify-self: end; }
}

/* Pain */
.pain { background: var(--paper); color: var(--ink); padding: 5rem 0; }
.pain h2 { text-align: center; }
.pain__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; margin: 2.5rem 0; }
.pain__grid p {
  margin: 0; background: #fff; border-radius: var(--radius); padding: 1.4rem;
  border: 1px solid #eadfc6; box-shadow: 0 2px 0 #eadfc6;
  font-size: 1.05rem;
}
.pain__grid p::before { content: "☕"; display: block; font-size: 1.5rem; margin-bottom: 0.5rem; }
.pain__grid p:nth-child(2)::before { content: "🎩"; }
.pain__grid p:nth-child(3)::before { content: "🔬"; }
.pain__grid p:nth-child(4)::before { content: "⏳"; }
.pain__kicker { text-align: center; font-size: 1.3rem; font-weight: 700; max-width: 38rem; margin: 0 auto; }

/* Benefits */
.benefits { padding-top: 6rem; padding-bottom: 5rem; text-align: center; }
.benefits h2 { max-width: 40rem; margin-left: auto; margin-right: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; margin-top: 3rem; text-align: left; }
.card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgb(251 191 36 / 0.5); transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 12px; background: rgb(251 191 36 / 0.12); font-size: 1.35rem; margin-bottom: 1rem;
}

/* Lab */
.lab { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 5rem 0; }
.lab__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
@media (max-width: 52rem) { .lab__inner { grid-template-columns: 1fr; gap: 1rem; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.checks li { position: relative; padding-left: 2.25rem; color: var(--muted); }
.checks li strong { color: var(--text); display: block; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0.1rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
}

/* Steps */
.easy { padding-top: 6rem; padding-bottom: 5rem; text-align: center; }
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 44rem) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 0 0.5rem; }
.steps p { color: var(--muted); }
.steps__n {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 1.25rem; margin-bottom: 1rem;
}

/* Quote */
.quote { padding: 2rem 0 5rem; }
.quote__box {
  margin: 0 auto; max-width: 48rem; text-align: center;
  padding: 2.5rem 2rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgb(251 191 36 / 0.14), rgb(245 158 11 / 0.04));
  border: 1px solid rgb(251 191 36 / 0.25);
}
.quote__big { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.45; }
.quote__small { color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 48rem; padding-bottom: 5rem; }
.faq h2 { text-align: center; margin-bottom: 2rem; }
.faq details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0.75rem 0 0; }

/* Final CTA */
.final { background: var(--accent); color: var(--on-accent); text-align: center; padding: 5rem 0; }
.final h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.final p { font-size: 1.15rem; }
.final .btn { background: var(--on-accent); color: var(--accent); box-shadow: 0 8px 30px rgb(0 0 0 / 0.25); }
.final .btn:hover { background: #000; color: var(--accent-soft); }
.final .signup { margin: 1.5rem auto 1rem; justify-content: center; }
.final .signup input { background: #fff8e1; color: var(--ink); border-color: rgb(28 25 23 / 0.35); }
.final .signup input::placeholder { color: rgb(28 25 23 / 0.6); }
.final .signup input:focus-visible { outline-color: var(--on-accent); border-color: var(--on-accent); }
.final .fine { color: rgb(28 25 23 / 0.7); font-size: 0.9rem; }

/* Success page */
.success { text-align: center; max-width: 42rem; padding-top: 6rem; padding-bottom: 7rem; }
.success .lead { margin-left: auto; margin-right: auto; }
.success .btn { margin-top: 1rem; }
.success__icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; color: var(--muted); font-size: 0.9rem; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }
