/* ============================================================
   VouchTrack — Corporate Design System (LIGHT)
   GPS Tracking & Fleet Management · Pakistan
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #ffffff;
  --bg-2:          #f8f5f5;
  --bg-3:          #f3eded;
  --surface:       #ffffff;
  --surface-2:     #faf7f7;
  --surface-3:     #f1e9ea;
  --line:          #ebe3e4;
  --line-strong:   #d6c9cb;

  /* Brand — sampled from the official Vouch Track logo (red target, black rings, white "V")
     NOTE: token names kept as --blue/--cyan for backwards compatibility; values are the logo red. */
  --brand:         #970617;   /* official logo red — primary */
  --brand-deep:    #6e0410;   /* deep logo red */
  --brand-light:   #c41a2e;   /* bright logo red accent */
  --brand-dark:    #0c0c0c;   /* logo black */
  --brand-silver:  #c9c9c9;   /* icon silver "V" */
  --blue:          var(--brand);        /* legacy alias — primary */
  --blue-deep:     var(--brand-deep);   /* legacy alias */
  --blue-light:    var(--brand-light);  /* legacy alias */
  --cyan:          var(--brand-light);  /* legacy alias */
  --red:           #f44336;   /* app dashboard ring / "stopped" */
  --violet:        #6b4eff;
  --green:         #4caf50;   /* app "moving" */
  --amber:         #f4a445;   /* app "idle" */
  --grey:          #9e9e9e;   /* app "offline" */
  --brown:         #795548;   /* app "expired" */
  --danger:        #f44336;

  /* Map palette (matches the SVG maps) */
  --map-land:      #f2efe9;
  --map-water:     #aadaff;
  --map-park:      #cdebb0;
  --map-road:      #ffffff;
  --map-road-edge: #dfdbd3;
  --map-hwy:       #fbd5a4;
  --map-hwy-edge:  #e9ab4a;
  --map-label:     #6b6f76;

  /* Text */
  --text:          #1f1715;
  --text-2:        #5c4f50;
  --text-3:        #8a7b7d;

  /* Effects */
  --glow-blue:     0 0 30px rgba(151,6,23, 0.22);
  --shadow-xs:     0 1px 2px rgba(31,23,21, 0.05);
  --shadow-sm:     0 2px 8px rgba(31,23,21, 0.06);
  --shadow-md:     0 10px 30px -10px rgba(31,23,21, 0.16);
  --shadow-lg:     0 30px 70px -24px rgba(31,23,21, 0.26);

  --grad-brand:    linear-gradient(120deg, #6e0410 0%, #970617 45%, #c41a2e 110%);
  --grad-text:     linear-gradient(100deg, #1f1715 0%, #970617 52%, #c41a2e 100%);

  /* Geometry */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --maxw: 1240px;
  --gut: clamp(20px, 4vw, 56px);

  /* Motion */
  --e-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: var(--text); }
::selection { background: rgba(151,6,23,.18); color: var(--text); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #d0c0c2; border-radius: 99px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #b7a3a6; }

/* ---------- 3. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(70px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(52px, 6.5vw, 90px); }
.section--alt { background: var(--bg-2); }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
/* Grid items default to min-width:auto, which lets a wide <pre>/input stretch a 1fr
   column past the viewport on phones. Let tracks shrink and inner content scroll. */
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.center { align-items: center; }
.between { justify-content: space-between; }
.gap-sm { gap: 10px; } .gap-md { gap: 18px; } .gap-lg { gap: 32px; }
.wrap-flex { flex-wrap: wrap; }
.tc { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-sm { margin-top: 14px; } .mt-md { margin-top: 26px; } .mt-lg { margin-top: 48px; }
.narrow { max-width: 720px; }

@media (max-width: 980px) { .g-4, .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-4, .g-3, .g-2 { grid-template-columns: 1fr; } }

/* ---------- 4. Typography ---------- */
.h-xxl { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.h-xl  { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.h-lg  { font-size: clamp(1.55rem, 2.9vw, 2.2rem); }
.h-md  { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.h-sm  { font-size: 1.05rem; }

.lead { font-size: clamp(1rem, 1.45vw, 1.15rem); color: var(--text-2); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent { color: var(--blue); }
.accent-2 { color: var(--green); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue);
  padding: 7px 14px;
  border: 1px solid #f1d6d9;
  border-radius: 99px;
  background: #fbeff0;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px rgba(151,6,23,.18);
  animation: blip 2s ease-in-out infinite;
}
@keyframes blip { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

.section-head { max-width: 780px; margin-bottom: clamp(34px, 4.6vw, 60px); }
.section-head.tc { margin-inline: auto; }
.section-head .h-xl { margin-top: 18px; }
.section-head .lead { margin-top: 16px; }

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 99px;
  font-weight: 600; font-size: 0.94rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .4s var(--e-out), box-shadow .4s var(--e-out), border-color .3s, color .3s, background .3s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .4s var(--e-out); }
.btn:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-sm); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn--primary {
  background: var(--grad-brand);
  background-size: 200% 200%;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 26px -10px rgba(151,6,23,.7);
  animation: gradShift 9s ease infinite;
}
.btn--primary:hover { color: #fff; box-shadow: 0 16px 34px -10px rgba(151,6,23,.8); }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: #fbeff0; }

.btn--dark { background: var(--text); color: #fff; border-color: var(--text); }
.btn--dark:hover { color: #fff; background: #2b211f; border-color: #2b211f; }

.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--sm { padding: 9px 17px; font-size: 0.85rem; }

.btn--shine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.42) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--e-out);
}
.btn--shine:hover::after { transform: translateX(120%); }

/* ---------- 6. Cards ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 30px);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .45s var(--e-out), border-color .4s, box-shadow .45s var(--e-out);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(151,6,23,.07), transparent 62%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }

.card--flush { padding: 0; }
.card--tint { background: var(--bg-2); }

.card-ico {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: #fbeff0;
  border: 1px solid #f1d6d9;
  color: var(--blue);
  margin-bottom: 18px;
  transition: transform .5s var(--e-spring), box-shadow .5s;
}
.card-ico svg { width: 23px; height: 23px; }
.card:hover .card-ico { transform: translateY(-3px) rotate(-6deg) scale(1.06); box-shadow: var(--glow-blue); }

.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.94rem; }

.card--edge::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px; background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s; pointer-events: none;
}
.card--edge:hover::after { opacity: .8; }

/* ---------- 7. Background FX ---------- */
.fx-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(151,6,23,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151,6,23,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 6%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 6%, transparent 72%);
}
.fx-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: .55;
  animation: float 18s ease-in-out infinite;
}
.fx-orb--blue  { background: radial-gradient(circle, rgba(151,6,23,.30), transparent 70%); }
.fx-orb--cyan  { background: radial-gradient(circle, rgba(0,184,217,.26), transparent 70%); }
.fx-orb--green { background: radial-gradient(circle, rgba(18,183,106,.22), transparent 70%); }
.fx-orb--violet{ background: radial-gradient(circle, rgba(107,78,255,.20), transparent 70%); }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.12); }
  66%      { transform: translate(-30px,26px) scale(.92); }
}

