/* ==========================================================================
   Pabitra IT Hub - page components & interaction layer
   Loaded on every page after main.css. Tokens come from main.css.
   ========================================================================== */

/* ====================================================== 1. hero + terminal */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 {
  font-size: var(--fs-display);
  margin-bottom: var(--s-4);
}
.hero h1 span { display: block; }
.hero h1 .acc { color: var(--accent-text); }
.hero-sub {
  font-size: var(--fs-lg);
  color: var(--ink-muted);
  max-width: 52ch;
  margin-bottom: var(--s-5);
}
.hero-actions { margin-bottom: var(--s-5); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.hero-badges .icon { color: var(--ok); }

/* --- the terminal panel: dark in both themes, like a real console --------- */

.terminal {
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.72rem + 0.3vw, 0.9rem);
  line-height: 1.75;
  color: var(--term-ink);
  /* Reserve height so the typing animation cannot shift the page (CLS). */
  container-type: inline-size;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--term-line);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #35405C;
  display: block;
}
.terminal-dots i:first-child { background: #FF5F57; }
.terminal-dots i:nth-child(2) { background: #FEBC2E; }
.terminal-dots i:nth-child(3) { background: #28C840; }
.terminal-title {
  color: var(--term-dim);
  font-size: 0.75em;
  letter-spacing: 0.04em;
  margin-left: auto;
}
.terminal-body {
  padding: var(--s-4) var(--s-4) var(--s-5);
  min-height: 260px;
}
@media (min-width: 900px) {
  .terminal-body { min-height: 300px; }
}

.term-line {
  display: flex;
  gap: 0.6em;
  white-space: nowrap;
}
.term-prompt { color: var(--term-green); flex: none; }
.term-prompt b { color: var(--term-blue); font-weight: 400; }
.term-cmd { color: var(--term-ink); }
.term-flag { color: var(--term-orange); }

.term-step {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  color: var(--term-dim);
}
.term-step .tick { color: var(--term-green); flex: none; }
.term-step .key {
  color: var(--term-blue);
  min-width: 7ch;
  display: inline-block;
}
.term-step .val { color: var(--term-dim); }

.term-done {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: var(--s-3);
  padding: 0.3em 0.75em;
  border-radius: var(--r-pill);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--term-green);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.term-done .led { background: var(--term-green); }

.term-caret {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  background: var(--term-green);
  vertical-align: text-bottom;
  animation: caret 1.05s steps(2, start) infinite;
}
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* While JS types, steps start hidden. Without JS every line is already visible. */
.js .terminal[data-animate='true'] .term-step,
.js .terminal[data-animate='true'] .term-done { opacity: 0; }
.js .terminal[data-animate='true'] .term-step.is-in,
.js .terminal[data-animate='true'] .term-done.is-in {
  opacity: 1;
  animation: term-in 0.32s var(--ease) both;
}
@keyframes term-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.term-replay {
  margin-top: var(--s-4);
  background: transparent;
  border: 1px solid var(--term-line);
  color: var(--term-dim);
  font-family: var(--font-mono);
  font-size: 0.8em;
  padding: 0.35em 0.8em;
  border-radius: var(--r-sm);
  cursor: pointer;
  min-height: 34px;
}
.term-replay:hover { color: var(--term-ink); border-color: var(--term-green); }

@media (prefers-reduced-motion: reduce) {
  .term-caret { animation: none; }
  .js .terminal[data-animate='true'] .term-step,
  .js .terminal[data-animate='true'] .term-done { opacity: 1; }
}

/* ========================================================= 2. trust strip */

.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding-block: var(--s-5);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4) var(--s-3);
  text-align: center;
}
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-stat {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
  display: block;
}
.trust-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  margin-top: var(--s-2);
  text-wrap: balance;
}

/* ====================================================== 3. service cards */

