
/* =========================================================================
   InnPulse — landing.css
   A clean, professional, accessible landing page theme.
   - Design system with CSS variables
   - Sticky glass header, refined typography
   - Responsive grid & layout utilities
   - Cards, steps, timeline, FAQ, forms, modals
   - Motion that respects prefers-reduced-motion
   ====================================================================== */

/* ---------------------------
   1) Root & Reset
---------------------------- */
:root{
  /* Brand */
  --brand: #2563eb;          /* Azure blue */
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --brand-soft: rgba(37,99,235,.10);

  --accent: #22c55e;         /* Mint green */

  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f8fafc;         /* slate-50 */
  --bg-soft: #f1f5f9;        /* slate-100 */
  --text: #0f172a;           /* slate-900 */
  --text-muted: #64748b;     /* slate-500 */
  --border: #e5e7eb;         /* gray-200 */

  /* Surfaces */
  --surface: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(2,6,23,.08);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.06), 0 24px 48px rgba(2,6,23,.14);

  /* Radii */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  /* Spacing scale */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
  --leading: 1.6;
  --h1: clamp(1.75rem, 1.2rem + 3vw, 3.25rem);
  --h2: clamp(1.4rem, 1.1rem + 2vw, 2.25rem);
  --h3: clamp(1.15rem, 1rem + 1vw, 1.5rem);
  --lead: clamp(1rem, .98rem + .6vw, 1.25rem);

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --speed-1: 120ms;
  --speed-2: 200ms;
  --speed-3: 380ms;
}

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

html,body{ height: 100%; }

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

body{
  margin: 0;
  padding-top: 64px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: var(--leading);
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography responsive improvements */
@media (max-width: 768px){
  body{
    font-size: 15px;
    line-height: 1.65;
    padding-top: 56px;
  }
}
@media (max-width: 480px){
  body{
    font-size: 14px;
    line-height: 1.7;
    padding-top: 52px;
  }
}

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

svg.icon{
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--brand);
}

h1,h2,h3{ line-height: 1.25; margin: 0 0 .6em; }
h1{ font-size: var(--h1); letter-spacing: -.01em; }
h2{ font-size: var(--h2); letter-spacing: -.01em; }
h3{ font-size: var(--h3); letter-spacing: -.005em; }

p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 2px; }

/* Screen-reader only */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link{
  position: absolute;
  top: -40px; left: 8px;
  background: var(--brand);
  color: #fff; padding: .6rem 1rem;
  border-radius: 8px;
  transition: transform var(--speed-2) var(--ease);
  transform: translateY(-8px);
  z-index: 1000;
}
.skip-link:focus{ top: 8px; transform: translateY(0); outline: 0; text-decoration: none; }

