/* Voilo website — shared styles
   Colors and type follow Voilo Style Guidelines v1.2 (Inter; Yale Blue / Ruddy Blue / Seasalt / Gunmetal). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #1A3D7C;          /* Yale Blue */
  --accent: #5CA6FF;         /* Ruddy Blue */
  --bg: #F7F8FA;             /* Seasalt */
  --text: #222831;           /* Gunmetal */
  --muted: rgba(34, 40, 49, .72);
  --faint: rgba(34, 40, 49, .56);
  --card: rgba(255, 255, 255, .82);
  --line: rgba(26, 61, 124, .12);
  --tint: #EAF3FF;           /* Sky Tint */
  --ring: rgba(92, 166, 255, .40);
  --error: #B4442F;          /* darkened Soft Red for AA contrast on white */
  --success: #1F7A55;        /* darkened Mint for AA contrast on white */
  --shadow: 0 18px 60px rgba(26, 61, 124, .12);
  --radius: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  color: var(--text);
  background:
    radial-gradient(900px 480px at 20% 10%, rgba(92, 166, 255, .20), transparent 55%),
    radial-gradient(900px 520px at 85% 35%, rgba(26, 61, 124, .14), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding: 24px 16px;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: #12305F; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: #fff; padding: 8px 12px; border-radius: 10px; z-index: 10;
}
.skip:focus { left: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Card shell (shared by every page) ---------- */
.page-center { display: flex; align-items: center; justify-content: center; }
.wrap {
  width: min(920px, 100%);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(26, 61, 124, .10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px 28px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.top {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 60px; width: auto; display: block; }

.pill {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
  background: rgba(26, 61, 124, .07);
  border: 1px solid rgba(26, 61, 124, .14);
  padding: 7px 12px; border-radius: 999px;
}

/* ---------- Home ---------- */
.hero { padding: 22px 0 4px; }
.hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 750;
  color: var(--brand);
}
.hero h1 .accent { color: var(--accent); white-space: nowrap; }
.mobile-break { display: none; }
.lede {
  margin: 0 0 24px;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

/* Waitlist form */
.waitlist { max-width: 700px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row .email { flex: 1 1 240px; }
.field-row .lang { flex: 0 1 220px; }
.input, .select {
  width: 100%;
  height: 52px;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(26, 61, 124, .18);
  border-radius: 14px;
  padding: 0 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A3D7C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.input::placeholder { color: rgba(34, 40, 49, .45); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.input[aria-invalid="true"] { border-color: var(--error); }

.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 14px;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 10px 26px rgba(26, 61, 124, .22);
}
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 12px 30px rgba(26, 61, 124, .28); color: #fff; }
.btn.secondary {
  color: var(--brand);
  background: rgba(26, 61, 124, .06);
  border: 1px solid rgba(26, 61, 124, .14);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }

.form-note { margin: 12px 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--faint); }
.form-note a { color: inherit; }
.form-status { margin: 12px 2px 0; font-size: 14.5px; line-height: 1.5; min-height: 0; }
.form-status.error { color: var(--error); }

.success {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--tint);
  border: 1px solid rgba(92, 166, 255, .35);
  border-radius: 16px;
  padding: 18px 20px;
  max-width: 640px;
}
.success .check {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center;
}
.success h2 { margin: 2px 0 4px; font-size: 17px; color: var(--brand); }
.success p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.pillars {
  list-style: none; margin: 30px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.pillars li { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.pillars strong { display: block; color: var(--text); font-weight: 650; font-size: 15px; margin-bottom: 2px; }
.pillars .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: 2px;
}

.foot {
  margin-top: 26px; padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--faint); font-size: 13px;
}
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: rgba(26, 61, 124, .85); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- Document pages (privacy / terms / tutorials / 404) ---------- */
.doc .top { margin-bottom: 8px; }
.doc .logo img { height: 44px; }
.back {
  font-weight: 650; font-size: 14.5px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(26, 61, 124, .05);
}
.back:hover { background: rgba(26, 61, 124, .09); }
.doc h1 {
  margin: 22px 0 6px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em; line-height: 1.1; font-weight: 720;
  color: var(--brand);
}
.doc .meta { color: var(--faint); margin: 0 0 20px; font-size: 14px; }
.doc h2 { margin: 30px 0 8px; font-size: 18px; color: var(--brand); letter-spacing: -0.005em; }
.doc h3 { margin: 18px 0 6px; font-size: 16px; color: var(--text); }
.doc p, .doc li { color: var(--muted); line-height: 1.65; font-size: 16px; }
.doc ul { margin: 8px 0 0; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); font-weight: 620; }
.doc .callout {
  background: var(--tint); border: 1px solid rgba(92, 166, 255, .3);
  border-radius: 14px; padding: 14px 16px; margin: 16px 0;
}
.doc .callout p { margin: 0; }
.toc { margin: 8px 0 8px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 10px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.5; }
.doc th { color: var(--text); font-weight: 650; background: rgba(26, 61, 124, .04); }

.center-msg { text-align: center; padding: 18px 0 6px; }
.center-msg p { margin-left: auto; margin-right: auto; max-width: 52ch; }
.center-msg .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  body { padding: 16px 12px; }
  .wrap { padding: 24px 20px 20px; border-radius: 20px; }
  .logo img { height: 50px; }
  .top { justify-content: space-between; }
  .pill { font-size: 11px; padding: 6px 10px; }
  .mobile-break { display: inline; }
  .field-row .lang, .field-row .btn { flex: 1 1 100%; }
  .btn { width: 100%; }
  .center-msg .actions .btn { width: 100%; }
  .foot { flex-direction: column-reverse; align-items: flex-start; }
}
@media (max-width: 380px) {
  .hero h1 .accent { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
