/* ==========================================================================
   My Sky Power — design system v4
   Palette from the logo: sky paper, navy ink, brand blue, bolt yellow.
   Type: Archivo (headings, set wide) + IBM Plex Sans (text).
   Made by MySkyPower
   ========================================================================== */

:root {
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* core palette */
  --paper: #EEF3F8;
  --white: #FFFFFF;
  --ink: #0A1F33;
  --navy: #0B2A47;
  --blue: #0E5A9C;
  --blue-ink: #0A4A82;
  --bolt: #FFC21A;
  --bolt-deep: #E5A800;
  --steel: #5D6B7A;
  --rule: #C9D5E2;
  --rule-soft: #DCE5EE;

  /* semantic tokens (shared with the dashboard) */
  --bg: var(--paper);
  --bg-2: #E4EBF3;
  --bg-3: #D9E3EE;
  --surface: var(--white);
  --surface-2: #F5F8FB;
  --surface-solid: var(--white);
  --border: var(--rule-soft);
  --border-strong: var(--rule);
  --text: var(--ink);
  --text-2: #2B3D52;
  --muted: var(--steel);
  --primary: var(--blue);
  --primary-ink: #FFFFFF;
  --accent: var(--bolt);
  --success: #12805C;
  --warning: #B7791F;
  --danger: #C2364B;
  --info: #0E5A9C;
  --grad-soft: #E6EEF7;
  --glow: 0 0 0 3px rgba(14, 90, 156, .18);
  --shadow: 0 18px 40px -22px rgba(10, 31, 51, .35);
  --shadow-sm: 0 6px 16px -10px rgba(10, 31, 51, .3);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --header-h: 76px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.4, .5, 1);
  color-scheme: light;
}

/* Dark theme is offered in the dashboard only */
[data-theme="dark"] {
  --bg: #08131F;
  --bg-2: #0C1A29;
  --bg-3: #112236;
  --surface: #0F1F31;
  --surface-2: #142740;
  --surface-solid: #0F1F31;
  --border: #1D3249;
  --border-strong: #2A4460;
  --text: #E6EDF5;
  --text-2: #C2CFDD;
  --muted: #8A9BB0;
  --primary: #5AA9F0;
  --primary-ink: #04121F;
  --success: #3CC48E;
  --warning: #E5B24B;
  --danger: #F06A80;
  --info: #5AA9F0;
  --grad-soft: #142740;
  --glow: 0 0 0 3px rgba(90, 169, 240, .25);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
  --shadow-sm: 0 6px 16px -10px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--bolt); color: var(--ink); }
:focus-visible { outline: 3px solid var(--bolt); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 1000; background: var(--bolt); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; transform: translateY(-200%); }
.skip-link:focus-visible { transform: none; }

