/*
 * CLExt GF P110 — Responsive UI Refinement · Stage V3
 * Loaded AFTER style.css to tame the original oversized display typography.
 * All components use fluid, bounded sizing and real content-width breakpoints.
 */
:root {
  --display: 'Arial Narrow','Bahnschrift Condensed','Segoe UI Semibold','Segoe UI',Arial,sans-serif;
  --content-width: 1160px;
}
html { scroll-padding-top: 84px; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { font-size: 14.5px; line-height: 1.6; }
.container { width: min(var(--content-width), calc(100% - 56px)); }
.hero-grid > *, .preview-grid > *, .release-layout > *, .auth-layout > *,
.package-layout > *, .dashboard-grid > *, .report-layout > *, .faq-layout > *,
.feature-grid > *, .module, .module-heading h3, .admin-record,
.card-heading > *, .release-card, .hero-copy, .main-nav { min-width: 0; }
.hero-copy, .section-heading, .release-lead, .auth-aside, .large-release { overflow-wrap: break-word; }

/* Display text — limited maximums, shorter line heights, proportional rhythm. */
h1, h2, h3 { line-height: 1.14; letter-spacing: -.024em; font-weight: 800; }
h1 { font-size: clamp(38px, 4.9vw, 67px); margin: 14px 0 20px; }
h2, .section h2 { font-size: clamp(28px, 3.2vw, 43px); line-height: 1.16; margin-bottom: 16px; }
h3 { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.22; }
.section { padding: 78px 0; }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { margin: 9px 0 10px; }
.section-heading.split-heading { gap: 22px; }
.overline, .eyebrow, .tiny-label, .mini-label { letter-spacing: .15em; }
.subhero { padding: 65px 0 48px; }
.subhero h1, .admin-hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.11; }
.subhero p { font-size: 15px; line-height: 1.75; }

/* Hero: two intentional lines, never a 112px slab of text. */
.hero { min-height: 0; padding: 62px 0 25px; }
.hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(18px, 3vw, 40px); }
.hero-copy { padding: 12px 0 22px; }
.hero h1 { font-size: clamp(40px, 4.35vw, 64px); line-height: 1.045; letter-spacing: -.045em; margin: 22px 0 19px; }
.hero h1 .hero-topline { display: block; color: var(--white); }
.hero h1 .hero-gradient { display: block; font-size: .86em; color: var(--gold); line-height: 1.08; margin-top: 6px; }
.hero h1 em { color: #fff2d4; }
.hero-lede { font-size: 14.5px; line-height: 1.75; max-width: 565px; }
.hero-buttons { margin-top: 24px; }
.hero-meta { margin-top: 33px; padding-top: 18px; gap: 10px; }
.hero-meta b { font-size: 15px; line-height: 1.3; letter-spacing: .03em; }
.hero-meta small { font-size: 9px; letter-spacing: .07em; }
.hero-art { height: 390px; }
.hero-crest { width: min(76%, 285px); max-height: 355px; }
.halo-one { width: 365px; height: 365px; }
.halo-two { width: 275px; height: 275px; }
.art-particles { width: 365px; height: 365px; }
.panel-top { right: 0; top: 26px; }
.panel-bottom { left: 0; bottom: 25px; }
.hero-bottom { padding-top: 15px; letter-spacing: .1em; }

/* Header and cards — maintain visual hierarchy without jumbo subheadings. */
.nav-wrap { min-height: 74px; gap: 20px; }
.brand strong { font-size: 21px; }
.brand small { font-size: 9px; letter-spacing: .12em; }
.brand img { width: 38px; height: 46px; }
.main-nav { gap: clamp(10px, 1.6vw, 22px); font-size: 11.5px; }
.nav-primary, .nav-dashboard { padding: 9px 13px; }
.btn { min-height: 46px; padding: 10px 18px; gap: 12px; font-size: 11px; line-height: 1.35; }
.feature-grid { gap: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { padding: 23px; min-height: 235px; }
.feature-card h3 { font-size: clamp(20px, 1.85vw, 24px); line-height: 1.2; }
.feature-card p { font-size: 13px; line-height: 1.65; }
.preview-grid { gap: clamp(22px, 4vw, 55px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.terminal { transform: none; }
.terminal-body { padding: 20px; font-size: 11px; }
.terminal-body p { overflow-wrap: anywhere; }
.release-layout { gap: clamp(24px, 4vw, 55px); grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); }
.release-card { padding: 25px; }
.release-card h3 { font-size: clamp(26px, 2.6vw, 36px); }
.cta-panel { padding: 32px; }
.faq-layout { gap: 42px; }
.stat-grid strong { font-size: 24px; }
.stat-grid > div { padding: 20px 15px; }
.footer-top { gap: 30px; }

/* Other pages: Package, account, auth, report, admin. */
.large-release h2 { font-size: clamp(27px, 3.2vw, 41px); overflow-wrap: anywhere; }
.package-layout { grid-template-columns: minmax(0, 1.45fr) minmax(270px, .85fr); }
.auth-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 68px); }
.auth-aside h1 { font-size: clamp(35px, 4.4vw, 61px); }
.auth-card h2 { font-size: clamp(27px, 3vw, 39px); }
.dash-card h2 { font-size: clamp(25px, 2.7vw, 36px); }
.dash-card h3, .side-panel h3 { font-size: clamp(20px, 2vw, 25px); }
.report-form h2 { font-size: clamp(27px, 3vw, 39px); }
.module-heading h3 { font-size: clamp(17px, 1.8vw, 21px); }
.stats-cards .stat-card strong { font-size: clamp(26px, 3vw, 36px); }
.order-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, 305px); }
.admin-record summary { min-width: 0; }
.admin-record .record-name, .user-record-info { overflow-wrap: anywhere; }
input, select, textarea, .btn, .search-field, .side-panel, .release-card, .dash-card { max-width: 100%; }
input, select, textarea { min-width: 0; }

