/* Until. marketing site v3
   Colours: #FFD400, #111111, #FFFFFF only. No other colours, no gradients.
   Type: Be Vietnam Pro 600/700 (headings), Inter 400/500/600 (body). Self-hosted WOFF2. */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/be-vietnam-pro-600.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/be-vietnam-pro-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-600.woff2") format("woff2"); }

:root {
  --yellow: #FFD400; --ink: #111111; --white: #FFFFFF;
  --font-display: "Be Vietnam Pro", Arial, Helvetica, sans-serif;
  --font-body: Inter, Arial, Helvetica, sans-serif;
  --nav-h: 4.5rem; --max: 72rem; --measure: 42rem;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --section-y: clamp(3.75rem, 8vw, 6.5rem);
  --display: clamp(2.5rem, 6vw, 4.5rem);
  --h1: clamp(2.05rem, 4.4vw, 3.3rem);
  --h2: clamp(1.55rem, 2.8vw, 2.2rem);
  --h3: clamp(1.12rem, 1.5vw, 1.3rem);
  --body: 1.0625rem; --small: 0.9375rem; --caption: 0.8125rem;
  --rule: 2px solid var(--ink); --ease: 160ms ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font-body); font-size: var(--body); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
h1, h2, h3, .display, .band-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.14; margin: 0; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-footer :focus-visible, .section-ink :focus-visible { outline-color: var(--yellow); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100%; z-index: 1000; padding: 0.6rem 0.9rem; background: var(--ink); color: var(--white); font-size: var(--caption); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 0.75rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--ink); }
.header-inner { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; min-height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem; }
.logo { flex: 0 0 auto; display: block; line-height: 0; }
.logo img { width: 7.25rem; height: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0.25rem 1.4rem; list-style: none; }
.nav-list > li > a, .menu > summary { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; font-size: var(--small); font-weight: 500; text-decoration: none; cursor: pointer; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: 0.42rem; height: 0.42rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.15rem) rotate(45deg); }
.menu[open] > summary::after { transform: translateY(0.1rem) rotate(225deg); }
.nav-list > li > a:hover, .menu > summary:hover, .nav-list a[aria-current="page"] { text-decoration: underline; }
.menu { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 0.6rem); left: -1.25rem; min-width: 17rem; background: var(--white); border: var(--rule); padding: 1rem 1.25rem; list-style: none; display: grid; gap: 0.15rem; }
.menu-panel a { display: block; padding: 0.35rem 0; font-size: var(--small); text-decoration: none; }
.menu-panel a:hover { text-decoration: underline; }
.menu-label { font-size: var(--caption); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); min-height: 2.75rem; padding: 0.4rem 0.9rem; font-weight: 600; font-size: var(--small); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.7rem 1.2rem; border: 2px solid var(--ink); background: var(--ink); color: var(--white); font-size: var(--small); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color var(--ease), color var(--ease); text-align: center; }
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-lg { min-height: 3.25rem; padding: 0.95rem 1.5rem; font-size: 1rem; }
.btn[disabled] { cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; font-size: var(--caption); font-weight: 500; margin-bottom: 2.25rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Heroes */
.hero, .page-hero { background: var(--yellow); position: relative; overflow: hidden; }
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4.5rem, 10vw, 7.5rem); }
.page-hero { padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(3.5rem, 8vw, 5.5rem); }
.hero-inner { max-width: 48rem; position: relative; z-index: 1; }
.hero-mark { width: min(70%, 15rem); margin-bottom: 2rem; }
.page-mark { width: 9rem; margin-bottom: 1.75rem; }
.display { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
.page-hero h1 { max-width: 50rem; }
.answer { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 44rem; margin-top: 1.5rem; }
.article-meta { font-size: var(--small); margin-top: 1.25rem; }
.hero-period { position: absolute; right: max(var(--gutter), calc(50% - 36rem)); bottom: 16%; width: clamp(7rem, 20vw, 16rem); aspect-ratio: 1; border-radius: 50%; background: var(--white); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section + .section { padding-top: 0; }
.section + .section > .wrap { border-top: 1px solid var(--ink); padding-top: var(--section-y); }
.section-yellow { background: var(--yellow); }
.section-ink { background: var(--ink); color: var(--white); }
.sec-head { max-width: 46rem; }
.prose { max-width: var(--measure); }
.sec-head + .prose, .sec-head + .stack { margin-top: 1.5rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h3 { margin-top: 2.25rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.55rem; }
.prose li::marker { font-weight: 700; }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.wide { max-width: none; }
.stack > * + * { margin-top: 1.1rem; }

/* Cards */
.grid { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); list-style: none; padding: 0 !important; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card { border-top: var(--rule); padding-top: 1.25rem; margin: 0 !important; }
.card h3 { margin: 0 0 0.6rem; }
.card p { font-size: 1rem; }
.card p + p { margin-top: 0.6rem; }
.linkcard a { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; text-decoration: none; display: inline-block; margin-bottom: 0.45rem; }
.linkcard a::after { content: " →"; }
.linkcard a:hover { text-decoration: underline; }
.linkcard p { font-size: 0.98rem; }

/* Figures */
.figure { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; max-width: 56rem; }
.figure img { width: 100%; }
.sec-split .figure { grid-column: 1 / -1; margin-top: 1rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 2rem; max-width: 60rem; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
thead th { font-family: var(--font-display); font-weight: 600; border-bottom: var(--rule); }
tbody th { font-weight: 600; }
@media (max-width: 639px) { table { min-width: 34rem; } }

/* Special blocks */
.takeaways { background: var(--yellow); padding: clamp(1.5rem, 3vw, 2.25rem); max-width: var(--measure); }
.toc { border-left: 3px solid var(--yellow); padding-left: 1.25rem; max-width: var(--measure); }
.toc-label, .label { font-size: var(--caption); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.toc ol { padding-left: 1.2rem; font-size: 0.98rem; }
.toc li + li { margin-top: 0.3rem; }
.related ul { list-style: none; display: grid; gap: 0.55rem; padding: 0; }
.related a { font-weight: 600; }
.sources { font-size: var(--small); max-width: var(--measure); }
.sources ul { padding-left: 1.2rem; }
.sources li + li { margin-top: 0.4rem; }
.sources a { word-break: break-word; }

/* FAQ */
.faq { max-width: 48rem; margin-top: 2rem; }
.faq details { border-top: 1px solid var(--ink); padding: 1.2rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.1rem; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { margin-top: 0.8rem; max-width: 42rem; }

/* CTA band */
.cta-band { background: var(--yellow); padding: clamp(4rem, 9vw, 6.5rem) 0; }
.band-title { font-size: var(--display); }
.cta-band p.band-text { max-width: 36rem; margin-top: 1.25rem; font-size: 1.15rem; }

/* Form */
.form { display: grid; gap: 1.35rem; grid-template-columns: 1fr; max-width: 42rem; margin-top: 2rem; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field > label, .field legend { font-size: var(--small); font-weight: 600; }
.field input[type=text], .field input[type=email], .field input[type=url], .field select, .field textarea { width: 100%; min-height: 3rem; padding: 0.75rem 0.9rem; border: 2px solid var(--ink); background: var(--white); border-radius: 0; }
.field textarea { resize: vertical; min-height: 8rem; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-top: 0.5rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--small); }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.req { font-weight: 500; }
.field-error { font-size: var(--small); font-weight: 600; }
.field-error::before { content: "! "; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-width: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.form-status:empty { display: none; }
.form-status.is-error { border: var(--rule); padding: 1rem 1.25rem; font-size: 1.05rem; }
.form-status.is-success { background: var(--yellow); padding: 1.25rem 1.5rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding: clamp(3.5rem, 8vw, 5.5rem) 0 2.5rem; }
.footer-top { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .footer-top { grid-template-columns: 1fr 3.2fr; } }
.footer-brand img { width: 11rem; }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.footer-heading { font-family: var(--font-display); font-size: var(--caption); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; color: var(--yellow); }
.footer-cols ul { list-style: none; display: grid; gap: 0.5rem; font-size: var(--small); }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.footer-entity { margin-top: 3rem; max-width: 46rem; font-size: var(--small); font-weight: 600; }
.footer-meta { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--white); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--caption); }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

/* 404 */
.notfound { min-height: 55vh; display: flex; align-items: center; }

/* Mobile nav */
@media (max-width: 1023px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; position: fixed; inset: var(--nav-h) 0 0 0; margin: 0; padding: 1.5rem var(--gutter) 2.5rem; background: var(--white); flex-direction: column; align-items: stretch; gap: 1.5rem; overflow-y: auto; border-top: 1px solid var(--ink); }
  .js .nav.is-open { display: flex; }
  .nav { flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--ink); }
  .nav-list > li > a, .menu > summary { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; min-height: 3.25rem; width: 100%; justify-content: space-between; }
  .menu-panel { position: static; border: 0; padding: 0 0 1rem; min-width: 0; }
  .menu-panel a { font-size: 1rem; padding: 0.5rem 0; }
  .nav .btn { align-self: flex-start; }
  .hero-period { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .nav-toggle, .hero-period, .btn, form, .cta-band { display: none !important; } }

/* Two-column sections on wide screens: heading left, text right */
@media (min-width: 1024px) {
  .sec-split > .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 2rem clamp(3rem, 6vw, 6rem); align-items: start; }
  .sec-split .sec-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .sec-split .sec-head + .prose, .sec-split .sec-head + .stack { margin-top: 0; }
  .sec-split .prose { max-width: 40rem; }
}

/* Make the hidden attribute always win over display rules. */
[hidden] { display: none !important; }
