/* Admitto identity: the jamb is the A, the door opens inside it.
   Colours: Indigo, Mint, Night, Haze. Type: Lexend (wordmark), Sora (headings), Inter (text). All fonts self-hosted, OFL. */
@font-face { font-family: "Sora"; src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/fonts/lexend-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --indigo: #3b2fd9;
  --indigo-strong: #2a1fb0;
  --mint: #7be3c4;
  --night: #14123a;
  --haze: #f5f4ff;
  --bg: var(--haze);
  --card: #ffffff;
  --ink: var(--night);
  --ink-soft: #4b4870;
  --muted: #625f86;
  --line: #e2e0f7;
  --link: var(--indigo);
  --jamb-stroke: var(--night);
  --radius: 16px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --wordmark: "Lexend", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d2e;
    --card: #1a1747;
    --ink: #f5f4ff;
    --ink-soft: #c3c0e6;
    --muted: #a9a6d0;
    --line: #2b2860;
    --link: #a9a2ff;
    --jamb-stroke: transparent;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--indigo-strong); }
@media (prefers-color-scheme: dark) { a:hover { color: #c9c4ff; } }
code, pre { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

/* Wordmark: the mark stands on the baseline of "dmitto". */
.wordmark { display: inline-flex; align-items: baseline; gap: 0.02em; font-family: var(--wordmark); font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--ink); text-decoration: none; }
.wordmark svg { width: 0.68em; height: 0.81em; flex: none; }
.jamb { fill: #fff; stroke: var(--jamb-stroke); stroke-width: 22; stroke-linejoin: round; }
.light { fill: var(--mint); }
.door { fill: var(--indigo); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.site-header .wordmark { font-size: 1.85rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 0.5rem 0; }
.nav a:hover { color: var(--ink); }
@media (max-width: 44rem) { .nav .optional { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem; border-radius: 12px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-strong); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--ink); }
.btn-mint { background: var(--mint); color: var(--night); }
.btn-mint:hover { background: #a8f0da; color: var(--night); }

/* Sections */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo); }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--mint); } }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 42rem; }
.muted { color: var(--muted); }

/* Hero: night band with the lit doorway */
.hero { background: var(--night); color: #f5f4ff; padding: 5rem 0 5.5rem; border-bottom: 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--mint); }
.hero .lead { color: #c3c0e6; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #3d3a78; }
.hero .btn-ghost:hover { border-color: var(--mint); color: #fff; }
.hero-mark { justify-self: center; width: min(100%, 20rem); }
.hero-mark svg { width: 100%; height: auto; display: block; }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; padding: 0.3rem 0.85rem; border-radius: 999px; background: rgba(123, 227, 196, 0.14); color: var(--mint); font-weight: 600; font-size: 0.85rem; }
.badge::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
@media (max-width: 52rem) { .hero .wrap { grid-template-columns: 1fr; } .hero-mark { width: 12rem; grid-row: 1; justify-self: start; } }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card p:last-child { margin-bottom: 0; }
.value .icon { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--indigo) 12%, transparent); color: var(--indigo); margin-bottom: 1rem; }
@media (prefers-color-scheme: dark) { .value .icon { color: var(--mint); background: rgba(123, 227, 196, 0.12); } }
.value .icon svg { width: 1.4rem; height: 1.4rem; }

.steps { counter-reset: step; }
.step { position: relative; padding: 4.25rem 1.5rem 1.5rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 1.5rem; left: 1.5rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--night); font-weight: 700; font-size: 0.95rem; }

.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--card); }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: color-mix(in srgb, var(--indigo) 10%, var(--card)); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
.tag { color: var(--indigo); font-weight: 700; font-size: 0.8rem; }
@media (prefers-color-scheme: dark) { .tag { color: var(--mint); } }

pre { margin: 0; padding: 1.25rem; border-radius: var(--radius); background: var(--night); color: #e6e4ff; overflow-x: auto; line-height: 1.5; }
@media (prefers-color-scheme: dark) { pre { background: #0a0824; border: 1px solid var(--line); } }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.75rem; margin: 0.5rem 0; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.9rem; height: 0.5rem; border-left: 3px solid var(--indigo); border-bottom: 3px solid var(--indigo); transform: rotate(-45deg); }
@media (prefers-color-scheme: dark) { .checks li::before { border-color: var(--mint); } }

.cta { background: var(--night); color: #f5f4ff; border-radius: 24px; padding: 3rem 2rem; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #c3c0e6; max-width: 36rem; margin: 0 auto 1.75rem; }

/* Legal pages */
.legal { padding: 3.5rem 0 4.5rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.5rem; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.25rem; }
.legal .updated { color: var(--muted); font-size: 0.95rem; }
.note { border-left: 4px solid var(--mint); background: var(--card); border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer .wordmark { font-size: 1.4rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