/* ---------------------------
   2) Layout
---------------------------- */
.container{
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* Container responsive improvements */
@media (max-width: 480px){
  .container{
    width: min(1200px, 95vw);
  }
}

.section{
  padding: var(--space-16) 0;
}
.section + .section{ padding-top: var(--space-20); }

/* Responsive section padding */
@media (max-width: 768px){
  .section{
    padding: var(--space-12) 0;
  }
  .section + .section{ padding-top: var(--space-16); }
}
@media (max-width: 480px){
  .section{
    padding: var(--space-10) 0;
  }
  .section + .section{ padding-top: var(--space-12); }
}

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

.section-head{
  margin-bottom: var(--space-10);
  text-align: center;
}
.section-head .subhead{
  color: var(--text-muted);
  margin-top: .5rem;
  font-weight: 500;
}

/* Section head responsive improvements */
@media (max-width: 768px){
  .section-head{
    margin-bottom: var(--space-8);
  }
  .section-head h2{
    line-height: 1.3;
  }
}
@media (max-width: 480px){
  .section-head{
    margin-bottom: var(--space-6);
  }
}

/* Utilities */
.muted{ color: var(--text-muted); }
.lead{ font-size: var(--lead); color: #0b1324; opacity: .9; }
.center{ text-align: center; }
.mt-24{ margin-top: var(--space-24); }

.grid{
  display: grid;
  gap: var(--space-8);
}
.grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 992px){
  .grid-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
}

/* ---------------------------
   3) Header & Navigation
---------------------------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(148,163,184,.16);
  transition: box-shadow var(--speed-2) var(--ease), background var(--speed-2) var(--ease);
}
.site-header.scrolled{
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.86);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand .icon{ color: var(--brand); }
.brand-logo{
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  /* High DPI support */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Responsive logo sizing */
@media (max-width: 768px){
  .brand-logo{
    width: 28px;
    height: 28px;
  }
  .brand span{
    font-size: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi){
  .brand-logo{
    image-rendering: auto;
  }
}
.brand span{ font-size: 1.1rem; }

/* Hamburger */
.nav-toggle{
  display: none;
  border: 0; background: transparent;
  width: 40px; height: 36px; padding: 0 6px;
  border-radius: 10px;
}
.nav-toggle:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after{
  content: ""; display: block; height: 2px;
  background: #0b1324; border-radius: 2px;
  transition: transform var(--speed-2) var(--ease), opacity var(--speed-2) var(--ease);
}
.nav-toggle .bars{ width: 100%; }
.nav-toggle .bars::before{ width: 80%; margin-top: 8px; }
.nav-toggle .bars::after{ width: 60%; margin-top: 8px; }

/* Primary Nav */
.nav{
  display: flex; align-items: center; gap: 1rem;
}
.nav-link{
  padding: .5rem .6rem;
  border-radius: 8px;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}
.nav-link:hover{ background: var(--bg-soft); text-decoration: none; }

.nav-cta{
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem .9rem;
  border-radius: 12px;
  background: var(--brand);
  color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,99,235,.25);
}
.nav-cta:hover{ background: var(--brand-600); text-decoration: none; }

/* Mobile nav */
@media (max-width: 900px){
  .nav-toggle{ display: inline-block; }
  .nav{
    position: fixed;
    top: 64px; right: 16px; left: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .5rem;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
  }
  .nav.open{ display: flex; }
  .nav-link, .nav-cta{ width: 100%; text-align: center; }
}

/* ---------------------------
   4) Hero
---------------------------- */
.hero{
  position: relative;
  background: var(--hero-bg, #fff);
  padding: clamp(3rem, 8vw, 7rem) 0;
}
.hero-inner{ display: grid; grid-template-columns: 1.1fr; gap: var(--space-8); }
.hero-text h1{ font-weight: 800; }
.hero .lead{ color: #1f2937; max-width: 62ch; }
.hero-actions{ display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; align-items: center; }

/* Hero responsive improvements */
@media (max-width: 768px){
  .hero{
    padding: clamp(2rem, 6vw, 4rem) 0;
  }
  .hero .lead{ max-width: none; }
  .hero-actions{ gap: .6rem; }
}
@media (max-width: 480px){
  .hero{
    padding: clamp(1.5rem, 4vw, 3rem) 0;
  }
  .hero-actions{
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
  }
  .hero-actions .btn{
    display: flex;
    justify-content: center;
    text-align: center;
  }
}

.hero-deco{
  position: absolute; inset: 0;
  pointer-events: none;
  background: none;
}

@media (min-width: 960px){
  .hero-inner{ grid-template-columns: 1.1fr .9fr; align-items: center; }
}

/* ---------------------------
   5) Components
---------------------------- */
/* Buttons */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; text-align: center;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--speed-1) var(--ease), background var(--speed-2) var(--ease), box-shadow var(--speed-2) var(--ease);
  will-change: transform;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,99,235,.25);
}
.btn-primary:hover{ background: var(--brand-600); text-decoration: none; }

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: #0f172a;
}
.btn-ghost:hover{ background: var(--bg-soft); }

.btn-block{ width: 100%; }

/* Button responsive improvements */
@media (max-width: 600px){
  .btn{
    padding: .85rem 1rem;
    font-size: .95rem;
  }
  .nav-cta{
    padding: .65rem .85rem;
    font-size: .9rem;
  }
}

/* Cards */
.card{
  background: var(--surface);
  border: 1px solid rgba(2,6,23,.06);
  border-radius: var(--radius);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  transition: transform var(--speed-3) var(--ease), box-shadow var(--speed-3) var(--ease);
  will-change: transform;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card h3{ margin-top: .6rem; }
.card .muted{ margin: .2rem 0 .6rem; }
.card-icon{
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft);
  display: grid; place-items: center;
  color: var(--brand);
}

/* Card expandable details — open by default on desktop */
.card-details{ margin-top: .4rem; }
.card-details summary{
  display: none;
  font-size: .9rem;
  color: #8e8ea0;
  text-decoration: underline;
  cursor: pointer;
  list-style: none;
  padding: 0;
}
.card-details summary::-webkit-details-marker{ display: none; }
.card-details summary::marker{ display: none; content: ''; }
.card-details summary:hover{ color: var(--brand); }
.card-details[open] summary{ margin-bottom: .4rem; }
.card-details p{ margin: 0; }

/* On mobile: collapse details, show "More" toggle */
@media (max-width: 768px){
  .card-details summary{ display: inline-block; }
}

