:root {
  color-scheme: light;
  --ink: #14110f;
  --ink-soft: #3a332e;
  --muted: #6b6058;
  --brick: #7c2434;
  --brick-dark: #5f1a27;
  --sun: #f7c61a;
  --sun-soft: #fff3c9;
  --cream: #fdf8ef;
  --cream-deep: #ead9bd;
  --white: #fff;
  --danger: #a51d2d;
  --success: #276749;
  --shadow: 5px 5px 0 var(--ink);
  --radius: 1rem;
  font-family: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink-soft);
}

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

@font-face {
  font-family: "Outfit Variable";
  src: url("/assets/outfit-latin-wght.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
body::before {
  position: fixed; inset: 0; z-index: -1; content: "";
  background-image: radial-gradient(var(--cream-deep) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .55;
}
h1, h2, h3, .wordmark { color: var(--ink); font-family: "Outfit Variable", sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: var(--sun); padding: .75rem; z-index: 5; }
.skip-link:focus { top: 1rem; }
.shell { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 2rem; padding: .75rem 1rem; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--ink); }
.wordmark { font-weight: 850; font-size: 1.35rem; letter-spacing: -.04em; text-decoration: none; }
.wordmark strong { color: var(--brick); }
.wordmark small { color: var(--muted); font-size: .75em; }
.locale-link { font-weight: 750; color: var(--brick); }
main { max-width: 64rem; margin: 0 auto; padding-bottom: 4rem; }
.eyebrow { font-weight: 800; color: var(--brick); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1; margin: .55rem 0 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.lead { font-size: 1.15rem; max-width: 48rem; line-height: 1.65; }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1rem, 4vw, 2rem); margin: 1.5rem 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-sites { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.button, button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: .75rem; padding: .7rem 1.15rem; background: var(--brick); color: var(--white); box-shadow: 3px 3px 0 var(--ink); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: var(--brick-dark); transform: translate(3px, 3px); box-shadow: none; }
.button.secondary { background: var(--white); color: var(--ink); }
.button.sun { background: var(--sun); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.status { display: inline-flex; align-items: center; gap: .45rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--sun-soft); padding: .35rem .7rem; font-weight: 750; }
.status::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--muted); }
.status.ready::before { background: var(--success); }
.status.problem::before { background: var(--danger); }
.steps { padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: .8rem 0 .8rem 2.5rem; border-left: 3px solid var(--cream-deep); margin-left: .8rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: -1.05rem; top: .65rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); font-weight: 800; }
label { display: block; font-weight: 750; margin: .85rem 0 .35rem; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { width: 100%; min-height: 3rem; border: 2px solid var(--ink); border-radius: .65rem; padding: .65rem .75rem; background: var(--white); font: inherit; }
input[type="radio"], input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--brick); vertical-align: middle; }
.hint, .meta { color: var(--muted); font-size: .92rem; }
.alert { border-left: .5rem solid var(--brick); background: var(--sun-soft); padding: 1rem; margin: 1rem 0; }
footer { border-top: 2px solid var(--cream-deep); padding: 1.5rem 0 3rem; display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); }

@media (max-width: 38rem) {
  .shell { width: min(100% - 1rem, 72rem); }
  .topbar { margin-top: .5rem; flex-wrap: wrap; }
  .topbar nav { order: 3; width: 100%; line-height: 1.8; }
  .card { box-shadow: 3px 3px 0 var(--ink); }
  .actions > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .button:hover, button:hover { transform: none; box-shadow: 3px 3px 0 var(--ink); }
}

