/* DynUI landing page (docs/LANDING.md). Dark only, like the app: the same
   neutral tokens as frontend/src/index.css (.dark), Geist, and the orange
   from the DYN mark. No build step; edit and reload. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a; /* oklch(0.145 0 0) */
  --fg: #fafafa;
  --card: #171717; /* oklch(0.205 0 0) */
  --raised: #262626; /* oklch(0.269 0 0) */
  --muted: #a1a1a1; /* oklch(0.708 0 0) */
  --border: rgb(255 255 255 / 0.1);
  --border-strong: rgb(255 255 255 / 0.16);
  --orange: #f97316;
  --orange-hi: #fb923c;
  --orange-soft: rgb(249 115 22 / 0.12);
  --good: #0ca30c; /* the app's --delta-good / --delta-bad */
  --bad: #e66767;
  --radius: 10px;
  --wrap: 1120px;
  --gutter: 16px;
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  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(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--raised);
}

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

[id] {
  scroll-margin-top: 72px;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 6px;
}
.skip:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: 760px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

/* Icons: lucide-style strokes, coloured by currentColor. */
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg {
  width: 40px;
  height: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 550;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-primary {
  background: var(--orange);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: var(--orange-hi);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  background: var(--raised);
}
.btn-ghost .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(10 10 10 / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-sm {
  font-size: 15px;
  gap: 8px;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 40px;
  text-align: center;
}
.hero::before {
  /* A faint glow from the mark's orange behind the headline. */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgb(249 115 22 / 0.14), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid rgb(249 115 22 / 0.35);
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-hi);
  font-size: 13px;
  font-weight: 550;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.hero h1 {
  margin: 24px auto 0;
  max-width: 14ch;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.lede {
  margin: 24px auto 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.fine {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 479px) {
  .hero {
    padding-top: 48px;
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

/* Sections */
.section {
  padding: 56px 0;
}
@media (min-width: 768px) {
  .section {
    padding: 88px 0;
  }
}
.eyebrow {
  color: var(--orange-hi);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section h2 {
  margin-top: 10px;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}
.split-text > p:not(.eyebrow, .fine) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.4);
}

/* Demo video */
#demo {
  padding-top: 24px;
}
.video {
  max-width: 960px;
  margin-inline: auto;
}
.video-frame,
.video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border-strong);
  background: var(--card);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.7);
}
.video-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 45%, var(--orange-soft), transparent 60%),
    var(--card);
}
.video-placeholder .icon {
  color: var(--orange);
  fill: currentColor;
  stroke: none;
}
.video figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* How it works */
.steps {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  position: relative;
  padding: 24px;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: var(--orange-hi);
}
.step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}
.step h3 {
  margin-top: 20px;
  font-size: 18px;
}
.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* Two-column sections: text beside an example */
.split {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: 5fr 6fr;
    gap: 64px;
  }
}

/* Sample digest email */
.email {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--card);
  box-shadow: 0 30px 80px -24px rgb(0 0 0 / 0.7);
}
.email-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.email-head > div {
  flex: 1;
  min-width: 0;
}
.email-from {
  font-weight: 600;
  font-size: 14px;
}
.email-from span {
  color: var(--muted);
  font-weight: 400;
}
.email-subject {
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}
.digest {
  margin: 0;
  padding: 0;
  list-style: none;
}
.digest li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 16px 20px;
}
.digest li + li {
  border-top: 1px solid var(--border);
}
.delta {
  padding-top: 1px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.delta.up {
  color: var(--good);
}
.delta.down {
  color: var(--bad);
}
.delta.watch {
  color: var(--orange-hi);
}
.digest-title {
  font-weight: 550;
  font-size: 15px;
  line-height: 1.4;
}
.digest-why {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}
.digest-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--orange-hi);
  font-size: 13px;
  font-weight: 550;
}

/* Security */
.checks {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 15px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
      center / 11px no-repeat,
    var(--orange-soft);
}
.checks strong {
  color: var(--fg);
  font-weight: 550;
}
.code {
  min-width: 0;
  overflow: hidden;
}
.code figcaption {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
.code pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}
.code .k {
  color: var(--orange-hi);
}
.code .s {
  color: #86c98a;
}
.code .c {
  color: #737373;
}

/* Waitlist */
.waitlist {
  padding: 32px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--orange-soft), transparent 70%),
    var(--card);
}
@media (min-width: 768px) {
  .waitlist {
    padding: 48px;
  }
}
.waitlist > p:not(.eyebrow, .fine) {
  max-width: 34rem;
  margin: 16px auto 0;
  color: var(--muted);
}
/* Waitlist form (L4): left-aligned inside the centred card. Dark inputs and
   the orange focus ring, like the app; chips are radio buttons. */
.wl-form {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  text-align: left;
}
.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field > label,
.field > legend {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-weight: 550;
  font-size: 15px;
}
.optional {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}
.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming on focus */
}
.field input::placeholder {
  color: #737373;
}
.field input:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgb(249 115 22 / 0.3);
}
.field input[aria-invalid="true"],
fieldset[aria-invalid="true"] .chip span {
  border-color: var(--bad);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 15px;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.chip:hover span {
  color: var(--fg);
}
.chip input:checked + span {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--fg);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--orange-hi);
  outline-offset: 2px;
}
.field-error {
  margin-top: 8px;
  color: var(--bad);
  font-size: 14px;
}
.field-error:empty {
  display: none;
}
.form-error {
  margin-top: -12px;
  text-align: center;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile:empty {
  display: none;
}
.wl-submit {
  width: 100%;
}
.wl-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}
@media (max-width: 479px) {
  .chip {
    flex: 1 1 calc(50% - 4px);
  }
  .chip span {
    justify-content: center;
    width: 100%;
    padding: 0 10px;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
  }
}

/* The no-JavaScript error page and thanks.html */
.form-errors {
  margin: 20px 0 28px;
  padding-left: 20px;
  color: var(--bad);
}
.thanks {
  text-align: center;
}
.thanks h1 {
  margin-top: 20px;
  font-size: clamp(2rem, 6vw, 3rem);
}
.thanks p:not(.fine) {
  max-width: 34rem;
  margin: 16px auto 0;
  color: var(--muted);
}
.thanks .cta-row {
  margin-top: 32px;
}

/* FAQ */
.faq {
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 550;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.15s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 20px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-footer .brand {
  color: var(--fg);
}
