/* ═══════════════════════════════════
   shared.css — Common styles for all ProQuote pages
   ═══════════════════════════════════ */
@import url('/css/fonts.css');

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

:root {
  color-scheme: light;
  --bg: #f0f2f8;
  --bg2: #e8ebf4;
  --panel: rgba(255, 255, 255, .92);
  --panel2: rgba(243, 244, 250, .92);
  --panel-solid: #ffffff;
  --text: #0f172a;
  --text2: #334155;
  --muted: #64748b;
  --dim: #cbd5e1;
  --border: rgba(255, 255, 255, .45);
  --border2: rgba(255, 255, 255, .65);
  --border-out: rgba(15, 23, 42, .06);
  --accent: #6366f1;
  --accent-l: #818cf8;
  --accent-s: rgba(238, 242, 255, .65);
  --gold: #f59e0b;
  --gold-l: #fbbf24;
  --gold-s: rgba(255, 251, 235, .65);
  --green: #10b981;
  --green-s: rgba(236, 253, 245, .65);
  --nav-bg: rgba(255, 255, 255, .94);
  --card-bg: rgba(255, 255, 255, .92);
  --sh: 0 2px 20px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .03);
  --sh-lg: 0 12px 44px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .04);
  --sh-xl: 0 24px 64px rgba(15, 23, 42, .1), 0 8px 20px rgba(15, 23, 42, .05);
  --glass-blur: none;
  --glass-blur-lg: none;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --r: 16px;
  --r-lg: 22px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d18;
  --bg2: #10142a;
  --panel: rgba(22, 28, 52, .94);
  --panel2: rgba(28, 35, 62, .94);
  --panel-solid: #161c34;
  --text: #f1f5f9;
  --text2: #cbd5e1;
  --muted: #94a3b8;
  --dim: #334155;
  --border: rgba(255, 255, 255, .08);
  --border2: rgba(255, 255, 255, .14);
  --border-out: rgba(0, 0, 0, .25);
  --accent-s: rgba(30, 27, 75, .65);
  --gold-s: rgba(28, 21, 5, .65);
  --green-s: rgba(5, 46, 22, .65);
  --nav-bg: rgba(10, 13, 24, .95);
  --card-bg: rgba(22, 28, 52, .94);
  --sh: 0 2px 20px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3);
  --sh-lg: 0 12px 44px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .3);
  --sh-xl: 0 24px 64px rgba(0, 0, 0, .6), 0 8px 20px rgba(0, 0, 0, .4);
}

html {
  font-size: 15px;
  scroll-behavior: smooth
}

body {
  font-family: var(--sans);
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, .08), transparent),
                    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(245, 158, 11, .05), transparent);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .45s var(--ease), color .45s var(--ease)
}

[data-theme="dark"] body {
  background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, .12), transparent),
                    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(245, 158, 11, .06), transparent);
}

/* grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .6
}

@media (max-width: 900px) {
  body::after { display: none }
}

/* animated grid lines */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55
}

[data-theme="dark"] .grid-bg {
  opacity: .18
}

.grid-bg {
  /* mask lives on the parent so the pattern can slide beneath it on the compositor */
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: -64px 0 0 -64px;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: translate3d(0, 0, 0);
  animation: gridMove 60s linear infinite;
  will-change: transform;
}

@keyframes gridMove {
  0% {
    transform: translate3d(0, 0, 0)
  }

  100% {
    transform: translate3d(64px, 64px, 0)
  }
}

/* floating shapes — soft glow comes from the gradient falloff, no filter:
   animating a blurred layer forces GPU re-rasterization every frame */
.shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  animation: shapeFloat 20s ease-in-out infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform
}

@media (max-width: 900px) {
  .shape, .grid-bg::before { animation: none !important }
  .shape { display: none }
}

@media (prefers-reduced-motion: reduce) {
  .shape, .grid-bg::before { animation: none !important }
  html { scroll-behavior: auto }
}

/* Pause expensive background animations when tab is hidden */
body.pq-hidden .shape,
body.pq-hidden .grid-bg::before { animation-play-state: paused !important }

.shape-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, .16), rgba(99, 102, 241, .05) 45%, transparent 72%);
  top: -180px;
  left: -160px;
  animation-duration: 22s
}

