/* Ayah's Trust site shell: side menu (computer), top bar + tab bar (phone), light/dark theme.
   Loaded by every page. Page-specific styles stay in each page. */

/* ---------- Theme ---------- */
:root { --surface: #ffffff; --text: #15130F; --sb-w: 252px; --tab-h: 64px; --top-h: 56px; }
[data-theme="dark"] {
  --paper: #0F0E0B;
  --surface: #1A1814;
  --text: #EFE9DC;
  --charcoal: #1A1814;
  --charcoal-deep: #0A0907;
  --slate: #9A917F;
  --slate-dark: #ADA592;
  --line: #2E2A22;
  --line-light: #2E2A22;
  color-scheme: dark;
}
body { color: var(--text); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { color: var(--text); background: var(--surface); border-color: var(--line-light); }
[data-theme="dark"] .btn-primary { color: #0C0B08; }
[data-theme="dark"] .mi-list li::before { filter: brightness(0.8); }
html { scroll-behavior: smooth; }

/* ---------- Old header is replaced ---------- */
body.has-shell > header { display: none; }

/* ---------- Side menu ---------- */
.sb {
  position: fixed; inset: 0 auto 0 0; width: var(--sb-w); z-index: 60;
  background: #15130F; color: #F6F2E7; border-right: 1px solid #2A2820;
  display: flex; flex-direction: column; padding: 22px 16px 18px;
}
.sb-brand { display: block; text-decoration: none; padding: 4px 10px 22px; }
.sb-brand b { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 500; color: #F6F2E7; }
.sb-brand b span { color: #B49461; }
.sb-brand small { display: block; font-size: 0.72rem; color: #A89C84; margin-top: 2px; }
.sb-nav { display: flex; flex-direction: column; gap: 3px; }
.sb-sec { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: #6E6656; padding: 14px 12px 6px; }
.sb-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: #CFC6B4; text-decoration: none; font-size: 0.93rem; position: relative;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.sb-nav a svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sb-nav a:hover { background: rgba(180,148,97,0.10); color: #F6F2E7; transform: translateX(2px); }
.sb-nav a.active { background: rgba(180,148,97,0.16); color: #E6CF9F; }
.sb-nav a.active::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #B49461; }
.sb-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sb-cta {
  display: flex; justify-content: center; padding: 12px; border-radius: 12px; text-decoration: none;
  background: #B49461; color: #0C0B08; font-weight: 600; font-size: 0.92rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.sb-cta:hover { background: #C6A877; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(180,148,97,0.3); }
.sb-mail { font-size: 0.74rem; color: #8E8573; padding: 0 4px; line-height: 1.5; }
.sb-mail a { color: inherit; text-decoration: none; }

/* Theme switch */
.th-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  background: #1F1C17; border: 1px solid #2E2A22; color: #CFC6B4; border-radius: 12px; padding: 9px 12px;
  font: inherit; font-size: 0.86rem; cursor: pointer;
}
.th-track { width: 40px; height: 22px; border-radius: 99px; background: #3A3528; position: relative; transition: background .25s ease; flex: none; }
.th-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #F6F2E7; transition: transform .25s ease; }
[data-theme="dark"] .th-track { background: #B49461; }
[data-theme="dark"] .th-track::after { transform: translateX(18px); }
.th-label::before { content: "Dark mode"; }

/* ---------- Main area ---------- */
body.has-shell { padding-left: var(--sb-w); }
body.has-shell main.app-main { min-height: 100vh; }

/* ---------- Phone and tablet ---------- */
.topbar, .tabbar, .sb-scrim, .sb-close { display: none; }
@media (max-width: 1023px) {
  body.has-shell { padding-left: 0; padding-top: var(--top-h); padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
  .sb { transform: translateX(-102%); transition: transform .32s cubic-bezier(.2,.8,.2,1); width: min(300px, 84vw); box-shadow: 0 0 40px rgba(0,0,0,0.4); }
  body.sb-open .sb { transform: translateX(0); }
  .sb-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  body.sb-open .sb-scrim { opacity: 1; pointer-events: auto; }
  .sb-close { display: flex; position: absolute; top: 18px; right: 14px; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #2E2A22; background: transparent; color: #CFC6B4; font-size: 1.2rem; cursor: pointer; }

  .topbar {
    display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 14px 0; align-items: center; justify-content: space-between;
    background: rgba(21,19,15,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #2A2820;
  }
  .topbar .sb-brand { padding: 0; }
  .topbar .sb-brand b { font-size: 1.08rem; }
  .topbar .sb-brand small { display: none; }
  .tb-actions { display: flex; gap: 8px; }
  .icon-btn {
    width: 38px; height: 38px; border-radius: 11px; border: 1px solid #2E2A22; background: #1F1C17; color: #E6CF9F;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s ease, background .2s ease;
  }
  .icon-btn:active { transform: scale(0.92); }
  .icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .ic-sun { display: none; } [data-theme="dark"] .ic-sun { display: block; } [data-theme="dark"] .ic-moon { display: none; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(21,19,15,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid #2A2820;
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none;
    color: #9A917F; font-size: 0.66rem; font-weight: 500; position: relative; transition: color .2s ease;
  }
  .tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
  .tabbar a.active { color: #E6CF9F; }
  .tabbar a.active svg { transform: translateY(-2px) scale(1.08); }
  .tabbar a.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: #B49461; }
  .tabbar a:active svg { transform: scale(0.88); }
}

/* ---------- Page motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  main.app-main { animation: page-in .45s ease both; }
  body.leaving main.app-main { opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; }
  @keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Skip link for keyboard users */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #B49461; color: #0C0B08; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Page headers on inner pages ---------- */
.section-divider.page-head { padding: 64px 0 52px; }
.section-divider.page-head h1 { color: var(--ink); font-size: clamp(2rem, 3.6vw, 2.7rem); margin-bottom: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .page-head .eyebrow, .page-head h1, .page-head p, .page-head .rule { animation: rise-in .55s cubic-bezier(.2,.8,.2,1) both; }
  .page-head h1 { animation-delay: .06s; } .page-head p { animation-delay: .12s; } .page-head .rule { animation-delay: .18s; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- Dark mode fixes for page styles ---------- */
[data-theme="dark"] .modal { background: var(--surface); color: var(--text); }
[data-theme="dark"] .pkg.featured { background: #15130F; border-color: var(--bronze); }
[data-theme="dark"] .btn-ghost-dark { color: var(--text); border-color: var(--line-light); }
[data-theme="dark"] .section-divider, [data-theme="dark"] .hero { background: #15130F; }
[data-theme="dark"] .industries { background: #0A0907; }
[data-theme="dark"] footer { border-top: 1px solid var(--line-light); }

/* Compact hero now the menu lives at the side */
body.has-shell .hero { padding-top: 64px; padding-bottom: 64px; }
body.has-shell .hero-home { padding-bottom: 40px; }
body.has-shell .hero-art > svg { width: 150px; height: 150px; }
@media (max-width: 700px) { body.has-shell .hero { padding-top: 40px; padding-bottom: 44px; } body.has-shell .hero-art > svg { width: 108px; height: 108px; } }

/* =========================================================
   Home page, iOS style
   ========================================================= */
:root { --card-shadow: 0 1px 2px rgba(21,19,15,0.04), 0 8px 24px rgba(21,19,15,0.06); --card-r: 22px; --surface-2: #F2EEE5; }
[data-theme="dark"] { --card-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 30px rgba(0,0,0,0.35); --surface-2: #221F1A; }

/* Hero: no buttons, one quiet scroll cue */
.hero-home .lead { max-width: 40ch !important; }
.hero-cue {
  display: inline-flex; margin: 26px auto 0; width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center; border: 1px solid rgba(180,148,97,0.45); color: #E6CF9F;
  transition: background .25s ease, transform .25s ease;
}
.hero-cue svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-cue:hover { background: rgba(180,148,97,0.15); }
.hero-home .wrap > div:first-child { display: flex; flex-direction: column; align-items: center; }

/* Industry chips that glide sideways */
.chips-band { background: var(--paper); padding: 26px 0 6px; overflow: hidden; }
.chips-label { text-align: center; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-dark); margin-bottom: 14px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-set { display: flex; gap: 10px; padding-right: 10px; }
.chip {
  white-space: nowrap; padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  background: var(--surface); color: var(--text); box-shadow: var(--card-shadow); border: 1px solid var(--line-light);
}
.chip a { color: inherit; text-decoration: none; }

/* Section title, left aligned like iOS large titles on phones */
.svc-home { padding: 48px 0 72px; }
.svc-title { text-align: center; margin-bottom: 22px; }
.svc-title h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.svc-title p { color: var(--slate-dark); margin-top: 6px; }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left;
  text-decoration: none; color: var(--text); background: var(--surface); border-radius: var(--card-r);
  padding: 24px 22px 22px; box-shadow: var(--card-shadow); border: 1px solid var(--line-light);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.svc-text { display: flex; flex-direction: column; gap: 6px; }
.svc-text b { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.svc-text span { color: var(--slate-dark); font-size: 0.93rem; line-height: 1.55; }
.svc-go { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--bronze-deep); }
[data-theme="dark"] .svc-go { color: #D2B784; }
.svc-card .chev { position: absolute; right: 20px; top: 30px; width: 20px; height: 20px; stroke: var(--slate); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease, stroke .3s ease; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(21,19,15,0.05), 0 20px 40px rgba(21,19,15,0.10); }
[data-theme="dark"] .svc-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.svc-card:hover .chev { transform: translateX(3px); stroke: var(--bronze); }
.svc-card:active { transform: scale(0.97); transition-duration: .12s; }

/* App-style icons */
.app-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(21,19,15,0.16), inset 0 1px 0 rgba(255,255,255,0.35); position: relative; overflow: hidden;
}
.app-icon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 55%); }
.app-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.ic-gold { background: linear-gradient(145deg, #D6BA86, #A7864F); }
.ic-amber { background: linear-gradient(145deg, #C98F55, #8E5B2C); }
.ic-dark { background: linear-gradient(145deg, #3A352C, #15130F); }
.ic-dark svg { stroke: #E6CF9F; }

/* Small widgets */
.widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.widget {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; text-decoration: none; color: var(--text);
  background: var(--surface-2); text-align: left; transition: transform .3s ease;
}
.widget svg { width: 22px; height: 22px; stroke: var(--bronze); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.widget b { font-size: 0.95rem; }
.widget span { color: var(--slate-dark); font-size: 0.86rem; line-height: 1.5; }
a.widget:hover { transform: translateY(-2px); }

/* Explore by industry */
.explore { padding: 8px 0 72px; }
.explore-card { background: var(--surface); border: 1px solid var(--line-light); border-radius: var(--card-r); box-shadow: var(--card-shadow); padding: 28px; text-align: center; }
.explore-card h2 { font-size: 1.4rem; margin-bottom: 16px; }
.explore-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.explore-chips a {
  padding: 8px 14px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 0.86rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.explore-chips a:hover { background: var(--bronze); color: #0C0B08; transform: translateY(-1px); }

/* Phone: grouped list like iOS Settings */
@media (max-width: 760px) {
  .svc-home { padding: 32px 0 48px; }
  .svc-title { text-align: left; padding: 0 4px; margin-bottom: 14px; }
  .svc-grid { grid-template-columns: 1fr; gap: 0; border-radius: var(--card-r); overflow: hidden; box-shadow: var(--card-shadow); border: 1px solid var(--line-light); background: var(--surface); }
  .svc-card { flex-direction: row; align-items: center; gap: 14px; border: 0; border-radius: 0; box-shadow: none; padding: 16px 44px 16px 16px; }
  .svc-card + .svc-card::before { content: ""; position: absolute; top: 0; left: 82px; right: 0; height: 1px; background: var(--line-light); }
  .svc-card .chev { top: 50%; margin-top: -10px; right: 14px; width: 18px; height: 18px; }
  .svc-card:hover { transform: none; box-shadow: none; }
  .svc-card:active { background: var(--surface-2); transform: none; }
  .svc-text b { font-size: 1.05rem; }
  .svc-text span { font-size: 0.86rem; }
  .svc-go { display: none; }
  .app-icon { width: 50px; height: 50px; border-radius: 13px; }
  .widgets { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
  .widgets .widget:last-child { grid-column: 1 / -1; }
  .explore-card { padding: 22px 16px; }
  .chips-band { padding-top: 22px; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .hero-cue { animation: cue 2.4s ease-in-out infinite; }
  @keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
  .svc-grid.reveal, .widgets.reveal { opacity: 1 !important; transform: none !important; }
  .svc-grid .svc-card, .widgets .widget { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .2s ease; }
  .svc-grid.in-view .svc-card, .widgets.in-view .widget { opacity: 1; transform: none; }
  .svc-grid.in-view .svc-card:nth-child(2), .widgets.in-view .widget:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; }
  .svc-grid.in-view .svc-card:nth-child(3), .widgets.in-view .widget:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }
  .svc-grid.in-view .svc-card:hover { transform: translateY(-4px); transition-delay: 0s; }
  .app-icon { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .svc-card:hover .app-icon { transform: scale(1.08) rotate(-3deg); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .svc-grid.in-view .svc-card:hover { transform: none; }
}

/* =========================================================
   v6.2: frosted glass menu, simpler service buttons
   ========================================================= */
.sb {
  background: rgba(21,19,15,0.93);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border-right: 1px solid rgba(255,255,255,0.07);
}
.sb-nav a.active { background: rgba(255,255,255,0.08); }
.sb-nav a:hover { background: rgba(255,255,255,0.05); }
.th-switch { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); }
@media (max-width: 1023px) {
  .sb { background: rgba(21,19,15,0.70); box-shadow: 0 0 60px rgba(0,0,0,0.35); }
  .sb-scrim { background: rgba(0,0,0,0.22); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .sb-sec { color: #8E8573; }
  .sb-close { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
  .topbar, .tabbar {
    background: rgba(21,19,15,0.55);
    -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
    border-color: rgba(255,255,255,0.08);
  }
  .icon-btn {
    background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); border-radius: 50%;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .icon-btn:hover { background: rgba(255,255,255,0.14); }
}

/* Service buttons: one calm style, thin gold outline */
.app-icon, .ic-gold, .ic-amber, .ic-dark {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(180,148,97,0.10);
  border: 1px solid rgba(180,148,97,0.40); box-shadow: none;
}
.app-icon::after { display: none; }
.app-icon svg, .ic-dark svg { width: 22px; height: 22px; stroke: var(--bronze); stroke-width: 1.6; }
.svc-card:hover .app-icon { background: var(--bronze); border-color: var(--bronze); }
.svc-card:hover .app-icon svg { stroke: #fff; }
.svc-card .app-icon, .svc-card .app-icon svg { transition: background .3s ease, border-color .3s ease, stroke .3s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 761px) {
  .svc-card .chev { display: none; }
  .svc-go {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    border: 1px solid rgba(180,148,97,0.55); font-size: 0.86rem; transition: background .25s ease, color .25s ease, gap .25s ease;
  }
  .svc-go::after { content: "\2192"; }
  .svc-card:hover .svc-go { background: var(--bronze); color: #0C0B08; border-color: var(--bronze); gap: 12px; }
}
@media (max-width: 760px) { .app-icon { width: 44px; height: 44px; } .svc-card + .svc-card::before { left: 76px; } }

/* =========================================================
   v6.3: soft gradient backgrounds instead of flat colours
   ========================================================= */
:root {
  --bg-glow:
    radial-gradient(1100px 620px at 92% -8%, rgba(214,186,134,0.30), transparent 62%),
    radial-gradient(900px 560px at -12% 34%, rgba(201,143,85,0.14), transparent 60%),
    radial-gradient(900px 700px at 55% 112%, rgba(180,148,97,0.16), transparent 62%),
    linear-gradient(180deg, #FCFAF5 0%, #F5F0E6 100%);
  --dark-grad:
    radial-gradient(900px 420px at 85% -20%, rgba(180,148,97,0.26), transparent 62%),
    radial-gradient(700px 420px at -5% 120%, rgba(201,143,85,0.14), transparent 60%),
    linear-gradient(160deg, #1D1A15 0%, #0F0E0B 100%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --surface: rgba(255,255,255,0.72);
  --surface-2: rgba(255,255,255,0.45);
}
[data-theme="dark"] {
  --bg-glow:
    radial-gradient(1100px 620px at 92% -8%, rgba(180,148,97,0.20), transparent 62%),
    radial-gradient(900px 560px at -12% 38%, rgba(140,100,55,0.16), transparent 60%),
    radial-gradient(900px 700px at 55% 112%, rgba(180,148,97,0.12), transparent 62%),
    linear-gradient(180deg, #121110 0%, #0A0908 100%);
  --dark-grad:
    radial-gradient(900px 420px at 85% -20%, rgba(180,148,97,0.20), transparent 62%),
    radial-gradient(700px 420px at -5% 120%, rgba(140,100,55,0.14), transparent 60%),
    linear-gradient(160deg, #1A1713 0%, #0B0A08 100%);
  --surface: rgba(34,31,26,0.62);
  --surface-2: rgba(255,255,255,0.04);
}

/* Page background: soft glows that stay put while you scroll, with a fine grain */
body.has-shell { background: transparent; }
body.has-shell::before, body.has-shell::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
body.has-shell::before { background: var(--bg-glow); }
body.has-shell::after { background-image: var(--grain); opacity: .05; mix-blend-mode: multiply; }
[data-theme="dark"] body.has-shell::after { opacity: .08; mix-blend-mode: screen; }
html { background: #F5F0E6; } [data-theme="dark"] { background: #0A0908; }
body.has-shell section, .chips-band { background-color: transparent; }

/* Dark bands: gradient with a gold glow, not flat */
.hero, .section-divider, footer, .pkg.featured, .qual .panel, .industries, .mi-next,
[data-theme="dark"] .section-divider, [data-theme="dark"] .hero, [data-theme="dark"] .industries, [data-theme="dark"] .pkg.featured {
  background: var(--dark-grad);
}
.hero, .section-divider { position: relative; overflow: hidden; }
.hero::after, .section-divider::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .07; mix-blend-mode: screen; pointer-events: none; }
.hero > .wrap, .section-divider > .wrap { position: relative; z-index: 1; }
.section-divider { border-bottom: 0; }
footer { border-top: 1px solid rgba(180,148,97,0.18); }

/* Cards become soft glass so the glow shows through */
.svc-card, .explore-card, .chip, .pkg:not(.featured), .sp-card, .sp-checks-grid > div, .sp-trust-grid > div, .rb-box, .faq-list details, .step-card {
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.widget { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-light); }
[data-theme="light"] .svc-card, [data-theme="light"] .explore-card, [data-theme="light"] .chip { border-color: rgba(255,255,255,0.8); }

/* Things that must stay solid to be readable */
.modal, [data-theme="dark"] .modal { background: #FFFFFF; }
[data-theme="dark"] .modal { background: #1A1814; }
input, select, textarea { background: rgba(255,255,255,0.85); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: rgba(26,24,20,0.85); }
select option { background: #fff; color: #15130F; }
.sb { background: radial-gradient(420px 260px at 0% 0%, rgba(180,148,97,0.18), transparent 70%), linear-gradient(180deg, rgba(29,26,21,0.93), rgba(11,10,8,0.95)); }
@media (max-width: 1023px) { .sb { background: radial-gradient(420px 260px at 0% 0%, rgba(180,148,97,0.18), transparent 70%), linear-gradient(180deg, rgba(29,26,21,0.72), rgba(11,10,8,0.78)); } }

/* Light mode on phones: white frosted bars, like iOS */
@media (max-width: 1023px) {
  [data-theme="light"] .topbar, [data-theme="light"] .tabbar { background: rgba(252,250,245,0.72); border-color: rgba(21,19,15,0.08); }
  [data-theme="light"] .topbar .sb-brand b { color: #15130F; }
  [data-theme="light"] .topbar .sb-brand b span { color: #94794E; }
  [data-theme="light"] .icon-btn { background: rgba(255,255,255,0.7); border-color: rgba(21,19,15,0.10); color: #15130F; }
  [data-theme="light"] .tabbar a { color: #8A8170; }
  [data-theme="light"] .tabbar a.active { color: #94794E; }
}

/* =========================================================
   v6.4: modern type, motion and graphics
   ========================================================= */
/* Modern headings: clean sans, tight spacing. Brand name stays serif. */
h1, h2, h3, .svc-text b, .section-divider h1, .section-divider h2, .pkg .price, .qual .panel .figure {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important; font-weight: 600; letter-spacing: -0.035em;
}
h1 { letter-spacing: -0.045em; }
::selection { background: rgba(180,148,97,0.35); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 8px; }

/* Richer gold buttons */
.btn-primary, .sb-cta { background: linear-gradient(135deg, #DCC18F 0%, #B49461 55%, #9A7B4C 100%); background-size: 160% 160%; transition: background-position .5s ease, transform .2s ease, box-shadow .3s ease; }
.btn-primary:hover, .sb-cta:hover { background-position: 100% 100%; }

/* Scroll progress line */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #E6CF9F, #B49461); pointer-events: none; }

/* Headline gold shine */
.shine { background: linear-gradient(100deg, #E6CF9F 0%, #B49461 30%, #F6E7C4 50%, #B49461 70%, #E6CF9F 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Moving gold light in dark headers */
.hero::before, .section-divider::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; top: -260px; right: -120px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(214,186,134,0.30), transparent 65%); filter: blur(10px);
}

/* Hero graphic */
.hero-visual { position: relative; width: min(520px, 92vw); height: 250px; margin: 0 auto; }
.hv-glow { position: absolute; left: 50%; top: 50%; width: 280px; height: 280px; margin: -140px 0 0 -140px; border-radius: 50%; background: radial-gradient(circle, rgba(214,186,134,0.35), transparent 65%); }
.hv-ring { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hv-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px; background: conic-gradient(from 0deg, #B49461, rgba(180,148,97,0.05) 30%, #F6E7C4 50%, rgba(180,148,97,0.05) 70%, #B49461); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hv-ring::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px dashed rgba(180,148,97,0.30); }
.hv-ring span { font-family: 'Fraunces', serif; font-size: 64px; color: #F6F2E7; position: relative; z-index: 1; line-height: 1; }
.hv-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; text-align: left; white-space: nowrap;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.hv-card b { display: block; color: #F6F2E7; font-size: 0.84rem; font-weight: 600; letter-spacing: -0.01em; }
.hv-card small { display: block; color: #A89C84; font-size: 0.72rem; margin-top: 1px; }
.hv-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #DCC18F, #9A7B4C); flex: none; }
.hv-ic svg { width: 18px; height: 18px; fill: none; stroke: #15130F; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hv-dot { width: 8px; height: 8px; border-radius: 50%; background: #9BD39B; box-shadow: 0 0 0 0 rgba(155,211,155,0.6); margin-left: 4px; }
.hv-1 { left: 0; top: 18px; } .hv-2 { right: 0; top: 96px; } .hv-3 { left: 26px; bottom: 6px; }
@media (max-width: 560px) {
  .hero-visual { width: 100%; height: 262px; margin-top: -6px; }
  .hv-1 { left: 0; top: 0; } .hv-2 { right: 0; top: auto; bottom: 0; } .hv-3 { display: none; }
  .hv-ring { width: 120px; height: 120px; margin: -60px 0 0 -60px; } .hv-ring span { font-size: 56px; }
}
body.has-shell .hero-home { padding-top: 48px; }

/* Stats strip */
.stats { padding: 0 0 64px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; overflow: hidden; background: var(--dark-grad); box-shadow: 0 20px 50px rgba(21,19,15,0.18); position: relative; }
.stat { padding: 26px 22px; text-align: left; border-left: 1px solid rgba(255,255,255,0.07); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.04em; color: #F6F2E7; }
.stat > span { display: block; margin-top: 4px; color: #A89C84; font-size: 0.86rem; line-height: 1.45; }
@media (max-width: 760px) { .stats-row { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.07); } .stat { padding: 20px 18px; } }

/* Pointer spotlight on cards */
.svc-card, .pkg:not(.featured), .sp-card, .explore-card, .widget {
  background-image: radial-gradient(320px circle at var(--mx, -400px) var(--my, -400px), rgba(214,186,134,0.16), transparent 60%);
}

@media (prefers-reduced-motion: no-preference) {
  .shine { animation: shine 6s ease-in-out infinite; }
  @keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
  .hero::before, .section-divider::before { animation: drift 16s ease-in-out infinite alternate; }
  @keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-160px, 120px) scale(1.15); } 100% { transform: translate(-320px, 30px) scale(0.95); } }
  .hv-ring::before { animation: spin 8s linear infinite; }
  .hv-ring::after { animation: spin 40s linear infinite reverse; }
  .hv-glow { animation: pulse 5s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
  .hv-card { animation: float 6s ease-in-out infinite, card-in .8s cubic-bezier(.2,.8,.2,1) both; }
  .hv-2 { animation-delay: -2s, .15s; } .hv-3 { animation-delay: -4s, .3s; }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
  @keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
  .hv-dot { animation: ping 2s ease-out infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(155,211,155,0.55); } 100% { box-shadow: 0 0 0 10px rgba(155,211,155,0); } }
  .hero-home h1, .hero-home .lead, .hero-home .hero-cue { animation: rise-in .8s cubic-bezier(.2,.8,.2,1) both; }
  .hero-home .lead { animation-delay: .12s; } .hero-home .hero-cue { animation: rise-in .8s .24s cubic-bezier(.2,.8,.2,1) both, cue 2.4s 1.2s ease-in-out infinite; }
  .stats-row.reveal { opacity: 1 !important; transform: none !important; }
  .stats-row .stat { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
  .stats-row.in-view .stat { opacity: 1; transform: none; }
  .stats-row.in-view .stat:nth-child(2) { transition-delay: .08s; } .stats-row.in-view .stat:nth-child(3) { transition-delay: .16s; } .stats-row.in-view .stat:nth-child(4) { transition-delay: .24s; }
  /* Every section heading rises in */
  .section-head.reveal, .svc-title.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
}

/* Original logo in the middle of the hero graphic */
.hv-logo { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; }
.hv-logo svg { width: 100%; height: 100%; display: block; }
@media (max-width: 560px) { .hv-logo { width: 140px; height: 140px; margin: -70px 0 0 -70px; } }

.hv-ic svg { width: 18px !important; height: 18px !important; }

/* No bottom tab bar on phones (menu button at the top instead) */
.tabbar { display: none !important; }
@media (max-width: 1023px) { body.has-shell { padding-bottom: env(safe-area-inset-bottom, 0px); } }

/* Compact hero on phones */
@media (max-width: 560px) {
  body.has-shell .hero-home { padding-top: 18px; padding-bottom: 30px; }
  .hero-home .hero-visual { height: 176px; margin: 0 auto 6px; }
  .hero-home .hv-logo { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
  .hero-home .hv-glow { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
  .hero-home .hv-card { padding: 7px 10px 7px 7px; gap: 8px; border-radius: 13px; }
  .hero-home .hv-ic { width: 28px; height: 28px; border-radius: 8px; }
  .hero-home .hv-card b { font-size: 0.76rem; } .hero-home .hv-card small { font-size: 0.66rem; }
  .hero-home h1 { font-size: 1.95rem !important; line-height: 1.12; }
  .hero-home .lead { font-size: 0.98rem; margin-top: 12px !important; }
  .hero-home .hero-cue { display: none; }
  .hero-home .wrap { gap: 6px !important; }
}

/* Sponsorships: problems we solve, sponsorship FAQs, connected steps */
.sp-pain { margin: 34px auto 30px; text-align: center; }
.sp-pain h3, .sp-faq h3 { font-size: 1.35rem; margin-bottom: 16px; }
.sp-pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.sp-pain-grid > div { background: var(--surface); border: 1px solid var(--line-light); border-radius: 18px; padding: 20px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 6px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.sp-pain-grid > div:hover { transform: translateY(-3px); }
.sp-pain-grid b { font-size: 0.98rem; }
.sp-pain-grid span { color: var(--slate-dark); font-size: 0.9rem; line-height: 1.55; }
.sp-pi { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(180,148,97,0.10); border: 1px solid rgba(180,148,97,0.40); margin-bottom: 6px; }
.sp-pi svg { width: 19px; height: 19px; fill: none; stroke: var(--bronze); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sp-faq { max-width: 760px; margin: 48px auto 0; text-align: center; }
.sp-faq .faq-list { text-align: left; }
@media (max-width: 760px) { .sp-pain-grid { grid-template-columns: 1fr; } }

/* A gold line joins the four steps on computers */
@media (min-width: 901px) {
  #sponsorships .sp-steps { position: relative; }
  #sponsorships .sp-steps::before { content: ""; position: absolute; top: 24px; left: 12%; right: 12%; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(180,148,97,0.15), #B49461, rgba(180,148,97,0.15)); transform-origin: 0 50%; z-index: 0; }
  #sponsorships .sp-steps .step { position: relative; z-index: 1; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  #sponsorships .sp-steps::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
  #sponsorships .sp-steps.in-view::before { transform: scaleX(1); }
}
@media (min-width: 901px) {
  #sponsorships .sp-steps .icon-box { background: #FBF8F2; border-radius: 50%; padding: 9px; width: 50px; height: 50px; box-shadow: 0 0 0 6px #FBF8F2; }
  [data-theme="dark"] #sponsorships .sp-steps .icon-box { background: #131210; box-shadow: 0 0 0 6px #131210; }
}

/* Contact form: one-choice pages and tap-to-select buttons */
.one-choice { display: none !important; }
.vh { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
#subtypeWrap { position: relative; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.pill {
  flex: 1 1 0; min-width: 120px; padding: 13px 18px; border-radius: 14px; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--line-light);
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .15s ease, box-shadow .25s ease;
}
.pill:hover { border-color: var(--bronze); }
.pill:active { transform: scale(0.97); }
.pill.on { background: linear-gradient(135deg, #DCC18F, #B49461); border-color: #B49461; color: #15130F; box-shadow: 0 8px 20px rgba(180,148,97,0.30); }

/* =========================================================
   v6.5: light mode as rich as dark mode
   ========================================================= */
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-orbs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.bg-orbs i:nth-child(1) { width: 520px; height: 520px; top: -140px; right: -120px; background: radial-gradient(circle, rgba(214,186,134,0.55), transparent 70%); }
.bg-orbs i:nth-child(2) { width: 460px; height: 460px; top: 38%; left: -160px; background: radial-gradient(circle, rgba(201,143,85,0.35), transparent 70%); }
.bg-orbs i:nth-child(3) { width: 560px; height: 560px; bottom: -220px; right: 18%; background: radial-gradient(circle, rgba(230,207,159,0.50), transparent 70%); }
[data-theme="dark"] .bg-orbs i { opacity: .28; }

/* Light mode: warmer glows, gold edges and a stronger gold glow under the pointer */
[data-theme="light"] {
  --bg-glow:
    radial-gradient(1100px 620px at 92% -8%, rgba(214,186,134,0.42), transparent 62%),
    radial-gradient(900px 560px at -12% 34%, rgba(201,143,85,0.20), transparent 60%),
    radial-gradient(900px 700px at 55% 112%, rgba(214,186,134,0.26), transparent 62%),
    linear-gradient(180deg, #FCF8EF 0%, #F3EBDB 100%);
  --line-light: rgba(180,148,97,0.22);
}
[data-theme="light"] .svc-card, [data-theme="light"] .pkg:not(.featured), [data-theme="light"] .sp-card, [data-theme="light"] .explore-card,
[data-theme="light"] .widget, [data-theme="light"] .sp-pain-grid > div, [data-theme="light"] .sp-checks-grid > div {
  background-image: radial-gradient(340px circle at var(--mx, -400px) var(--my, -400px), rgba(214,186,134,0.38), rgba(230,207,159,0.10) 45%, transparent 65%);
  border-color: rgba(180,148,97,0.25);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
[data-theme="light"] .svc-card:hover, [data-theme="light"] .pkg:not(.featured):hover, [data-theme="light"] .sp-card:hover, [data-theme="light"] .explore-card:hover,
[data-theme="light"] .widget:hover, [data-theme="light"] .sp-pain-grid > div:hover, [data-theme="light"] .sp-checks-grid > div:hover {
  border-color: rgba(180,148,97,0.65);
  box-shadow: 0 0 0 1px rgba(214,186,134,0.25), 0 18px 40px rgba(180,148,97,0.22);
}
/* Dark mode gets the same pointer glow on these cards too */
.sp-pain-grid > div, .sp-checks-grid > div { background-image: radial-gradient(320px circle at var(--mx, -400px) var(--my, -400px), rgba(214,186,134,0.16), transparent 60%); }

/* Gold shimmer line across the top of light cards on hover */
[data-theme="light"] .svc-card::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #B49461, transparent); opacity: 0; transition: opacity .35s ease; }
[data-theme="light"] .svc-card:hover::after { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .bg-orbs i:nth-child(1) { animation: orb1 22s ease-in-out infinite alternate; }
  .bg-orbs i:nth-child(2) { animation: orb2 26s ease-in-out infinite alternate; }
  .bg-orbs i:nth-child(3) { animation: orb3 30s ease-in-out infinite alternate; }
  @keyframes orb1 { to { transform: translate(-260px, 180px) scale(1.15); } }
  @keyframes orb2 { to { transform: translate(300px, -140px) scale(1.2); } }
  @keyframes orb3 { to { transform: translate(-220px, -200px) scale(0.9); } }
}
@media (max-width: 760px) { .bg-orbs i { filter: blur(40px); } .bg-orbs i:nth-child(1) { width: 340px; height: 340px; } .bg-orbs i:nth-child(2) { width: 300px; height: 300px; } .bg-orbs i:nth-child(3) { width: 360px; height: 360px; } }

/* Cross-link between services in page headers */
.alt-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 500;
  color: #E6CF9F; text-decoration: none; border: 1px solid rgba(180,148,97,0.40); background: rgba(255,255,255,0.04); transition: background .25s ease, gap .25s ease; }
.alt-link:hover { background: rgba(180,148,97,0.15); gap: 12px; }

/* Gliding line of key points under the sponsorship header */
.ticker { overflow: hidden; padding: 16px 0; border-bottom: 1px solid var(--line-light);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; }
.ticker-set { display: flex; align-items: center; }
.ticker span { white-space: nowrap; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); padding: 0 18px; }
.ticker i { font-style: normal; color: var(--bronze); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: marquee 34s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}

/* =========================================================
   Sponsorships: How it works, as a connected 4-step flow
   ========================================================= */
.flow { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; counter-reset: none; }
.flow::before { content: ""; position: absolute; top: 44px; left: 12.5%; right: 12.5%; height: 2px; border-radius: 2px; z-index: 0;
  background: linear-gradient(90deg, rgba(180,148,97,0.2), #B49461 50%, rgba(180,148,97,0.2)); transform-origin: 0 50%; }
.flow-step { position: relative; z-index: 1; text-align: center; padding: 20px 18px 22px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line-light); box-shadow: var(--card-shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease; }
.flow-step:hover { transform: translateY(-4px); border-color: rgba(180,148,97,0.6); box-shadow: 0 18px 40px rgba(180,148,97,0.20); }
.flow-num { position: absolute; top: 12px; right: 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--bronze); opacity: .8; }
.flow-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E2C994, #A9884F); box-shadow: 0 8px 20px rgba(180,148,97,0.35), 0 0 0 6px var(--paper); }
.flow-ic svg { width: 24px; height: 24px; fill: none; stroke: #15130F; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.flow-step p { color: var(--slate-dark); font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* Phone: a vertical timeline */
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 12px; padding-left: 0; }
  .flow::before { top: 30px; bottom: 30px; left: 41px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(180,148,97,0.2), #B49461 50%, rgba(180,148,97,0.2)); transform-origin: 50% 0; }
  .flow-step { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; text-align: left; padding: 16px 16px 16px 16px; align-items: start; }
  .flow-ic { grid-row: 1 / span 2; margin: 0; width: 50px; height: 50px; }
  .flow-step h3 { align-self: end; margin: 2px 0 2px; }
  .flow-step p { grid-column: 2; }
  .flow-num { top: 14px; right: 16px; }
}

/* Tick row as soft pills */
.sp-trust-row { gap: 10px !important; }
.sp-trust-row li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-light); font-size: 0.86rem !important; }

@media (prefers-reduced-motion: no-preference) {
  .flow.reveal { opacity: 1 !important; transform: none !important; }
  .flow .flow-step { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease; }
  .flow.in-view .flow-step { opacity: 1; transform: none; }
  .flow.in-view .flow-step:nth-child(2) { transition-delay: .12s, .12s, 0s, 0s; }
  .flow.in-view .flow-step:nth-child(3) { transition-delay: .24s, .24s, 0s, 0s; }
  .flow.in-view .flow-step:nth-child(4) { transition-delay: .36s, .36s, 0s, 0s; }
  .flow.in-view .flow-step:hover { transform: translateY(-4px); transition-delay: 0s; }
  .flow::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
  .flow.in-view::before { transform: scaleX(1); }
  .flow .flow-ic { transform: scale(.6); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
  .flow.in-view .flow-ic { transform: scale(1); }
  .flow.in-view .flow-step:nth-child(2) .flow-ic { transition-delay: .2s; } .flow.in-view .flow-step:nth-child(3) .flow-ic { transition-delay: .32s; } .flow.in-view .flow-step:nth-child(4) .flow-ic { transition-delay: .44s; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .flow::before { transform: scaleY(0); }
  .flow.in-view::before { transform: scaleY(1); }
  .flow.in-view .flow-step:hover { transform: none; }
}

/* Stop any sideways wobble on phones */
html, body { overflow-x: clip; }

/* Floating "Request a shortlist" button (phones and tablets) */
.float-cta { display: none; }
@media (max-width: 1023px) {
  .float-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 45;
    justify-content: center; align-items: center; padding: 15px 20px; border-radius: 16px; text-decoration: none; font-weight: 600; font-size: 0.98rem;
    color: #15130F; background: linear-gradient(135deg, #E2C994, #B49461 60%, #9A7B4C);
    box-shadow: 0 14px 32px rgba(21,19,15,0.28), 0 0 0 1px rgba(255,255,255,0.25) inset;
    transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  }
  .float-cta.show { transform: none; opacity: 1; pointer-events: auto; }
  .float-cta:active { transform: scale(0.98); }
}

/* Websites & Logos: who it's for */
.ws-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0 30px; }
.ws-who > div { background: var(--surface); border: 1px solid var(--line-light); border-radius: 18px; padding: 20px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 6px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
  background-image: radial-gradient(320px circle at var(--mx, -400px) var(--my, -400px), rgba(214,186,134,0.22), transparent 60%); }
.ws-who > div:hover { transform: translateY(-3px); border-color: rgba(180,148,97,0.6); box-shadow: 0 16px 36px rgba(180,148,97,0.18); }
.ws-who b { font-size: 1rem; } .ws-who span { color: var(--slate-dark); font-size: 0.9rem; line-height: 1.55; }
#design .sp-card ul { list-style: none; padding: 0; margin: 14px 0 16px; }
#design .sp-card .pkg-more { margin-top: auto; }
@media (max-width: 760px) { .ws-who { grid-template-columns: 1fr; } }
#design .btn-outline { color: var(--text); border: 1.5px solid var(--bronze); background: var(--surface); transition: transform .2s ease, background .25s ease, color .25s ease; }
#design .btn-outline:hover { background: var(--bronze); color: #15130F; transform: translateY(-2px); }

/* =========================================================
   v6.6: animated icons on hover, site-wide
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  @keyframes redraw { 0% { stroke-dasharray: 100; stroke-dashoffset: 100; } 100% { stroke-dasharray: 100; stroke-dashoffset: 0; } }
  @keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 70% { transform: scale(0.96); } 100% { transform: scale(1.06); } }
  @keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }
  @keyframes spin-half { from { transform: rotate(0); } to { transform: rotate(180deg); } }
  @keyframes quarter { from { transform: rotate(0) scale(1); } to { transform: rotate(90deg) scale(1.1); } }
  @keyframes rise { 0% { transform: translate(0, 0); } 45% { transform: translate(4px, -6px); } 100% { transform: translate(0, 0); } }
  @keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
  @keyframes write { 0%, 100% { transform: translate(0,0) rotate(0); } 30% { transform: translate(-2px,2px) rotate(-10deg); } 60% { transform: translate(2px,-1px) rotate(6deg); } }

  /* Every line icon redraws itself when its card or button is hovered */
  .ws-who > div:hover .sp-pi svg *, .sp-pain-grid > div:hover .sp-pi svg *, .flow-step:hover .flow-ic svg *, .svc-card:hover .app-icon svg *,
  a.widget:hover svg *, .widget:hover svg *, .sb-nav a:hover svg *, .step:hover .icon *, .pkg:hover .icon *, .icon-btn:hover svg * {
    animation: redraw .9s cubic-bezier(.4,0,.2,1) both;
  }
  .sp-pi, .flow-ic, .app-icon, .widget svg, .sb-nav a svg, .step .icon, .icon-btn svg { transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s ease, box-shadow .3s ease; }

  /* Small round icons fill with gold and pop */
  .ws-who > div:hover .sp-pi, .sp-pain-grid > div:hover .sp-pi { background: linear-gradient(135deg, #E2C994, #A9884F); border-color: #B49461; animation: pop .55s cubic-bezier(.2,.8,.2,1) both; }
  .ws-who > div:hover .sp-pi svg, .sp-pain-grid > div:hover .sp-pi svg { stroke: #15130F; }

  /* Each Websites & Logos card has its own move */
  .ws-who > div:nth-child(1):hover .sp-pi svg { animation: quarter .7s cubic-bezier(.2,.8,.2,1) both; }   /* Starting out: spark turns */
  .ws-who > div:nth-child(2):hover .sp-pi svg { animation: rise .8s ease both; }                          /* Growing: line climbs */
  .ws-who > div:nth-child(3):hover .sp-pi svg { animation: spin-half .8s cubic-bezier(.2,.8,.2,1) both; } /* Established: refresh turns */

  /* Sponsorship problem cards */
  .sp-pain-grid > div:nth-child(1):hover .sp-pi svg { animation: wiggle .7s ease both; }   /* search glass looks around */
  .sp-pain-grid > div:nth-child(2):hover .sp-pi svg { animation: pop .6s ease both; }      /* shield pulses */
  .sp-pain-grid > div:nth-child(3):hover .sp-pi svg { animation: rise .8s ease both; }     /* chart climbs */

  /* Step circles: lift, glow and a move per step */
  .flow-step:hover .flow-ic { transform: translateY(-4px) scale(1.08); box-shadow: 0 14px 28px rgba(180,148,97,0.45), 0 0 0 6px var(--paper); }
  .flow-step:nth-child(1):hover .flow-ic svg { animation: wiggle .7s ease both; }
  .flow-step:nth-child(2):hover .flow-ic svg { animation: pop .6s ease both; }
  .flow-step:nth-child(3):hover .flow-ic svg { animation: write .8s ease both; }
  .flow-step:nth-child(4):hover .flow-ic svg { animation: rise .8s ease both; }

  /* Home service icons */
  .svc-card:hover .app-icon svg { animation: pop .6s ease both; }

  /* Lead generation steps and packages */
  .step:hover .icon { transform: translateY(-4px) scale(1.1); }

  /* Side menu icons */
  .sb-nav a:hover svg { transform: scale(1.15) rotate(-6deg); }

  /* Buttons: arrows nudge, presses feel physical */
  .btn:active, .sb-cta:active, .pill:active, .svc-go:active { transform: scale(0.97); }
  .alt-link:hover span, .svc-card:hover .chev { animation: nudge .8s ease infinite; }
  .btn-primary:hover, .sb-cta:hover { box-shadow: 0 12px 28px rgba(180,148,97,0.45); }
  .icon-btn:hover svg { transform: rotate(-15deg) scale(1.1); }
  .pkg-more { transition: color .25s ease, letter-spacing .25s ease; }
  .pkg-more:hover { color: var(--bronze); letter-spacing: 0.02em; }
}