/* ---------- 8. Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: #fff;
  display: grid; place-items: center;
  transition: opacity .7s var(--e-out), visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pre-inner { text-align: center; }
.pre-radar { width: 110px; height: 110px; margin: 0 auto 24px; position: relative; }
.pre-radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-strong); }
.pre-radar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--blue); animation: radarPing 2s ease-out infinite;
}
@keyframes radarPing { 0% { transform: scale(.25); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.pre-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(151,6,23,.28) 55deg, transparent 70deg);
  animation: spin 1.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pre-bar { width: 190px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 16px auto 0; }
.pre-bar i { display: block; height: 100%; width: 0; background: var(--grad-brand); transition: width .3s linear; }
.pre-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; color: var(--text-3); text-transform: uppercase; }

/* ---------- 9. Header / Nav ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background .45s, backdrop-filter .45s, border-color .45s, padding .45s, box-shadow .45s;
  border-bottom: 1px solid transparent;
  padding-block: 16px;
}
.header.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
  padding-block: 10px;
  box-shadow: 0 1px 20px rgba(31,23,21,.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em; }
.logo-mark {
  width: auto; height: 40px; flex: none;
  transition: transform .5s var(--e-spring);
}
.logo:hover .logo-mark { transform: translateY(-2px) scale(1.06); }
.logo-txt { display: flex; flex-direction: column; line-height: 1.02; }
.logo-txt b { font-weight: 700; white-space: nowrap; }
.logo-txt i { font-style: normal; color: var(--blue); }
.logo-txt small {
  font-family: var(--font-body); font-weight: 500;
  font-size: .52rem; letter-spacing: .09em; color: var(--text-3);
  text-transform: uppercase; margin-top: 3px; white-space: nowrap;
}
@media (max-width: 420px) { .logo-txt small { display: none; } }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li > a {
  display: block; padding: 9px 15px; border-radius: 99px;
  font-size: 0.92rem; font-weight: 500; color: var(--text-2);
  transition: color .3s, background .3s; position: relative;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--blue); background: #fbeff0; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); place-items: center; background: #fff; }
.burger i { display: block; width: 18px; height: 1.8px; background: var(--text); border-radius: 2px; transition: transform .4s var(--e-out), opacity .3s; }
.burger i + i { margin-top: 4.4px; }
.burger.open i:nth-child(1) { transform: translateY(6.2px) rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { transform: translateY(-6.2px) rotate(-45deg); }

/* Nav collapse is handled in components.css, where the breakpoints are
   derived from the measured width of each element. Keeping a second
   rule here would fight it. */