.shape-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(245, 158, 11, .13), rgba(245, 158, 11, .04) 45%, transparent 72%);
  bottom: -120px;
  right: -100px;
  animation-duration: 26s;
  animation-delay: -9s
}

.shape-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(16, 185, 129, .1), rgba(16, 185, 129, .03) 45%, transparent 72%);
  top: 50%;
  left: 55%;
  animation-duration: 30s;
  animation-delay: -15s
}

/* translate-only: scale() would re-rasterize the layer each frame */
@keyframes shapeFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0)
  }

  33% {
    transform: translate3d(24px, -18px, 0)
  }

  66% {
    transform: translate3d(-16px, 22px, 0)
  }
}

/* ─ NAV ─ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  height: 60px;
  background: var(--nav-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease)
}

nav.scrolled {
  box-shadow: var(--sh);
  border-bottom-color: var(--border2)
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none
}

.nav-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .22s;
}


[data-theme="dark"] .nav-mark {
  /* no background for logo icon */
}

[data-theme="dark"] .nav-mark svg path:first-child {
  stroke: #0f172a
}

[data-theme="dark"] .nav-mark svg path:nth-child(3) {
  stroke: #0f172a
}

.nav-logo:hover .nav-mark {
  transform: rotate(-7deg) scale(1.1);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .48)
}

[data-theme="dark"] .nav-logo:hover .nav-mark {
  box-shadow: 0 6px 18px rgba(251, 191, 36, .48)
}

.nav-wm {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1
}

.nav-wm span {
  color: var(--gold)
}

.nav-r {
  display: flex;
  align-items: center;
  gap: 8px
}

.nav-a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .79rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: all .3s var(--ease);
  letter-spacing: .01em
}

.nav-a:hover {
  color: var(--text);
  background: var(--panel)
}

.nav-a.active {
  color: var(--text);
  background: var(--panel);
  font-weight: 700;
  font-size: .84rem;
}