.svc-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.svc-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
/* Rack-unit rail down the left edge, lighting up on hover. */
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--line-strong);
  transition: background var(--dur) var(--ease);
}
.svc-card:hover,
.svc-card:focus-visible {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.svc-card:hover::before,
.svc-card:focus-visible::before { background: var(--accent); }

.svc-card h3 { margin-bottom: var(--s-2); }
.svc-card p { color: var(--ink-muted); font-size: var(--fs-sm); }
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-4);
}
.svc-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.15em 0.5em;
}
.svc-more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  color: var(--primary);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.svc-card:hover .svc-more .icon { transform: translateX(3px); }
.svc-more .icon { transition: transform var(--dur) var(--ease); }

/* ==================================================== 4. solution finder */

.finder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.finder-head {
  padding: var(--s-5) var(--s-5) 0;
}
.finder-progress {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.finder-bar {
  flex: 1;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.finder-bar i {
  display: block;
  height: 100%;
  width: 33.33%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-fill), var(--accent));
  transition: width 0.4s var(--ease);
}
.finder-count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  white-space: nowrap;
}

.finder-body { padding: 0 var(--s-5) var(--s-5); }
.finder-step { display: none; }
.finder-step.is-active { display: block; animation: step-in 0.35s var(--ease) both; }
@keyframes step-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
.finder-step h3 { margin-bottom: var(--s-4); }

.finder-options {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.finder-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  min-height: 64px;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.finder-opt:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
}
.finder-opt[aria-pressed='true'] {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.finder-opt b { font-size: var(--fs-base); font-weight: 700; }
.finder-opt small { color: var(--ink-muted); font-size: var(--fs-xs); }

.finder-nav {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
  flex-wrap: wrap;
}

.finder-result { display: none; }
.finder-result.is-active { display: block; animation: step-in 0.4s var(--ease) both; }
.finder-rec {
  border: 1.5px solid var(--primary);
  background: var(--primary-soft);
  border-radius: var(--r);
  padding: var(--s-5);
  margin-bottom: var(--s-4);
}
.finder-rec h4 {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-2);
}
.finder-rec p { color: var(--ink-muted); margin-bottom: var(--s-3); }
.finder-rec .price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-text);
}

/* ================================================== 5. pricing plan cards */