.mobile-menu {
  position: fixed; inset: 0; z-index: 890;
  background: rgba(255,255,255,.98); backdrop-filter: blur(20px);
  padding: 110px var(--gut) 40px;
  transform: translateY(-100%);
  transition: transform .6s var(--e-out);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block; padding: 17px 0; font-family: var(--font-display);
  font-size: 1.5rem; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(18px);
}
.mobile-menu.open a { animation: mmIn .5s var(--e-out) forwards; }
.mobile-menu.open a:nth-child(1) { animation-delay: .06s; }
.mobile-menu.open a:nth-child(2) { animation-delay: .12s; }
.mobile-menu.open a:nth-child(3) { animation-delay: .18s; }
.mobile-menu.open a:nth-child(4) { animation-delay: .24s; }
.mobile-menu.open a:nth-child(5) { animation-delay: .30s; }
.mobile-menu.open a:nth-child(6) { animation-delay: .36s; }
.mobile-menu.open a:nth-child(7) { animation-delay: .42s; }
.mobile-menu.open a:nth-child(8) { animation-delay: .48s; }
@keyframes mmIn { to { opacity: 1; transform: translateY(0); } }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 950;
  width: 0%; background: var(--grad-brand);
}

/* ---------- 10. Reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .85s var(--e-out), transform .85s var(--e-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 11. Footer ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(54px, 6.5vw, 80px) 28px;
  overflow: hidden;
}
/* Brand block plus four link columns — five children, five tracks, so the
   last column sits on the same row instead of orphaning underneath. */
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); gap: 34px; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500; }
.footer-links li a { display: block; padding: 6px 0; color: var(--text-2); font-size: .93rem; transition: color .3s, transform .3s; }
.footer-links li a:hover { color: var(--blue); transform: translateX(4px); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-3);
}
.footer-bottom a:hover { color: var(--blue); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text-2);
  transition: all .35s var(--e-out);
}
.socials a:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.socials svg { width: 17px; height: 17px; }