/* ── ANIMATED THEME TOGGLE ── */
.theme-switch{--ts:1;position:relative;display:inline-block;width:calc(var(--ts)*60px);height:calc(var(--ts)*34px);flex-shrink:0;vertical-align:middle}
.theme-switch input{opacity:0;width:0;height:0;position:absolute}
.ts-slider{position:absolute;cursor:pointer;inset:0;background:var(--accent);transition:.4s;overflow:hidden}
.ts-slider.round{border-radius:calc(var(--ts)*34px)}
.ts-knob{position:absolute;height:calc(var(--ts)*26px);width:calc(var(--ts)*26px);left:calc(var(--ts)*4px);bottom:calc(var(--ts)*4px);background-color:#fbbf24;transition:.4s}
.ts-slider.round .ts-knob{border-radius:50%}
.theme-switch input:checked+.ts-slider{background:#0b1220}
.theme-switch input:checked+.ts-slider .ts-knob{transform:translateX(calc(var(--ts)*26px));background:#e0e0e0}
.ts-dot{opacity:0;transition:.4s;fill:#999;position:absolute;z-index:4}
.theme-switch input:checked+.ts-slider .ts-dot{opacity:1}
#tmd1{left:calc(var(--ts)*10px);top:calc(var(--ts)*3px);width:calc(var(--ts)*6px);height:calc(var(--ts)*6px)}
#tmd2{left:calc(var(--ts)*2px);top:calc(var(--ts)*10px);width:calc(var(--ts)*10px);height:calc(var(--ts)*10px)}
#tmd3{left:calc(var(--ts)*16px);top:calc(var(--ts)*18px);width:calc(var(--ts)*3px);height:calc(var(--ts)*3px)}
.ts-ray{position:absolute;z-index:-1;fill:white;opacity:.1}
#tr1{left:calc(var(--ts)*-8px);top:calc(var(--ts)*-8px);width:calc(var(--ts)*43px);height:calc(var(--ts)*43px)}
#tr2{left:-50%;top:-50%;width:calc(var(--ts)*55px);height:calc(var(--ts)*55px)}
#tr3{left:calc(var(--ts)*-18px);top:calc(var(--ts)*-18px);width:calc(var(--ts)*60px);height:calc(var(--ts)*60px)}
.ts-cld{position:absolute;animation:ts-cloud 6s infinite}
.ts-cl{fill:#eee}
.ts-cd{fill:#ccc;animation-delay:1s}
#tc1{left:calc(var(--ts)*30px);top:calc(var(--ts)*15px);width:calc(var(--ts)*40px)}
#tc2{left:calc(var(--ts)*44px);top:calc(var(--ts)*10px);width:calc(var(--ts)*20px)}
#tc3{left:calc(var(--ts)*18px);top:calc(var(--ts)*24px);width:calc(var(--ts)*30px)}
#tc4{left:calc(var(--ts)*36px);top:calc(var(--ts)*18px);width:calc(var(--ts)*40px)}
#tc5{left:calc(var(--ts)*48px);top:calc(var(--ts)*14px);width:calc(var(--ts)*20px)}
#tc6{left:calc(var(--ts)*22px);top:calc(var(--ts)*26px);width:calc(var(--ts)*30px)}
@keyframes ts-cloud{0%{transform:translateX(0)}40%{transform:translateX(4px)}80%{transform:translateX(-4px)}100%{transform:translateX(0)}}
.ts-stars{transform:translateY(calc(var(--ts)*-32px));opacity:0;transition:.4s}
.theme-switch input:checked+.ts-slider .ts-stars{transform:translateY(0);opacity:1}
.ts-star{fill:white;position:absolute;animation:ts-twinkle 2s infinite}
#ts1{width:calc(var(--ts)*20px);top:calc(var(--ts)*2px);left:calc(var(--ts)*3px);animation-delay:.3s}
#ts2{width:calc(var(--ts)*6px);top:calc(var(--ts)*16px);left:calc(var(--ts)*3px)}
#ts3{width:calc(var(--ts)*12px);top:calc(var(--ts)*20px);left:calc(var(--ts)*10px);animation-delay:.6s}
#ts4{width:calc(var(--ts)*18px);top:calc(var(--ts)*0);left:calc(var(--ts)*18px);animation-delay:1.3s}
@keyframes ts-twinkle{0%{transform:scale(1)}40%{transform:scale(1.2)}80%{transform:scale(.8)}100%{transform:scale(1)}}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: .81rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: .01em;
  box-shadow: 0 2px 12px rgba(99, 102, 241, .3), inset 0 1px 0 rgba(255,255,255,.2);
  transition: all .35s var(--ease)
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(99, 102, 241, .45), inset 0 1px 0 rgba(255,255,255,.25)
}

/* ─ SECTION LABELS ─ */
.s-eye {
  display: inline-block;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 13px
}

[data-theme="dark"] .s-eye {
  color: var(--gold-l)
}

.s-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 13px
}

.s-sub {
  font-size: .98rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 500px
}

/* ─ BUTTONS ─ */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all .35s var(--ease);
  letter-spacing: .01em;
  border: none
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, .35), inset 0 1px 0 rgba(255,255,255,.2)
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(99, 102, 241, .5), inset 0 1px 0 rgba(255,255,255,.25)
}

.btn-outline {
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text2);
  border: 1.5px solid var(--border2)
}

.btn-outline:hover {
  background: var(--card-bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px)
}

/* ─ SCROLL REVEAL ─ */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.98);
  transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1)
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1)
}

.rd1 {
  transition-delay: .06s
}

.rd2 {
  transition-delay: .12s
}

.rd3 {
  transition-delay: .18s
}

.rd4 {
  transition-delay: .24s
}

.rd5 {
  transition-delay: .30s
}

.rd6 {
  transition-delay: .36s
}

/* ─ KEYFRAMES ─ */
@keyframes rUp {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes rRight {
  from {
    opacity: 0;
    transform: translateX(22px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(36px) scale(.97);
    filter: blur(4px)
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0)
  }
}

/* ─ HERO ENTRANCE (for maker/landing pages) ─ */
.hero-animate h1,
.hero-animate .hero-h1 {
  animation: heroFadeUp .85s cubic-bezier(.16, 1, .3, 1) both
}

.hero-animate p,
.hero-animate .hero-sub {
  animation: heroFadeUp .85s cubic-bezier(.16, 1, .3, 1) .12s both
}

.hero-animate .cta-btn,
.hero-animate .btn-p {
  animation: heroFadeUp .85s cubic-bezier(.16, 1, .3, 1) .24s both
}

/* ─ MAKER-PAGE SHARED CLASSES ─ */
.maker-hero {
  padding: 80px 44px;
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 1
}

.maker-hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.1
}

.maker-hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65
}