/* ---------- Layout ---------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container-sm { width: min(100% - 48px, 780px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section:not(.band-navy):not(.band-white) + .section:not(.band-navy):not(.band-white) { padding-top: 0; }
.band-navy { background: var(--navy); color: #DCE6F1; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-white { background: var(--white); border-block: 1px solid var(--rule-soft); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px } .mb-4 { margin-bottom: 40px }
.w-full { width: 100%; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .container, .container-sm { width: min(100% - 32px, var(--container)); } }

/* ---------- Type ---------- */
.display { font-size: clamp(46px, 7.2vw, 104px); font-stretch: 118%; font-weight: 800; line-height: .96; letter-spacing: -.03em; }
.h1 { font-size: clamp(38px, 5vw, 64px); font-stretch: 116%; letter-spacing: -.025em; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); }
.h2-sm { font-size: clamp(26px, 2.8vw, 36px); }
.h3 { font-size: clamp(21px, 2vw, 26px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 62ch; }
.kicker { display: block; font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: 15px; color: var(--blue); margin-bottom: 14px; }
.band-navy .kicker { color: var(--bolt); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: 14px; color: var(--blue); }
.eyebrow .dot { display: none; }
.gradient-text { color: inherit; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .lead { margin-top: 4px; }
.section-head.center { margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }
.section-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-row .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--white); --b-fg: var(--ink); --b-bd: var(--rule);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1.5px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { --b-bg: var(--bolt); --b-fg: var(--ink); --b-bd: var(--bolt); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-primary:hover { --b-bg: #FFCC3D; border-color: var(--bolt-deep); }
.btn-dark { --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink); }
.btn-dark:hover { --b-bg: var(--blue-ink); border-color: var(--blue-ink); }
.btn-outline { --b-bg: transparent; }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { --b-bg: transparent; --b-fg: var(--danger); --b-bd: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn-danger:hover { --b-bg: color-mix(in srgb, var(--danger) 8%, transparent); border-color: var(--danger); }
.btn-success { --b-bg: transparent; --b-fg: var(--success); --b-bd: color-mix(in srgb, var(--success) 45%, transparent); }
.band-navy .btn-outline { --b-fg: #fff; --b-bd: rgba(255, 255, 255, .35); }
.band-navy .btn-outline:hover { border-color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn-xs { min-height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-icon { width: 42px; padding: 0; min-height: 42px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent); }
.link:hover { text-decoration-color: currentColor; }
.band-navy .link { color: var(--bolt); }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(238, 243, 248, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-stretch: 115%; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand small { display: block; font: 500 12.5px/1.2 var(--font-sans); color: var(--steel); letter-spacing: 0; margin-top: 2px; }
.nav { display: flex; align-items: stretch; height: 100%; margin-left: auto; }
.nav > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; font-size: 15.5px; font-weight: 500; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.nav > a:hover, .nav-item > button:hover, .nav-item.is-open > button { color: var(--ink); }
.nav > a.is-active, .nav-item > button.is-active { color: var(--ink); border-bottom-color: var(--bolt); }
.nav-item { position: relative; display: flex; }
.nav-item > button .icon { transition: transform .2s; }
.nav-item.is-open > button .icon { transform: rotate(180deg); }
.nav-panel {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); min-width: 300px; padding: 10px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s, visibility 0s .16s;
}
.nav-item.is-open .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .16s, transform .16s; }
.nav-panel.wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 600px; gap: 2px; }
.nav-panel a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); }
.nav-panel a:hover, .nav-panel a:focus-visible { background: var(--paper); }
.nav-panel a .icon { color: var(--blue); margin-top: 2px; }
.nav-panel a b { display: block; font-weight: 600; font-size: 15px; color: var(--ink); }
.nav-panel a span span { display: block; font-size: 13.5px; color: var(--steel); line-height: 1.4; margin-top: 2px; }
.nav-panel .panel-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 12px; margin-top: 4px; border-top: 1px solid var(--rule-soft); font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm);
  color: var(--text-2); border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); border-color: var(--border); }
.icon-btn .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bolt); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.icon-btn .count:empty, .icon-btn .count[data-count="0"] { display: none; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }
@media (max-width: 1120px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .header-actions .btn-cta, .header-actions .signin { display: none; }
  .brand small { display: none; }
  .brand { font-size: 18px; }
  .brand img { width: 38px; height: 38px; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 31, 51, .45); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 90vw); background: var(--white); padding: 18px 20px 28px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--rule-soft); margin-bottom: 8px; }
