/* ==========================================================================
   Spaxec Solutions — Design System
   Tokens pulled directly from the brand logo: navy / off-white / gold / teal.
   Poppins (800) for display, Inter for body — matching the logo wordmark.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* ---- Brand colors (extracted from the neon-loft reference photo) ---- */
  --navy:        #100825;
  --navy-raised: #260D4D;
  --navy-line:   #442A6F;
  --offwhite:    #F1ECFB;
  --offwhite-2:  #DCD5F5;
  --gold:        #E76EEC;
  --gold-bright: #F19AF4;
  --teal:        #7B3FE4;
  --teal-bright: #AB8EF1;
  --violet:      #7B3FE4;
  --violet-tint: #F3E9FA;

  /* ---- Text ---- */
  --ink:         #100825;   /* body text on light sections */
  --ink-soft:    #5B4B7A;   /* muted text on light sections */
  --paper-soft:  #B9AFD1;   /* muted text on dark sections */

  /* ---- Type ---- */
  --font-display: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

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

  /* ---- Radius / shadow / motion ---- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 60px -20px rgba(16, 8, 37, 0.35);
  --shadow-gold: 0 10px 30px -8px rgba(231, 110, 236, 0.45);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --container-w: 1280px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd{ margin: 0; }
ul[class], ol[class]{ list-style: none; margin: 0; padding: 0; }
img, picture, svg{ display: block; max-width: 100%; }
input, button, textarea, select{ font: inherit; color: inherit; }
button{ cursor: pointer; }
a{ color: inherit; text-decoration: none; }

body{
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible{
  outline: 3px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: var(--navy);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus{
  left: var(--sp-4);
  top: var(--sp-4);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, .h1, .h2, .h3, .h4{
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1, .h1{ font-size: clamp(2.4rem, 5vw, 4.25rem); letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.hero-heading{ font-size: clamp(1.6rem, 2.2vw, 1.875rem); }
.hero p.lead{ font-size: 0.906rem; max-width: 32ch; }
h2, .h2{ font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: 0.75rem; }
h3, .h3{ font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 0.5rem; }
h4, .h4{ font-size: 1.125rem; margin-bottom: 0.5rem; }

p{ max-width: 62ch; color: var(--ink-soft); margin-bottom: 1rem; }
p.lead{ font-size: 1.2rem; color: var(--ink-soft); max-width: 48ch; }
.section--dark p:not(.lead):not(.eyebrow), .section--dark p.lead, .page-intro p:not(.lead):not(.eyebrow), .page-intro p.lead{ color: var(--paper-soft); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.section--dark .eyebrow, .page-intro .eyebrow{ color: var(--teal-bright); }
.eyebrow::before{
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  display: inline-block;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container{
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 768px){ .container{ padding-inline: var(--sp-7); } }

.section{ padding-block: var(--sp-9); }
.section--tight{ padding-block: var(--sp-7); }
.section--dark{ background: var(--navy); color: var(--offwhite); }
.section--light{ background: var(--offwhite); color: var(--ink); }
.section--raised{ background: var(--navy-raised); color: var(--offwhite); }

.stack{ display: flex; flex-direction: column; }
.cluster{ display: flex; flex-wrap: wrap; align-items: center; }

.grid{ display: grid; gap: var(--sp-6); }
.grid--tight{ gap: 26px; }
.grid--2{ grid-template-columns: repeat(1, 1fr); }
.grid--3{ grid-template-columns: repeat(1, 1fr); }
.grid--4{ grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px){
  .grid--2{ grid-template-columns: repeat(2, 1fr); }
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px){
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
  .grid--4{ grid-template-columns: repeat(4, 1fr); }
}

.split{
  display: grid;
  gap: var(--sp-8);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px){
  .split{ grid-template-columns: 1.05fr 0.95fr; }
  .split--reverse{ grid-template-columns: 0.95fr 1.05fr; }
  .split--reverse > *:first-child{ order: 2; }
  .split--aside-fixed{ grid-template-columns: 1fr 320px; }
  .split--card-fixed-left{ grid-template-columns: 420px 1fr; }
  .split--home-hero{ grid-template-columns: 1.2fr 0.8fr; }
  .split--home-hero p.lead{ max-width: 52ch; }
}

/* Checklist used inside illustrated feature-cards */
.feature-card-body .checklist{ display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-2); }
.feature-card-body .checklist li{ display: flex; gap: var(--sp-3); align-items: flex-start; font-size: 0.875rem; color: var(--ink); }
.feature-card-body .checklist .tick{ color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* Scoped-compact heading, used where a section deliberately matches a denser reference layout */
.heading--compact{ font-size: 2rem !important; }

.visually-hidden{
  position: absolute !important;
  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(--sp-2);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary{
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover{
  transform: translateY(-2px) scale(1.02);
  background: var(--gold-bright);
}
.btn--ghost{
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.section--dark .btn--ghost, .page-intro .btn--ghost{ border-color: var(--teal-bright); color: var(--teal-bright); }
.btn--ghost:hover{ background: var(--teal); color: var(--offwhite); }
.section--dark .btn--ghost:hover, .page-intro .btn--ghost:hover{ background: var(--teal-bright); color: var(--navy); }
.btn--sm{ padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn--block{ width: 100%; }

/* ==========================================================================
   Site header / navigation
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 8, 37, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--navy-line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-3);
  gap: var(--sp-5);
}
.brand{ display: flex; align-items: center; gap: var(--sp-2); }
.brand img{ height: 46px; width: auto; }

.nav{ display: none; }
.nav ul{ display: flex; align-items: center; gap: var(--sp-6); }
.nav a{
  color: var(--offwhite);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-block: var(--sp-2);
}
.nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after{ right: 0; }
.nav a[aria-current="page"]{ color: var(--gold-bright); }

.has-dropdown{ position: relative; }
.dropdown{
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-raised);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  min-width: 240px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a{ display: block; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); font-weight: 500; }
.dropdown a::after{ display: none; }
.dropdown a:hover{ background: rgba(231,110,236,0.12); color: var(--gold-bright); }

.nav-cta{ display: none; }

.nav-toggle{
  display: inline-flex;
  background: transparent;
  border: none;
  color: var(--offwhite);
  padding: var(--sp-2);
}
.nav-toggle svg{ width: 26px; height: 26px; }

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

/* Mobile nav panel */
.mobile-nav{
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 200;
  padding: var(--sp-6) var(--sp-5);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}
.mobile-nav[data-open="true"]{ transform: translateX(0); }
.mobile-nav .container{ padding: 0; }
.mobile-nav-top{ display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-7); }
.mobile-nav ul{ display: flex; flex-direction: column; gap: var(--sp-2); }
.mobile-nav a{
  display: block;
  color: var(--offwhite);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--navy-line);
}
.mobile-nav .sub-list{ padding-left: var(--sp-4); }
.mobile-nav .sub-list a{ font-size: 1rem; font-weight: 500; color: var(--paper-soft); border-bottom: none; padding: var(--sp-2) 0; }
.mobile-nav-cta{ margin-top: var(--sp-6); }
@media (min-width: 960px){ .mobile-nav{ display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  background: var(--navy);
  color: var(--offwhite);
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-9) var(--sp-8);
}
.hero .split{ position: relative; z-index: 2; }
.hero-visual{ position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.hero-stats{
  display: flex;
  gap: var(--sp-7);
  margin-top: var(--sp-7);
  flex-wrap: wrap;
}
.hero-stat b{ display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-bright); }
.hero-stat span{ font-size: 0.85rem; color: var(--paper-soft); }
.hero-actions{ display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-6); }

/* Hero side-card: illustrated dark card used in place of a plain graphic
   when the hero needs to make a "who this is for" style point */
.hero-side-card{
  background: var(--navy-raised);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  max-width: 380px;
  margin-inline: auto;
}
.hero-side-card img{ width: 100%; border-radius: var(--radius-sm); margin-bottom: var(--sp-4); display: block; }
.hero-side-card h3{ color: var(--offwhite); font-size: 1rem; margin-bottom: var(--sp-3); }
.hero-side-card ul{ display: flex; flex-direction: column; gap: var(--sp-3); }
.hero-side-card li{ display: flex; gap: var(--sp-2); align-items: flex-start; font-size: 0.85rem; color: var(--paper-soft); }
.hero-side-card li .tick{ color: var(--gold); flex-shrink: 0; }

/* Orbit signature graphic */
.orbit-system{ width: 100%; max-width: 440px; }
.orbit-ring{ fill: none; stroke: var(--gold); stroke-width: 2.5; opacity: 0.55; }
.orbit-ring--inner{ stroke: var(--teal-bright); opacity: 0.4; }

/* Interactive service-page orbit graphic: core pulses continuously,
   satellites orbit continuously clockwise (matching the animated logo's
   ring), each counter-rotating around its own exact center so the icon
   inside stays upright while its position travels around the ring */
.orbit-svg{ width: 100%; max-width: 320px; overflow: visible; }
.orbit-core{
  transform-box: fill-box; transform-origin: center;
  animation: orbit-pulse 3.2s ease-in-out infinite;
}
@keyframes orbit-pulse{
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.orbit-satellites{
  transform-origin: 160px 160px;
  animation: orbit-spin-cw 18s linear infinite;
  animation-play-state: paused;
}
.orbit-satellite{
  animation: orbit-spin-ccw 18s linear infinite;
  animation-play-state: paused;
}
.hero-visual:hover .orbit-satellites,
.hero-visual:hover .orbit-satellite{
  animation-play-state: running;
}
@keyframes orbit-spin-cw{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
@keyframes orbit-spin-ccw{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce){
  .orbit-core, .orbit-satellites, .orbit-satellite{ animation: none; }
}
.orbit-node{ fill: var(--gold); }
.orbit-node--teal{ fill: var(--teal-bright); }
.orbit-node--ghost{ fill: var(--offwhite); opacity: 0.55; }
.orbit-core{ fill: var(--navy-raised); stroke: var(--gold); stroke-width: 2; }
.spin-slow{ animation: spin 22s linear infinite; transform-origin: center; }
.spin-slow-rev{ animation: spin-rev 30s linear infinite; transform-origin: center; }
.spin-med{ animation: spin 14s linear infinite; transform-origin: center; }
@keyframes spin{ from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }
@keyframes spin-rev{ from{ transform: rotate(360deg);} to{ transform: rotate(0deg);} }

/* ==========================================================================
   Cards
   ========================================================================== */
.card{
  background: #fff;
  border: 1px solid var(--offwhite-2);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }
.section--dark .card, .section--raised .card, .page-intro .card{
  background: var(--navy-raised);
  border-color: var(--navy-line);
  color: var(--offwhite);
}
.card-icon{
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(231,110,236,0.12);
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.card-icon svg{ width: 26px; height: 26px; }
.card-icon--violet{ width: 42px; height: 42px; border-radius: 10px; background: var(--violet-tint); }
.card-icon--violet svg{ width: 20px; height: 20px; }
.card h3{ margin-bottom: var(--sp-2); }
.card p{ color: var(--ink-soft); font-size: 0.95rem; }
.section--dark .card p, .section--raised .card p, .page-intro .card p{ color: var(--paper-soft); }
.card .card-link, .feature-card-body .card-link{
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-4); font-weight: 700; color: var(--teal); font-size: 0.9rem;
}
.section--dark .card .card-link, .section--raised .card .card-link, .hero .card .card-link, .page-intro .card .card-link{
  color: var(--teal-bright);
}
.card .card-link svg, .feature-card-body .card-link svg{ width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.card .card-link:hover svg, .feature-card-body .card-link:hover svg, .feature-card:hover .card-link svg{ transform: translateX(4px); }

/* Illustrated feature cards (image panel + tag + heading + copy) */
.feature-card{
  background: #fff;
  border: 1px solid var(--offwhite-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.feature-card-image{
  width: 100%;
  aspect-ratio: 300 / 190;
  background: linear-gradient(135deg, var(--offwhite-2), var(--offwhite));
}
.feature-card-image--wide{ aspect-ratio: 300 / 170; }
.feature-card-image--map{ aspect-ratio: 380 / 170; }
.feature-card-image--hero{ aspect-ratio: 16 / 9; }
.feature-card-image img{ width: 100%; height: 100%; display: block; }
.feature-card-body{ padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.feature-card-body--roomy{ padding: 28px; }
.feature-card-body.feature-card-body--roomy h3{ font-size: 1.3125rem; }
.grid--narrow{ max-width: 1000px; margin-inline: auto; }
.feature-tag{
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--violet);
  background: var(--violet-tint);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-4);
}
.feature-card-body h3{ margin-bottom: var(--sp-2); font-size: 1.19rem; }
.feature-card-body p{ font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* Icon-illustrated flow steps (used only where content is a real sequence) */
.flow{ display: flex; flex-direction: column; }
.flow-step{
  display: flex; gap: var(--sp-6); align-items: flex-start;
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--offwhite-2);
}
.section--dark .flow-step, .page-intro .flow-step{ border-color: var(--navy-line); }
.flow-step:last-child{ border-bottom: none; }
.flow-step img{ width: 68px; height: 68px; flex-shrink: 0; }
.flow-step h3{ margin-bottom: var(--sp-2); }
.flow-step p{ color: var(--ink-soft); max-width: 64ch; }
.section--dark .flow-step p, .page-intro .flow-step p{ color: var(--paper-soft); }
@media (max-width: 560px){
  .flow-step{ gap: var(--sp-4); }
  .flow-step img{ width: 52px; height: 52px; }
}

/* Badges / trust chips */
.chip-row{ display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.chip{
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.85rem;
  font-weight: 600;
}
.section--light .chip{ background: rgba(16,8,37,0.05); border-color: rgba(16,8,37,0.1); }

/* Trust badges: white pill with icon, distinct from .chip's translucent style */
.trust-badge{
  display: inline-flex; align-items: center; gap: 7px;
  background: #FFFFFF;
  border: 1px solid var(--offwhite-2);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
.trust-badge svg{ flex-shrink: 0; }

/* Founder note: accented block quote style */
.founder-note{
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin-top: var(--sp-6);
}
.founder-note p{ color: var(--ink); font-weight: 500; }

/* Testimonial / quote */
.quote{
  border-left: 4px solid var(--gold);
  padding-left: var(--sp-6);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}
.quote-attrib{ margin-top: var(--sp-4); font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.section--dark .quote-attrib, .page-intro .quote-attrib{ color: var(--paper-soft); }

/* Accordion (FAQ) */
.accordion-item{ border-bottom: 1px solid var(--offwhite-2); }
.section--dark .accordion-item, .page-intro .accordion-item{ border-color: var(--navy-line); }
.accordion-item summary{
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.accordion-item summary::-webkit-details-marker{ display: none; }
.accordion-item summary .plus{
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  position: relative;
}
.accordion-item summary .plus::before, .accordion-item summary .plus::after{
  content: ""; position: absolute; background: var(--gold);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.accordion-item summary .plus::before{ width: 12px; height: 2px; }
.accordion-item summary .plus::after{ width: 2px; height: 12px; transition: transform 0.2s var(--ease); }
.accordion-item[open] summary .plus::after{ transform: translate(-50%,-50%) rotate(90deg) scaleY(0); }
.accordion-item .accordion-body{ padding-bottom: var(--sp-5); color: var(--ink-soft); max-width: 68ch; }
.section--dark .accordion-item .accordion-body, .page-intro .accordion-item .accordion-body{ color: var(--paper-soft); }

/* Blog cards */
.blog-card img{ border-radius: var(--radius-md); aspect-ratio: 16/10; object-fit: cover; margin-bottom: var(--sp-4); background: var(--navy-raised); }

/* Single article page */
.post-back-link{
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600; color: var(--paper-soft);
  margin-bottom: var(--sp-4);
}
.post-back-link:hover{ color: var(--offwhite); }
.post-back-link svg{ width: 15px; height: 15px; transform: rotate(180deg); }
.post-meta-line{ display: flex; align-items: center; gap: var(--sp-3); font-size: 0.85rem; color: var(--paper-soft); margin-top: var(--sp-3); }
.post-meta-line .dot{ width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

.article-body{ font-size: 1.05rem; line-height: 1.75; }
.article-body h2{ font-size: 1.375rem; margin-top: 2.5rem; }
.article-body p{ margin-bottom: 1.25rem; max-width: 66ch; }
.article-body > p:first-of-type{ font-size: 1.15rem; color: var(--ink); }
.article-body ul, .article-body ol{ margin: 0 0 1.25rem; padding-left: 1.4rem; max-width: 66ch; }
.article-body li{ margin-bottom: 0.5rem; padding-left: 0.25rem; }
.article-body li::marker{ color: var(--teal); }
.article-body strong{ color: var(--ink); }
.post-disclaimer{ font-size: 0.85rem; color: var(--ink-soft); border-top: 1px solid var(--offwhite-2); padding-top: 1.5rem; margin-top: 2rem; max-width: 66ch; }
.post-hero-image{ width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); display: block; margin-bottom: var(--sp-6); box-shadow: var(--shadow-soft); }

.legal-table{ width: 100%; border-collapse: collapse; margin: var(--sp-5) 0; font-size: 0.9rem; }
.legal-table th, .legal-table td{ text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--offwhite-2); vertical-align: top; }
.legal-table th{ font-family: var(--font-display); font-weight: 700; color: var(--ink); background: var(--offwhite); }
.legal-table td{ color: var(--ink-soft); }
.legal-table code{ background: var(--offwhite); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.85em; }

.legal-layout{ display: grid; grid-template-columns: 1fr; gap: var(--sp-7); align-items: start; }
@media (min-width: 900px){ .legal-layout{ grid-template-columns: 220px 1fr; } }
.legal-toc{ display: flex; flex-direction: column; gap: 0.15rem; }
@media (min-width: 900px){ .legal-toc{ position: sticky; top: var(--sp-7); } }
.legal-toc-title{ font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: var(--sp-3); }
.legal-toc a{ display: block; padding: 0.45rem 0 0.45rem 0.85rem; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); border-left: 2px solid var(--offwhite-2); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.legal-toc a:hover{ color: var(--teal); border-left-color: var(--teal); }
.legal-content{ background: #fff; border: 1px solid var(--offwhite-2); border-radius: var(--radius-lg); padding: var(--sp-8); }
.legal-content h2{ scroll-margin-top: 6rem; font-size: 1.375rem; }
.legal-content > h2:first-child{ margin-top: 0; }
.legal-meta-row{ display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
@media (max-width: 640px){ .legal-content{ padding: var(--sp-6); } }

.related-card{
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid var(--offwhite-2); border-radius: var(--radius-md);
  overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.related-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.related-card img{ width: 100%; aspect-ratio: 300/190; display: block; }
.related-card-body{ padding: var(--sp-5); }
.related-card-body .blog-meta{ margin-bottom: var(--sp-2); }
.related-card-body h4{ font-size: 1rem; margin-bottom: 0; }
.blog-meta{ display: flex; gap: var(--sp-3); font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: var(--sp-2); }

/* Forms */
.form-row{ display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.form-row label{ font-weight: 700; font-size: 0.85rem; }
.form-row input, .form-row textarea, .form-row select{
  padding: var(--sp-3);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--offwhite-2);
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
}
.section--dark .form-row input, .section--dark .form-row textarea, .section--dark .form-row select, .page-intro .form-row input, .page-intro .form-row textarea, .page-intro .form-row select{
  background: var(--navy-raised); border-color: var(--navy-line); color: var(--offwhite);
}
.form-row input:focus, .form-row textarea:focus{ border-color: var(--gold); }
.form-row .error-msg{ color: #C4432B; font-size: 0.85rem; display: none; }
.form-row[data-invalid="true"] input,
.form-row[data-invalid="true"] textarea{ border-color: #C4432B; }
.form-row[data-invalid="true"] .error-msg{ display: block; }
.form-status{ margin-top: var(--sp-4); font-weight: 600; padding: var(--sp-4); border-radius: var(--radius-sm); display: none; }
.form-status[data-state="success"]{ display: block; background: rgba(123,63,228,0.14); color: var(--teal); }
.form-status[data-state="error"]{ display: block; background: rgba(196,67,43,0.12); color: #C4432B; }
.form-status[data-state="loading"]{ display: block; background: rgba(16,8,37,0.06); color: var(--ink-soft); }

/* Arithmetic spam-check box */
.captcha-box{
  background: var(--offwhite-2);
  border: 1px dashed #C9AEE8;
  border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-5);
}
.captcha-box label{
  display: flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 700; color: var(--ink);
  margin-bottom: var(--sp-3);
}
.captcha-box .captcha-q{ color: var(--teal); }
.captcha-box input{
  width: 150px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--offwhite-2);
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
}
.captcha-box input:focus{ border-color: var(--gold); }
.captcha-msg{ font-size: 0.8rem; font-weight: 600; margin-top: var(--sp-3); display: none; }
.captcha-msg[data-state="error"]{ display: block; color: #C4432B; }
.captcha-msg[data-state="success"]{ display: block; color: var(--teal); }
.captcha-box input[data-invalid="true"]{ border-color: #C4432B; }
.captcha-box input[data-valid="true"]{ border-color: var(--teal); }
.honeypot-field{ position: absolute; left: -9999px; top: -9999px; }

/* Footer */
.site-footer{ background: var(--navy); color: var(--paper-soft); padding-block: var(--sp-8) var(--sp-6); }
.site-footer p{ color: var(--paper-soft); }
.footer-grid{ display: grid; gap: var(--sp-7); grid-template-columns: 1fr; margin-bottom: var(--sp-7); }
@media (min-width: 768px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4{ color: var(--offwhite); margin-bottom: var(--sp-4); font-size: 1rem; }
.footer-grid ul{ display: flex; flex-direction: column; gap: var(--sp-3); font-size: 0.9rem; }
.footer-grid a:hover{ color: var(--gold-bright); }
.footer-bottom{
  border-top: 1px solid var(--navy-line);
  padding-top: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  justify-content: space-between;
  font-size: 0.82rem;
}
.footer-bottom ul{ display: flex; gap: var(--sp-5); flex-wrap: wrap; }

/* Scroll reveal */
[data-reveal]{ opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* Utility */
.text-center{ text-align: center; }
.mx-auto{ margin-inline: auto; }
.mt-2{ margin-top: var(--sp-2); } .mt-4{ margin-top: var(--sp-4); } .mt-6{ margin-top: var(--sp-6); } .mt-7{ margin-top: var(--sp-7); }
.mb-2{ margin-bottom: var(--sp-2); } .mb-4{ margin-bottom: var(--sp-4); } .mb-6{ margin-bottom: var(--sp-6); } .mb-7{ margin-bottom: var(--sp-7); } .mb-8{ margin-bottom: var(--sp-8); }
.max-w-prose{ max-width: 68ch; }
.gold{ color: var(--gold); }
.teal{ color: var(--teal); }
.section--dark .teal, .page-intro .teal{ color: var(--teal-bright); }

/* Breadcrumb-esque page intro (used on inner pages instead of a second hero) */
.page-intro{ background: var(--navy); color: var(--offwhite); padding-block: var(--sp-8) var(--sp-7); }
.page-intro .eyebrow{ margin-bottom: var(--sp-4); }
.page-intro h1{ font-size: clamp(1.6rem, 2.2vw, 1.875rem); margin-bottom: var(--sp-4); }
.page-intro p.lead{ font-size: 0.906rem; }
.page-intro .split{ align-items: center; }

/* 404 / simple centered page */
.center-page{ min-height: 50vh; display: flex; align-items: center; justify-content: center; text-align: center; }