.maker-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 44px
}

.maker-sec-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text);
  letter-spacing: -.015em
}

.maker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px
}

.maker-card {
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease), border-color .4s var(--ease);
  will-change: transform
}

.maker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .09);
  border-color: var(--border2)
}

.maker-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--text);
  transition: color .3s var(--ease)
}

.maker-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6
}

.uc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.uc-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease), border-color .4s var(--ease);
  will-change: transform
}

.uc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .07);
  border-color: var(--border2)
}

.uc-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px
}

.uc-card p {
  color: var(--muted);
  line-height: 1.7
}

/* CTA button for maker pages (colored variants) */
.maker-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease);
  will-change: transform
}

.maker-cta:hover {
  transform: translateY(-3px) scale(1.04)
}

.maker-cta:active {
  transform: translateY(0) scale(.98);
  transition-duration: .12s
}

.maker-cta svg {
  transition: transform .35s var(--ease-spring)
}

.maker-cta:hover svg {
  transform: translateX(3px)
}

.maker-cta--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  box-shadow: 0 4px 18px rgba(99, 102, 241, .3), inset 0 1px 0 rgba(255, 255, 255, .2)
}

.maker-cta--accent:hover {
  box-shadow: 0 8px 32px rgba(99, 102, 241, .45), inset 0 1px 0 rgba(255, 255, 255, .2)
}

.maker-cta--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  box-shadow: 0 4px 18px rgba(245, 158, 11, .3), inset 0 1px 0 rgba(255, 255, 255, .2)
}

.maker-cta--gold:hover {
  box-shadow: 0 8px 32px rgba(245, 158, 11, .45), inset 0 1px 0 rgba(255, 255, 255, .2)
}

.maker-cta--green {
  background: linear-gradient(135deg, var(--green), #34d399);
  box-shadow: 0 4px 18px rgba(16, 185, 129, .3), inset 0 1px 0 rgba(255, 255, 255, .2)
}

.maker-cta--green:hover {
  box-shadow: 0 8px 32px rgba(16, 185, 129, .45), inset 0 1px 0 rgba(255, 255, 255, .2)
}

/* Footer: visible by default; animate only when .reveal is also set */
.main-footer.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1)
}

.main-footer.reveal.in {
  opacity: 1;
  transform: translateY(0)
}

/* Accessibility: respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .main-footer,
  .hero-animate h1,
  .hero-animate p,
  .hero-animate .cta-btn,
  .hero-animate .btn-p {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important
  }
}

@media (max-width: 920px) {
  .maker-grid { grid-template-columns: 1fr }
  .uc-grid { grid-template-columns: 1fr }
  .maker-section { padding: 40px 20px }
  .maker-hero { padding: 56px 20px }
}

/* ─ FOOTER ─ */
.main-footer {
  background: var(--panel);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border-top: 1px solid var(--border);
  padding: 80px 44px 40px;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--gold-l), transparent);
  opacity: 0.4;
}

.footer-grid {
  max-width: 1160px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.35s var(--ease);
}

.footer-logo:hover {
  transform: translateX(4px);
}

.footer-logo span {
  color: var(--gold-l);
}

.footer-logo-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo-box img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 340px;
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--gold-l);
  border-radius: 2px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  transition: all 0.35s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(6px);
}

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.footer-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--dim);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--muted);
  transition: all .35s var(--ease);
  border: 1px solid var(--border);
}

.footer-socials a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(99, 102, 241, .35)
}

/* ─ CTA BANNER ─ */
.cta-section {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 44px 100px
}

.cta-box {
  background: linear-gradient(135deg, var(--accent), #818cf8, #a78bfa);
  border-radius: var(--r-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-xl)
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='.06'/%3E%3C/svg%3E");
  pointer-events: none
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  z-index: 1
}

.cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 28px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .95);
  color: var(--accent);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: .01em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .15), inset 0 1px 0 rgba(255,255,255,.5);
  transition: all .35s var(--ease);
  position: relative;
  z-index: 1
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255,255,255,.5)
}

/* ─ PAGE HERO ─ */
.page-hero {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 140px 44px 60px;
  text-align: center
}

.page-hero .s-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px
}

.page-hero .s-sub {
  margin: 0 auto;
  max-width: 600px
}

