/* ============================================================
   SNHIZ Portal — Shared Stylesheet (Fasa 1)
   Tema: latar hitam, kad biru gelap, aksen biru elektrik
   ============================================================ */

:root {
  --bg: #06090f;
  --bg-soft: #0a0f1a;
  --card: #0d1b2e;
  --card-deep: #0b1626;
  --card-border: #16324f;
  --blue: #1e90ff;
  --blue-bright: #35a7ff;
  --blue-glow: rgba(30, 144, 255, 0.55);
  --blue-soft: rgba(30, 144, 255, 0.12);
  --text: #e8f1fb;
  --text-dim: #9db4cc;
  --text-faint: #6d84a0;
  --green: #25d366;
  --radius: 16px;
  --font: "Segoe UI", "Noto Sans", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 500px at 50% -180px, rgba(30, 144, 255, 0.14), transparent 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* Animasi halaman awam */
.public-motion .navbar {
  background: rgba(6, 12, 22, 0.84);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.public-motion :is(.hero, .page-hero) {
  position: relative;
  isolation: isolate;
}

.public-motion :is(.hero, .page-hero)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(131, 192, 255, 0.28) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 42%, #000, transparent 73%);
}

.public-motion :is(.hero, .page-hero)::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 38% 35%, rgba(30, 144, 255, 0.23), transparent 47%),
              radial-gradient(ellipse at 65% 52%, rgba(34, 82, 220, 0.28), transparent 52%);
  background-size: 140% 100%;
  animation: hero-glow 14s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from { background-position: 0 50%; opacity: 0.65; }
  to { background-position: 100% 50%; opacity: 1; }
}

.public-motion :is(.card, .panel, .steps > li) {
  background: linear-gradient(155deg, rgba(17, 35, 58, 0.88), rgba(8, 18, 33, 0.9));
  border-color: rgba(233, 244, 255, 0.13);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.public-motion .cards > li > .card { height: 100%; }

.public-motion .card:focus-visible,
.public-motion :is(.panel, .steps > li):is(:hover, :focus-within) {
  transform: translateY(-5px);
  border-color: rgba(85, 172, 255, 0.65);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36), 0 0 18px rgba(30, 144, 255, 0.19);
}

.public-motion :is(.btn-blue, .nav-login, .card .card-btn) {
  --cta-gradient: linear-gradient(110deg, #1355b1, #1767c1 42%, #246fc7 54%, #1355b1 75%);
  background: var(--cta-gradient) 0 50% / 240% 100%;
  transition: background-position 500ms ease, box-shadow 220ms ease, transform 150ms ease;
}

.public-motion :is(.btn-blue, .nav-login):is(:hover, :focus-visible),
.public-motion .card:focus-visible .card-btn {
  background: var(--cta-gradient) 100% 50% / 240% 100%;
  box-shadow: 0 6px 18px rgba(30, 144, 255, 0.36);
}

.public-motion :is(.btn-blue, .nav-login):active,
.public-motion .card:active .card-btn { transform: scale(0.98); }

.service-count {
  color: var(--blue-bright);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.motion-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .public-motion .hero h1 .accent {
    display: inline-block;
    animation: portal-title-reveal 580ms steps(12, end) both;
  }

  .motion-reveal:not(.motion-visible):not(:focus-within) { opacity: 0; }

  .motion-reveal.motion-visible:not(:focus-within) {
    animation: scroll-reveal 540ms cubic-bezier(0.2, 0.7, 0.3, 1) var(--reveal-delay, 0ms) backwards;
  }
}

@keyframes portal-title-reveal {
  from { clip-path: inset(-24px 100% -24px -24px); }
  to { clip-path: inset(-24px -24px -24px -24px); }
}

@keyframes scroll-reveal {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.public-motion) { scroll-behavior: auto; }
  .public-motion :is(.hero, .page-hero)::after { animation: none; }
  .public-motion :is(.card, .panel, .steps > li, .btn-blue, .nav-login, .card .card-btn) {
    transition: none;
    transform: none !important;
  }
}

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