/* Customer hostnames and copied instructions must remain readable on phones. */
main, .card, .grid > * { min-width: 0; }
h1, h2, h3, code, .status, a { overflow-wrap: anywhere; }
p, li { line-height: 1.6; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Compact order flow: terms open independently of the order form. */
.checkout { max-width: 58rem; }
.checkout h1 { font-size: clamp(2rem, 5vw, 3rem); }
.checkout-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.checkout-wide { grid-column: 1 / -1; }
.checkout fieldset { border: 0; padding: 0; margin: 1rem 0; min-width: 0; }
.checkout legend { font-weight: 750; }
.checkout-host { font-size: 1.15rem; font-weight: 750; overflow-wrap: anywhere; }
.checkout-summary { max-width: 44rem; margin-inline: auto; }
.checkout-prices { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem 1rem; }
.checkout-prices dd { margin: 0; text-align: right; }
.checkout-scopes { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-left: 1.25rem; }
.checkout-policy-links { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin: 1.5rem 0; }
.checkout .consent { display: flex; align-items: flex-start; gap: .7rem; line-height: 1.5; margin: 1.1rem 0; font-weight: 500; }
.checkout .consent input { flex: 0 0 auto; margin-top: .2rem; }
.checkout button.secondary { background: var(--white); color: var(--ink); }
.address, .policy-paragraph { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 38rem) {
 .checkout-details { grid-template-columns: 1fr; }
 .checkout-prices { grid-template-columns: 1fr; }
 .checkout-prices dd { text-align: left; margin-bottom: .5rem; }
 .checkout button { width: 100%; }
}
@media print {
 .topbar, footer, .skip-link { display: none; }
 body, .card { background: white; box-shadow: none; }
 .shell, main { width: 100%; max-width: none; }
}

[hidden] { display: none !important; }
.journey-steps { font-size: .9rem; margin: 0 0 1.25rem; padding-block: .75rem; color: var(--muted); }
.journey-steps ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.journey-steps li { display: flex; align-items: center; gap: .45rem; padding: .5rem .7rem; border: 2px solid transparent; border-radius: .65rem; }
.journey-steps .step-number { display: inline-grid; place-items: center; min-width: 1.25rem; font-weight: 750; }
.journey-steps .complete { color: var(--ink-soft); }
.journey-steps .complete .step-number { color: var(--success); }
.journey-steps [aria-current="step"] { background: var(--brick); color: var(--white); font-weight: 800; border-color: var(--ink); }
.address-preview { background: var(--cream); border-radius: .65rem; padding: .85rem 1rem; overflow-wrap: anywhere; }
#address-preview-value { font-weight: 750; color: var(--ink); }
#address-error { color: var(--danger); }

/* Honest handoffs and evidence-based compatibility. */
.inline-auth { display: inline-flex; margin: 0; }
.inline-auth button { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.activity { display: inline-block; width: 1.2rem; height: 1.2rem; border: 3px solid var(--cream-deep); border-top-color: var(--brick); border-radius: 50%; vertical-align: middle; animation: activity-turn 1s linear infinite; }
@keyframes activity-turn { to { transform: rotate(360deg); } }
.ready-check { display: inline-grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); border-radius: 50%; width: 3rem; height: 3rem; font-size: 2rem; color: var(--success); }
.progress-stages { display: flex; list-style: none; padding: 0; gap: 1rem; flex-wrap: wrap; }
.progress-stages li { border-bottom: 3px solid var(--cream-deep); padding: .75rem 0; }
.progress-stages .current { border-color: var(--brick); font-weight: 800; }
.progress-stages .complete { border-color: var(--success); }
.progress-stages .complete::before { content: '✓ '; }
.progress-stages .waiting { color: var(--muted); }
.progress-stages .stopped { border-color: var(--danger); }
.compat-table { width: 100%; border-collapse: collapse; background: var(--white); margin: 1rem 0 2rem; table-layout: fixed; }
.compat-table caption { text-align: left; padding: 1rem 0; line-height: 1.6; }
.compat-table th, .compat-table td { padding: 1rem .65rem; text-align: left; vertical-align: top; border-bottom: 2px solid var(--cream-deep); overflow-wrap: anywhere; line-height: 1.55; }
.compat-table thead { background: var(--sun-soft); }
.compat-table th:first-child { width: 17%; }
.compat-table th:nth-child(2) { width: 17%; }
.compat-table th:nth-child(3) { width: 22%; }
.compat-table th:nth-child(4) { width: 27%; }
.compat-result { font-weight: 750; }
.compat-table summary, details.card > summary { cursor: pointer; font-weight: 750; }
@media (max-width: 48rem) {
 .compat-table, .compat-table tbody { display: block; }
 .compat-table caption { display: block; width: 100%; }
 .compat-table thead { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }
 .compat-table tr { display: block; border: 2px solid var(--ink); border-radius: var(--radius); margin: 1rem 0; padding: .75rem; }
 .compat-table td, .compat-table th { display: block; width: auto !important; border: 0; padding: .4rem; }
 .compat-table th { font-size: 1.2rem; }
 .compat-table td strong { display: block; }
}
@media (prefers-reduced-motion: reduce) {
 .activity { animation: none; border-color: var(--brick); }
}

/* Completed steps submit unfinished details without HTML required-field gates. */
.journey-steps li:has(.step-link) { padding: 0; }
.journey-steps .step-link { display: flex; align-items: center; gap: .45rem; padding: .5rem .7rem; color: inherit; font: inherit; background: transparent; border: 0; border-radius: .5rem; box-shadow: none; text-decoration: underline; text-underline-offset: .2em; margin: 0; transform: none; }
.journey-steps .step-link:hover { background: var(--cream-deep); }
.back-link { color: var(--ink-soft); background: transparent; border: 0; box-shadow: none; text-decoration: underline; text-underline-offset: .2em; }

/* Preparation reflects persisted stages; the moving bar has no percentage. */
.preparation-panel { background: var(--sun-soft); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.5rem); margin: 1.25rem 0 1.5rem; }
.preparation-message { font-size: 1.1rem; font-weight: 650; margin-top: 0; }
.preparation-meter { height: .85rem; overflow: hidden; border-radius: 1rem; background: var(--cream-deep); }
.preparation-meter span { display: block; height: 100%; width: 40%; background: var(--brick); border-radius: inherit; animation: preparation-sweep 1.8s ease-in-out infinite alternate; }
.preparation-panel .hint { margin-bottom: 0; }
[data-journey-stale="true"] .preparation-meter span { animation-play-state: paused; }
@keyframes preparation-sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) {
 .preparation-meter span { animation: none; transform: translateX(75%); }
}

.preview-banner {display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem 1rem;padding:.8rem 1rem;margin-bottom:1rem;border:1px solid #d6b975;border-radius:.65rem;background:#fff3cf;color:#382d1b;font-size:.875rem;line-height:1.5}.preview-banner strong{white-space:nowrap}.preview-banner span{flex:1 1 22rem}.preview-banner a{color:#7c2434;text-underline-offset:.18em}.preview-banner a:focus-visible{outline:3px solid #7c2434;outline-offset:3px}@media print{.preview-banner{display:none}}

.policy-paragraph{white-space:pre-line;overflow-wrap:anywhere;max-width:75ch}
