/* SitePreview — site styles. No build step: this file is served as-is. */

/* Fonts are self-hosted so no visitor request goes to a font provider.
   Latin subset, woff2 only, from @fontsource/geist 5.3.0 and
   @fontsource/jetbrains-mono 5.3.0 (npm, via cdn.jsdelivr.net). Both are
   under the SIL Open Font License 1.1; see ../fonts/*-OFL.txt. */
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/geist-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/geist-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/geist-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/geist-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #0F172A;
    --text: #334155;
    --muted: #475569;
    --subtle: #64748B;
    --line: #E2E8F0;
    --line-strong: #CBD5E1;
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --brand: #0F766E;
    --brand-dark: #115E59;
    --brand-darker: #134E4A;
    --brand-tint: #F0FDFA;
    --brand-soft: #CCFBF1;
    --brand-border: #99F6E4;
    --ok: #15803D;
    --warn-bg: #FFFBEB;
    --warn-border: #FCD34D;
    --warn-ink: #78350F;
    --warn-icon: #B45309;
    --err: #B91C1C;
    --err-bg: #FEF2F2;
    --err-border: #FECACA;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.07);
    --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }

:focus-visible { outline: 3px solid var(--brand-border); outline-offset: 2px; border-radius: 4px; }

.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: 16px; top: -48px; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .container { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav form { margin: 0; }
.nav-button {
    display: inline-flex; align-items: center; height: 42px; padding: 0 16px;
    border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg);
    color: var(--ink) !important; font: inherit; font-weight: 500; cursor: pointer;
}
.nav-button:hover { background: var(--surface); text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        display: none; position: absolute; top: 72px; left: 0; right: 0; z-index: 5;
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px;
        background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    }
    .nav.is-open { display: flex; }
    .nav a, .nav form { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav form:last-child, .nav a:last-child { border-bottom: 0; }
    .nav-button { margin-top: 8px; justify-content: center; width: 100%; }
    .site-header { position: relative; }
}

/* Buttons and fields */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 52px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
    font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap;
    text-decoration: none !important;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary[disabled] { opacity: 0.85; cursor: progress; }