/* ---------- 12. Misc components ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 99px;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: .8rem; color: var(--text-2); font-family: var(--font-mono);
  transition: all .3s;
}
a.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip--live { color: #2e7d32; border-color: #c8e6c9; background: #edf7ed; }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4caf50; box-shadow: 0 0 0 3px rgba(23,178,106,.2); animation: blip 1.6s infinite; }

.divider { height: 1px; background: var(--line); }

.kpi { text-align: center; }
.kpi .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.kpi .lbl { margin-top: 10px; font-size: .86rem; color: var(--text-3); }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marq 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; white-space: nowrap; transition: color .3s; }
.marquee-item:hover { color: var(--text); }
.marquee-item svg { width: 25px; height: 25px; color: var(--blue); opacity: .7; }

/* Accordion */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 21px 0; text-align: start; font-family: var(--font-display); font-size: 1.03rem; font-weight: 600;
  transition: color .3s;
}
.acc-head:hover { color: var(--blue); }
.acc-head .plus { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; position: relative; transition: all .4s var(--e-out); }
.acc-head .plus::before, .acc-head .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; transition: transform .4s var(--e-out); }
.acc-head .plus::before { width: 11px; height: 1.8px; }
.acc-head .plus::after { width: 1.8px; height: 11px; }
.acc-item.open .plus { background: var(--blue); color: #fff; border-color: var(--blue); transform: rotate(180deg); }
.acc-item.open .plus::after { transform: scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .55s var(--e-out); }
.acc-body p { padding-bottom: 22px; color: var(--text-2); font-size: .95rem; max-width: 68ch; }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); width: max-content; max-width: 100%; }
.tab { padding: 9px 19px; border-radius: 99px; font-size: .88rem; font-weight: 500; color: var(--text-2); transition: all .35s var(--e-out); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { background: #fff; color: var(--blue); font-weight: 600; box-shadow: var(--shadow-sm); }

/* Table */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.tbl th, .tbl td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--bg-2); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.tbl td { color: var(--text-2); }
.tbl td:first-child { color: var(--text); font-weight: 500; }
.tbl tbody tr { transition: background .25s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .yes { color: var(--green); font-weight: 600; }
.tbl .no { color: var(--text-3); }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-xs); }

/* Forms */
.field { display: block; margin-bottom: 18px; }
.field label, .field > span { display: block; font-size: .84rem; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--line-strong);
  transition: border-color .3s, box-shadow .3s;
  font-size: .95rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(151,6,23,.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }

/* Badge */
.badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: .7rem; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.badge--blue  { background: #fbeff0; color: #970617; }
.badge--green { background: #edf7ed; color: #2e7d32; }
.badge--amber { background: #fffaeb; color: #b54708; }
.badge--violet{ background: #f4f1ff; color: #5b39e0; }
.badge--red   { background: #ffebee; color: #c62828; }

/* Cursor glow */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 380px; height: 380px; z-index: 1;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(151,6,23,.05), transparent 62%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s;
}
@media (hover: hover) and (min-width: 1024px) { .cursor-glow { opacity: 1; } }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--blue);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .45s var(--e-out);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--blue); transform: translateY(-3px); }

/* ---------- 13. Accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10001;
  padding: 11px 18px; border-radius: 0 0 10px 10px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: .9rem;
  transition: top .3s var(--e-out);
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: -6px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- 14. Click-to-call in the header ---------- */
.btn--call {
  background: #fff; border-color: var(--line-strong);
  padding: 11px 18px; font-family: var(--font-mono); font-size: .84rem; font-weight: 500;
}
.btn--call svg { width: 16px; height: 16px; color: var(--blue); }
.btn--call:hover svg { transform: none; }
.btn--call span { letter-spacing: .01em; }
/* Visibility across breakpoints lives in the responsive pass in components.css. */