/* Small laptops/tablets: 2-up cards, stacked promotional sections. */
@media (max-width: 1040px) {
  .container { width: calc(100% - 44px); }
  .nav-wrap { min-height: 70px; }
  .main-nav { gap: 11px; }
  .hero h1 { font-size: clamp(39px, 4.8vw, 54px); }
  .hero-art { height: 335px; }
  .halo-one { width: 310px; height: 310px; }
  .halo-two { width: 236px; height: 236px; }
  .art-particles { width: 315px; height: 315px; }
  .hero-crest { max-height: 290px; width: min(74%, 255px); }
  .panel-bottom { left: -5px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .section { padding: 63px 0; }
  .subhero { padding: 50px 0 40px; }
  .hero { padding: 47px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 6px; }
  .hero h1 { font-size: clamp(40px, 6.2vw, 55px); }
  .hero-art { height: 280px; max-width: 490px; }
  .hero-crest { max-height: 245px; }
  .halo-one { width: 268px; height: 268px; }
  .halo-two { width: 210px; height: 210px; }
  .art-particles { width: 280px; height: 280px; }
  .floating-panel.panel-top { right: 4px !important; top: 9px !important; }
  .floating-panel.panel-bottom { left: 0 !important; bottom: 8px !important; }
  .hero-meta { max-width: none; margin-top: 26px; }
  .preview-grid, .release-layout, .auth-layout, .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .package-layout, .dashboard-grid, .report-layout { grid-template-columns: 1fr; }
  .report-side { position: static; }
  .release-card { max-width: 700px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav { max-height: min(76vh, 620px); overflow-y: auto; }
}

/* Phones: centered readability, no oversized 60px+ headings, no horizontal scrolling. */
@media (max-width: 620px) {
  .container { width: calc(100% - 34px); }
  .topline { font-size: 9px; letter-spacing: .05em; }
  .brand { gap: 8px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 8px; }
  .brand img { width: 32px; height: 40px; }
  .nav-wrap { min-height: 60px; }
  .section { padding: 51px 0; }
  .section-heading { margin-bottom: 24px; }
  h1, .subhero h1, .admin-hero h1, .auth-aside h1 { font-size: clamp(31px, 7.8vw, 42px); }
  h2, .section h2 { font-size: clamp(25px, 6.6vw, 33px); }
  h3 { font-size: 21px; }
  .hero { padding: 37px 0 20px; }
  .hero h1 { font-size: clamp(34px, 8.6vw, 44px); line-height: 1.04; margin: 17px 0; }
  .hero h1 .hero-gradient { font-size: .86em; margin-top: 5px; }
  .hero-lede { font-size: 13.5px; line-height: 1.7; }
  .hero-buttons { gap: 9px; margin-top: 21px; }
  .hero-buttons .btn { flex: 1 1 170px; }
  .hero-meta { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 24px; }
  .hero-meta > div:last-child { grid-column: auto; }
  .hero-meta b { font-size: 11px; line-height: 1.4; }
  .hero-meta small { font-size: 9px; line-height: 1.3; }
  .hero-art { height: 245px; }
  .hero-crest { max-height: 210px; }
  .halo-one { width: 220px; height: 220px; }
  .halo-two { width: 180px; height: 180px; }
  .art-particles { width: 230px; height: 230px; }
  .panel-top { padding: 9px !important; }
  .panel-bottom { padding: 10px !important; min-width: 130px; }
  .panel-bottom strong { font-size: 14px; }
  .hero-bottom { font-size: 9px; }
  .feature-grid, .modules, .module-items, .grid-2, .check-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; padding: 21px; }
  .feature-card h3 { font-size: 21px; }
  .section-heading.split-heading, .feature-bottom, .cta-panel { display: block; }
  .release-card, .large-release, .auth-card, .dash-card, .side-panel { padding: 20px; }
  .large-release h2 { font-size: 30px; }
  .auth-card h2, .report-form h2 { font-size: 30px; }
  .dash-card h2 { font-size: 29px; }
  .module-heading { padding: 15px; gap: 9px; }
  .module-heading h3 { font-size: 18px; }
  .release-card h3 { font-size: 31px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand, .footer-note { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; }
  .cta-panel { padding: 23px; }
  .cta-panel .btn { margin-top: 16px; }
  .stats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-cards .stat-card { padding: 15px; }
  .stat-card strong { font-size: 29px; }
  .order-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid > div { padding: 14px 8px; }
  .stat-grid strong { font-size: 20px; }
  .command-row { grid-template-columns: minmax(0,1fr) auto; }
  .command-row span { grid-column: 1 / -1; grid-row: 2; }
  .command-row code { overflow-wrap: anywhere; }
  .record-body { grid-template-columns: 1fr; }
  .admin-record summary { gap: 8px; padding: 14px; }
}

/* Extra narrow phones / browser zoom / split-screen. */
@media (max-width: 380px) {
  .container { width: calc(100% - 28px); }
  .hero h1 { font-size: clamp(31px, 8.9vw, 35px); }
  .hero h1 .hero-gradient { font-size: .82em; }
  .hero-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-meta > div:last-child { grid-column: 1 / -1; }
  .hero-buttons .btn { flex-basis: 100%; }
  .hero-art { height: 225px; }
  .floating-panel { font-size: 8px; }
  .panel-top { right: 0 !important; }
  .panel-bottom { left: 0 !important; }
  .stat-grid span:last-child { font-size: 8px; letter-spacing: 0; }
  .stat-grid strong { font-size: 18px; }
  .release-price { display: block; }
  .release-price .btn { width: 100%; margin-top: 12px; }
  .chip { font-size: 9px; letter-spacing: .05em; }
  .stats-cards { gap: 8px; }
  .stats-cards .stat-card { padding: 11px; }
  .stat-card strong { font-size: 25px; }
  .footer-top { gap: 18px; }
}

/* Keyboard accessibility and preference respect. */
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