/* ─ FEATURE CARDS (for features page) ─ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 44px 80px;
  position: relative;
  z-index: 1
}

.feat-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease), border-color .4s var(--ease);
  cursor: default;
  will-change: transform
}

.feat-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-6px);
  border-color: var(--border2)
}

.feat-ico {
  font-size: 2rem;
  margin-bottom: 16px
}

.feat-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text)
}

.feat-desc {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.65
}

/* ─ FAQ ─ */
.faq-section {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 44px 100px
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease-spring);
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.faq-item:hover {
  border-color: var(--border2);
  box-shadow: var(--sh)
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  background: transparent;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  transition: background .3s var(--ease);
  user-select: none
}

.faq-q:hover {
  background: var(--panel2)
}

.faq-chevron {
  font-size: .8rem;
  color: var(--dim);
  transition: transform .35s var(--ease-spring)
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg)
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7
}

.faq-item.open .faq-a {
  display: block
}

/* ─ CONTACT FORM ─ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 44px 100px;
  position: relative;
  z-index: 1
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.contact-fg {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.contact-fg label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted)
}

.contact-fg input,
.contact-fg textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--text);
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease)
}

.contact-fg input:focus,
.contact-fg textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12)
}

.contact-fg textarea {
  resize: vertical;
  min-height: 120px
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.contact-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  transition: transform .5s var(--ease-spring), box-shadow .4s var(--ease), border-color .4s var(--ease);
  will-change: transform
}

.contact-card:hover {
  border-color: var(--border2);
  box-shadow: var(--sh);
  transform: translateY(-4px)
}

.contact-card-ico {
  font-size: 1.4rem;
  margin-bottom: 8px
}

.contact-card-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px
}

.contact-card-text {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.6
}

.contact-card-text a {
  color: var(--accent);
  text-decoration: none
}

.contact-card-text a:hover {
  text-decoration: underline
}

/* ─ ABOUT ─ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 44px 80px;
  position: relative;
  z-index: 1;
  align-items: center
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 44px 80px;
  position: relative;
  z-index: 1
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 20px;
  text-align: center;
  transition: all .35s var(--ease)
}

.stat-card:hover {
  box-shadow: var(--sh);
  transform: translateY(-4px) scale(1.02)
}

.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px
}

[data-theme="dark"] .stat-num {
  color: var(--gold-l)
}

.stat-label {
  font-size: .82rem;
  color: var(--muted)
}

/* ─ MOBILE HAMBURGER ─ */
.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--panel);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
  transition: all .18s
}

.nav-hamburger:hover {
  background: var(--panel2);
  color: var(--text)
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--panel);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  padding: 12px 20px;
  flex-direction: column;
  gap: 4px
}

.mobile-nav.open {
  display: flex;
  animation: rUp .2s ease
}

.mobile-nav a {
  display: block;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: background .12s
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--accent-s);
  color: var(--accent)
}

/* ─ RESPONSIVE ─ */
@media(max-width:920px) {
  nav {
    padding: 0 18px;
    height: 56px
  }

  .page-hero {
    padding: 110px 20px 40px
  }

  .feat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 20px 60px
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px 60px
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px 60px
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 20px 60px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px
  }

  .main-footer {
    padding: 60px 28px 32px
  }

  .ft-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px
  }

  .cta-section {
    padding: 0 20px 72px
  }

  .cta-box {
    padding: 48px 28px
  }

  .faq-section {
    padding: 0 20px 72px
  }
}

@media(max-width:680px) {
  .nav-a {
    display: none
  }

  .nav-hamburger {
    display: flex
  }

  .feat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px 48px
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px 48px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-bottom: 36px
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
    gap: 14px
  }

  .footer-logo {
    justify-content: center
  }

  .footer-tagline {
    margin: 0 auto;
    font-size: .86rem;
    line-height: 1.6
  }

  .footer-title {
    margin-bottom: 14px;
    font-size: .74rem
  }

  .footer-col a {
    padding: 7px 0;
    font-size: .86rem
  }

  .footer-col:last-child {
    grid-column: 1 / -1
  }

  .main-footer {
    padding: 44px 20px 24px
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-top: 24px
  }

  .footer-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px
  }

  .ft-top {
    grid-template-columns: 1fr;
    gap: 18px
  }

  footer {
    padding: 24px 16px
  }
}

