/* ==========================================================================
   Page compositions: landing, docs, installer content and page-specific arrangements
   ========================================================================== */

/* ---------- Landing ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--ink-text); padding: var(--s-16) var(--s-5) 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 85% 0%, rgba(255, 214, 110, .16), transparent 70%), radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--brand) 40%, transparent), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-12); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); border: 1px solid var(--ink-line); font-size: var(--fs-sm); color: var(--ink-muted); }
.hero-kicker b { padding: 2px 8px; border-radius: var(--r-pill); background: var(--highlight); color: #1A1405; font-size: var(--fs-xs); }
.hero h1 { margin-top: var(--s-5); font-size: var(--fs-display); line-height: 1.05; letter-spacing: -.035em; color: #fff; max-width: 14ch; }
.marker { position: relative; white-space: nowrap; z-index: 0; }
.marker::after { content: ""; position: absolute; z-index: -1; left: -2%; right: -2%; bottom: .06em; height: .32em; border-radius: 4px; background: var(--highlight); opacity: .9; transform: rotate(-1.2deg); }
.hero .marker { color: #fff; }
.hero .marker::after { opacity: .55; }
.hero-lede { margin: var(--s-5) 0 0; max-width: 52ch; font-size: var(--fs-lg); color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.hero-actions .btn-secondary { --btn-bg: transparent; --btn-fg: #fff; --btn-line: rgba(255, 255, 255, .35); --btn-bg-hover: rgba(255, 255, 255, .1); }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-8); font-size: var(--fs-sm); color: var(--ink-muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-proof .icon { color: var(--highlight); }
.mock { position: relative; align-self: end; background: var(--surface); color: var(--text); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-3); padding: var(--s-6); border: 1px solid rgba(255, 255, 255, .2); border-bottom: 0; }
.mock-bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-sm); min-width: 0; }
.mock-bar .icon { color: var(--text-3); }
.mock-long { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); }
.mock-short { margin-top: var(--s-3); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--brand-soft); }
.mock-short span { font-family: var(--mono); font-weight: var(--fw-semibold); color: var(--brand); overflow-wrap: anywhere; }
.mock-short i { font-style: normal; font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 3px 8px; border-radius: var(--r-pill); background: var(--surface); color: var(--success); }
.mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-5); }
.mock-stats div { padding: var(--s-3); border-radius: var(--r-md); border: 1px solid var(--line); }
.mock-stats span { display: block; font-size: var(--fs-xs); color: var(--text-3); }
.mock-stats strong { display: block; margin-top: 2px; font-size: var(--fs-xl); letter-spacing: -.02em; overflow-wrap: anywhere; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: var(--s-5); }
.mock-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--brand-soft); }
.mock-bars i:nth-child(1) { height: 30%; } .mock-bars i:nth-child(2) { height: 45%; } .mock-bars i:nth-child(3) { height: 38%; } .mock-bars i:nth-child(4) { height: 60%; }
.mock-bars i:nth-child(5) { height: 52%; } .mock-bars i:nth-child(6) { height: 74%; } .mock-bars i:nth-child(7) { height: 66%; } .mock-bars i:nth-child(8) { height: 88%; background: var(--brand); }
.mock-bars i:nth-child(9) { height: 70%; } .mock-bars i:nth-child(10) { height: 80%; }
@media (min-width: 960px) { .hero { padding-top: var(--s-16); } .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-10); } .hero-copy { padding-bottom: var(--s-16); } }

.section { padding: var(--s-16) var(--s-5); }
.section-inner { max-width: var(--content-max); margin: 0 auto; }
.section-head { max-width: 640px; margin: 0 auto var(--s-10); text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -.03em; }
.section-head p { margin-top: var(--s-3); color: var(--text-2); font-size: var(--fs-lg); }
.feature-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: var(--s-4); }
.feature h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.feature p { color: var(--text-2); }
.section-ink { background: var(--ink); color: var(--ink-text); }
.section-ink .section-head h2 { color: #fff; }
.section-ink .section-head p { color: var(--ink-muted); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: flow; }
.flow li { counter-increment: flow; padding: var(--s-6); border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid var(--ink-line); }
.flow li::before { content: "0" counter(flow); display: block; margin-bottom: var(--s-4); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--highlight); letter-spacing: .08em; }
.flow h3 { color: #fff; font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.flow p { color: var(--ink-muted); }
.closing { max-width: 880px; margin: 0 auto; text-align: center; padding: var(--s-12) var(--s-6); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.closing h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); letter-spacing: -.03em; }
.closing p { margin: var(--s-3) auto 0; max-width: 48ch; color: var(--text-2); font-size: var(--fs-lg); }
.closing .hero-actions { justify-content: center; margin-top: var(--s-6); }

/* ---------- Help center (docs) ---------- */
.docs { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
.docs-nav { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: var(--s-3); }
.docs-nav > summary { padding: var(--s-2) var(--s-2); }
.docs-nav ul { list-style: none; margin: 0; padding: var(--s-2) 0 0; display: grid; gap: 2px; }
.docs-nav .docs-nav-section { margin-top: var(--s-3); padding: 0 var(--s-3) var(--s-1); font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.docs-nav a { display: block; padding: 7px var(--s-3); border-radius: var(--r-sm); color: var(--text-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-decoration: none; }
.docs-nav a:hover { background: var(--surface-2); color: var(--text); }
.docs-nav a[aria-current] { background: var(--brand-soft); color: var(--brand); font-weight: var(--fw-semibold); }
@media (min-width: 960px) {
  .docs { grid-template-columns: 250px minmax(0, 1fr); gap: var(--s-8); }
  .docs-nav { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .docs-nav > summary { display: none; }
}
.docs-hero { padding: var(--s-8); border-radius: var(--r-xl); background: var(--ink); color: var(--ink-text); margin-bottom: var(--s-8); }
.docs-hero h1 { color: #fff; font-size: var(--fs-3xl); }
.docs-hero p { margin-top: var(--s-3); color: var(--ink-muted); font-size: var(--fs-lg); max-width: 60ch; }
.doc-card { padding: var(--s-5); }
.doc-card strong { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-lg); }
.doc-card strong .icon { color: var(--text-3); }
.doc-card p { margin-top: var(--s-2); color: var(--text-3); font-size: var(--fs-sm); }
.article { padding: var(--s-8) var(--s-6); }
@media (min-width: 720px) { .article { padding: var(--s-10); } }
.article-toc { margin: var(--s-6) 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.article-toc ul { margin: var(--s-2) 0 0; columns: 2 220px; font-size: var(--fs-sm); }
.article-toc li { margin-bottom: 4px; }
.prose { font-size: var(--fs-lg); line-height: 1.7; color: var(--text); max-width: 75ch; }
.prose h1 { font-size: var(--fs-3xl); margin-bottom: var(--s-3); }
.prose h2 { font-size: var(--fs-xl); margin: var(--s-10) 0 var(--s-3); padding-top: var(--s-2); scroll-margin-top: 90px; }
.prose h3 { font-size: var(--fs-lg); margin: var(--s-6) 0 var(--s-2); scroll-margin-top: 90px; }
.prose p, .prose ul, .prose ol { margin-bottom: var(--s-4); }
.prose li { margin-bottom: 6px; }
.prose pre { font-size: var(--fs-sm); }
.prose .table-scroll { margin-bottom: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); }
.prose .data-table { font-size: var(--fs-sm); }
.prose .notice { margin-bottom: var(--s-4); font-size: var(--fs-md); }
.article-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.article-pager a { flex: 1 1 220px; display: grid; gap: 2px; padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.article-pager a:hover { border-color: var(--brand); }
.article-pager a small { color: var(--text-3); }
.article-pager a.is-next { text-align: right; }

/* ---------- Installer content ---------- */
.setup-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-3); }
.setup-head .auth-badge { margin: 0; }
.setup-head h1 { font-size: var(--fs-2xl); }
.setup-lede { color: var(--text-2); font-size: var(--fs-lg); margin-bottom: var(--s-6); }
.setup-sub { margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.need-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.need { padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); }
.need strong { display: block; margin: var(--s-3) 0 4px; }
.need small { color: var(--text-3); }
.check-totals { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.check-group { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--s-3); background: var(--surface); }
.check-group > summary { padding: var(--s-3) var(--s-4); }
.check-group > .checklist { padding: 0 var(--s-4) var(--s-2); border-top: 1px solid var(--line); }
.done-hero { text-align: center; margin-bottom: var(--s-6); }
.done-hero .status-icon { background: var(--success-bg); color: var(--success); }
.done-hero h1 { font-size: var(--fs-3xl); }

/* ---------- Misc page arrangements ---------- */
.range-bar { margin-bottom: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; justify-content: space-between; padding: var(--s-4) var(--s-5); }
.range-form { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: flex-end; }
.range-form .field { width: 150px; }
.range-note { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-5); font-size: var(--fs-sm); color: var(--text-3); }
.brand-asset { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.brand-asset:first-child { padding-top: 0; }
.brand-asset:last-child { border-bottom: 0; padding-bottom: 0; }
.brand-asset-preview { width: 96px; height: 72px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--text-3); font-size: var(--fs-xs); }
.brand-asset-preview img { max-width: 88px; max-height: 64px; object-fit: contain; }
.dns-record { display: grid; gap: var(--s-2); }
.dns-record .field-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.verify-stage .checklist-title .pill { font-weight: var(--fw-semibold); }
.legal-note { font-size: var(--fs-sm); color: var(--text-3); }
.metric-link { color: inherit; text-decoration: none; }

/* ---------- Overview quick shorten ---------- */
.quick-form { display: flex; flex-wrap: wrap; gap: var(--s-2); max-width: 720px; }
.quick-form .control { flex: 1 1 260px; border-color: transparent; }
.quick-form .btn { flex: none; }
.prose .notice p { margin: 0; }
@media (max-width: 520px) { .brand-asset { grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-3); } .brand-asset-preview { width: 64px; height: 56px; } .brand-asset-preview img { max-width: 56px; max-height: 48px; } }