a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 9, 15, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.brand-name .snhiz { color: var(--text); }
.brand-name .tld { color: var(--blue-bright); font-weight: 600; }

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--blue);
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-login:hover {
  background: var(--blue-bright);
  box-shadow: 0 0 12px var(--blue-glow);
  text-decoration: none;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-bright);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card-deep);
  transition: border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-back:hover {
  border-color: var(--blue);
  box-shadow: 0 0 12px var(--blue-glow);
  text-decoration: none;
}

/* ---------- Hero (portal) ---------- */
.hero {
  text-align: center;
  padding: clamp(48px, 9vw, 88px) 20px 20px;
}

.hero h1 {
  font-size: clamp(1.7rem, 5.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero h1 .accent {
  color: var(--blue-bright);
  text-shadow: 0 0 24px var(--blue-glow);
}

.hero .subtitle {
  margin-top: 14px;
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  color: var(--blue-bright);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .tagline {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: clamp(0.98rem, 2.6vw, 1.08rem);
}

/* ---------- Kad servis (portal) ---------- */
.services {
  padding: clamp(28px, 5vw, 52px) 0 clamp(48px, 8vw, 80px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--card) 0%, var(--card-deep) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 160px at 50% -60px, rgba(30, 144, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.card:hover { text-decoration: none; }

.card-art {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
}

.card h2 {
  font-size: 1.22rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  text-align: center;
  flex: 1;
}

.card .card-btn {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}

/* ---------- Hero sub-halaman ---------- */
.page-hero {
  padding: clamp(44px, 8vw, 76px) 0 clamp(28px, 5vw, 44px);
  text-align: center;
}

.page-hero .badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid var(--card-border);
  color: var(--blue-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.page-hero h1 {
  font-size: clamp(1.65rem, 5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.22;
}

.page-hero .promise {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.8vw, 1.15rem);
}

.page-hero .hero-art {
  width: clamp(180px, 34vw, 260px);
  margin: 26px auto 0;
}

/* ---------- Butang ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-wa {
  background: var(--green);
  color: #06220f;
}

.btn-wa:hover { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }

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

.btn-blue:hover { background: var(--blue-bright); box-shadow: 0 8px 24px var(--blue-glow); }

.btn-ghost {
  background: transparent;
  color: var(--blue-bright);
  border-color: var(--card-border);
}

.btn-ghost:hover { border-color: var(--blue); box-shadow: 0 0 14px var(--blue-glow); }

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Seksyen kandungan ---------- */
.section { padding: clamp(30px, 5.5vw, 56px) 0; }

.section-title {
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-title .num {
  color: var(--blue-bright);
  margin-right: 10px;
}

.section-sub {
  color: var(--text-faint);
  margin-bottom: 26px;
  font-size: 0.97rem;
}

/* Grid kandungan */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.panel {
  background: linear-gradient(160deg, var(--card) 0%, var(--card-deep) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.panel:hover { border-color: var(--blue); box-shadow: 0 0 16px rgba(30, 144, 255, 0.18); }

.panel h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--blue-bright);
}

.panel p, .panel li { color: var(--text-dim); font-size: 0.95rem; }

.panel ul { list-style: none; }
.panel ul li { padding: 6px 0 6px 26px; position: relative; }
.panel ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--blue-bright);
  font-size: 0.85rem;
}

/* Langkah cara kerja */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.steps li {
  counter-increment: step;
  background: linear-gradient(160deg, var(--card) 0%, var(--card-deep) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 0 14px var(--blue-glow);
}

.steps li h3 { font-size: 1rem; margin-bottom: 6px; }
.steps li p { color: var(--text-dim); font-size: 0.9rem; }

/* Jadual harga */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--card-border); }

table.price {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-deep);
  min-width: 520px;
}

table.price th, table.price td {
  padding: 13px 16px;
  text-align: left;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--card-border);
}

table.price th {
  background: rgba(30, 144, 255, 0.12);
  color: var(--blue-bright);
  font-weight: 700;
  white-space: nowrap;
}

table.price td { color: var(--text-dim); }
table.price tr:last-child td { border-bottom: none; }
table.price td.price-val { color: var(--text); font-weight: 700; white-space: nowrap; }

.price-note {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* Tajuk kumpulan harga (SME: Jadual A / B) */
.group-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 34px 0 6px;
  color: var(--text);
}

#pakej .group-title:first-of-type { margin-top: 10px; }

.group-sub {
  color: var(--text-faint);
  font-size: 0.93rem;
  margin-bottom: 16px;
}

/* Kad pakej bulanan SME */
.package-card { display: flex; flex-direction: column; }

.package-price {
  color: var(--text);
  font-weight: 800;
  font-size: 1.08rem;
  margin-bottom: 2px;
}

.package-peruser {
  color: var(--blue-bright);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.package-card ul { margin-top: auto; }

/* Nota coverage kecil di footer */
.coverage-note {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* CTA tengah / hujung */
.cta-band {
  margin: clamp(30px, 5vw, 50px) 0;
  background:
    radial-gradient(500px 200px at 50% -80px, rgba(30, 144, 255, 0.25), transparent 70%),
    linear-gradient(160deg, var(--card) 0%, var(--card-deep) 100%);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(30, 144, 255, 0.15);
  text-align: center;
  padding: clamp(30px, 6vw, 52px) 22px;
}

.cta-band h2 {
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-band p { color: var(--text-dim); margin-bottom: 22px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }

.faq details {
  background: linear-gradient(160deg, var(--card) 0%, var(--card-deep) 100%);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq details[open] { border-color: var(--blue); }

.faq summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-bright);
  font-size: 1.3rem;
  font-weight: 700;
}

.faq details[open] summary::after { content: "–"; }

.faq .faq-body {
  padding: 0 18px 16px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* Nota / info penting */
.note {
  background: var(--blue-soft);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--text-dim);
  font-size: 0.93rem;
}

.note strong { color: var(--text); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--card-border);
  background: var(--bg-soft);
  padding: 34px 0 110px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 18px;
  text-align: center;
}

.footer .footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.footer .footer-brand .tld { color: var(--blue-bright); }

.footer p { color: var(--text-faint); font-size: 0.9rem; }

.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  font-size: 0.9rem;
}

.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--blue-bright); }