.btn-secondary { background: var(--bg); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--surface); color: var(--ink); }
.btn-danger-link { background: none; border: 0; padding: 8px 0; color: var(--err); font: inherit; font-size: 14px; cursor: pointer; }
.btn-danger-link:hover { text-decoration: underline; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; font-weight: 600; color: var(--ink); }
.label .optional { font-weight: 400; color: var(--subtle); }
.input, .select, .textarea {
    width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-strong);
    border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px;
}
.textarea { min-height: 150px; padding: 12px 16px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input-mono { font-family: var(--mono); font-size: 15px; }
.hint { font-size: 14px; color: var(--muted); }
.field-error { font-size: 14px; color: var(--err); }
.input[aria-invalid="true"] { border-color: var(--err); }
.form-stack { display: flex; flex-direction: column; gap: 20px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* Alerts */
.alert { padding: 14px 16px; border-radius: var(--radius); border: 1px solid; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-ink); }
.alert-error { background: var(--err-bg); border-color: var(--err-border); color: #7F1D1D; }
.alert-ok { background: var(--brand-tint); border-color: var(--brand-border); color: var(--brand-darker); }
.alert-info { background: var(--surface); border-color: var(--line); color: var(--text); }
.alert-dismissible { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 12px; }
.alert-close { flex-shrink: 0; border: 0; background: none; padding: 0 4px; color: inherit; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: 0.7; }
.alert-close:hover { opacity: 1; }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 80px 0 88px; }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 600; }
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -0.035em; }
.lead { font-size: 19px; color: var(--muted); }
.create-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.create-row { display: flex; gap: 10px; }
.create-row .input { flex: 1; font-family: var(--mono); height: 56px; }
.create-row .btn { height: 56px; }
.lookup { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.lookup legend { padding: 0; margin-bottom: 2px; }
.choice { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.choice input { width: 16px; height: 16px; margin: 0; flex-shrink: 0; accent-color: var(--brand); }
.lookup > .field { padding-left: 24px; }
.form-meta { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
    .hero { padding: 48px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 38px; }
    .lead { font-size: 17px; }
}
@media (max-width: 520px) {
    .create-row { flex-direction: column; }
    .create-row .btn { width: 100%; }
}

/* Cards: success, probe steps */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 20px 24px; }
.card-shadow { box-shadow: var(--shadow); }
.success-head { padding: 32px 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.success-check {
    width: 64px; height: 64px; border-radius: 50%; background: var(--brand);
    box-shadow: 0 0 0 9px var(--brand-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.success-check svg { width: 30px; height: 30px; }
.success-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.success-sub { color: var(--muted); }
.link-box {
    width: 100%; padding: 14px 16px; border: 1px solid var(--brand-border); border-radius: var(--radius);
    background: var(--brand-tint); color: var(--brand-dark); font-family: var(--mono); font-size: 15px;
    text-align: center; overflow-wrap: anywhere;
}
@media (max-width: 520px) { .link-box { font-size: 13px; } .link-box-lg { font-size: 15px; } }
.link-box-lg { font-size: 18px; padding: 16px 20px; }
.probe { list-style: none; margin: 0; padding: 18px 24px; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 13.5px; line-height: 1.5; }
.probe li { display: flex; gap: 12px; align-items: baseline; }
.probe .mark { width: 16px; flex-shrink: 0; text-align: center; }
.probe .key { width: 64px; flex-shrink: 0; color: var(--subtle); }
.probe .val { color: var(--ink); overflow-wrap: anywhere; }
.probe .is-done .mark { color: var(--ok); font-weight: 600; }
.probe .is-active .mark { color: var(--brand); }
.probe .is-active .val { color: var(--brand); }
.probe .is-pending { color: var(--subtle); }
.probe .is-pending .key, .probe .is-pending .val { color: var(--subtle); }
.probe .is-failed .mark { color: var(--warn-icon); font-weight: 700; }
.probe .is-failed .val { color: var(--warn-ink); }
.probe-surface { background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2.5px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; }
.btn .spinner { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* Result page */
.result-wrap { background: var(--surface); padding: 56px 0 72px; }
.result-stack { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.result-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.result-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.qr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.qr { width: 132px; height: 132px; }
.qr svg { width: 132px; height: 132px; display: block; }
.card-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 12px; }
.checklist label { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.checklist input { width: 18px; height: 18px; accent-color: var(--brand); }
.upsell { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand-darker); }
.small-note { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.small-note > a { flex-shrink: 0; }
.checklist-note { margin-top: 14px; font-size: 14px; color: var(--warn-ink); }
.upsell strong { display: block; }
.upsell-list { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.upsell-list li { margin-top: 2px; }
.hosts summary { cursor: pointer; padding: 16px 24px; font-weight: 600; font-size: 15px; }
.hosts[open] summary { border-bottom: 1px solid var(--line); }
.hosts-body { padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--text); }
.hosts-line { display: flex; gap: 12px; align-items: center; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hosts-line code { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.hosts-os { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.hosts-body code { overflow-wrap: anywhere; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
@media (max-width: 720px) {
    .result-wrap { padding: 24px 0 48px; }
    .result-actions, .result-grid, .checklist { grid-template-columns: 1fr; }
    .result-actions .btn-primary { order: -1; }
    .upsell, .small-note { flex-direction: column; align-items: flex-start; }
    .success-head { padding: 28px 20px 20px; }
}

/* Sections */
.section { padding: 88px 0 0; }
.section:last-of-type { padding-bottom: 88px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.section-head-row { flex-direction: row; justify-content: space-between; align-items: baseline; }
.h2 { font-size: 34px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--brand); }
.step h3 { font-size: 18px; letter-spacing: -0.01em; }
.step p { font-size: 15px; color: var(--muted); }
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.use { padding: 20px; background: var(--surface); border-radius: var(--radius); display: flex; flex-direction: column; gap: 6px; }
.use h3 { font-size: 16px; letter-spacing: 0; }
.use p { font-size: 14px; color: var(--muted); }
.compare { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-top: 1px solid var(--line); }
.compare thead th { background: var(--surface); border-top: 0; font-size: 14px; }
.compare tbody th { font-weight: 400; color: var(--muted); }
.compare .yes { color: var(--ok); font-weight: 500; }
@media (max-width: 900px) {
    .section { padding-top: 56px; }
    .section:last-of-type { padding-bottom: 56px; }
    .h2 { font-size: 28px; }
    .grid-3 { grid-template-columns: 1fr; gap: 16px; }
    .grid-2 { grid-template-columns: 1fr; gap: 48px; }
    .compare th, .compare td { padding: 12px 14px; }
}
@media (max-width: 520px) { .uses { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--subtle); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 0 22px; color: var(--text); max-width: 720px; }
.faq-item .answer p + p { margin-top: 10px; }

/* Page header and prose */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 64px 0 48px; }
.page-head h1 { font-size: 44px; letter-spacing: -0.03em; }
.page-head p { margin-top: 12px; font-size: 18px; color: var(--muted); max-width: 760px; }
.page-body { padding: 56px 0 80px; }
.prose { max-width: 720px; color: var(--text); font-size: 17px; line-height: 1.7; }
.prose h2 { margin: 40px 0 12px; font-size: 22px; color: var(--ink); }
.prose h3 { margin: 28px 0 8px; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.prose .updated { font-size: 14px; color: var(--subtle); }
@media (max-width: 720px) {
    .page-head { padding: 40px 0 32px; }
    .page-head h1 { font-size: 32px; }
    .page-head p { font-size: 16px; }
    .page-body { padding: 36px 0 56px; }
}

.with-aside { display: flex; gap: 72px; align-items: flex-start; }
.with-aside > :first-child { flex: 1; min-width: 0; }
.aside { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.aside-box { padding: 22px; background: var(--surface); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); }
.aside-box strong { color: var(--ink); }
.toc { position: sticky; top: 24px; width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.toc span { font-size: 13px; font-weight: 600; color: var(--subtle); }
@media (max-width: 900px) {
    .with-aside { flex-direction: column; gap: 32px; }
    .aside, .toc { width: 100%; position: static; }
    .toc { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
}
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.help-cta { margin-top: 48px; padding: 24px; border-radius: 14px; background: var(--brand-tint); display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--brand-darker); }
@media (max-width: 600px) { .help-cta { flex-direction: column; align-items: flex-start; } }

.limits { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--warn-border); border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); }
.limits h2 { margin: 0 0 10px; font-size: 18px; color: var(--warn-ink); }
.limits ul { margin: 0; padding-left: 20px; }
.diagram { margin: 0 0 48px; }
.diagram svg { width: 100%; height: auto; }
.diagram-narrow { display: none; max-width: 320px; margin: 0 auto; }
@media (max-width: 640px) { .diagram-wide { display: none; } .diagram-narrow { display: block; } }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.principles div { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 16px; color: var(--ink); }
.principles span { color: var(--brand); font-weight: 700; margin-right: 8px; }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }

/* Guide: step headings and the illustrated mock-ups. A mock is inert and
   built from spans styled with the real component classes, so it looks like
   the product without behaving like it. */
.guide { display: flex; flex-direction: column; gap: 64px; width: 100%; }
.guide code { overflow-wrap: anywhere; }
.guide-step { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 24px; }
.guide-step > h2 { display: flex; align-items: center; gap: 14px; font-size: 26px; }
.guide-num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0; }
.guide-step .prose h3:first-child { margin-top: 0; }
.guide-step .limits { margin-top: 0; }
.guide .help-cta { margin-top: 0; }
.mock { margin: 0; display: flex; flex-direction: column; gap: 10px; max-width: 760px; min-width: 0; }
.mock figcaption { font-size: 14px; color: var(--subtle); }
.mock-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.mock-frame { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); overflow-x: auto; box-shadow: var(--shadow); user-select: none; pointer-events: none; }
.mock-frame .btn, .mock-frame .input { cursor: default; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); min-width: 0; }
.mock-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-address { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-address svg { flex-shrink: 0; color: var(--ok); }
.mock-body { padding: 24px; }
.mock-surface { background: var(--surface); }
.mock-stack { display: flex; flex-direction: column; gap: 14px; }
.mock-note { font-size: 13px; color: var(--muted); }
.mock-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.mock-field { display: flex; align-items: center; }
.mock-form .create-row .input { height: 56px; min-height: 56px; }
.mock-link { color: var(--brand); font-size: 14px; font-weight: 500; }
.mock-mark { outline: 2px solid var(--warn-icon); outline-offset: 3px; border-radius: 6px; }
.mock-radio { display: inline-block; flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--bg); }
.mock-radio.is-on { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 2.5px var(--bg); }
.mock-callout { align-self: flex-start; padding: 4px 10px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-ink); font-size: 13px; font-weight: 600; }
.mock-panel { display: flex; min-height: 220px; }
.mock-side { width: 150px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--surface); border-right: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mock-side span { padding: 6px 10px; border-radius: 8px; }
.mock-side .is-current { background: var(--bg); color: var(--ink); font-weight: 600; }
.mock-main { flex: 1; min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.mock-h { font-size: 17px; font-weight: 700; }
.mock-dl { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mock-dl div { display: flex; gap: 16px; padding: 6px 8px; }
.mock-dl dt { width: 150px; flex-shrink: 0; color: var(--muted); }
.mock-dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.mock-qr { width: 120px; height: 120px; display: block; }
.mock-tip { margin: 10px 0 0 auto; width: max-content; max-width: 100%; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.4; }
.mock-frame .dash-table th, .mock-frame .dash-table td { padding: 12px 14px; font-size: 14px; }
.mock-nowrap { white-space: nowrap; }
.mock-frame .dash-table .mock-link { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.mock-dns { width: 100%; border-collapse: collapse; font-size: 14px; }
.mock-dns th, .mock-dns td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); }
.mock-dns thead th { border-top: 0; font-size: 13px; color: var(--muted); }
.mock-dns td { font-family: var(--mono); font-size: 13px; }
.mock-dns td:first-child { white-space: nowrap; }
.mock-dns .mock-mark { outline-offset: -2px; }
.mock-dns s { color: var(--subtle); }
.mock-site { padding: 0 0 24px; }
.mock-site-head { display: flex; align-items: center; gap: 18px; padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mock-site-head strong { margin-right: auto; color: var(--ink); font-size: 16px; }
.mock-site-hero { display: flex; flex-direction: column; gap: 10px; padding: 36px 24px 28px; background: linear-gradient(135deg, #EEF2FF, #F0FDFA); }
.mock-site-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.mock-line { display: block; height: 10px; border-radius: 5px; background: var(--line-strong); }
.mock-site-btn { align-self: flex-start; margin-top: 6px; padding: 8px 14px; border-radius: 8px; background: #4338CA; color: #fff; font-size: 14px; font-weight: 600; }
.mock-site-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px 24px 0; }
.mock-site-cards span { height: 70px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 640px) {
    .guide { gap: 48px; }
    .guide-step > h2 { font-size: 21px; align-items: flex-start; }
    .guide-num { width: 30px; height: 30px; font-size: 15px; }
    .mock-body { padding: 14px; }
    .mock-side { display: none; }
    .mock-main { padding: 16px; }
    .mock-dl div { flex-direction: column; gap: 2px; }
    .mock-dl dt { width: auto; }
    .mock-site-head span { display: none; }
    .mock-site-title { font-size: 20px; }
    .mock-qr { width: 104px; height: 104px; }
    .mock-dns th, .mock-dns td { padding: 8px 6px; }
    .mock-dns td { font-size: 11px; word-break: keep-all; }
}

/* Auth */
.auth-wrap { background: var(--surface); padding: 72px 0; min-height: calc(100vh - 72px - 177px); }
.auth-grid { display: flex; justify-content: center; gap: 48px; align-items: flex-start; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { font-size: 28px; }
.auth-benefits { width: 320px; padding-top: 12px; display: flex; flex-direction: column; gap: 14px; }
.auth-benefits h2 { font-size: 18px; letter-spacing: -0.01em; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.ticks li::before { content: '✓'; color: var(--brand); font-weight: 700; margin-right: 10px; }
.tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface); border-radius: var(--radius); }
.tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
@media (max-width: 820px) {
    .auth-wrap { padding: 32px 0 48px; }
    .auth-grid { flex-direction: column; align-items: stretch; }
    .auth-card { max-width: none; padding: 24px; }
    .auth-benefits { width: auto; }
}

/* Dashboard */
.dash { background: var(--surface); padding: 48px 0 72px; min-height: calc(100vh - 72px - 177px); }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-head h1 { font-size: 32px; }
/* Not overflow: hidden, so a row's Manage panel can overlap the rows below; the header's corners are rounded instead. */
.dash-table { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); border-collapse: separate; border-spacing: 0; }
.dash-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.dash-table thead th:last-child { border-top-right-radius: var(--radius-lg); }
.dash-table th, .dash-table td { padding: 14px 16px; text-align: left; border-top: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
.dash-table thead th { border-top: 0; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); }
.dash-table .mono { font-size: 13px; }
.status { font-weight: 500; white-space: nowrap; }
.status-active { color: var(--ok); }
.status-expired { color: var(--subtle); }
.status-disabled { color: var(--err); }
.status-paused { color: var(--warn-icon); }
.dash-domain { display: inline-flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-label { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.dash-actions { text-align: right; white-space: nowrap; }
.dash-expires { white-space: nowrap; }
.dash-expires .expires-soon { color: var(--warn-icon); }
.row-actions { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dash-status { display: inline-block; max-width: 230px; }
.dash-status .status { white-space: normal; }
.row-actions form { margin: 0; }
.manage { position: relative; }
.manage summary { list-style: none; cursor: pointer; padding: 8px 0; color: var(--brand); font-size: 14px; font-weight: 500; }
.manage summary::-webkit-details-marker { display: none; }
.manage summary::after { content: ' ▾'; font-size: 11px; }
.manage[open] summary::after { content: ' ▴'; }
.manage-panel {
    position: absolute; z-index: 6; top: calc(100% + 4px); right: 0; width: 340px;
    display: flex; flex-direction: column; gap: 10px; padding: 14px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12); text-align: left; white-space: normal;
}
.manage-row { display: flex; align-items: center; gap: 8px; }
.manage-row + .manage-row { padding-top: 10px; border-top: 1px solid var(--line); }
.manage-label { flex: 0 0 auto; min-width: 72px; font-size: 14px; color: var(--muted); }
.manage-row .manage-label + .btn, .manage-row .manage-label + .btn-danger-link { margin-left: auto; }
.select-compact, .input-compact { min-height: 40px; height: 40px; font-size: 15px; padding: 0 10px; flex: 1; min-width: 0; }
.btn-compact { height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; flex-shrink: 0; }
/* Homepage warning: the sentence shows on hover (title) and, for keyboard and touch, on focus. */
.home-pill { position: relative; display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--warn-border); border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: help; }
.home-pill:focus::after { content: attr(data-tip); position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 400; line-height: 1.4; white-space: normal; text-align: left; }
.copy-mini { border: 0; background: none; color: var(--subtle); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 6px; }
.copy-mini:hover { color: var(--ink); }
.empty { padding: 48px 24px; text-align: center; background: var(--bg); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 12px; align-items: center; }
/* Eight columns only fit a desktop width with tighter cells; below that, each row becomes a card. */
@media (max-width: 1100px) {
    .dash-table th, .dash-table td { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 980px) {
    .dash-table thead { display: none; }
    .dash-table, .dash-table tbody, .dash-table tr, .dash-table td { display: block; width: 100%; }
    .dash-table { border: 0; background: none; }
    .dash-table tr { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
    .dash-table td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; }
    .dash-table td::before { content: attr(data-label); color: var(--subtle); font-size: 13px; }
    .dash-table thead th:first-child, .dash-table thead th:last-child { border-radius: 0; }
    .dash-domain { align-items: flex-end; text-align: right; }
    .dash-table td.dash-actions { flex-wrap: wrap; white-space: normal; }
    .dash-table td.dash-actions::before { display: none; }
    .row-actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 14px; }
    .dash-status { max-width: 70%; text-align: right; }
    .manage { flex: 1; }
    .manage[open] { flex-basis: 100%; }
    .manage-panel { position: static; width: auto; margin-top: 6px; box-shadow: none; }
}

/* Centered system pages */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--surface); text-align: center; }
.center-stack { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.center-stack h1 { font-size: 32px; letter-spacing: -0.02em; }
.center-stack p { font-size: 17px; color: var(--muted); }
.icon-circle { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.icon-warn { background: #FEF3C7; color: var(--warn-icon); }
.icon-err { background: var(--err-bg); color: var(--err); }
.icon-info { background: var(--brand-soft); color: var(--brand); }
.center-page .brand { margin-bottom: 20px; font-size: 17px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0; font-size: 14px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand strong { font-size: 17px; color: var(--ink); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { color: var(--ink); font-weight: 600; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
@media (max-width: 600px) { .footer-cols { gap: 32px; } }
