/* Vidi private-alpha site. Warm golden paper, editorial serif voice.
   Tokens are the approved Vidi design system. */

:root {
  --ink: #3a2e1d;
  --secondary: #6f5b35;
  /* --dim darkened from the palette #8a7148 so small hint/disclosure text
     clears 4.5:1 on the paper gradient. */
  --dim: #75602f;
  /* Decorative palette tokens kept for borders, fills and focus rings, where
     the 3:1 non-text threshold applies. */
  --muted-gold: #a3854e;
  --faint: #b39a66;
  --accent-gold: #b8862d;
  --deep-amber: #c47a22;
  /* Text-safe gold variants (clear 4.5:1 as small text on the paper). */
  --eyebrow: #8a6a12;
  --link: #8a6a12;
  --link-hover: #7d5810;
  /* Button fills use dark gold so white label text clears 4.5:1. */
  --gold-btn: #946410;
  --gold-btn-hover: #7d5810;
  --badge-text: #855c12;
  --badge-bg: rgba(184, 134, 45, 0.14);
  --surface: #fffdf8;
  --line: rgba(120, 90, 40, 0.16);
  --line-soft: rgba(120, 90, 40, 0.1);
  --shadow-card: 0 10px 30px rgba(120, 90, 40, 0.12);
  --radius-card: 16px;
  --radius-pill: 999px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  background-color: #f7e8d0;
  background-image: radial-gradient(
    ellipse 1100px 760px at 50% 34%,
    #fff6e6,
    #f7e8d0 62%,
    #f0dcbc
  );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fffdf8;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--deep-amber);
  outline-offset: 2px;
  border-radius: 4px;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--link-hover);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover {
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary);
  text-decoration: none;
  padding: 8px 2px;
  display: inline-block;
}
.nav-links a:hover {
  color: var(--link-hover);
}
.nav-cta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--surface);
  background: var(--gold-btn);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover {
  background: var(--gold-btn-hover);
  color: var(--surface);
}
.nav-toggle {
  display: none;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: var(--gold-btn);
  color: var(--surface);
}
.btn-primary:hover {
  background: var(--gold-btn-hover);
  color: var(--surface);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--link-hover);
}

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--badge-text);
  background: var(--badge-bg);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}
.badge-small {
  font-size: 11px;
  padding: 4px 10px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
.h-serif {
  font-family: var(--serif);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--eyebrow);
  margin: 0 0 12px;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}
.section-tight {
  padding: 56px 0;
}
.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}
.lead {
  font-size: 19px;
  color: var(--secondary);
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  max-width: 26ch;
  margin-top: 18px;
}
.hero .hero-head-wide {
  max-width: 22ch;
}
.hero-support {
  font-size: 19px;
  color: var(--secondary);
  max-width: 60ch;
  margin: 18px 0 8px;
}
.hero-clarifier {
  font-size: 15px;
  color: var(--dim);
  max-width: 60ch;
  margin: 20px 0 28px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px;
}
.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.card p {
  color: var(--secondary);
  margin: 0 0 10px;
  font-size: 15.5px;
}
.card .disclosure {
  font-size: 13.5px;
  color: var(--dim);
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin-top: 14px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Demo ---------- */
.demo-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.demo-media {
  position: relative;
  background: linear-gradient(160deg, #fbeecd, #f3ddb7);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}
.demo-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-poster-note {
  max-width: 44ch;
  color: var(--secondary);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
}
.demo-foot {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--dim);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}
@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  min-height: 40px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-family: var(--serif);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li h3 {
  font-size: 17px;
  margin: 4px 0 4px;
}
.steps li p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

/* ---------- Chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.chip:hover {
  border-color: var(--accent-gold);
  color: var(--link-hover);
}

/* ---------- Requirements table ---------- */
.req-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  font-size: 15px;
}
.req-table caption {
  text-align: left;
  color: var(--dim);
  font-size: 13px;
  padding-bottom: 10px;
}
.req-table th,
.req-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.req-table th[scope="row"] {
  font-weight: 600;
  color: var(--ink);
  width: 34%;
}
.req-table td {
  color: var(--secondary);
}
.req-table tr:last-child th,
.req-table tr:last-child td {
  border-bottom: none;
}

/* ---------- Open foundations ---------- */
.two-col-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 720px) {
  .two-col-lists {
    grid-template-columns: 1fr;
  }
}
.list-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--secondary);
}
.list-card li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
}
.final-cta .section-head {
  margin: 0 auto 28px;
}
.final-cta h2 {
  font-size: clamp(26px, 3.6vw, 36px);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 253, 248, 0.6);
  padding: 40px 0;
  margin-top: 24px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  font-size: 13px;
  color: var(--secondary);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--link-hover);
}
.footer-note {
  font-size: 13px;
  color: var(--dim);
  max-width: 40ch;
}

/* ---------- Disclosure text ---------- */
.disclosure-line {
  font-size: 14px;
  color: var(--dim);
  max-width: 60ch;
}
.mt-18 {
  margin-top: 18px;
}
.disclosure-center {
  margin: 22px auto 0;
}

/* ---------- Prose pages ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 72px;
}
.prose h1 {
  font-size: clamp(28px, 4vw, 38px);
}
.prose h2 {
  font-size: 22px;
  margin-top: 40px;
}
.prose h3 {
  font-size: 18px;
  margin-top: 26px;
}
.prose p,
.prose li {
  color: var(--secondary);
  font-size: 16px;
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}
.prose .meta {
  color: var(--dim);
  font-size: 14px;
}

/* ---------- Forms ---------- */
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 0 80px;
}
fieldset {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 22px 24px;
  margin: 0 0 20px;
}
legend {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  padding: 0 8px;
}
.field {
  margin-bottom: 18px;
}
.field:last-child {
  margin-bottom: 0;
}
label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.hint {
  font-size: 13.5px;
  color: var(--dim);
  margin: 2px 0 8px;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #fffefb;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
}
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
input:focus,
textarea:focus {
  border-color: var(--accent-gold);
  outline: 3px solid rgba(196, 122, 34, 0.25);
  outline-offset: 0;
}
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  min-height: 44px;
  cursor: pointer;
}
.opt:hover {
  background: var(--badge-bg);
}
.opt input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-gold);
  flex: 0 0 auto;
}
.opt span {
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
}
.opt.preselected {
  background: var(--badge-bg);
  box-shadow: inset 0 0 0 1.5px rgba(184, 134, 45, 0.35);
}
details.help {
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 4px 14px;
  background: #fffefb;
}
details.help summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--secondary);
  padding: 10px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
details.help p,
details.help ol {
  color: var(--secondary);
  font-size: 14.5px;
  margin: 0 0 12px;
}
.error-text {
  color: #9a3412;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 600;
}
.error-text:empty {
  display: none;
}
.field-invalid input,
.field-invalid textarea {
  border-color: #b45309;
}
.form-summary-error {
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.3);
  color: #7c2d12;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 15px;
}
.form-summary-error:empty {
  display: none;
}
.form-actions {
  margin-top: 8px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.char-count {
  font-size: 12.5px;
  color: var(--dim);
  text-align: right;
  margin-top: 4px;
}

/* ---------- Centered status pages ---------- */
.status-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 88px 0;
  text-align: center;
}
.status-wrap h1 {
  font-size: clamp(28px, 4vw, 40px);
}
.status-wrap p {
  color: var(--secondary);
  font-size: 17px;
}
.status-wrap .share {
  margin-top: 26px;
  font-size: 15px;
  color: var(--dim);
}
