/* ==========================================================================
   Zyphix United website styles.

   BRAND COLOURS: change the values in the two blocks below (light and dark)
   and the whole site follows. No external fonts or files are loaded.
   ========================================================================== */

:root {
  /* Brand: taken from the Zyphix United logo (navy #142238, gold #D7AA49, white).
     --accent is the logo gold, used for filled things such as buttons.
     --brand is the accent for text and outlines; on the light theme it is a
     deeper gold so that it stays readable on a pale background. */
  --accent: #d7aa49;
  --accent-2: #e8c877;
  --brand: #7d5a0f;
  --brand-strong: #5f4409;
  --on-brand: #142238;

  /* Light theme (default when the visitor's device prefers light) */
  --bg: #f6f7fa;
  --bg-alt: #eceff5;
  --surface: #ffffff;
  --surface-2: #f2f4f9;
  --border: #d8deea;
  --text: #142238;
  --muted: #4b5870;
  --glow-a: rgba(215, 170, 73, 0.22);
  --glow-b: rgba(20, 34, 56, 0.1);
  --grid-line: rgba(20, 34, 56, 0.05);
  --shadow: 0 1px 2px rgba(20, 34, 56, 0.05), 0 12px 32px -12px rgba(20, 34, 56, 0.18);
  --header-bg: rgba(246, 247, 250, 0.85);
  --ok: #0f7a4d;
  --warn-bg: #fff4d6;
  --warn-text: #6b4a00;
  --info-bg: #e4e9f3;
  --info-text: #22375a;
  --danger: #b42318;
  --danger-bg: #fdecea;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-small: 10px;
  --container: 1160px;
  --header-height: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #d7aa49;
    --accent-2: #ebd5a8;
    --brand: #d7aa49;
    --brand-strong: #e8c877;
    --on-brand: #142238;
    --bg: #0c1627;
    --bg-alt: #101d33;
    --surface: #142238;
    --surface-2: #1a2b46;
    --border: #2a3a57;
    --text: #eef2fa;
    --muted: #a6b1c6;
    --glow-a: rgba(215, 170, 73, 0.14);
    --glow-b: rgba(74, 108, 170, 0.22);
    --grid-line: rgba(233, 238, 250, 0.045);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --header-bg: rgba(12, 22, 39, 0.8);
    --ok: #4ade80;
    --warn-bg: #3a2e0a;
    --warn-text: #ffd978;
    --info-bg: #1b2c4a;
    --info-text: #bfd0ee;
    --danger: #ff8a80;
    --danger-bg: #3a1512;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --accent: #d7aa49;
  --accent-2: #ebd5a8;
  --brand: #d7aa49;
  --brand-strong: #e8c877;
  --on-brand: #142238;
  --bg: #0c1627;
  --bg-alt: #101d33;
  --surface: #142238;
  --surface-2: #1a2b46;
  --border: #2a3a57;
  --text: #eef2fa;
  --muted: #a6b1c6;
  --glow-a: rgba(215, 170, 73, 0.14);
  --glow-b: rgba(74, 108, 170, 0.22);
  --grid-line: rgba(233, 238, 250, 0.045);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(12, 22, 39, 0.8);
  --ok: #4ade80;
  --warn-bg: #3a2e0a;
  --warn-text: #ffd978;
  --info-bg: #1b2c4a;
  --info-text: #bfd0ee;
  --danger: #ff8a80;
  --danger-bg: #3a1512;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3,
.h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-strong);
}

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

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-brand);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-brand);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.25em;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn .icon {
  transition: transform 0.18s ease;
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-brand);
  box-shadow: 0 8px 24px -12px var(--accent);
}

.btn-primary:hover {
  color: var(--on-brand);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px var(--accent);
}

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

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.95rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
}

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

.brand:hover {
  color: var(--text);
}

.brand-logo {
  display: block;
  flex: none;
  max-width: none;
}

.page-hero-small .lead {
  margin-bottom: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: flex;
  gap: 26px;
}

.site-nav ul a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 550;
  text-decoration: none;
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav ul a:hover,
.site-nav ul a.is-active {
  color: var(--text);
}

.site-nav ul a:hover::after,
.site-nav ul a.is-active::after {
  transform: scaleX(1);
}

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

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--brand);
}

.theme-icon-light {
  display: none;
}

:root[data-theme="dark"] .theme-icon-dark {
  display: none;
}