.drawer-link, .drawer-group > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: 19px; border-bottom: 1px solid var(--rule-soft); cursor: pointer; list-style: none; }
.drawer-group > summary::-webkit-details-marker { display: none; }
.drawer-group[open] > summary .icon { transform: rotate(180deg); }
.drawer-group > div { padding: 6px 0 12px; display: grid; }
.drawer-group > div a { padding: 9px 4px 9px 14px; color: var(--text-2); font-size: 16px; border-left: 2px solid var(--rule-soft); }
.drawer-group > div a:hover { border-left-color: var(--bolt); color: var(--ink); }
.drawer-foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { color: var(--ink); margin-bottom: 28px; }
.hero h1 .ln { display: block; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 28px; font-size: 15px; color: var(--steel); display: flex; gap: 10px; align-items: center; }
.hero-note .icon { color: var(--success); }
.schematic { position: relative; width: 100%; }
.schematic svg { width: 100%; height: auto; overflow: visible; }
.schematic .grid-bg { stroke: var(--rule-soft); stroke-width: 1; }
.schematic .trace { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.schematic .thin { stroke-width: 1.4; }
.schematic .part { fill: var(--white); stroke: var(--navy); stroke-width: 2.2; stroke-linejoin: round; }
.schematic .fill-paper { fill: var(--paper); }
.schematic .fill-blue { fill: var(--blue); }
.schematic .fill-bolt { fill: var(--bolt); }
.schematic .label { font: 600 13px var(--font-sans); fill: var(--steel); }
.schematic .label-strong { font: 700 14px var(--font-display); font-stretch: 110%; fill: var(--ink); }
.schematic .pulse { fill: none; stroke: var(--bolt); stroke-width: 5; stroke-linecap: round; }
.schematic .lamp-glow { fill: var(--bolt); opacity: 0; }
.js .schematic .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.js .schematic.is-on .draw { animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.js .schematic .fade { opacity: 0; }
.js .schematic.is-on .fade { animation: fadeIn .6s ease forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.js .schematic.is-on .lamp-glow { animation: lamp 1.2s ease forwards 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes lamp { 0% { opacity: 0; } 40% { opacity: .9; } 100% { opacity: .55; } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.clients { border-top: 1px solid var(--rule); padding: 26px 0 0; display: flex; gap: 14px 40px; flex-wrap: wrap; align-items: baseline; margin-top: clamp(40px, 5vw, 64px); }
.clients > span { font-size: 14.5px; color: var(--steel); }
.clients b { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 16px; color: var(--text-2); }

/* Page hero (inner pages) */
.page-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { margin: 18px 0 16px; max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero.compact h1 { max-width: none; }
.breadcrumb { display: flex; gap: 6px; align-items: center; color: var(--steel); font-size: 14px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .icon { opacity: .5; }

/* ---------- Services list (home + services) ---------- */
.svc-list { border-top: 1px solid var(--ink); position: relative; }
.svc-row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.svc-row .svc-ic { width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--white); border: 1px solid var(--rule); color: var(--blue); transition: background .2s, color .2s, border-color .2s; }
.svc-row h3 { font-size: clamp(24px, 2.6vw, 34px); margin: 0; transition: color .2s; }
.svc-row p { margin: 0; color: var(--steel); font-size: 16px; }
.svc-row .go { color: var(--steel); transition: transform .2s, color .2s; }
.svc-row:hover h3, .svc-row:focus-visible h3 { color: var(--blue); }
.svc-row:hover .svc-ic { background: var(--bolt); border-color: var(--bolt); color: var(--ink); }
.svc-row:hover .go { color: var(--ink); transform: translateX(4px); }
.svc-peek { position: absolute; z-index: 5; width: 300px; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .18s, transform .18s; background: var(--white); border: 1px solid var(--rule); }
.svc-peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc-peek img, .svc-peek svg { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 48px 1fr 24px; gap: 16px; padding: 22px 0; }
  .svc-row p { grid-column: 2 / 3; grid-row: 2; }
  .svc-row .go { grid-row: 1 / span 2; grid-column: 3; }
  .svc-peek { display: none; }
}

/* ---------- Work features ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: 40px 0; border-top: 1px solid var(--rule); }
.feature:nth-child(even) .feature-img { order: 2; }
.feature-img { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); background: var(--white); aspect-ratio: 16/10; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.feature-img:hover img { transform: scale(1.025); }
.feature h3 { font-size: clamp(24px, 2.4vw, 32px); }
.feature .client { color: var(--steel); font-size: 15px; margin-bottom: 10px; display: block; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-img { order: 0; } }

/* ---------- Generic cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card-hover { transition: border-color .2s, box-shadow .2s; }
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.spotlight::before, .spotlight::after { display: none; }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 18px; background: var(--grad-soft); color: var(--primary); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .link { margin-top: 18px; }

/* Media cards (products, posts, apps) */
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--rule-soft); }
.media-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.media-card:hover .media img { transform: scale(1.03); }
.media-card .media .badge { position: absolute; top: 12px; left: 12px; }
.media-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.media-card h3 { font-size: 19px; margin: 0; line-height: 1.2; }
.media-card h3 a:hover { color: var(--blue); }
.media-card .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--steel); font-size: 14px; align-items: center; }
.media-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.media-card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--paper); color: var(--steel); }
.product-card .media { aspect-ratio: 1; background: #fff; }
.product-card .media img { object-fit: contain; padding: 12px; }
.price { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 21px; color: var(--ink); }
.price del { color: var(--steel); font-size: 15px; font-weight: 500; margin-left: 6px; }
.stars { display: inline-flex; gap: 1px; color: var(--bolt-deep); }
.stars .icon { fill: currentColor; }
.stars .off { color: var(--rule); }

/* Post list (blog-style rows) */
.post-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.post-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.post-row .thumb { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--white); border: 1px solid var(--rule-soft); }
.post-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row h3 { font-size: 22px; margin: 4px 0 8px; }
.post-row:hover h3 { color: var(--blue); }
.post-row p { color: var(--steel); margin: 0; font-size: 16px; }
.post-row .meta { font-size: 14px; color: var(--steel); }
@media (max-width: 640px) { .post-row { grid-template-columns: 110px 1fr; gap: 16px; } .post-row h3 { font-size: 18px; } .post-row p { display: none; } }

