/* ==========================================================================
   SKANA POWER — Stylesheet
   Organized top to bottom: tokens -> reset -> layout -> components -> sections -> responsive
   To restyle the whole site, start with the tokens in :root below.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors (from Skana brand kit) */
  --color-brand-blue: #1a40b0;
  --color-brand-blue-dark: #142f82;
  --color-brand-indigo: #401ab0;
  --color-brand-blue-light: #e8edfb;

  /* Ink (dark navy used for hero/dark sections + text) */
  --color-ink-900: #080b16;
  --color-ink-800: #0d1226;
  --color-ink-700: #141b36;
  --color-ink-600: #1d2648;

  /* Neutrals */
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fc;
  --color-border: #e2e6f2;
  --color-border-dark: #2a3358;

  /* Text */
  --color-text: #10131f;
  --color-text-muted: #5a6178;
  --color-text-inverse: #ffffff;
  --color-text-inverse-muted: #aab3d6;

  /* Semantic */
  --color-accent-good: #1a9c5a;
  --color-accent-good-bg: #e9f8f0;
  --color-accent-neutral: #8a90a6;
  --color-accent-neutral-bg: #eef0f5;
  --color-focus-ring: #4d7bff;

  /* Gradient */
  --gradient-brand: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-brand-indigo) 100%);

  /* Typography */
  --font-heading: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (4/8pt) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 450ms;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 14, 30, 0.06), 0 1px 1px rgba(10, 14, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 14, 30, 0.08), 0 2px 6px rgba(10, 14, 30, 0.05);
  --shadow-lg: 0 20px 48px rgba(10, 14, 30, 0.14), 0 6px 16px rgba(10, 14, 30, 0.08);

  --header-height: 76px;
}

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

* {
  margin: 0;
}

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

section[id],
main [id] {
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100dvh;
  overflow-x: hidden;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

svg {
  flex-shrink: 0;
}

/* Visible focus states everywhere (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-brand-blue);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-7);
  }
}

.section {
  padding-block: var(--space-9);
}

.section--tight {
  padding-block: var(--space-8);
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-7);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-brand-blue);
  border-radius: 2px;
}

.section--dark .eyebrow {
  color: #7ea1ff;
}

.section--dark .eyebrow::before {
  background: #7ea1ff;
}

.section-title {
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section--dark .section-title {
  color: var(--color-text-inverse);
}

.section-lede {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}

.section--dark .section-lede {
  color: var(--color-text-inverse-muted);
}

.section--dark {
  background: var(--color-ink-900);
  color: var(--color-text-inverse);
}

.section--soft {
  background: var(--color-bg-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  min-height: 48px;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.section--dark .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.section--dark .btn-secondary:hover {
  border-color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--color-brand-blue-dark);
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  min-height: 40px;
  font-size: 0.875rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    height var(--duration-base) var(--ease-standard);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(8, 11, 22, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.brand img {
  height: 30px;
  width: auto;
  display: block;
}

/*
  The Skana logo is dark ink + a blue "Mewyeah" wordmark, so it disappears
  against the dark header/hero/footer if left as-is or forced fully white.
  This light plate keeps it in its real brand colors and readable anywhere.
*/
.logo-plate {
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-desktop a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
  opacity: 0.85;
  padding: var(--space-2) 0;
  position: relative;
  transition: opacity var(--duration-fast);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: right var(--duration-base) var(--ease-standard);
}

.nav-desktop a:hover {
  opacity: 1;
}

.nav-desktop a:hover::after {
  right: 0;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: #fff;
  z-index: 110;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

.nav-toggle .icon-close {
  display: none;
}

.site-header.is-open .icon-menu {
  display: none;
}

.site-header.is-open .icon-close {
  display: block;
}

.nav-mobile {
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 99;
  background: var(--color-ink-900);
  padding: var(--space-6) var(--space-5) var(--space-8);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard),
    visibility 0s linear var(--duration-base);
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard),
    visibility 0s linear 0s;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-mobile a {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid var(--color-border-dark);
}

.nav-mobile .header-cta {
  display: flex;
  margin-top: var(--space-6);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none;
  }
  .header-cta {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--color-ink-900);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

@media (max-width: 767px) {
  .hero-media img {
    /* On narrow/tall viewports, cover crops most of the width away — shift
       toward the truck cab (right side of the source photo) so it stays
       visible instead of being cropped out by the default centered framing. */
    object-position: 62% center;
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 9, 20, 0.55) 0%,
    rgba(6, 9, 20, 0.45) 35%,
    rgba(6, 9, 20, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--header-height) + var(--space-8));
  padding-bottom: var(--space-8);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-5);
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);
  max-width: 16ch;
  margin-bottom: var(--space-5);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #7ea1ff, #b98cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  margin-bottom: var(--space-7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: var(--space-6);
}

.hero-stat .stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 700;
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--space-1);
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-5);
  z-index: 1;
  display: none;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  animation: bob 2.4s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .scroll-cue {
    display: inline-flex;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-6);
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6) var(--space-8);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-brand-blue);
}

