/* Aeradin website. Shared dark palette for marketing and account pages. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --paper: #08090a;
  --white: #111111;
  --ink: #ededed;
  --ink-soft: #b3b8bc;
  --ink-muted: #858b91;
  --rule: #26292b;
  --accent: #f08a4b;
  --accent-dark: #f7a672;
  --night: #0a0a0a;
  --night-text: #ededed;
  --night-muted: #8a9096;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
}

html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #0a0a0a; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 300;
  padding: 10px 16px; background: #fff; color: #0a0a0a; font-size: 14px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---------- Account ---------- */
.auth-page { font-size: 14px; background: #0a0a0a; }
.auth-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr); }
.auth-main { position: relative; display: flex; flex-direction: column; min-height: 100vh; }
.auth-brand { position: absolute; top: 20px; left: 28px; z-index: 2; display: inline-flex; }
.auth-brand img { width: auto; height: 32px; }
.auth-center { display: grid; flex: 1; place-items: center; padding: 92px 24px 40px; }
.auth-form { width: min(100%, 400px); }
.auth-intro { margin-bottom: 32px; text-align: center; }
.auth-intro h1 { font-family: var(--sans); font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.auth-intro p, .auth-footer, .auth-legal { color: var(--ink-soft); font-size: 14px; }
.auth-intro p { margin-top: 8px; }
.auth-form label { display: block; margin: 0 0 6px; font-weight: 500; }
.auth-form input { width: 100%; height: 36px; margin: 0 0 16px; padding: 0 10px; border: 1px solid #343434; border-radius: 0; background: #111; color: var(--ink); font: inherit; }
.auth-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-hint { margin: -8px 0 16px; color: var(--ink-muted); font-size: 12px; }
.auth-error { margin: 0 0 12px; color: #ff8e88; }
.auth-submit { display: block; width: 100%; height: 36px; margin-top: 8px; border: 1px solid var(--accent); background: var(--accent); color: #0a0a0a; font: 500 14px var(--sans); cursor: pointer; }
.auth-submit:hover { background: var(--accent-dark); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--ink-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.auth-divider span { flex: none; }
.auth-passkey { display: inline-flex; width: 100%; align-items: center; justify-content: center; gap: 10px; height: 36px; margin-top: 0; border: 1px solid var(--rule); background: #111; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.auth-passkey:hover { border-color: var(--accent); background: #161616; }
.auth-passkey svg { width: 15px; height: 15px; flex: none; }
.auth-footer { margin-top: 24px; text-align: center; }
.auth-footer a { color: var(--accent); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-aside { display: flex; align-items: center; padding: 32px; border-left: 1px solid var(--rule); background: linear-gradient(#111b, #111b), url('/system-isometric.svg') center / cover; }
.auth-aside h2 { margin-top: 24px; font-family: var(--sans); font-size: clamp(38px, 4vw, 60px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
.auth-kicker { color: var(--ink-muted); font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
/* Workspace uses Kiln's dark surfaces and blue accent; marketing keeps its own palette. */
.hub-page { --paper: #0a0a0a; --white: #121212; --ink: #edf0f3; --ink-soft: #b1bac4; --ink-muted: #7f8995; --rule: #303030; --accent: #7aa2ff; --accent-dark: #8eb0ff; background: var(--paper); font-size: 14px; }
.hub-page h1, .hub-page h2, .hub-page h3 { font-family: var(--sans); letter-spacing: -.02em; }
.hub-container { width: min(100% - 40px, 1160px); margin-inline: auto; }
.hub-header { position: relative; z-index: 2; border-bottom: 1px solid var(--rule); background: #0a0a0a; }
.hub-header__inner { display: flex; align-items: center; gap: 36px; min-height: 64px; }
.hub-brand { flex: none; }
.hub-brand img { width: auto; height: 27px; }
.hub-nav { display: flex; align-self: stretch; align-items: center; gap: 24px; }
.hub-nav a { display: flex; align-items: center; height: 100%; border-bottom: 2px solid transparent; color: var(--ink-soft); font-size: 13px; text-decoration: none; }
.hub-nav a:hover, .hub-nav a:focus-visible { border-bottom-color: var(--accent); color: var(--ink); }
.hub-account { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.hub-email { max-width: 180px; overflow: hidden; color: var(--ink-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hub-signout { padding: 8px 10px; border: 1px solid var(--rule); background: #121212; color: var(--ink-soft); font: inherit; cursor: pointer; white-space: nowrap; }
.hub-signout:hover { border-color: var(--accent); color: var(--ink); }
.hub-main { position: relative; min-height: calc(100vh - 64px); overflow: hidden; }
.hub-background { position: absolute; inset: 0 0 auto; height: 380px; pointer-events: none; background: url('/assets/system-dark.svg') center top / cover no-repeat; opacity: .09; }
.hub-content { position: relative; padding-block: 36px 96px; }
.hub-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hub-intro h1 { font-size: clamp(25px, 3vw, 32px); font-weight: 600; line-height: 1.3; }
.hub-intro p, .hub-muted { color: var(--ink-soft); font-size: 13px; }
.hub-intro p { margin-top: 4px; }
.hub-section { padding: 36px 0 0; scroll-margin-top: 24px; }
.hub-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hub-section__head h2 { font-size: 15px; font-weight: 600; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hub-product, .hub-panel, .hub-details { border: 1px solid var(--rule); background: #121212; }
.hub-product { display: flex; flex-direction: column; min-height: 204px; }
.hub-product__body { flex: 1; padding: 20px 22px 16px; }
.hub-product__icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #32415e; background: #1f2b43; color: var(--accent); font-size: 16px; font-weight: 600; }
.hub-product__icon--advice { border-color: #483d5e; background: #2b233d; color: #b8a3ff; }
.hub-product h3 { margin-top: 14px; font-size: 18px; font-weight: 600; }
.hub-product p { margin-top: 4px; color: var(--ink-soft); font-size: 13px; }
.hub-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 55px; padding: 9px 22px; border-top: 1px solid var(--rule); }
.hub-action { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 32px; padding: 5px 12px; border: 1px solid #424242; background: #1c1c1c; color: var(--ink); font: 500 13px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.hub-action:hover { border-color: var(--accent); background: #242424; }
.hub-action--primary { border-color: var(--accent); background: var(--accent); color: #0a0a0a; }
.hub-action--primary:hover { background: var(--accent-dark); color: #0a0a0a; }
.hub-product__hint { color: var(--ink-muted); font-size: 11px; text-align: right; }
.hub-badge { flex: none; border: 1px solid var(--rule); padding: 3px 8px; color: var(--ink-soft); font-size: 11px; text-transform: capitalize; }
.hub-panel { padding: 20px 22px; }
.hub-current { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hub-overline { color: var(--ink-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hub-current h3 { margin-top: 5px; font-size: 20px; font-weight: 600; }
.hub-current .hub-muted { margin-top: 5px; }
.hub-usage { display: flex; gap: 28px; }
.hub-usage div { display: flex; flex-direction: column; align-items: flex-end; }
.hub-usage span { color: var(--ink-muted); font-size: 11px; }
.hub-usage strong { font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.hub-usage small { color: var(--ink-soft); font-size: 11px; font-weight: 400; }
.hub-warning { margin-top: 12px; padding: 12px 16px; border: 1px solid #704c34; background: #30251d; color: #f0ba8b; }
.hub-trial { margin-top: 10px; }
.hub-details { margin-top: 12px; }
.hub-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 22px; font-weight: 600; cursor: pointer; list-style: none; }
.hub-details summary::-webkit-details-marker { display: none; }
.hub-details summary:hover { background: #1c1c1c; }
.hub-chevron { color: var(--ink-muted); font-size: 18px; line-height: 1; transition: transform .15s ease; }
.hub-details[open] .hub-chevron { transform: rotate(180deg); }
.hub-details__body { border-top: 1px solid var(--rule); padding: 18px 22px 20px; }
.hub-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.hub-plans--advice { margin-top: 0; }
.hub-plan { min-width: 0; padding: 16px; border: 1px solid var(--rule); background: #0a0a0a; }
.hub-plan--featured { border-color: rgba(122, 162, 255, 0.6); background: linear-gradient(180deg, rgba(122, 162, 255, 0.08), rgba(10, 10, 10, 1)); }
.hub-plan__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hub-plan h3 { font-size: 14px; font-weight: 600; }
.hub-plan__price { margin-top: 18px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hub-plan__price span { color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.hub-plan .hub-muted { margin-top: 5px; font-size: 11px; }
.hub-plan__limits { margin-top: 16px; color: var(--ink-soft); font-size: 12px; }
.hub-checkout { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.hub-message { width: 100%; min-height: 92px; padding: 10px 12px; border: 1px solid var(--rule); background: #0d0d0d; color: var(--ink); font: 13px var(--sans); resize: vertical; }
.hub-message:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.hub-checkout button { padding: 7px 10px; border: 1px solid #424242; background: #1c1c1c; color: var(--ink); font: 500 12px var(--sans); cursor: pointer; align-self: flex-start; }
.hub-checkout button:hover { border-color: var(--accent); }
.hub-disclaimer { margin-top: 18px; }
.hub-disclaimer a { color: var(--accent); text-decoration: none; }
.hub-disclaimer a:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  width: calc(100% - 36px); max-width: 1320px; height: 64px; margin-inline: auto;
  background: rgba(8, 8, 8, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  color: var(--night-text);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 100%; max-width: none; padding-inline: 24px; }
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--night-muted); font-size: 12px; text-decoration: none; }
.nav__links a:hover { color: #fff; }
.nav__cta {
  margin-left: 0;
  padding: 8px 16px; border-radius: 8px; background: var(--ink); color: #0a0a0a;
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.nav__cta:hover { background: #fff; }
.nav__inner--bare .nav__cta { margin-left: auto; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block; padding: 13px 22px; border: 1px solid var(--ink);
  background: var(--ink); color: #0a0a0a; font-size: 15px; font-weight: 500; text-decoration: none;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.link:hover { color: var(--accent-dark); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 22px; }
.label { margin-bottom: 14px; color: var(--accent); font-size: 15px; font-weight: 600; }
.lede { max-width: 58ch; margin-top: 18px; color: var(--ink-soft); font-size: 19px; }

section { padding: 88px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 0; overflow: hidden; background: var(--night); color: #fff; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; z-index: 1; padding-block: 140px 88px; text-align: center; }
.hero h1 { margin-inline: auto; font-family: var(--sans); font-size: clamp(44px, 8vw, 112px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.hero p { max-width: 56ch; margin: 28px auto 0; color: rgba(255,255,255,.85); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; }

/* Scroll prompt */
.hero__next { position: absolute; left: 50%; bottom: 28px; z-index: 1; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: 15px; text-decoration: none; }
.hero__next:hover { color: #fff; }

/* ---------- Advice ---------- */
.advice__head { max-width: 720px; }
.advice .shot { margin-top: 44px; background: #000; border: 1px solid var(--rule); }
.advice .shot video, .advice .shot img { width: 100%; }
.advice .shot figcaption { padding: 10px 16px; background: #0f0f0f; color: var(--night-muted); font-size: 14px; }
.advice .templates { margin-top: 80px; }

.templates { margin-top: 80px; }
.template-list { columns: 2; column-gap: 64px; margin-top: 24px; list-style: none; }
.template-list li { display: flex; gap: 16px; align-items: flex-start; break-inside: avoid; padding: 16px 0; border-top: 1px solid var(--rule); font-size: 16px; color: var(--ink-soft); }
.ico { flex: none; width: 26px; height: 26px; margin-top: 2px; color: var(--accent); }
.template-list b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Services ---------- */
.services { background: var(--white); border-block: 1px solid var(--rule); }
.services__head { max-width: 640px; margin-bottom: 40px; }
.service-list > div { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 24px 0; border-top: 1px solid var(--rule); }
.service-list > div:last-child { border-bottom: 1px solid var(--rule); }
.service-list dt { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.service-list dd { color: var(--ink-soft); }

/* ---------- Kiln ---------- */
.kiln__head { max-width: 720px; }
.shot { margin-top: 44px; background: #000; border: 1px solid var(--rule); }
.shot video, .shot img { width: 100%; }
.shot figcaption { padding: 10px 16px; background: #0f0f0f; color: var(--night-muted); font-size: 14px; }

/* Framed step grid: 1px gap lines, corner brackets (Cloudflare-style) */
.frame { position: relative; margin-top: 72px; }
.frame--flush { margin-top: 0; }
.frame__c { position: absolute; width: 14px; height: 14px; border: 1px solid #3a3d40; border-radius: 3px; background: var(--paper); pointer-events: none; }
.frame__c--tl { top: -7px; left: -7px; }
.frame__c--tr { top: -7px; right: -7px; }
.frame__c--bl { bottom: -7px; left: -7px; }
.frame__c--br { right: -7px; bottom: -7px; }
.services .frame__c { background: var(--white); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; list-style: none; border: 1px solid var(--rule); background: var(--rule); }
.steps li { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 26px 30px; background: #0d0d0d; transition: background .3s ease; }
.steps li:hover { background: #151515; }
.steps__ico { width: 26px; height: 26px; color: var(--accent); }
.steps h3 { margin-top: 20px; font-size: 19px; }
.steps p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.steps-note { margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--ink-soft); }

/* Kiln media + deployment log */
.kiln__media { display: grid; grid-template-columns: minmax(0, 1fr) 340px; margin-top: 44px; border: 1px solid var(--rule); background: #000; }
.kiln__media .shot { display: flex; flex-direction: column; margin-top: 0; border: 0; }
.kiln__media .shot figcaption { margin-top: auto; }
.deploy { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-left: 1px solid var(--rule); background: #0d0d0d; font-size: 13px; }
.deploy__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--rule); }
.deploy__title { color: var(--night-muted); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.deploy__list { display: flex; flex: 1; flex-direction: column; list-style: none; }
.deploy__item { display: flex; flex: 1 1 0; align-items: center; gap: 10px; min-width: 0; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.deploy__item:last-child { border-bottom: 0; }
.deploy__ver { flex: none; color: var(--ink); font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.deploy__time { flex: 1; min-width: 0; overflow: hidden; color: var(--ink-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.deploy__state { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
.deploy__state--deployed { border-color: rgba(63,185,80,.45); background: rgba(63,185,80,.1); color: #3fb950; }
.deploy__state--building { border-color: rgba(240,138,75,.45); background: rgba(240,138,75,.1); color: var(--accent); }
.deploy__state--failed { border-color: rgba(255,142,136,.45); background: rgba(255,142,136,.1); color: #ff8e88; }
.deploy__ico { width: 13px; height: 13px; flex: none; }
.deploy__ico--spin { animation: deploy-spin 2.6s linear infinite; }
.deploy__item--enter { animation: deploy-enter .45s ease both; }
.deploy__state--pop { animation: deploy-pop .5s ease; }
@keyframes deploy-enter { from { opacity: 0; transform: translateY(-10px); } }
@keyframes deploy-pop { 0% { transform: scale(.85); opacity: .3; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes deploy-spin { to { transform: rotate(360deg); } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; padding-block: 13px; border-block: 1px solid var(--rule); background: var(--night); }
.ticker__track { display: flex; will-change: transform; }
.ticker__group { display: flex; align-items: center; }
.ticker__item { position: relative; padding-right: 40px; color: var(--ink-muted); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ticker__item::after { content: ""; position: absolute; top: 50%; right: 18px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact { padding-block: 96px; }
.contact h2 { max-width: 16ch; }

/* ---------- Page headers (Kiln, 404) ---------- */
.page-head { padding: 160px 0 0; }
.page-head h1 { max-width: 16ch; font-size: clamp(40px, 6vw, 72px); }
.page-head .lede { font-size: 20px; }
.not-found { min-height: 70vh; padding-top: 160px; }
.not-found h1 { font-size: clamp(40px, 6vw, 72px); }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 32px; background: var(--night); color: var(--night-muted); border-top: 1px solid var(--rule); font-size: 15px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 36px; }
.footer__brand img { height: 26px; width: auto; margin-bottom: 14px; }
.footer__brand p { max-width: 32ch; }
.footer__cols { display: flex; gap: 64px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h5 { margin-bottom: 4px; color: var(--night-text); font-size: 15px; font-weight: 600; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__bottom { padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; }

/* ---------- Contact ---------- */
.contact { padding-block: 96px; }
.contact h2 { max-width: 16ch; }

/* ---------- Page headers (Kiln, 404) ---------- */
.page-head { padding: 160px 0 0; }
.page-head h1 { max-width: 16ch; font-size: clamp(40px, 6vw, 72px); }
.page-head .lede { font-size: 20px; }
.not-found { min-height: 70vh; padding-top: 160px; }
.not-found h1 { font-size: clamp(40px, 6vw, 72px); }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 32px; background: var(--night); color: var(--night-muted); border-top: 1px solid var(--rule); font-size: 15px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 36px; }
.footer__brand img { height: 26px; width: auto; margin-bottom: 14px; }
.footer__brand p { max-width: 32ch; }
.footer__cols { display: flex; gap: 64px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h5 { margin-bottom: 4px; color: var(--night-text); font-size: 15px; font-weight: 600; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__bottom { padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .auth-layout { grid-template-columns: 1fr; }
  section.auth-main { padding: 0; }
  .auth-aside { display: none; }
  .hub-plans { grid-template-columns: 1fr; }
  .nav__inner { gap: 16px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .kiln__media { grid-template-columns: 1fr; }
  .deploy { border-left: 0; border-top: 1px solid var(--rule); }
  .deploy__item { flex: none; }
  .service-list > div { grid-template-columns: 1fr; gap: 6px; }
  .template-list { columns: 1; }
  .hero .wrap { padding-block: 96px 48px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-intro { align-items: flex-start; flex-direction: column; }
  .hub-header__inner { flex-wrap: wrap; gap: 0 16px; padding-block: 12px; }
  .hub-nav { order: 3; width: 100%; height: 36px; }
  .hub-email, .hub-product__hint { display: none; }
  .hub-current { align-items: flex-start; flex-direction: column; }
  .hub-usage { width: 100%; justify-content: space-between; }
  .hub-usage div { align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .footer__cols { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero video { display: none; }
  .deploy__state--building, .deploy__item--enter, .deploy__state--pop, .deploy__ico--spin { animation: none; }
}

.hero .btn-row { justify-content: center; }

/* Dashboard: a single workspace, with billing presented in one place. */
.hub-dashboard { --paper: #0a0a0a; --ink: #f0e3de; --ink-soft: #b8aaa4; --ink-muted: #988b86; --rule: #292624; --accent: #d97851; }
.hub-dashboard .hub-container { width: min(100% - 48px, 1240px); }
.hub-dashboard .hub-header { background: var(--paper); }
.hub-dashboard .hub-content { padding-block: clamp(56px, 7vw, 100px) 120px; }
.hub-dashboard .hub-intro { display: block; margin-bottom: clamp(64px, 8vw, 116px); }
.hub-dashboard .hub-section__head > span { color: var(--ink-muted); font-size: 11px; letter-spacing: .14em; }
.hub-dashboard .hub-intro h1 { margin-top: 0; font-size: clamp(44px, 6vw, 84px); line-height: 1.08; font-weight: 500; letter-spacing: -.065em; }
.hub-dashboard .hub-intro__dot { color: var(--accent); }
.hub-dashboard .hub-intro p { margin-top: 14px; color: var(--ink-soft); font-size: clamp(15px, 1.6vw, 18px); }
.hub-dashboard .hub-section { padding: 0; scroll-margin-top: 90px; }
.hub-dashboard .hub-section + .hub-section { margin-top: clamp(64px, 8vw, 112px); }
.hub-dashboard .hub-section__head { align-items: baseline; margin-bottom: 24px; }
.hub-dashboard .hub-section__head h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 500; letter-spacing: -.04em; }
.hub-dashboard .hub-product-list { border-top: 1px solid var(--rule); }
.hub-dashboard .hub-product-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.hub-dashboard .hub-product-row__identity { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); min-width: 0; }
.hub-dashboard .hub-product-row__preview { flex: none; width: 160px; height: 90px; object-fit: cover; object-position: center; border: 1px solid var(--rule); border-radius: 2px; }
.hub-dashboard .hub-product-row__mark { display: grid; flex: none; width: 68px; height: 68px; place-items: center; border: 1px solid #39322e; border-radius: 2px; background: #171514; color: var(--ink); font-size: 28px; font-weight: 500; letter-spacing: -.06em; }
.hub-dashboard .hub-product-row h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; }
.hub-dashboard .hub-product-row p { margin-top: 2px; color: var(--ink-soft); font-size: 14px; }
.hub-dashboard .hub-action { min-height: 42px; padding: 9px 16px; border-color: #51443e; background: transparent; font-size: 13px; }
.hub-dashboard .hub-action:hover { border-color: var(--ink); background: #1b1918; }
.hub-dashboard .hub-billing__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule); background: #111110; }
.hub-dashboard .hub-billing__column { min-width: 0; padding: clamp(24px, 3vw, 40px); }
.hub-dashboard .hub-billing__column + .hub-billing__column { border-left: 1px solid var(--rule); }
.hub-dashboard .hub-billing__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; }
.hub-dashboard .hub-overline { color: var(--ink-muted); letter-spacing: .14em; }
.hub-dashboard .hub-billing__column h3 { margin-top: 32px; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; font-weight: 500; letter-spacing: -.04em; }
.hub-dashboard .hub-billing__column > .hub-muted { margin-top: 10px; font-size: 14px; }
.hub-dashboard .hub-badge { color: var(--ink-soft); }
.hub-dashboard .hub-billing__stats { display: flex; flex-wrap: wrap; gap: 24px 44px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--rule); }
.hub-dashboard .hub-billing__stats > div { display: flex; flex-direction: column; gap: 4px; }
.hub-dashboard .hub-billing__stats span { color: var(--ink-muted); font-size: 12px; }
.hub-dashboard .hub-billing__stats strong { font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 500; }
.hub-dashboard .hub-billing__stats small, .hub-dashboard .hub-billing__stats strong span { color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.hub-dashboard .hub-billing__note { margin-top: 25px; color: var(--ink-muted); font-size: 12px; }
.hub-dashboard .hub-details { margin-top: 0; border-top: 0; background: #111110; }
.hub-dashboard .hub-details summary { padding: 20px clamp(24px, 3vw, 40px); font-weight: 500; }
.hub-dashboard .hub-details summary:hover { background: #1a1918; }
.hub-dashboard .hub-details__body { padding: 24px clamp(24px, 3vw, 40px) 32px; }
.hub-dashboard .hub-plan { background: #151413; }
.hub-dashboard .hub-checkout { flex-direction: row; flex-wrap: wrap; }
.hub-dashboard .hub-checkout button:hover, .hub-dashboard .hub-disclaimer a { color: var(--ink); border-color: var(--ink); }

@media (max-width: 760px) {
  .hub-dashboard .hub-billing__grid { grid-template-columns: 1fr; }
  .hub-dashboard .hub-billing__column + .hub-billing__column { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .hub-dashboard .hub-container { width: min(100% - 36px, 1240px); }
  .hub-dashboard .hub-header__inner { row-gap: 10px; }
  .hub-dashboard .hub-content { padding-block: 52px 80px; }
  .hub-dashboard .hub-intro { margin-bottom: 68px; }
  .hub-dashboard .hub-product-row { align-items: flex-start; flex-direction: column; gap: 18px; padding: 24px 0; }
  .hub-dashboard .hub-product-row__mark { width: 52px; height: 52px; font-size: 22px; }
  .hub-dashboard .hub-product-row__preview { width: 120px; height: 68px; }
  .hub-dashboard .hub-billing__stats { margin-top: 32px; }
}

/* Admin uses the same typography and spacing as the workspace. */
.hub-admin .hub-intro { margin-bottom: clamp(64px, 8vw, 96px); }
.hub-admin .hub-section + .hub-section { margin-top: clamp(64px, 8vw, 100px); }
.hub-admin__controls { border-top: 1px solid var(--rule); }
.hub-admin__control { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(26px, 3vw, 38px) 0; border-bottom: 1px solid var(--rule); }
.hub-admin__description h3, .hub-admin__account h3 { font-size: clamp(20px, 2vw, 25px); font-weight: 500; }
.hub-admin__description p, .hub-admin__account p { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }
.hub-admin__description .hub-admin__message { margin-top: 14px; color: var(--ink-muted); }
.hub-admin__operation { display: flex; align-items: center; justify-content: flex-end; gap: clamp(20px, 3vw, 48px); flex: none; }
.hub-admin__status { display: inline-flex; align-items: center; gap: 10px; min-width: 86px; color: var(--ink-soft); font-size: 13px; }
.hub-admin__indicator { width: 7px; height: 7px; border: 1px solid var(--ink-muted); border-radius: 50%; }
.hub-admin .hub-action:disabled { opacity: .45; cursor: not-allowed; }
.hub-admin .hub-action:disabled:hover { border-color: #51443e; background: transparent; }
.hub-admin .hub-warning { margin: 0 0 16px; }
.hub-admin__account { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

@media (max-width: 760px) {
  .hub-admin__control, .hub-admin__account { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hub-admin__operation { width: 100%; justify-content: space-between; }
}
@media (max-width: 520px) {
  .hub-admin__operation { align-items: flex-start; flex-direction: column; gap: 14px; }
}