/* ---------- Butang WhatsApp terapung ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #06220f;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s, box-shadow 0.18s;
}

.wa-float:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.wa-float svg { width: 22px; height: 22px; flex: 0 0 22px; }

/* ---------- Responsif ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .navbar-inner { flex-wrap: wrap; justify-content: center; }
  .footer { padding-bottom: 120px; }
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
}

/* Pautan dan kad pada halaman servis */
.public-motion main { overflow-wrap: anywhere; }

.public-motion :is(.cards > li, .grid-2 > *, .grid-3 > *, .steps > li) {
  min-width: 0;
}

.public-motion :is(.nav-login, .nav-back, .btn, .wa-float) {
  min-height: 44px;
}

.public-motion :is(.card-art, .hero-art) {
  filter: drop-shadow(0 10px 18px rgba(30, 144, 255, 0.2));
}

.public-motion .card::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(49, 152, 255, 0.24), transparent 65%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.public-motion .card:focus-visible::before { opacity: 1; }

.public-motion .wa-float {
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
}

.public-motion .footer {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.public-motion .snh-modal-backdrop {
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right))
           max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}

.public-motion .snh-modal {
  max-height: min(100%, 92dvh);
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}

.public-motion .snh-field :is(input, select, textarea) {
  min-height: 44px;
  font-size: 1rem;
}