.plans {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: start;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.plan:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.plan--featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow);
}
.plan-flag {
  position: absolute;
  top: -12px;
  left: var(--s-5);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.25em 0.75em;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.plan h3 { margin-bottom: var(--s-1); }
.plan-for {
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  min-height: 2.8em;
  margin-bottom: var(--s-4);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25em;
  font-family: var(--font-mono);
  margin-bottom: var(--s-1);
}
.plan-price .amt {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.plan-price .per { color: var(--ink-muted); font-size: var(--fs-sm); }
.plan-gst {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-bottom: var(--s-4);
}

.plan-specs {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.plan-specs li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
  color: var(--ink-muted);
}
.plan-specs .icon { color: var(--ok); flex: none; margin-top: 3px; }
.plan-specs b { color: var(--ink); font-weight: 600; }
.plan .btn { margin-top: auto; }

.addons {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.addon {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  flex-wrap: wrap;
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.addon b { font-size: var(--fs-sm); min-width: 0; }
.addon .amt {
  font-family: var(--font-mono);
  color: var(--accent-text);
  font-weight: 600;
  /* Must wrap: an add-on note like "/yr - EXAMPLE" pushed the row past a
     360px viewport when the whole string was nowrap. Only the figure itself
     is kept unbreakable, via .addon .amt .fig below. */
  min-width: 0;
  text-align: right;
  font-size: var(--fs-sm);
}
.addon .amt .fig { white-space: nowrap; }

/* ------------------------------------------------------- comparison table */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.cmp {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.cmp th,
.cmp td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  font-weight: 700;
  white-space: nowrap;
  z-index: 1;
}
.cmp tbody th {
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}
.cmp tbody tr:hover td,
.cmp tbody tr:hover th { background: var(--surface-2); }
.cmp td { font-family: var(--font-mono); font-size: 0.85rem; }
.cmp tr:last-child th,
.cmp tr:last-child td { border-bottom: 0; }
.scroll-hint {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-top: var(--s-2);
}
@media (min-width: 860px) { .scroll-hint { display: none; } }

/* ------------------------------------------------------ domain search box */

.domain-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.domain-form {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.domain-form .field { flex: 1 1 260px; margin: 0; }
.domain-tlds {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.domain-tlds span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.2em 0.55em;
}

/* ================================================== 6. estimator (dev page) */

.estimator {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.estimator-grid { display: grid; }
@media (min-width: 900px) {
  .estimator-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.estimator-in { padding: var(--s-5); }
.estimator-out {
  padding: var(--s-5);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .estimator-out {
    border-top: 0;
    border-left: 1px solid var(--line);
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    align-self: start;
  }
}

.est-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.est-types {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  margin-bottom: var(--s-5);
}
.est-type {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  cursor: pointer;
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.est-type:hover { border-color: var(--primary); }
.est-type input { position: absolute; opacity: 0; pointer-events: none; }
.est-type .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  flex: none;
  display: grid;
  place-items: center;
  transition: border-color var(--dur) var(--ease);
}
.est-type .dot::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-fill);
  transform: scale(0);
  transition: transform var(--dur) var(--ease);
}
.est-type:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.est-type:has(input:checked) .dot { border-color: var(--primary); }
.est-type:has(input:checked) .dot::after { transform: scale(1); }
.est-type:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }

.est-features {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.est-feat {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  cursor: pointer;
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.est-feat input { position: absolute; opacity: 0; pointer-events: none; }
.est-feat .box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--line-strong);
  flex: none;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.est-feat:hover { border-color: var(--primary); }
.est-feat:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.est-feat:has(input:checked) .box {
  background: var(--primary-fill);
  border-color: var(--primary-fill);
  color: var(--on-primary);
}
.est-feat:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }

.est-total {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin: var(--s-2) 0 var(--s-1);
  font-variant-numeric: tabular-nums;
}
.est-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin-bottom: var(--s-4);
}
.est-note {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-top: var(--s-4);
}
.est-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  min-height: 24px;
}
.est-chip {
  font-size: var(--fs-xs);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.15em 0.6em;
  color: var(--ink-muted);
  animation: chip-in 0.25s var(--ease) both;
}
@keyframes chip-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: none; }
}

/* ================================================= 7. lite YouTube facade */

.video-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.lite-yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: #000 center/cover no-repeat;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.lite-yt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
  transition: background var(--dur) var(--ease);
}
.lite-yt:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.4)); }
.lite-yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lite-yt .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 44px;
  border-radius: 12px;
  background: rgba(220, 30, 30, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lite-yt:hover .play { transform: scale(1.1); background: #f00; }
.lite-yt .vt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--s-3);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.lite-yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.bhaiya {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.bhaiya-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--s-5);
}
.yt-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: #FF0000;
  color: #fff;
  border-radius: var(--r-pill);
  padding: 0.35em 0.9em;
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
}
.yt-badge:hover { background: #d90000; color: #fff; }

/* ================================================== 8. process / steps */

.steps {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step-n {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--line-strong);
  display: block;
  margin-bottom: var(--s-3);
  transition: color var(--dur) var(--ease);
}
.step:hover .step-n { color: var(--accent); }
.step h3 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.step p { color: var(--ink-muted); font-size: var(--fs-sm); margin: 0; }

/* Connecting rail between steps on wide screens. */
@media (min-width: 980px) {
  .steps { position: relative; }
  .step::after {
    content: '';
    position: absolute;
    top: 2.6rem;
    right: calc(var(--s-4) * -1);
    width: var(--s-4);
    height: 2px;
    background: var(--line);
  }
  .step:last-child::after { display: none; }
}

/* ================================================== 9. testimonials */

.quotes {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.quote {
  /* <figure> ships with a UA margin of 1em 40px, which inset every card. */
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
}
.quote .icon-quote { color: var(--accent); margin-bottom: var(--s-3); }
.quote blockquote {
  margin: 0 0 var(--s-4);
  /* Body size, not large: real quotes run ~300 characters. */
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
}
.quote figcaption {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--ink-muted); }
.quote-stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: var(--s-3); }

