/* Sonic Host Test - design tokens: clean modern fast local reliable simple transparent */
:root{--bg:#ffffff;--surface:#f5f7fa;--primary:#0057b8;--accent:#00b4d8;--ink:#1a1f2b;--muted:#5a6a7a}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink)}
::selection{background:var(--accent);color:var(--bg)}
[aria-current="page"]{color:var(--accent)}
[data-header].is-scrolled{backdrop-filter:blur(10px);box-shadow:0 10px 30px -15px rgba(0,0,0,.45)}
/* Sonic Host Test - custom extras */

:root {
  --sh-primary: #0057b8;
  --sh-accent: #00b4d8;
  --sh-ink: #1a1f2b;
}

html { scroll-behavior: smooth; }

body { text-rendering: optimizeLegibility; }

/* Selection colour */
::selection {
  background: var(--sh-accent);
  color: #ffffff;
}

/* Header scrolled state (toggled by assets/js/site.js) */
header[data-header] {
  transition: box-shadow 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}
header[data-header].is-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px -12px rgba(0, 87, 184, 0.25);
  border-bottom-color: rgba(26, 31, 43, 0.08);
}
header[data-header].is-scrolled > div {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

/* Current page link */
[aria-current="page"] {
  color: var(--sh-primary);
  font-weight: 700;
  position: relative;
}
nav [aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sh-primary), var(--sh-accent));
}
footer [aria-current="page"] { color: var(--sh-accent); }
footer [aria-current="page"]::after { display: none; }

/* Subtle grid texture for hero */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 87, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 87, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}

/* Card hover lift */
article, figure { will-change: transform; }

/* Plan cards: accent glow on the featured plan */
#plans article {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* FAQ marker polish */
details > summary::-webkit-details-marker { display: none; }
details[open] summary span { transform: rotate(45deg); }
details summary span { transition: transform 0.25s ease; }

/* Buttons */
a[class*="rounded-xl"],
button[data-nav-toggle] {
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sh-accent);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

/* Mobile nav menu slide */
[data-nav-menu] {
  animation: sh-slide-down 0.25s ease both;
}
@keyframes sh-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stats band subtle inner glow */
#features .bg-primary {
  background-image: linear-gradient(120deg, #0057b8 0%, #0057b8 55%, #00b4d8 140%);
}

/* Footer link underline flourish */
footer a {
  text-underline-offset: 4px;
}

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