@media(max-width:520px) {
  html {
    font-size: 15px
  }

  nav {
    padding: 0 16px;
    height: 52px
  }

  .nav-cta {
    padding: 7px 14px;
    font-size: .78rem
  }

  .theme-switch {
    --ts: .85
  }

  .page-hero {
    padding: 90px 16px 32px
  }

  .s-title {
    font-size: 1.65rem
  }

  .s-sub {
    font-size: .9rem
  }

  .cta-box {
    padding: 40px 20px;
    border-radius: 14px
  }

  .cta-title {
    font-size: 1.4rem
  }

  footer {
    flex-direction: column;
    text-align: center
  }

  .ft-bottom {
    flex-direction: column;
    align-items: center
  }
}

/* ─ FLOATING HELP BUTTONS ─ */
.float-help {
  position: fixed;
  bottom: 28px;
  right: 22px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.float-help-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(99,102,241,.30), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.float-help-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(99,102,241,.42), inset 0 1px 0 rgba(255,255,255,.2);
}
.float-help-btn::before {
  content: attr(data-label);
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 4px 11px;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .02em;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.float-help-btn:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media(max-width:600px) {
  .float-help {
    bottom: 18px;
    right: 14px;
    gap: 8px;
  }
  .float-help-btn {
    width: 40px;
    height: 40px;
    font-size: .9rem;
  }
}

/* ═══════════════════════════════════════
   NEWSLETTER SIGNUP WIDGET
   ═══════════════════════════════════════ */
.nl-signup { margin-top: 18px; }
.nl-title { font-size: .85rem; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.nl-desc { font-size: .78rem; color: var(--muted); margin: 0 0 10px; }
.nl-row { display: flex; gap: 6px; }
.nl-input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: .82rem; background: var(--card-bg); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); color: var(--text); min-width: 0;
}
.nl-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.nl-btn {
  padding: 8px 16px; background: linear-gradient(135deg, var(--accent), var(--accent-l)); color: #fff; border: none;
  border-radius: 10px; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(99,102,241,.25); transition: all .35s var(--ease);
}
.nl-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,.4); }
.nl-btn:disabled { opacity: .5; cursor: default; transform: none; }
.nl-msg { font-size: .78rem; margin-top: 6px; }

/* ═══════════════════════════════════════
   FEEDBACK WIDGET
   ═══════════════════════════════════════ */
.fb-widget {
  max-width: 600px; margin: 0 auto; padding: 32px 20px;
}
.fb-inner {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px 28px; text-align: center;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}
.fb-title { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 12px; }
.fb-stars { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.fb-star {
  font-size: 1.8rem; cursor: pointer; color: #d1d5db;
  transition: color .25s var(--ease), transform .25s var(--ease-spring);
  user-select: none;
  background: none; border: none; padding: 2px 4px; line-height: 1;
}
.fb-star:hover { transform: scale(1.15); }
.fb-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.fb-star:hover, .fb-stars[data-rating] .fb-star { color: #f59e0b; }
.fb-comment {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: .85rem; background: var(--card-bg); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); color: var(--text); resize: vertical; font-family: var(--sans);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.fb-comment:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.fb-row { display: flex; gap: 8px; margin-top: 10px; }
.fb-email {
  flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: .82rem; background: var(--card-bg); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); color: var(--text); min-width: 0;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.fb-email:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.fb-submit {
  padding: 8px 18px; background: linear-gradient(135deg, var(--accent), var(--accent-l)); color: #fff; border: none;
  border-radius: 10px; font-size: .85rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(99,102,241,.25); transition: all .35s var(--ease);
}
.fb-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,.4); }
.fb-submit:disabled { opacity: .5; cursor: default; transform: none; }
.fb-msg { font-size: .82rem; margin-top: 8px; }

/* ═══ Respect prefers-reduced-motion (WCAG 2.3.3) ═══ */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Hide animated background shapes & grain entirely */
  body::before, body::after{display: none !important}
}

/* iOS zoom-on-focus fix — Safari forces a viewport zoom whenever a focused
   input has computed font-size below 16px. */
@media (max-width: 768px){
  input, select, textarea{font-size:16px !important}
}
/* backdrop-filter blur removed globally above (was the main scroll-jank
   source on every device, not just phones) — panels are solid now.
   Mobile keeps a faster reveal transition only. */
@media (max-width: 920px) {
  .reveal { transition-duration: .45s; }
}