/* ---------- About / Story ---------- */
.about-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.about-copy p + p {
  margin-top: var(--space-4);
}

.about-copy {
  color: var(--color-text-inverse-muted);
  font-size: 1.0625rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.stat-card {
  padding: var(--space-5);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  display: block;
}

.stat-card .stat-label {
  color: var(--color-text-inverse-muted);
  font-size: 0.875rem;
  margin-top: var(--space-2);
}

.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.about-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-5);
  background: linear-gradient(0deg, rgba(3, 5, 12, 0.85), transparent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- Parent company / Manufacturing ---------- */
.mfg-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .mfg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mfg-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.mfg-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mfg-media span {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  background: rgba(8, 11, 22, 0.72);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
}

.cert-pill svg {
  width: 16px;
  height: 16px;
  color: var(--color-brand-blue);
}

.oem-strip {
  margin-top: var(--space-7);
}

.oem-strip p {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.oem-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.oem-marquee li {
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  background: #fff;
}

/* ---------- Products ---------- */
.products-intro {
  align-items: center;
  margin-bottom: var(--space-8);
}

.products-intro .section-header {
  margin-bottom: 0;
}

.products-intro-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


.product-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}

.product-tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: all var(--duration-fast) var(--ease-standard);
}

.product-tab[aria-pressed="true"] {
  background: var(--color-ink-900);
  border-color: var(--color-ink-900);
  color: #fff;
}

.product-tab:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.product-tab[aria-pressed="true"]:hover {
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 620px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card--featured {
  border-color: var(--color-brand-blue);
  box-shadow: var(--shadow-md);
}

.product-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-width: 0;
  min-height: 0;
}

.product-visual .voltage-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--color-ink-900);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

.product-visual .badge-best {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: #fff;
  color: var(--color-brand-blue-dark);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.product-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.product-body h3 {
  font-size: 1.25rem;
}

.spec-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.8125rem;
  padding-block: var(--space-2);
  border-bottom: 1px dashed var(--color-border);
}

.spec-list li span:first-child {
  color: var(--color-text-muted);
}

.spec-list li span:last-child {
  font-weight: 700;
  text-align: right;
}

/* ---------- Performance comparison ---------- */
.compare-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #fff;
}

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.compare-hint svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 720px) {
  .compare-hint {
    display: none;
  }
}

.compare-table th,
.compare-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
}

.compare-table thead th {
  background: var(--color-ink-900);
  color: #fff;
  font-family: var(--font-heading);
  position: sticky;
  top: 0;
}

.compare-table thead th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.compare-table th.col-skana {
  color: #bcd0ff;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg-soft);
}

.compare-table .row-sublabel {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  opacity: 0.75;
  margin-top: 2px;
}

.compare-table td.cell-skana {
  font-weight: 700;
  color: var(--color-accent-good);
  background: var(--color-accent-good-bg);
}

.compare-table td.cell-skana svg,
.compare-table td.cell-legacy svg {
  width: 16px;
  height: 16px;
  margin-right: var(--space-2);
  vertical-align: -3px;
}

.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th {
  border-bottom: none;
}

.compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-5);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.compare-legend li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.compare-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.callout-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.callout-card .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-brand-blue);
  display: block;
}

.callout-card .stat-label {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: var(--space-1);
}

/* ---------- Feature grid (Why Skana) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--color-border);
  transition: transform var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ---------- App download ---------- */
.appdl-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .appdl-grid {
    grid-template-columns: 1fr 0.85fr;
  }
}

.appdl-list {
  display: grid;
  gap: var(--space-4);
  margin-block: var(--space-6);
}

.appdl-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--color-text-inverse-muted);
}

.appdl-list svg {
  width: 22px;
  height: 22px;
  color: #7ea1ff;
  flex-shrink: 0;
  margin-top: 2px;
}

.appdl-list strong {
  color: #fff;
  display: block;
  font-size: 0.9375rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge--image img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}

.appdl-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.appdl-graphic {
  width: min(420px, 100%);
}

/* ---------- Contact ---------- */
.office-list {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 560px) {
  .office-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.office-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  display: flex;
  gap: var(--space-4);
}

.office-card .office-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-blue-light);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.office-icon svg {
  width: 22px;
  height: 22px;
}

.office-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.office-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.office-card a {
  font-weight: 600;
  color: var(--color-brand-blue);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink-900);
  color: var(--color-text-inverse-muted);
  padding-block: var(--space-8) var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-7);
}

.footer-brand img {
  height: 30px;
  width: auto;
  display: block;
}

.footer-brand .logo-plate {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: 0.875rem;
  max-width: 32ch;
}

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: 0.8125rem;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-standard),
    transform var(--duration-slow) var(--ease-standard);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

@media (min-width: 640px) {
  .hero-actions .btn {
    min-width: 200px;
  }
}