/* ---------- Badges / tags / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 4px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge-neutral { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.badge-success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.badge-warning { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.badge-danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.badge-info { background: color-mix(in srgb, var(--info) 12%, transparent); color: var(--info); }
.badge-accent { background: var(--bolt); color: var(--ink); }
.badge-glass { background: rgba(255, 255, 255, .94); color: var(--ink); border-color: var(--rule); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; padding: 3px 9px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 32px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 38px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--rule); background: var(--white); color: var(--text-2); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .muted { color: inherit; opacity: .6; }
.search-box { position: relative; min-width: min(100%, 280px); }
.search-box .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--steel); pointer-events: none; }
.search-box input { padding-left: 40px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid rgba(255, 255, 255, .2); }
.process-step { padding: 28px 28px 8px 0; position: relative; }
.process-step + .process-step { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.process-step .step-no { font-family: var(--font-display); font-stretch: 120%; font-weight: 800; font-size: 44px; color: var(--bolt); line-height: 1; display: block; margin-bottom: 18px; }
.process-step .bubble { display: none; }
.process-step h3 { font-size: 21px; margin: 0 0 8px; }
.process-step p { font-size: 15.5px; color: #B9C8D8; margin: 0; }
.panel-like .process, .process.light { border-top-color: var(--rule); }
.process.light .process-step + .process-step { border-left-color: var(--rule); }
.process.light .process-step p { color: var(--steel); }
.process.light .step-no { color: var(--blue); font-size: 32px; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } .process-step:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } .process-step + .process-step { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); } }

/* ---------- Facts / stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat { padding: 26px 24px 26px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--rule); }
.stat b { display: block; font-family: var(--font-display); font-stretch: 115%; font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--ink); }
.stat span { color: var(--steel); font-size: 15px; display: block; margin-top: 8px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* ---------- Split / feature list ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.feature-list li .icon { color: var(--success); margin-top: 4px; }
.band-navy .feature-list li { color: #DCE6F1; }
.band-navy .feature-list li .icon { color: var(--bolt); }
.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); background: #fff; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 5/4; }
.photo-grid .photo:first-child { grid-row: 1 / span 2; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 560px) { .trio { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #DCE6F1; border-radius: var(--radius); padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band .lead { color: #B9C8D8; margin: 0; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band .btn-outline { --b-fg: #fff; --b-bd: rgba(255, 255, 255, .35); }
.cta-band .btn-outline:hover { border-color: #fff; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z' fill='%23FFC21A' opacity='.10'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 13.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; outline: none;
}
.textarea { min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235D6B7A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--steel); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: var(--glow); }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .75; }
.input-sm { min-height: 38px; font-size: 14.5px; }
.field-error { color: var(--danger); font-size: 13.5px; margin: 0; }
.has-error .input, .has-error .textarea, .has-error .select { border-color: var(--danger); }
.input-group { position: relative; }
.input-group > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-group .input { padding-left: 42px; }
.input-group .toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: var(--radius-xs); }
.input-group .toggle-pass:hover { color: var(--text); background: var(--surface-2); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 3px; flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }
.pass-meter { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.pass-meter i { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice .choice-body { height: 100%; padding: 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); background: var(--surface); transition: border-color .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 6px; }
.choice .choice-body > .icon { color: var(--blue); }
.choice .choice-body b { font-size: 15.5px; }
.choice .choice-body small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.choice:hover .choice-body { border-color: var(--steel); }
.choice input:checked + .choice-body { border-color: var(--blue); box-shadow: var(--glow); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--bolt); outline-offset: 2px; }
.choice .choice-img { aspect-ratio: 16/10; border-radius: var(--radius-xs); overflow: hidden; margin-bottom: 6px; background: var(--paper); }
.choice .choice-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row output { min-width: 44px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--primary) var(--fill, 0%), var(--border-strong) var(--fill, 0%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); cursor: pointer; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--bolt); }
.dropzone { position: relative; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 24px; text-align: center; color: var(--muted); transition: border-color .15s, background .15s; background: var(--surface); }
.dropzone.is-over { border-color: var(--primary); background: var(--surface-2); color: var(--text); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { margin: 0 auto 8px; color: var(--primary); }
.dropzone .file-name { color: var(--text); font-weight: 600; margin-top: 6px; }

/* ---------- Alerts / toasts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); border-left-width: 4px; background: var(--surface); font-size: 15.5px; }
.alert .icon { margin-top: 2px; }
.alert-success { border-left-color: var(--success); } .alert-success > .icon { color: var(--success); }
.alert-error { border-left-color: var(--danger); } .alert-error > .icon { color: var(--danger); }
.alert-warning { border-left-color: var(--warning); } .alert-warning > .icon { color: var(--warning); }
.alert-info { border-left-color: var(--info); } .alert-info > .icon { color: var(--info); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 500; display: flex; flex-direction: column; gap: 10px; width: min(400px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 15px; animation: toastIn .25s var(--ease); border-left: 4px solid var(--bolt); }
.toast.is-leaving { animation: toastOut .2s ease forwards; }
.toast-success { border-left-color: #3CC48E; } .toast-error { border-left-color: #F06A80; } .toast-warning { border-left-color: var(--bolt); } .toast-info { border-left-color: #5AA9F0; }
.toast > .icon { color: inherit; opacity: .9; }
.toast > div { flex: 1; }
.toast button { color: #9FB2C6; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th { text-align: left; font-size: 13.5px; color: var(--muted); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); background: #fff; aspect-ratio: 1; }
.product-gallery img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.product-info h1 { font-size: clamp(32px, 3.8vw, 48px); }
.product-info .price { font-size: 34px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); min-height: 56px; background: var(--surface); }
.qty button { width: 44px; height: 100%; min-height: 52px; display: grid; place-items: center; color: var(--text-2); }
.qty button:hover { color: var(--ink); }
.qty input { width: 44px; text-align: center; background: none; border: 0; font-weight: 700; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 28px; border-top: 1px solid var(--rule); }
.perk { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--text-2); }
.perk .icon { color: var(--blue); }
.grid > .perk { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 16px; background: var(--white); }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } .product-gallery { position: relative; top: 0; } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose { font-size: 18px; line-height: 1.75; color: var(--text-2); overflow-wrap: break-word; }
.prose > * { max-width: 72ch; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 { color: var(--ink); margin: 1.7em 0 .6em; font-stretch: 108%; }
.prose h1 { font-size: 32px; } .prose h2 { font-size: 28px; } .prose h3 { font-size: 23px; } .prose h4, .prose h5 { font-size: 19px; }
.prose img { border-radius: var(--radius-sm); margin: 1.6em auto; height: auto !important; max-width: 100%; }
.prose iframe { width: 100% !important; max-width: 100%; aspect-ratio: 16/9; height: auto !important; border-radius: var(--radius-sm); border: 0; margin: 1.5em 0; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--bolt); color: var(--ink); }
.prose pre, .prose code { font-family: var(--font-mono); font-size: 14.5px; }
.prose pre { background: var(--navy); color: #DCE6F1; padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--rule); padding: 10px 12px; }
.prose span[style*="font-size"] { font-size: inherit !important; }
.prose [style*="color"] { color: inherit !important; }
.prose [style*="background"] { background: none !important; }
.article-head { max-width: 860px; }
.article-head .meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--steel); font-size: 15px; margin-top: 18px; }
.article-head .meta span { display: inline-flex; gap: 6px; align-items: center; }
.article-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); margin: 36px 0 48px; aspect-ratio: 16/8; background: #fff; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.share { display: flex; gap: 6px; align-items: center; }

/* ---------- Project progress ---------- */
.stage-list { display: grid; gap: 12px; }
.stage { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.stage .ring { --v: 0; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--primary) calc(var(--v) * 1%), var(--border) 0); }
.progress { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress > i { display: block; height: 100%; width: var(--v, 0%); background: var(--primary); border-radius: inherit; transition: width .8s var(--ease); }
.activity { list-style: none; margin: 0; padding: 0; position: relative; }
.activity::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.activity li { position: relative; padding: 0 0 18px 28px; color: var(--text-2); font-size: 15.5px; }
.activity li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.activity li small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- Wizard / summary ---------- */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.wizard-steps { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.wizard-steps button { display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px 0; margin-right: 20px; color: var(--muted); font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.wizard-steps button span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; font-size: 13px; }
.wizard-steps button.is-active { color: var(--ink); border-bottom-color: var(--bolt); }
.wizard-steps button.is-active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.wizard-steps button.is-done { color: var(--text-2); }
.wizard-steps button.is-done span { background: var(--success); border-color: var(--success); color: #fff; }
.wizard-panel { display: none; }
.wizard-panel.is-active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-lines { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; font-size: 15px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--border); }
.summary-total b { font-family: var(--font-display); font-stretch: 112%; font-size: 32px; }
@media (max-width: 980px) { .wizard { grid-template-columns: 1fr; } .summary { position: relative; top: 0; } }

/* ---------- Tabs / FAQ ---------- */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.tabs a, .tabs button { padding: 7px 14px; border-radius: 4px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.tabs .is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 19px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--steel); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--ink); }
.faq details p { color: var(--steel); padding-bottom: 22px; margin: 0; max-width: 70ch; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: var(--navy); color: #DCE6F1; }
.auth-side .brand { color: #fff; }
.auth-side .brand small { color: #9FB2C6; }
.auth-side blockquote { margin: 0; font-family: var(--font-display); font-stretch: 112%; font-size: clamp(28px, 3vw, 42px); font-weight: 700; line-height: 1.1; color: #fff; }
.auth-side .schematic .trace, .auth-side .schematic .part { stroke: #4E6E91; }
.auth-side .schematic .part { fill: var(--navy); }
.auth-main { display: grid; place-items: center; padding: 48px 24px; background: var(--white); }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 34px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C8D8; padding: 72px 0 28px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); align-items: end; }
.footer-top h2 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); margin: 0; }
.footer-top .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.footer-top .btn-outline { --b-fg: #fff; --b-bd: rgba(255, 255, 255, .3); }
.footer-top .btn-outline:hover { border-color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; }
.footer-grid h4 { font-family: var(--font-sans); font-stretch: 100%; font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid ul, .footer-grid ul a { color: #B9C8D8; font-size: 15.5px; }
.footer-grid ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: #8DA2B8; }
.footer-brand p { max-width: 340px; margin-top: 16px; font-size: 15.5px; }
.socials { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); color: #DCE6F1; transition: background .15s, border-color .15s; }
.socials a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #8DA2B8; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } .footer-top .actions { justify-content: flex-start; } .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); background: var(--surface); }
.empty .icon { margin: 0 auto 12px; color: var(--primary); }
.empty h3 { color: var(--text); font-size: 20px; }
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.page-btn { min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius-sm); display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--text-2); }
.page-btn:hover { border-color: var(--text); color: var(--text); }
.page-btn.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.page-btn.is-disabled { opacity: .4; }
.page-gap { display: grid; place-items: center; color: var(--muted); padding: 0 4px; }
.back-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--ink); color: #fff; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.back-top.is-visible { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--blue); }
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-initials { width: var(--s); height: var(--s); display: inline-grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .38); color: #fff; background: hsl(var(--h) 45% 42%); }
.kbd { font-family: var(--font-mono); font-size: 12px; padding: 2px 6px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--muted); }
.divider-line { height: 1px; background: var(--border); margin: 28px 0; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.verify-result { margin-top: 24px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--rule); border-left-width: 5px; background: #fff; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.verify-result h2 { margin: 2px 0 6px; }
.verify-ok { border-left-color: var(--success); } .verify-ok > .icon { color: var(--success); }
.verify-bad { border-left-color: var(--danger); } .verify-bad > .icon { color: var(--danger); }
.code-block { position: relative; font-family: var(--font-mono); font-size: 14.5px; padding: 16px 56px 16px 18px; border-radius: var(--radius-sm); background: var(--navy); color: #DCE6F1; overflow-x: auto; white-space: pre; }
.code-block .copy { position: absolute; top: 8px; right: 8px; --b-bg: transparent; --b-fg: #DCE6F1; --b-bd: rgba(255, 255, 255, .25); }
.status-page { min-height: 70svh; display: grid; place-items: center; text-align: left; padding: 40px 20px; }
.status-page .code { font-family: var(--font-display); font-stretch: 125%; font-size: clamp(96px, 18vw, 200px); line-height: .9; font-weight: 800; color: var(--navy); }
.sidebar-card { position: sticky; top: calc(var(--header-h) + 24px); }
.reveal { opacity: 1; transform: none; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.kv-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; font-size: 15.5px; }
.kv-list dt { color: var(--steel); }
.kv-list dd { margin: 0; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .schematic .draw { stroke-dashoffset: 0; } .js .schematic .fade { opacity: 1; }
}
@media print { .site-header, .site-footer, .back-top, .toasts { display: none !important; } body { background: #fff; } }

/* Page hero with an aside (image or panel) */
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.page-hero-aside img { width: 100%; border-radius: var(--radius); border: 1px solid var(--rule); aspect-ratio: 4/3; object-fit: cover; background: var(--white); }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }
.feature-list-lg { margin: 0; gap: 0; border-top: 1px solid var(--rule); }
.feature-list-lg li { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 17px; color: var(--ink); }
.feature-list-lg li .icon { color: var(--blue); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); border-top: 2px solid var(--ink); padding-top: 28px; }
.cols-3 h3 { font-size: 24px; margin-bottom: 8px; }
@media (max-width: 760px) { .cols-3 { grid-template-columns: 1fr; } }
.svc-list-lg .svc-row { padding: 34px 0; }
.auth-quote { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.12; color: #fff; margin: 0 0 8px; max-width: 18ch; }
.auth-schematic { max-width: 440px; margin: 24px 0; }
.auth-side .schematic .grid-bg { stroke: rgba(255,255,255,.06); }
.auth-side .schematic .label { fill: #9FB2C6; }
.auth-side .schematic .label-strong { fill: #fff; }
.auth-side .schematic .fill-paper { fill: #12395F; }
.auth-side .feature-list li { color: #DCE6F1; }
.auth-side .feature-list li .icon { color: var(--bolt); }
@media (max-height: 760px) { .auth-schematic { display: none; } }
/* Web app placeholders when a demo image is missing */
.app-ph { font-family: var(--font-display); font-stretch: 120%; font-weight: 800; font-size: 44px; color: var(--blue); letter-spacing: -.02em; }
.media .app-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.media .app-ph[hidden] { display: none; }
.feature-stack .feature:first-child { border-top: 2px solid var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; border-top: 2px solid var(--ink); padding-top: 20px; }
.facts dt { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; color: var(--ink); }
.facts dd { margin: 8px 0 0; color: var(--steel); font-size: 15px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.values > div { border-top: 1px solid var(--rule); padding: 24px 0 28px; }
.values h3 { font-size: 21px; margin-bottom: 8px; }
.values p { color: var(--steel); margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.facts-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .facts-4 { grid-template-columns: 1fr 1fr; } }

/* ---------- Free tools ---------- */
.translator { padding: 0; overflow: hidden; }
.tr-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--rule); }
.tr-panes { display: grid; grid-template-columns: 1fr 1fr; }
.tr-pane { display: flex; flex-direction: column; }
.tr-out { background: var(--paper); border-left: 1px solid var(--rule); }
.tr-text { flex: 1; min-height: 240px; border: 0; resize: vertical; padding: 20px; font: 400 20px/1.5 var(--font-sans); color: var(--ink); background: transparent; }
.tr-text:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.tr-tools { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 12px 20px; font-size: 14px; }
.tr-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
@media (max-width: 760px) { .tr-panes { grid-template-columns: 1fr; } .tr-out { border-left: 0; border-top: 1px solid var(--rule); } .tr-text { min-height: 160px; font-size: 18px; } }
.dl-group + .dl-group { margin-top: 48px; }
.dl-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.dl-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.dl-ext { font: 500 12px var(--font-mono); color: var(--blue); border: 1px solid var(--rule); background: var(--white); border-radius: var(--radius-sm); padding: 8px 0; text-align: center; }
.dl-name { display: flex; flex-direction: column; min-width: 0; }
.dl-name b { font-weight: 600; color: var(--ink); }
.dl-name .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-size { font-size: 14px; }
@media (max-width: 600px) { .dl-list li { grid-template-columns: 48px 1fr; } .dl-size { display: none; } .dl-list .btn { grid-column: 2; justify-self: start; } }
.ai-preview img { max-height: 260px; border-radius: var(--radius-sm); border: 1px solid var(--rule); margin-top: 12px; }
.ai-out { text-align: left; margin: 0 0 32px; }
.ai-text { white-space: pre-wrap; margin: 0; }
.ai-tips h2 { margin-bottom: 12px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--rule); margin-bottom: 16px; object-fit: cover; }
.band-panel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
figure { margin: 0; }