:root[data-theme="dark"] .theme-icon-light {
  display: inline-flex;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-dark {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-icon-light {
    display: inline-flex;
  }
}

.nav-toggle {
  display: none;
}

@media (max-width: 940px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav ul a {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .js .site-nav ul a::after {
    display: none;
  }

  /* Without JavaScript the menu simply wraps under the logo. */
  .header-inner {
    flex-wrap: wrap;
  }

  html:not(.js) .site-nav {
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
  }

  html:not(.js) .site-nav ul {
    flex-wrap: wrap;
    gap: 6px 18px;
  }
}

/* ------------------------------------------------------------------ hero */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  padding: clamp(64px, 10vw, 128px) 0 clamp(64px, 9vw, 112px);
}

.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.glow-a {
  top: -220px;
  left: -160px;
  width: 640px;
  height: 640px;
  background: var(--glow-a);
  animation: drift 18s ease-in-out infinite alternate;
}

.glow-b {
  right: -180px;
  bottom: -260px;
  width: 620px;
  height: 620px;
  background: var(--glow-b);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(60px, 40px, 0) scale(1.12);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero-copy h1 {
  margin-bottom: 0.45em;
  background: linear-gradient(120deg, var(--text) 40%, var(--brand) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.97rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points .icon {
  color: var(--ok);
}

.hero-stack {
  display: grid;
  gap: 14px;
}

.hero-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}

.hero-chip strong {
  display: block;
  line-height: 1.25;
}

.hero-chip span span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-chip-1 {
  margin-right: 18%;
}

.hero-chip-2 {
  margin-left: 14%;
  animation-delay: -1.4s;
}

.hero-chip-3 {
  margin-right: 8%;
  margin-left: 4%;
  animation-delay: -2.8s;
}

.hero-chip-4 {
  margin-left: 20%;
  animation-delay: -4.2s;
}

.hero-chip-5 {
  margin-right: 22%;
  animation-delay: -5.6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Hero entrance (plays once on load, CSS only). */
.hero-in {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-in-1 {
  animation-delay: 0.05s;
}

.hero-in-2 {
  animation-delay: 0.14s;
}

.hero-in-3 {
  animation-delay: 0.24s;
}

.hero-in-4 {
  animation-delay: 0.34s;
}

.hero-in-5 {
  animation-delay: 0.46s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }
}

/* -------------------------------------------------------------- sections */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-tight {
  padding: clamp(40px, 6vw, 72px) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* Scroll reveal. Content is only hidden when JavaScript is running, so the
   site reads fine without it. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.09s;
}

.js .reveal[data-delay="2"] {
  transition-delay: 0.18s;
}

.js .reveal[data-delay="3"] {
  transition-delay: 0.27s;
}

/* ----------------------------------------------------------------- cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.product-card,
.js .product-card.reveal.is-visible {
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.js .product-card.reveal.is-visible:hover,
html:not(.js) .product-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  transition-delay: 0s;
}

.product-card:focus-within {
  border-color: var(--brand);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card-category {
  margin-bottom: 4px !important;
  font-size: 0.8rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-link {
  color: var(--text);
  text-decoration: none;
}

.card-link:hover {
  color: var(--brand);
}

/* Makes the whole card clickable while keeping one real link for assistive tech. */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--brand);
  font-weight: 650;
  font-size: 0.97rem;
}

.card-more .icon {
  transition: transform 0.2s ease;
}

.product-card:hover .card-more .icon {
  transform: translateX(4px);
}

.service-card .icon-tile {
  margin-bottom: 18px;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: var(--brand);
  background: linear-gradient(135deg, var(--glow-a), var(--glow-b));
  border: 1px solid var(--border);
}

.icon-tile .icon {
  width: 24px;
  height: 24px;
}

.icon-tile-small {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.icon-tile-small .icon {
  width: 20px;
  height: 20px;
}

.icon-tile-large {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.icon-tile-large .icon {
  width: 32px;
  height: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-coming-soon {
  background: var(--info-bg);
  color: var(--info-text);
}

.badge-in-development,
.badge-work-in-progress {
  background: var(--warn-bg);
  color: var(--warn-text);
}

/* ------------------------------------------------------------------- why */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.pillar .icon-tile {
  margin-bottom: 18px;
}

.pillar p {
  color: var(--muted);
  margin: 0;
}

.steps-block {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--border);
}

.steps-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 28px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.step {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-number {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ----------------------------------------------------------------- about */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
}

.about-text p {
  font-size: 1.12rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------- contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-list .icon {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  color: var(--brand);
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-card {
  padding: clamp(22px, 3.5vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-wide {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 650;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--glow-a);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--danger);
}

.form-alert {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-small);
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 550;
}

.form-alert[hidden],
.field-error[hidden] {
  display: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.form-note {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-success {
  text-align: center;
  padding: 24px 8px;
}

.form-success:focus {
  outline: none;
}

.form-success .icon-large {
  width: 56px;
  height: 56px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--ok);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.form-success p {
  color: var(--muted);
}

/* Honeypot: moved off screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------- product pages */
.breadcrumb {
  margin-bottom: 28px;
  font-size: 0.92rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border);
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.page-hero-head h1 {
  margin: 0;
}

.page-hero-head .eyebrow {
  margin-bottom: 8px;
}

.page-hero-head .badge {
  margin-left: 8px;
  letter-spacing: 0.06em;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-head {
    align-items: flex-start;
  }
}

.product-body p {
  color: var(--muted);
  font-size: 1.08rem;
}

.product-body .best-for {
  color: var(--text);
}

.notice {
  padding: 14px 18px;
  border-radius: var(--radius-small);
  background: var(--info-bg);
  color: var(--info-text) !important;
  font-size: 1rem !important;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.feature {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.feature-check .icon {
  width: 16px;
  height: 16px;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-inner h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.cta-inner .lead {
  margin: 0;
}

.cta-band {
  padding: clamp(40px, 6vw, 72px) 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.mini-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  transition: border-color 0.2s ease;
}

.mini-card:hover {
  border-color: var(--brand);
}

.mini-card > div {
  flex: 1;
  min-width: 0;
}

.mini-card .card-link {
  display: block;
  font-weight: 650;
  line-height: 1.3;
}

.mini-meta {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ----------------------------------------------------------------- prose */
.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 1.8em;
  font-size: 1.4rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
}

.prose-meta {
  margin-top: 2.5em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  padding: clamp(48px, 7vw, 80px) 0 28px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 0.97rem;
}

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

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 30ch;
}

.footer-brand .footer-meta {
  margin-top: 6px;
  font-size: 0.9rem;
}

.footer-heading {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer li a,
.footer-bottom a {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer li a:hover,
.footer-bottom a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------------------------------------------------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero-bg,
  .hero-visual,
  .form-card,
  .nav-toggle {
    display: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