/* ================================================== 10. FAQ accordion */

.faq { max-width: 60rem; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  padding: var(--s-4) 0;
  min-height: 60px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.4;
}
.faq-q:hover { color: var(--primary); }
.faq-q .icon {
  flex: none;
  margin-top: 4px;
  color: var(--ink-faint);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.faq-q[aria-expanded='true'] .icon { transform: rotate(180deg); color: var(--primary); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  color: var(--ink-muted);
  padding-bottom: var(--s-4);
  margin: 0;
  max-width: 68ch;
}
/* Without JS the panels are simply open, so content is never trapped. */
html:not(.js) .faq-a { grid-template-rows: 1fr; }

/* ============================================ 11. work / case study cards */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.filter-btn {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover { border-color: var(--primary); color: var(--ink); }
.filter-btn[aria-pressed='true'] {
  background: var(--primary-fill);
  border-color: var(--primary-fill);
  color: var(--on-primary);
}

.work-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.case {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), opacity 0.3s var(--ease);
}
.case:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.case.is-hidden { display: none; }
.case.is-filtering { animation: case-in 0.35s var(--ease) both; }
@keyframes case-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.case-top {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.case-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}
.case-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case h3 { font-size: var(--fs-xl); margin-bottom: var(--s-4); }

.case-block { margin-bottom: var(--s-3); }
.case-block h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s-1);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.case-block h4::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--line-strong);
}
.case-block--out h4::before { background: var(--accent); }
.case-block p {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin: 0;
}
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.case-stack span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 0.15em 0.5em;
}

/* ================================================ 12. infra pillar blocks */

.pillar {
  display: grid;
  gap: var(--s-5);
  padding-block: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
@media (min-width: 880px) {
  .pillar { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-7); }
}
.pillar:last-child { border-bottom: 0; }
.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-4);
}
.pillar-lede {
  font-size: var(--fs-lg);
  color: var(--ink);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.pillar p { color: var(--ink-muted); }
.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin: 0;
}
.pillar-list .icon { color: var(--ok); flex: none; margin-top: 2px; }

/* jump nav for the infra page */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.jump a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.jump a:hover { border-color: var(--primary); color: var(--primary); }

/* =================================================== 13. forms */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.field { margin-bottom: var(--s-4); }
.field--full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.field .req { color: var(--err); }
.field .hint {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  font-weight: 400;
  margin-top: 2px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-base);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: var(--ink-faint); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  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='%236B778D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--err); }
.field-error {
  display: block;
  font-size: var(--fs-xs);
  color: var(--err);
  margin-top: var(--s-2);
  font-weight: 600;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  cursor: pointer;
  color: var(--ink-muted);
}
.check input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  accent-color: var(--primary-fill);
  cursor: pointer;
}
.check a { color: var(--primary); }

/* The honeypot must be invisible to humans but reachable by bots. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-top: var(--s-4);
}
.btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =================================================== 14. contact channels */