.policy-content { max-width: 840px; padding-block: clamp(28px, 6vw, 64px); }
.policy-content h1 { font-size: clamp(1.65rem, 5vw, 2.65rem); line-height: 1.2; }
.policy-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-block: 14px 22px; }
.policy-links a { display: inline-flex; align-items: center; min-height: 44px; }
.policy-section {
  background: var(--card-deep);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(16px, 4vw, 32px);
  margin-bottom: 16px;
  scroll-margin-top: 110px;
}
.policy-section h2 { font-size: clamp(1.17rem, 3vw, 1.5rem); }
.policy-section p { margin-top: 12px; color: var(--text-dim); }
.policy-section a { text-decoration: underline; text-underline-offset: 0.16em; }

.public-motion :is(.snh-btn-cancel, .snh-btn-submit, .snh-btn-sec) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

@media (prefers-reduced-motion: no-preference) {
  .public-motion :is(.card-art, .hero-art) {
    animation: service-art-float 4.8s ease-in-out 2 both;
  }

  .public-motion .cards > li:nth-child(2) .card-art { animation-delay: 160ms; }
  .public-motion .cards > li:nth-child(3) .card-art { animation-delay: 320ms; }
}

@keyframes service-art-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@media (hover: hover) and (pointer: fine) {
  .public-motion .card:hover {
    transform: translateY(-5px);
    border-color: rgba(85, 172, 255, 0.65);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36), 0 0 18px rgba(30, 144, 255, 0.19);
  }

  .public-motion .card:hover::before { opacity: 1; }

  .public-motion .card:hover .card-btn {
    background: var(--cta-gradient) 100% 50% / 240% 100%;
    box-shadow: 0 6px 18px rgba(30, 144, 255, 0.36);
  }

  .public-motion .card-art { transition: filter 250ms ease; }
  .public-motion .card:hover .card-art {
    filter: drop-shadow(0 12px 24px rgba(53, 167, 255, 0.46));
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-motion .card::before { transition: none; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .public-motion :is(.cards, .grid-3) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 640px) {
  .public-motion :is(.container, .navbar-inner, .footer-inner) {
    padding-inline: clamp(12px, 4vw, 20px);
  }

  .public-motion .navbar-inner {
    justify-content: space-between;
    column-gap: 8px;
    row-gap: 4px;
    padding-block: 6px;
  }

  .public-motion .brand { min-height: 44px; font-size: 1.05rem; }
  .public-motion .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .public-motion .nav-actions { gap: 6px; }
  .public-motion .nav-actions a { padding-inline: 10px; font-size: 0.84rem; }

  .public-motion .cards { gap: 14px; max-width: none; }
  .public-motion .card {
    display: grid;
    grid-template-columns: clamp(56px, 19vw, 108px) minmax(0, 1fr);
    gap: 6px 12px;
    align-items: start;
    padding: 16px 14px;
  }

  .public-motion .card-art {
    grid-row: 1 / 4;
    align-self: center;
    width: 100%;
    height: auto;
    margin: 0;
  }

  .public-motion .card :is(h2, p) { text-align: start; margin: 0; }
  .public-motion .card h2 { font-size: clamp(1rem, 4vw, 1.2rem); }
  .public-motion .card .card-btn { min-height: 44px; margin-top: 4px; padding: 8px; }
  .public-motion .section { scroll-margin-top: 120px; }
  .public-motion .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .public-motion table.price { min-width: 0; }
  .public-motion table.price :is(th, td) { padding: 9px 7px; font-size: 0.85rem; }
  .public-motion table.price td.price-val { white-space: normal; }
}

@media (max-width: 420px) {
  .public-motion:not(.page-portal) .nav-actions { width: 100%; }
  .public-motion:not(.page-portal) .nav-actions a { flex: 1; justify-content: center; }
  .public-motion :is(.hero-cta, .cta-band) .btn { width: 100%; padding-inline: 10px; }
  .public-motion .snh-modal { padding: 14px 12px; }
}