/* Card responsive improvements */
@media (max-width: 768px){
  .card{
    padding: var(--space-6);
  }
}
@media (max-width: 480px){
  .card{
    padding: var(--space-5);
  }
  .card h3{
    font-size: 1.1rem;
  }
}

/* Stat cards */
.stat-card{
  background: #fff;
  border: 1px solid rgba(2,6,23,.06);
  border-radius: var(--radius);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--speed-3) var(--ease), box-shadow var(--speed-3) var(--ease);
}
.stat-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.stat-number{
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.stat-label{
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: .4rem 0 .8rem;
}
.stat-desc{
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 768px){
  .stat-card{ padding: var(--space-6); }
  .stat-number{ font-size: 2.8rem; }
  .stat-label{ font-size: 1rem; }
  .stat-desc{ font-size: .9rem; }
}
@media (max-width: 480px){
  .stat-number{ font-size: 2.2rem; }
  .stat-card{ padding: var(--space-5); }
  .stat-label{ font-size: .95rem; margin: .3rem 0 .6rem; }
  .stat-desc{ font-size: .85rem; line-height: 1.5; }
}

/* Quotes */
.quote{
  background: #fff;
  border: 1px solid rgba(2,6,23,.06);
  border-radius: var(--radius);
  padding: var(--space-8);
  box-shadow: var(--shadow);
}
.quote blockquote{
  margin: 0 0 .9rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.quote figcaption{
  display: flex; align-items: center; gap: .8rem;
  color: var(--text-muted);
}

/* Steps */
.steps{
  display: grid; gap: var(--space-6);
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin-bottom: var(--space-12);
}
.step{
  background: #fff;
  border: 1px solid rgba(2,6,23,.06);
  border-radius: var(--radius);
  padding: var(--space-8);
  box-shadow: var(--shadow);
}
.step-num{
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand);
  color: #fff; font-weight: 800; display: grid; place-items: center;
  margin-bottom: .8rem;
}
@media (max-width: 900px){
  .steps{ grid-template-columns: 1fr; }
}

/* Timeline */
.timeline{ margin-top: var(--space-6); }
.timeline h4{ margin-bottom: .8rem; }
.timeline-row{
  list-style: none; margin: 0; padding: 0;
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  align-items: start;
}
.timeline-row li{
  position: relative;
  background: #fff;
  border: 1px solid rgba(2,6,23,.06);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  transition: transform var(--speed-2) var(--ease), box-shadow var(--speed-2) var(--ease);
}
.timeline-row li:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.timeline-row .dot{
  position: absolute; top: -10px; left: 18px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 0 0 3px #e2e8f0;
}
.timeline-row .tl-title{ 
  font-weight: 700; 
  margin-bottom: .4rem; 
  color: var(--brand);
  font-size: .95rem;
}
.timeline-row .tl-text{ 
  color: var(--text-muted); 
  font-size: .9rem;
  line-height: 1.5;
}

/* Timeline responsive adjustments */
@media (max-width: 1100px){
  .timeline-row{
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
  }
}
@media (max-width: 900px){
  .timeline-row{
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: var(--space-4);
  }
  .timeline-row .tl-text{
    font-size: .85rem;
  }
}
@media (max-width: 600px){
  .timeline-row{
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .timeline-row li{
    padding: var(--space-5);
  }
  .timeline-row .dot{
    left: 16px;
  }
  .timeline-row .tl-title{
    font-size: .9rem;
  }
  .timeline-row .tl-text{
    font-size: .85rem;
    line-height: 1.4;
  }
}

/* Charts (Impact) */
.charts{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}
.chart-card{
  background: #fff;
  border: 1px solid rgba(2,6,23,.06);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}
.chart-head{ font-weight: 700; margin-bottom: .5rem; }
.charts canvas{ width: 100%; height: 260px; }

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

/* Department chips */
.dept-chips{
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center; margin-top: .6rem;
}
.dept-chips span{
  padding: .4rem .7rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: .9rem;
  color: #0f172a;
}

/* FAQ */
.faq{ max-width: 900px; margin: 0 auto; }
.faq-item{
  background: #fff;
  border: 1px solid rgba(2,6,23,.06);
  border-radius: var(--radius);
  padding: .25rem 1rem;
  box-shadow: var(--shadow);
}
.faq-item + .faq-item{ margin-top: .75rem; }

.faq-item summary{
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem 0;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary span{ flex: 1; }
.faq-item summary::after{
  content: "▸";
  transform: rotate(0deg);
  transition: transform var(--speed-2) var(--ease);
  color: var(--text-muted);
}
.faq-item[open] summary::after{ transform: rotate(90deg); }
.faq-item p{ margin: 0 0 1rem; color: var(--text-muted); }

/* Demo form */
.demo{
  background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%);
}
.demo-inner{
  display: grid; gap: var(--space-8);
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
}
@media (max-width: 900px){
  .demo-inner{ 
    grid-template-columns: 1fr; 
    gap: var(--space-6);
  }
}
@media (max-width: 600px){
  .demo-inner{ 
    gap: var(--space-5);
  }
}

.form{
  background: #fff;
  border: 1px solid rgba(2,6,23,.08);
  border-radius: var(--radius);
  padding: var(--space-8);
  box-shadow: var(--shadow);
}
.form-stack > * + *{ margin-top: var(--space-4); }
.field{
  display: grid; gap: .4rem;
}
.field + .field{ margin-top: var(--space-4); }
.field > span{ font-weight: 600; }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .8rem .9rem;
  font: inherit;
  background: #fff;
  transition: border-color var(--speed-2) var(--ease), box-shadow var(--speed-2) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

/* Form responsive improvements */
@media (max-width: 680px){
  .form{ padding: var(--space-6); }
  .form .grid{ gap: var(--space-4); }
  .form .grid + .grid{ margin-top: var(--space-4); }
  .form .grid + .field,
  .form .field + .btn{ margin-top: var(--space-4); }
  .field + .field{ margin-top: var(--space-3); }
}
@media (max-width: 600px){
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea{
    padding: .75rem .8rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
@media (max-width: 480px){
  .form{ padding: var(--space-5); }
}
textarea{ resize: vertical; }
input:focus, textarea:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,99,235,.14);
}
input.is-error, textarea.is-error{
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.15);
}
input.is-ok, textarea.is-ok{
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.hint{ min-height: 1.1em; font-size: .9rem; color: var(--text-muted); }
.hint.error{ color: #b91c1c; }

.privacy-note{
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: .6rem;
}

.alert{
  margin-top: .8rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  border: 1px solid;
}
.alert.success{
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.alert.error{
  color: #7f1d1d;
  background: #fef2f2;
  border-color: #fecaca;
}

/* ---------------------------
   6) Footer
---------------------------- */
.site-footer{
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer-inner{
  padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer .copy{ color: var(--text-muted); }
.site-footer .link{
  background: transparent; border: 0;
  padding: .4rem .6rem; border-radius: 8px;
  color: #0f172a; cursor: pointer;
}
.site-footer .link:hover{ background: var(--bg-soft); }

/* ---------------------------
   7) Modals
---------------------------- */
.modal{
  position: fixed; inset: 0;
  display: none;
  z-index: 200;
}
.modal.open{ display: block; }

.modal-backdrop{
  position: absolute; inset: 0;
  background: rgba(2,6,23,.64);
  backdrop-filter: blur(2px);
}
.modal-panel{
  position: absolute;
  inset: 10% auto auto 50%;
  transform: translateX(-50%);
  width: min(640px, 92vw);
  background: #fff;
  border: 1px solid rgba(2,6,23,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-head{
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--border);
}
.modal-close{
  background: transparent; border: 0; font-size: 1.4rem; line-height: 1;
  cursor: pointer; padding: .3rem .5rem; border-radius: 8px;
}
.modal-close:hover{ background: var(--bg-soft); }
.modal-body{ padding: 1rem 1rem 1.25rem; }

@media (max-width: 560px){
  .modal-panel{ inset: 15% auto auto 50%; }
}

/* ---------------------------
   8) Focus & Accessibility
---------------------------- */
:focus-visible{
  outline: 3px solid rgba(37,99,235,.55);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ---------------------------
   9) Animated Logo — Colour Cycle
---------------------------- */
.brand-logo-animated{
  display: block;
  height: 32px;
  width: auto;
}
@media (max-width: 768px){
  .brand-logo-animated{ height: 28px; }
}

.logo-color-cycle{
  animation: logoColorCycle 12s ease-in-out infinite;
}

/* 8 colours: black → pink → red → orange → green → cyan → violet → purple → black */
@keyframes logoColorCycle{
  0%, 100%  { fill: #222023; }   /* black (original) */
  12.5%     { fill: #FF88D3; }   /* pink */
  25%       { fill: #FF6B6E; }   /* red */
  37.5%     { fill: #FFAE52; }   /* orange */
  50%       { fill: #7CCA23; }   /* green */
  62.5%     { fill: #00C0C6; }   /* cyan */
  75%       { fill: #7184FF; }   /* violet */
  87.5%     { fill: #9147FF; }   /* purple */
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
}