.channels {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.channel {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.channel:hover { border-color: var(--primary); transform: translateY(-2px); color: inherit; }
.channel .ci {
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  flex: none;
  background: var(--primary-soft);
  color: var(--primary);
}
.channel--wa .ci { background: rgba(14, 124, 74, 0.12); color: var(--wa); }
.channel b { display: block; margin-bottom: 2px; }
.channel span { font-size: var(--fs-sm); color: var(--ink-muted); }
.channel .val {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--primary);
  word-break: break-word;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-empty {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s-5);
  color: var(--ink-muted);
  font-size: var(--fs-sm);
}
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list b { font-weight: 600; }
.hours-list span { color: var(--ink-muted); font-family: var(--font-mono); }

/* =================================================== 15. CTA band */

.cta-band {
  position: relative;
  background: linear-gradient(135deg, #062B6B 0%, #0057D9 55%, #0A3F9E 100%);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 1.2rem + 3vw, 3.5rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  font-size: var(--fs-lg);
}
.cta-band .btn--accent { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.cta-band .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* =================================================== 16. page header block */

.page-hero {
  padding-block: clamp(2rem, 1.4rem + 3.5vw, 4rem) clamp(1.5rem, 1.2rem + 2vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lede {
  font-size: var(--fs-lg);
  color: var(--ink-muted);
  max-width: 58ch;
}
.crumbs {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-bottom: var(--s-3);
}
/* The row layout belongs on the <ol>: the <nav> has only that one child, so
   flex on the nav left the list items stacked vertically. */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: var(--s-2); }
.crumbs .icon { color: var(--ink-faint); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }

/* =================================================== 17. legal / prose */

.legal-note {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--warn-soft);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  margin-bottom: var(--s-6);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.legal-note .icon { color: var(--accent-text); flex: none; }
.legal-layout { display: grid; gap: var(--s-6); }
@media (min-width: 980px) {
  .legal-layout { grid-template-columns: 240px 1fr; gap: var(--s-7); }
}
.legal-toc {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  font-size: var(--fs-sm);
}
.legal-toc h2 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: var(--s-3);
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.legal-toc li { margin-bottom: var(--s-2); }
.legal-toc a {
  color: var(--ink-muted);
  text-decoration: none;
  display: block;
  padding: 2px 0;
}
.legal-toc a:hover { color: var(--primary); }
.legal-body h2 {
  font-size: var(--fs-h3);
  margin-top: var(--s-7);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-muted); }
.legal-body { max-width: 70ch; }
@media (max-width: 979px) { .legal-toc { display: none; } }

/* =================================================== 18. 404 */

.e404 {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--s-8);
}
.e404-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 2rem + 14vw, 9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--line-strong);
  margin-bottom: var(--s-3);
}
.e404 .terminal { text-align: left; max-width: 620px; margin: var(--s-5) auto; }
.e404-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: center;
  margin-top: var(--s-5);
}

/* =================================================== 19. misc helpers */

.split {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .split--wide { grid-template-columns: 1.15fr 0.85fr; }
}

.stat-row {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
}
.stat {
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat span { font-size: var(--fs-xs); color: var(--ink-muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag-cloud span {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.3em 0.7em;
  color: var(--ink-muted);
  transition: all var(--dur) var(--ease);
}
.tag-cloud span:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  transform: translateY(-2px);
}

.stack-group { margin-bottom: var(--s-5); }
.stack-group h3 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: var(--s-3);
}

.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  color: var(--ink-muted);
}
.checklist .icon { color: var(--ok); flex: none; margin-top: 3px; }

.note-box {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin-top: var(--s-5);
}
.note-box .icon { flex: none; color: var(--ink-faint); }

/* Staggered reveal for grids. Index is set inline as --i. */
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
}
.js .reveal-stagger.is-visible > * {
  animation: stagger-in 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal-stagger > * { opacity: 1; transform: none; animation: none; }
}

/* Scroll progress bar under the sticky header. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--primary-fill), var(--accent));
  z-index: 101;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* Toast used after a successful form post. */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 150;
  width: min(92vw, 420px);
}
@media (min-width: 768px) { .toast-wrap { bottom: 24px; } }

/* =================================================== 20. motion layer */
/* Everything here is progressive: every rule starts with `.js` or a
   :hover/:focus state, so nothing moves when JS is off. The site-wide
   reduced-motion override in main.css collapses every animation below the
   perception threshold, so no per-rule guards are needed. */

/* ------------------------------------------------- 20a. page-load entrance */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.js .hero .eyebrow,
.js .hero h1,
.js .hero .hero-sub,
.js .hero .hero-actions,
.js .hero .hero-badges,
.js .hero .hero-visual,
.js .page-hero .container > * {
  opacity: 0;
  animation: rise-in 0.6s var(--ease) both;
}

/* Home / 404 hero cascade, top to bottom. */
.js .hero .eyebrow      { animation-delay: 60ms; }
.js .hero h1            { animation-delay: 140ms; }
.js .hero .hero-sub     { animation-delay: 420ms; }
.js .hero .hero-actions { animation-delay: 520ms; }
.js .hero .hero-badges  { animation-delay: 620ms; }
/* The terminal reads the opposite direction to the copy: it "boots" early. */
.js .hero .hero-visual  { animation-delay: 180ms; }

