/* AirConFinance — Solari family look. Navy #0B2545, orange #FF6B35. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B2545;
  --navy-deep: #071A33;
  --orange: #FF6B35;
  --orange-text: #B93E0F;   /* orange dark enough for small text on white */
  --orange-tint: #FFE2D6;
  --orange-tint-text: #7A2A0A;
  --tint: #F2F5F9;
  --line: #D9E0EA;
  --line-strong: #8494AD;
  --muted: #4A5A72;
  --body: #24385A;
  --on-navy: #D4DCE8;
  --on-navy-muted: #B8C4D6;
  --white: #FFFFFF;
  --radius: 8px;
  --radius-lg: 14px;
  --wrap: 1200px;
}

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

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

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--white);
}

body.page-app { background: var(--tint); }

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: var(--navy); }
a:hover { color: var(--orange-text); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 12px 18px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.container--narrow { max-width: 860px; }
.container--form { max-width: 560px; }

.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-14 { gap: 14px; } .gap-20 { gap: 20px; } .gap-28 { gap: 28px; } .gap-44 { gap: 44px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 800; font-size: 17px; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: #FF7F50; color: var(--navy); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: #16345E; color: var(--white); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--navy); font-weight: 700; }
.btn--outline:hover { background: var(--tint); color: var(--navy); }
.btn--large { min-height: 58px; padding: 0 32px; font-size: 18px; }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 700; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-text { background: none; border: 0; padding: 12px 4px; font: inherit; font-weight: 600; font-size: 16px; color: var(--navy); text-decoration: underline; cursor: pointer; min-height: 44px; }
.btn-text:hover { color: var(--orange-text); }
.link-quiet { font-weight: 600; font-size: 16px; padding: 12px 0; display: inline-block; }
.header-actions .link-quiet { text-decoration: none; color: var(--navy); }
.header-actions .link-quiet:hover { color: var(--orange-text); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__mark { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--navy); flex: none; }
.brand__name { font-size: 22px; font-weight: 800; letter-spacing: 0.01em; }
.brand__name span { color: var(--orange); }
.brand--on-navy, .brand--on-navy:hover { color: var(--white); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.main-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 16px; padding: 12px 0; }
.main-nav a:hover { color: var(--orange-text); text-decoration: underline; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 16px; }
.header-actions .btn { min-height: 46px; padding: 0 22px; font-size: 16px; font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: var(--white); }
.section--orange { background: var(--orange); color: var(--navy); padding: 64px 0; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text); }
.section--navy .eyebrow, .hero .eyebrow, .page-band .eyebrow { color: var(--orange); }
.h-section { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.lead { font-size: 19px; color: var(--body); }
.grid-auto { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 250px), 100%), 1fr)); }
.grid-auto--facts { --min: 220px; gap: 16px; }
.grid-auto--wide { --min: 420px; gap: 24px; align-items: start; }
.grid-auto--benefits { --min: 300px; gap: 20px 48px; }
.grid-auto--stats { --min: 220px; gap: 16px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; padding-top: 88px; padding-bottom: 96px; }
.hero__copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; }
.hero__sub { font-size: 20px; line-height: 1.5; color: var(--on-navy); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 8px; }
.hero__cta a:not(.btn) { color: var(--white); font-weight: 600; padding: 12px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.chip--live { background: var(--white); color: var(--navy); }
.chip--soon { border: 1px solid #6F82A0; color: var(--on-navy); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }

.preview { margin: 0; flex: 1 1 380px; min-width: 0; max-width: 500px; display: flex; flex-direction: column; gap: 14px; }
.preview figcaption { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-muted); }
.preview__card { background: var(--white); color: var(--navy); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.preview__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--tint); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.preview__bar strong { color: var(--navy); }
.preview__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 18px; }
.preview__head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 3px solid var(--orange); }
.preview__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-text); }
.preview__name { font-size: 28px; font-weight: 800; line-height: 1.15; }
.preview__note { font-size: 15px; color: var(--muted); }
.preview__field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.preview__field i { display: block; height: 40px; border: 1px solid var(--on-navy-muted); border-radius: 6px; }
.preview__row { display: flex; gap: 14px; }
.preview__btn { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: var(--radius); background: var(--navy); color: var(--white); font-weight: 700; font-size: 15px; }
.preview > a { color: var(--white); font-weight: 600; font-size: 16px; padding: 10px 0; align-self: flex-start; }