/* Sub-page heroes: crumbs, eyebrow, headline, lede, actions. */
.js .page-hero .crumbs  { animation-delay: 40ms; }
.js .page-hero .eyebrow { animation-delay: 100ms; }
.js .page-hero h1       { animation-delay: 160ms; }
.js .page-hero .lede    { animation-delay: 260ms; }
.js .page-hero .cluster { animation-delay: 340ms; }

/* Every section heading fades up as it scrolls into view. app.js adds
   `.section-head` to the reveal observer so it behaves exactly like `.reveal`. */
.js .section-head {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js .section-head.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .section-head { opacity: 1; transform: none; }
}

/* ---------------------------------------------- 20b. header + nav micro-motion */

/* A soft shadow settles on the sticky header once the page is scrolled.
   Toggled from app.js, matching the scroll-progress guard. */
.site-header { transition: box-shadow 0.3s var(--ease); }
body.is-scrolled .site-header { box-shadow: var(--shadow-sm); }

/* The active/current nav item grows an accent underline that knows the link's
   padding, so it starts and stops exactly at the label edges. */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current='page']::after { transform: scaleX(1); }

/* Mobile panel links cascade in when the drawer opens. The delays live only
   under [data-open='true'], so closing stays instant. */
.mobile-nav ul li {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.mobile-nav[data-open='true'] ul li {
  opacity: 1;
  transform: none;
}
.mobile-nav[data-open='true'] ul li:nth-child(1) { transition-delay: 40ms; }
.mobile-nav[data-open='true'] ul li:nth-child(2) { transition-delay: 80ms; }
.mobile-nav[data-open='true'] ul li:nth-child(3) { transition-delay: 120ms; }
.mobile-nav[data-open='true'] ul li:nth-child(4) { transition-delay: 160ms; }
.mobile-nav[data-open='true'] ul li:nth-child(5) { transition-delay: 200ms; }
.mobile-nav[data-open='true'] ul li:nth-child(6) { transition-delay: 240ms; }
.mobile-nav[data-open='true'] ul li:nth-child(7) { transition-delay: 280ms; }
.mobile-nav[data-open='true'] ul li:nth-child(8) { transition-delay: 320ms; }

/* ----------------------------------------------- 20c. controls shine + pop */

/* A single light sweep crosses the solid CTAs on hover. Overflow is clipped on
   the button itself, so the sweep stays inside the rounded corners. */
.btn--primary,
.btn--accent,
.btn--wa {
  position: relative;
  overflow: hidden;
}
.btn--primary::after,
.btn--accent::after,
.btn--wa::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-160%) skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}
.btn--primary:hover::after,
.btn--accent:hover::after,
.btn--wa:hover::after { animation: btn-shine 0.8s var(--ease); }
@keyframes btn-shine {
  0%            { opacity: 0; transform: translateX(-160%) skewX(-20deg); }
  15%           { opacity: 1; }
  60%, 100%     { opacity: 0; transform: translateX(420%) skewX(-20deg); }
}

/* The rack-cell icons give a small pop when their card is hovered. */
.card-icon,
.case-icon { transition: transform 0.3s var(--ease); }
.svc-card:hover .card-icon,
.card--hover:hover .card-icon,
.plan:hover .card-icon,
.case:hover .case-icon { transform: scale(1.08) rotate(-4deg); }

/* ------------------------------------------------ 20d. idle ambient motion */

/* The eyebrow's leading square behaves like a status LED: a slow, gentle
   blink so the page never feels frozen. */
.eyebrow::before { animation: eyebrow-blink 3.4s ease-in-out infinite; }
@keyframes eyebrow-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* The closing CTA band's gradient drifts lazily from end to end. */
.cta-band {
  background-image: linear-gradient(135deg, #062B6B 0%, #0057D9 45%, #0A3F9E 62%, #0057D9 100%);
  background-size: 180% 100%;
  animation: band-drift 16s var(--ease) infinite alternate;
}
@keyframes band-drift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