/* ---------- Landing blocks ---------- */
.split { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.split__side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split__main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.fact { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.fact strong { font-size: 17px; }
.fact span { font-size: 15px; color: var(--muted); }

.step { background: var(--white); border-radius: 12px; padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.step__num, .num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--navy); font-weight: 800; font-size: 20px; flex: none; }
.num--small { width: 32px; height: 32px; font-size: 16px; }
.step h3 { font-size: 21px; line-height: 1.2; margin-top: 4px; }
.step p { font-size: 16px; color: var(--muted); }

.product { border-radius: var(--radius-lg); padding: 36px 36px 38px; display: flex; flex-direction: column; gap: 22px; align-self: start; }
.product--live { border: 2px solid var(--navy); }
.product--soon { background: var(--tint); border: 2px dashed var(--line-strong); }
.product__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.product h3 { font-size: 30px; line-height: 1.1; }
.product > p { font-size: 18px; color: var(--body); }
.product .small { font-size: 14px; color: var(--muted); }
.product .btn { align-self: flex-start; }
.product__foot { font-size: 16px !important; padding-top: 18px; border-top: 1px solid #C5CFDD; }
.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 2px; }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.pill--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pill--outline { border-color: var(--muted); color: var(--body); background: transparent; }
.pill--warm { background: var(--orange-tint); color: var(--orange-tint-text); border-color: var(--orange-tint); }
.pill--line { background: var(--white); color: var(--navy); border-color: var(--navy); }
.pill--grey { background: #E3E8EF; color: var(--body); border-color: var(--line-strong); }

.benefit { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 3px solid var(--orange); }
.benefit h3 { font-size: 22px; line-height: 1.2; }
.benefit p { color: var(--on-navy); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-size: 20px; font-weight: 700; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 500; line-height: 1; color: var(--orange-text); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 4px 0 10px; color: var(--body); max-width: 44em; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { flex: 1 1 420px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 56px 0 48px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.site-footer__brand .brand__name { color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-nav a { color: var(--white); font-size: 16px; padding: 12px 0; }
.footer-nav a:hover { color: var(--orange); }
.legal { margin-top: 32px; padding-top: 28px; border-top: 1px solid #2A4062; font-size: 14px; line-height: 1.6; color: var(--on-navy-muted); max-width: 980px; }
.site-footer--slim { padding: 36px 0; }
.site-footer .legal a { color: var(--white); }
.site-footer .legal a:hover { color: var(--orange); }
.site-footer--slim .legal { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Inner pages ---------- */
.page-band { background: var(--navy); color: var(--white); padding: 56px 0 60px; }
.page-band .container { display: flex; flex-direction: column; gap: 14px; }
.page-band h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; max-width: 18em; }
.page-band p { font-size: 19px; color: var(--on-navy); max-width: 38em; }

.layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 40px; padding-top: 48px; padding-bottom: 88px; }
.layout__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.layout--flush { padding-top: 0; padding-bottom: 0; }
.layout__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; }
.card--form { padding: 40px; display: flex; flex-direction: column; gap: 40px; }
.card--accent { border-top: 6px solid var(--orange); }
.card--strong { border: 2px solid var(--navy); }
.card--quiet { background: transparent; border-color: #C5CFDD; }
.card h2 { font-size: 21px; line-height: 1.2; }
.card--side { display: flex; flex-direction: column; gap: 18px; }
.card--side p { font-size: 16px; color: var(--body); }

.next-steps { display: flex; flex-direction: column; gap: 18px; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.next-steps strong { display: block; }
.next-steps span span { font-size: 15px; color: var(--muted); }

/* ---------- Forms ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
legend { padding: 0; margin-bottom: 20px; font-size: 24px; font-weight: 800; line-height: 1.2; }
.fields { display: grid; gap: 18px 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 15px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="date"], select, textarea {
  font: inherit; color: var(--navy); width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
}
textarea { min-height: 110px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #A32A12; border-width: 2px; }
.field-error { font-size: 14px; font-weight: 600; color: #A32A12; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.check label { font-weight: 500; font-size: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-direction: column; gap: 18px; padding-top: 32px; border-top: 1px solid var(--line); }
.form-foot .btn { align-self: flex-start; }
.help { font-size: 15px; color: var(--muted); }

.notice { padding: 16px 18px; border-radius: 10px; font-size: 16px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); }
.notice--error { border-color: #A32A12; color: #7A1E0B; background: #FDF1EE; }
.notice--info { border: 2px dashed var(--line-strong); background: var(--tint); color: var(--body); }

.linkbox { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px; border-radius: 12px; background: var(--tint); }
.linkbox h2, .linkbox h3 { font-size: 20px; }
.linkbox__url { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; padding: 14px 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.linkbox__url span { color: var(--orange-text); }

.optrow { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 10px; }
.optrow--live { border: 2px solid var(--navy); }
.optrow--soon { border: 2px dashed var(--line-strong); }
.optrow__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.optrow__head strong { font-size: 18px; display: block; }
.optrow__head span.sub { font-size: 15px; color: var(--muted); }

.done { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 48px 40px; }
.done h2 { font-size: 32px; line-height: 1.15; }
.done p { font-size: 18px; color: var(--body); max-width: 36em; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }

/* ---------- Customer form header ---------- */
.cobrand { background: var(--white); border-bottom: 4px solid var(--orange); }
.cobrand__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding-top: 22px; padding-bottom: 22px; }
.cobrand__installer { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cobrand__label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cobrand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cobrand__logo { display: block; max-height: 104px; max-width: min(340px, 100%); width: auto; height: auto; object-fit: contain; }
.cobrand__logo[hidden] { display: none; }
.cobrand__installer--logo { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.cobrand__installer--logo .cobrand__text { padding-left: 28px; border-left: 2px solid var(--line); }
.cobrand__installer--logo .cobrand__name { font-size: clamp(1.25rem, 2vw, 1.6rem); }
@media (max-width: 640px) {
  .cobrand__installer--logo { flex-direction: column; align-items: flex-start; }
  .cobrand__installer--logo .cobrand__text { padding-left: 0; border-left: 0; }
  .cobrand__logo { max-height: 84px; }
}
.logo-card__preview { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; align-items: center; justify-content: center; min-height: 96px; }
.logo-card__preview[hidden] { display: none; }
.logo-card__preview img { max-width: 100%; max-height: 90px; width: auto; height: auto; display: block; }
.logo-card__pick { cursor: pointer; }
.logo-card__pick:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.extra-sections { display: flex; flex-direction: column; gap: 40px; }
.extra-sections[hidden] { display: none; }
input[type="file"] { font: inherit; font-size: 15px; max-width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 700; color: var(--navy); background: var(--white); border: 2px solid var(--navy); border-radius: 8px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.director { border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 6px; }
.director__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.director__head h3 { font-size: 17px; }
.directors-list { list-style: decimal; margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.directors-list li { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }
.logo-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.logo-panel__img { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-width: 280px; }
.logo-panel__img img { display: block; max-width: 100%; max-height: 110px; width: auto; height: auto; }
.cobrand__name { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.cobrand__by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--muted); }
.cobrand__by .brand__mark { width: 30px; height: 30px; border-radius: 7px; }
.cobrand__by .brand__name { font-size: 18px; color: var(--navy); }
.cobrand__by .brand { min-height: 0; gap: 8px; }

/* ---------- Signed-in pages ---------- */
.app-header { background: var(--navy); color: var(--white); }
.app-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 12px; padding-bottom: 12px; }
.app-header__left { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.app-header .brand__name { font-size: 21px; }
.tag { padding: 3px 10px; border-radius: 6px; border: 1px solid #6F82A0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-navy); }
.app-header__right { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; color: var(--on-navy); }
.app-header__right button { color: var(--white); }
.app-header__right button:hover { color: var(--orange); }
.app-main { padding-top: 36px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.app-title { font-size: 34px; line-height: 1.1; }

.stat { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat--alert { border-top: 4px solid var(--orange); }
.stat__label { font-size: 15px; color: var(--muted); }
.stat__value { font-size: 38px; line-height: 1.1; font-weight: 800; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid #C5CFDD; }
.tab { min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px 8px 0 0; font: inherit; font-weight: 700; font-size: 17px; background: transparent; color: var(--navy); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }

.md { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.md__list { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.md__list h2 { font-size: 18px; margin-bottom: 4px; }
.md__detail { flex: 999 1 520px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.rowbtn { text-align: left; background: var(--white); color: var(--navy); border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; min-height: 44px; display: flex; flex-direction: column; gap: 8px; font: inherit; cursor: pointer; width: 100%; }
.rowbtn[aria-pressed="true"] { border-color: var(--navy); }
.rowbtn__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.rowbtn__top strong { font-size: 17px; line-height: 1.25; }
.rowbtn__sub { font-size: 14px; color: var(--muted); }
.detail-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.detail-head h2 { font-size: 26px; line-height: 1.15; }
.dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.dl div { display: flex; flex-direction: column; gap: 1px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dl dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.dl dd { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }
.panel { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; border-radius: 10px; }
.panel--tint { background: var(--tint); }
.panel--strong { border: 2px solid var(--navy); }
.panel--dashed { border: 2px dashed var(--line-strong); }
.panel p { font-size: 15px; color: var(--body); }
.panel .ticks { gap: 8px; }
.empty { padding: 28px; border: 2px dashed var(--line-strong); border-radius: 10px; color: var(--body); font-size: 16px; background: var(--white); }

.table-wrap { overflow-x: auto; }
.table { min-width: var(--table-min, 560px); display: flex; flex-direction: column; }
.table__row { display: grid; grid-template-columns: var(--cols); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.table__row--head { padding: 10px 0; border-bottom: 2px solid var(--navy); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table__row .muted { color: var(--muted); }
.table--apps { --cols: 100px minmax(170px, 1.2fr) minmax(150px, 1fr) 100px 100px 190px 150px; --table-min: 1080px; }
.table--refs { --cols: 110px minmax(180px, 1fr) 210px; --table-min: 520px; }
.cell-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.linkhero { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.linkhero__url { font-size: clamp(1.15rem, 2.6vw, 2rem); line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.linkhero__url .slug { color: var(--orange); }
.linkhero p { color: var(--on-navy); max-width: 40em; }
.linkhero__qr { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.linkhero__qr[hidden] { display: none; }
.linkhero__qr-title { font-size: 19px; color: var(--white); }
.qrbox { background: #FFFFFF; border-radius: 12px; padding: 10px; line-height: 0; flex: none; }
.qrbox svg { display: block; width: 148px; height: 148px; }
.btn-text--light { color: var(--white); }
.btn-text--light:hover { color: var(--orange); }
.linkhero a:not(.btn) { color: var(--white); font-weight: 600; font-size: 16px; padding: 12px 0; }

.auth { padding: 64px 0 96px; }
.auth .card { display: flex; flex-direction: column; gap: 24px; padding: 40px; }
.auth h1 { font-size: 32px; }
.auth form { display: flex; flex-direction: column; gap: 18px; }
.auth__admin { border-top: 1px solid var(--line); padding-top: 12px; }
.auth__admin > .btn-text { align-self: flex-start; font-weight: 500; font-size: 15px; color: var(--muted); }
.auth__admin > .btn-text:hover { color: var(--orange-text); }
.auth .btn-text { align-self: flex-start; }
.auth .btn-text:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.auth__step-title { font-size: 22px; }
.auth__steps { list-style: decimal; margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; color: var(--body); }
.auth__qr { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #FFFFFF; }
.auth__secret { display: block; margin-top: 4px; letter-spacing: 0.06em; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; word-break: break-all; }
input.input--code { font-size: 26px; font-weight: 700; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; max-width: 13em; }

.prose { display: flex; flex-direction: column; gap: 18px; padding-top: 56px; padding-bottom: 88px; }
.prose h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.prose h2 { font-size: 24px; margin-top: 16px; }
.prose p { color: var(--body); max-width: 44em; }
.prose h3 { font-size: 19px; margin-top: 6px; }
.prose ul { list-style: disc; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; color: var(--body); max-width: 44em; }
.prose li::marker { color: var(--orange-text); }
.prose strong { color: var(--navy); }
.prose .notice { max-width: 44em; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero__inner { padding-top: 56px; padding-bottom: 64px; }
  .hero__sub { font-size: 18px; }
  .card--form, .product, .md__detail, .done, .auth .card, .linkhero { padding: 24px 20px; }
  .main-nav { order: 3; width: 100%; gap: 0 20px; }
  legend { font-size: 21px; }
  .btn--large, .form-foot .btn { width: 100%; }
}

@media print {
  .app-header, .tabs, .stats, .md__list, .no-print, .site-footer { display: none !important; }
  body.page-app { background: var(--white); }
  .app-main { padding: 0; }
  .card { border: 0; padding: 0; }
  .md__detail { padding: 0; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
