/* ═══════════════════════════════════════════════════════════
   tools.css — Shared stylesheet · Eduroutes AI
   All dark-bg text explicitly set to high-contrast colours.
   Remix Icons used throughout via <i class="ri-*"> tags.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Tokens ── */
:root {
  --red:        #b91c1c;
  --red-bright: #e55555;   /* brighter red for use on dark backgrounds */
  --ink:        #181818;
  --ink-2:      #444444;
  --ink-3:      #888888;
  --paper:      #faf8f5;
  --paper-2:    #f2efe8;
  --paper-3:    #e8e3d9;
  --white:      #ffffff;
  --border:     #e0dbd1;
  --radius:     24px;
  --f-display:  'Fraunces', serif;
  --f-serif:    'DM Serif Display', serif;
  --f-body:     'DM Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Remix icon alignment helper */
i[class^="ri-"], i[class*=" ri-"] {
  display: inline-flex; align-items: center; line-height: 1; vertical-align: middle;
}

/* ════════════════════════════════════════════
   SHARED NAVBAR  (.s-nav)
════════════════════════════════════════════ */
.s-nav {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: #181818;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .3s;
}
.s-nav--scrolled { box-shadow: 0 4px 40px rgba(0,0,0,.45); }

.s-nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 72px; padding: 0 28px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}

/* Brand */
.s-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600;
  font-size: 1.15rem; color: #ffffff;
  text-decoration: none; flex-shrink: 0;
  letter-spacing: -0.01em;
}
.s-nav-logo {
  width: 38px; height: 38px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; flex-shrink: 0;
  transition: border-color .2s;
}
.s-nav-brand:hover .s-nav-logo { border-color: var(--red); color: var(--red); }

/* Nav link pills */
.s-nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.s-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 9999px;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}
.s-nav-link i { font-size: 15px; }
.s-nav-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
}
.s-nav-link--active {
  color: #ffffff;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.15);
}

/* Right side: CTA + hamburger */
.s-nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.s-nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: #ffffff; color: #181818;
  border-radius: 9999px;
  font-size: 13px; font-weight: 600;
  font-family: var(--f-body); text-decoration: none;
  transition: background .2s;
}
.s-nav-cta i { font-size: 13px; }
.s-nav-cta:hover { background: var(--paper-3); }

.s-nav-burger {
  display: none; background: none; border: none;
  color: rgba(255,255,255,.7); font-size: 22px;
  cursor: pointer; padding: 4px;
}

/* ════════════════════════════════════════════
   SHARED FOOTER  (.s-footer)
════════════════════════════════════════════ */
.s-footer {
  background: #181818;
  border-top: 1px solid rgba(255,255,255,.07);
}

.s-footer-top { padding: 64px 28px 48px; }
.s-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
}

/* Brand column */
.s-footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600;
  font-size: 1.05rem; color: #ffffff;
  text-decoration: none; margin-bottom: 16px;
}
.s-footer-tagline {
  font-size: 13.5px; line-height: 1.8;
  color: rgba(255,255,255,.45);
  max-width: 220px; margin-bottom: 22px;
}
.s-footer-socials { display: flex; gap: 8px; }
.s-footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 15px; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.s-footer-social:hover {
  background: rgba(255,255,255,.1);
  color: #ffffff; border-color: rgba(255,255,255,.25);
}

/* Footer columns */
.s-footer-col-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.s-footer-col-title i { font-size: 13px; }

.s-footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.s-footer-links a {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}
.s-footer-links a i { font-size: 14px; flex-shrink: 0; }
.s-footer-links a:hover { color: #ffffff; }

/* Bottom bar */
.s-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 28px;
}
.s-footer-bottom-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.s-footer-copy {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: rgba(255,255,255,.25);
}
.s-footer-copy i { font-size: 13px; }
.s-footer-bottom-links {
  display: flex; gap: 24px;
}
.s-footer-bottom-links a {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: rgba(255,255,255,.25);
  text-decoration: none; transition: color .2s;
}
.s-footer-bottom-links a i { font-size: 12px; }
.s-footer-bottom-links a:hover { color: rgba(255,255,255,.6); }

/* ════════════════════════════════════════════
   TOOL HERO  (dark section)
════════════════════════════════════════════ */
.t-hero {
  padding: 120px 28px 60px;
  background: #181818;
  position: relative; overflow: hidden;
}
.t-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.t-hero-glow {
  position: absolute; top: -120px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,28,28,.2) 0%, transparent 70%);
  pointer-events: none;
}
.t-hero-inner {
  max-width: 900px; margin: 0 auto;
  position: relative; z-index: 2;
}

/* Badge pill on dark bg */
.t-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 9999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 11px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.75);           /* bright enough to read on dark */
  margin-bottom: 24px;
}
.t-hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: t-pulse 2s infinite;
}
@keyframes t-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(185,28,28,.6); }
  50%      { box-shadow: 0 0 0 8px rgba(185,28,28,0); }
}

/* Headline — white on dark */
.t-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;                         /* explicit white */
  margin-bottom: 16px;
}
.t-hero h1 em {
  font-family: var(--f-serif); font-style: italic;
  color: var(--red-bright);               /* brighter for dark bg */
}

/* Sub text on dark bg */
.t-hero-sub {
  font-size: 1.0625rem; line-height: 1.8;
  color: rgba(255,255,255,.65);           /* clearly visible on dark */
  max-width: 540px; margin-bottom: 36px;
}

.t-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ════════════════════════════════════════════
   MAIN WRAPPER
════════════════════════════════════════════ */
.t-main {
  max-width: 1200px; margin: -32px auto 0;
  padding: 0 28px 80px;
  position: relative; z-index: 2;
}

/* ════════════════════════════════════════════
   TOOL CARD  (white floating widget)
════════════════════════════════════════════ */
.t-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,.1);
}
.t-card-title {
  font-family: var(--f-display); font-size: 1.3rem; font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.t-card-title i { color: var(--red); font-size: 1.3rem; }
.t-card-sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 28px; }

/* Form labels */
.t-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; font-weight: 700;
  color: var(--ink-2);
  letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 8px; margin-top: 22px;
}
.t-label:first-of-type { margin-top: 0; }
.t-badge {
  font-size: 10px; font-weight: 600; padding: 2px 10px;
  border-radius: 9999px; text-transform: uppercase; letter-spacing: .1em;
  background: var(--paper-2); color: var(--ink-3);
}
.t-badge--req { background: #fce8e8; color: var(--red); }

/* Inputs — light bg so text is fully visible */
textarea.t-input, input.t-input, select.t-input {
  width: 100%; padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--ink);                      /* dark text on light bg */
  font-family: var(--f-body); font-size: 14.5px; line-height: 1.65;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
textarea.t-input { min-height: 140px; resize: vertical; }
textarea.t-input:focus, input.t-input:focus, select.t-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185,28,28,.1);
  background: #ffffff;
}
textarea.t-input::placeholder, input.t-input::placeholder { color: var(--ink-3); font-size: 13px; }
select.t-input { color: var(--ink); }
select.t-input option { background: #fff; color: var(--ink); }

/* Output textarea */
.t-output-wrap { position: relative; }
textarea.t-output {
  width: 100%; min-height: 140px; padding: 14px 16px;
  border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--paper-2);
  color: var(--ink);                      /* dark text on light bg */
  font-family: var(--f-body); font-size: 14.5px; line-height: 1.65;
  resize: vertical; outline: none;
}
.t-copy-btn {
  position: absolute; right: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500;
  padding: 5px 13px; border-radius: 9999px;
  border: 1px solid var(--border);
  background: #ffffff; color: var(--ink-2);
  cursor: pointer; transition: background .2s;
}
.t-copy-btn i { font-size: 13px; }
.t-copy-btn:hover { background: var(--paper-3); }

/* Divider */
.t-divider { width: 100%; height: 1px; background: var(--border); margin: 28px 0; }

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.t-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 9999px;
  font-family: var(--f-body); font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, opacity .2s, background .2s;
}
.t-btn:hover:not(:disabled) { transform: translateY(-2px); }
.t-btn:disabled { opacity: .5; cursor: not-allowed; }
.t-btn i { font-size: 16px; }

/* Primary — dark bg, white text */
.t-btn-primary {
  background: var(--ink); color: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.t-btn-primary:hover:not(:disabled) { background: #2d2d2d; box-shadow: 0 8px 30px rgba(0,0,0,.24); }

/* Red CTA */
.t-btn-red {
  background: var(--red); color: #ffffff;
  box-shadow: 0 4px 20px rgba(185,28,28,.28);
}
.t-btn-red:hover:not(:disabled) { opacity: .9; box-shadow: 0 8px 30px rgba(185,28,28,.35); }

/* Ghost — on light bg */
.t-btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border);
}
.t-btn-ghost:hover:not(:disabled) { border-color: var(--ink); }

/* Ghost — on dark hero bg */
.t-btn-ghost-dark {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);            /* visible on dark bg */
  border: 1.5px solid rgba(255,255,255,.2);
}
.t-btn-ghost-dark:hover:not(:disabled) {
  background: rgba(255,255,255,.14);
  color: #ffffff; border-color: rgba(255,255,255,.4);
}

/* Nav step buttons */
.t-btn-nav {
  background: var(--paper-2); color: var(--ink-2);
  border: 1.5px solid var(--border);
}

/* Status line */
.t-status {
  margin-top: 12px; font-size: 13px; color: var(--red);
  display: flex; align-items: center; gap: 6px; min-height: 18px;
}
.t-status i { font-size: 15px; }
.t-status--ok { color: #15803d; }

/* Spinner */
.t-spin { display: inline-flex; animation: t-rotate .8s linear infinite; }
@keyframes t-rotate { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════
   PLAGIARISM RESULTS LIST
════════════════════════════════════════════ */
.t-results {
  list-style: none; padding: 0;
  border: 1.5px solid var(--border);
  border-radius: 18px; overflow: hidden; margin-top: 4px;
}
.t-results li {
  display: flex; gap: 12px;
  padding: 14px 20px;
  font-size: 14px; color: var(--ink-2);   /* dark on white bg */
  border-bottom: 1px solid var(--border);
  align-items: flex-start; background: #ffffff;
}
.t-results li:last-child { border-bottom: none; }
.t-results li i { font-size: 18px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.t-results strong { color: var(--ink); }

.t-copy-mini {
  margin-left: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--paper-2); color: var(--ink-2);
  cursor: pointer; transition: background .2s;
}
.t-copy-mini i { font-size: 12px; }
.t-copy-mini:hover { background: var(--paper-3); }

/* ════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════ */
.sr { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.sr.in { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════
   SECTION HELPERS
════════════════════════════════════════════ */
.t-eye {
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.t-eye i { font-size: 12px; }
.t-h2 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 8px;
}
.t-sub { font-size: 15px; color: var(--ink-3); max-width: 520px; line-height: 1.7; }

/* ════════════════════════════════════════════
   OTHER TOOLS STRIP
════════════════════════════════════════════ */
.t-other-tools {
  padding: 72px 28px;
  background: var(--paper-2);
  border-top: 1px solid var(--border);
}
.t-other-inner { max-width: 1200px; margin: 0 auto; }

.t-tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 32px;
}
.t-tool-card {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  text-decoration: none; display: block;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.t-tool-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.09);
  transform: translateY(-4px); border-color: var(--red);
}
/* Current (dark) tool card */
.t-tool-card--current {
  background: #181818; border-color: #181818; pointer-events: none;
}
.t-tool-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 20px; color: var(--red);
}
/* Icon on dark card — white */
.t-tool-card--current .t-tool-icon { background: rgba(255,255,255,.1); color: #ffffff; }

.t-tool-card-name {
  font-family: var(--f-display); font-size: 1.05rem; font-weight: 400;
  color: var(--ink); margin-bottom: 6px;
}
.t-tool-card--current .t-tool-card-name { color: #ffffff; }       /* white on dark */

.t-tool-card-desc { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.t-tool-card--current .t-tool-card-desc { color: rgba(255,255,255,.5); } /* readable on dark */

.t-tool-card-cta {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; font-size: 12.5px; font-weight: 600;
  color: var(--red);
}
.t-tool-card--current .t-tool-card-cta { color: rgba(255,255,255,.35); }

/* ════════════════════════════════════════════
   ABOUT / FEATURES SECTION
════════════════════════════════════════════ */
.t-about { padding: 80px 28px; border-top: 1px solid var(--border); background: #ffffff; }
.t-about-inner { max-width: 1200px; margin: 0 auto; }

.t-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 44px;
}
.t-feat {
  padding: 28px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--paper);
  transition: box-shadow .3s, transform .3s;
}
.t-feat:hover { box-shadow: 0 12px 36px rgba(0,0,0,.06); transform: translateY(-3px); }
.t-feat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--paper-2); display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; color: var(--red); margin-bottom: 14px;
}
.t-feat h4 {
  font-family: var(--f-display); font-size: 1rem; font-weight: 400;
  color: var(--ink); margin-bottom: 7px;
}
.t-feat p { font-size: 13px; color: var(--ink-3); line-height: 1.65; }

/* ════════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════════ */
.t-steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 44px;
}
.t-step {
  padding: 26px 18px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--paper);
  text-align: center; transition: border-color .3s, transform .3s;
}
.t-step:hover { border-color: var(--red); transform: translateY(-3px); }
.t-step-num {
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper-3); margin-bottom: 14px;
}
.t-step-icon {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 15px; color: var(--red);
}
.t-step h4 {
  font-family: var(--f-display); font-size: .95rem; font-weight: 400;
  color: var(--ink); margin-bottom: 6px;
}
.t-step p { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* ════════════════════════════════════════════
   FAQ
════════════════════════════════════════════ */
.t-faq { padding: 80px 28px; background: var(--paper-2); border-top: 1px solid var(--border); }
.t-faq-inner { max-width: 1200px; margin: 0 auto; }
.t-faq-item { border-bottom: 1px solid var(--border); }
.t-faq-trigger {
  width: 100%; background: none; border: none;
  padding: 24px 0; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.t-faq-q { font-size: 15px; font-weight: 500; color: var(--ink); text-align: left; line-height: 1.5; }
.t-faq-icon { font-size: 1.2rem; color: var(--ink-3); transition: transform .3s; flex-shrink: 0; }
.t-faq-icon.open { transform: rotate(45deg); }
.t-faq-body { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.16,1,.3,1); }
.t-faq-body.open { max-height: 300px; }
.t-faq-body p { font-size: 14px; color: var(--ink-2); line-height: 1.75; padding-bottom: 24px; }

/* ════════════════════════════════════════════
   RESUME BUILDER SPECIFICS
════════════════════════════════════════════ */
.step { display: none; animation: t-fadein .3s ease; }
.step.active { display: block; }
@keyframes t-fadein { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.t-progress-wrap {
  height: 5px; background: var(--border); border-radius: 999px; overflow: hidden;
  margin: 16px 0 14px;
}
.t-progress-bar {
  height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--red), #e55555);
  transition: width .35s ease; box-shadow: 0 0 8px rgba(185,28,28,.25);
}
.t-step-indicator {
  font-size: 13px; color: var(--ink-3);
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.t-step-indicator strong { color: var(--ink); }
.t-step-req {
  font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 9999px;
  background: #fce8e8; color: var(--red);
}
.t-step-req.optional { background: var(--paper-3); color: var(--ink-3); }

.t-template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.t-template {
  padding: 12px; border-radius: 14px; border: 2px solid var(--border);
  cursor: pointer; position: relative; transition: transform .2s, border-color .2s;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.t-template:hover { transform: translateY(-3px); border-color: var(--ink); }
.t-template.active { border-color: var(--red); }
.t-template.active::after {
  content: "Selected"; position: absolute; top: 8px; right: 8px;
  font-size: 10px; padding: 3px 8px;
  background: var(--red); color: #fff; border-radius: 999px;
}
.t-thumb { height: 90px; border-radius: 8px; margin-bottom: 8px; }
.t-thumb-exec   { background: linear-gradient(135deg,#2a2a2a,#181818); }
.t-thumb-modern { background: linear-gradient(135deg,#1e3a5f,#0f172a); }
.t-thumb-luxe   { background: linear-gradient(135deg,#4a1d4a,#1a0a2e); }

.t-colors { display: flex; gap: 10px; margin-top: 10px; }
.t-color { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; transition: transform .2s; }
.t-color:hover { transform: scale(1.15); }
.t-color.active { outline: 2.5px solid var(--ink); outline-offset: 2px; }

/* Eval panel — light bg so all text is readable */
.t-eval-panel {
  margin-top: 22px; padding: 24px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--paper);
}
.t-eval-title { font-family: var(--f-display); font-size: 1.1rem; font-weight: 400; color: var(--ink); }
.t-eval-role { display: block; font-size: 12.5px; font-weight: 600; color: var(--red); margin-top: 3px; }
.t-eval-subtitle { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.t-score-card {
  display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: center;
  padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--border); margin-top: 16px;
}
.t-score-val { font-family: var(--f-display); font-size: 2.6rem; font-weight: 300; color: var(--ink); line-height: 1; text-align: center; }
.t-score-lbl { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 4px; }
.t-score-bar-wrap { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.t-score-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg,var(--red),#e55555); transition: width 1s ease; }
.t-score-meta { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.t-improvements { margin-top: 18px; }
.t-improvements-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.t-improvements-title i { font-size: 14px; color: var(--red); }
.improve-list { list-style: none; padding: 0; }
.improve-list li { display: flex; gap: 10px; padding: 10px 14px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.improve-icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fce8e8; color: var(--red); font-size: 13px; }
.improve-content strong { display: block; font-size: 12px; margin-bottom: 2px; color: var(--ink); }
.improve-content p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 960px) {
  .s-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .s-nav-links {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #181818; border-top: 1px solid rgba(255,255,255,.08);
    padding: 12px 20px 20px; gap: 4px;
  }
  .s-nav-links--open { display: flex; }
  .s-nav-link { padding: 10px 14px; }
  .s-nav-burger { display: flex; }
  .t-tools-grid    { grid-template-columns: 1fr; }
  .t-features-grid { grid-template-columns: 1fr; }
  .t-steps-grid    { grid-template-columns: repeat(2, 1fr); }
  .t-template-grid { grid-template-columns: repeat(2, 1fr); }
  .t-hero          { padding: 96px 20px 44px; }
  .t-main          { padding: 0 16px 60px; }
  .t-card          { padding: 24px; }
  .t-score-card    { grid-template-columns: 1fr; }
  .s-footer-inner  { grid-template-columns: 1fr 1fr; padding: 0; gap: 24px; }
  .s-footer-top    { padding: 40px 20px 32px; }
}
@media (max-width: 480px) {
  .t-steps-grid          { grid-template-columns: 1fr; }
  .s-footer-inner        { grid-template-columns: 1fr; }
  .s-footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}


/* ════════════════════════════════════════════
   LANDING PAGE — index.php classes
   All inline styles from index.php converted
════════════════════════════════════════════ */

/* ── Layout ── */
.section     { padding: 120px 28px; }
.section-sm  { padding: 64px 28px; }
.inner       { max-width: 1200px; margin: 0 auto; }
.inner-narrow{ max-width: 720px; margin: 0 auto; }
.inner-rel   { position: relative; z-index: 2; width: 100%; }

/* ── Typography ── */
.eyebrow { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--red); margin-bottom:16px; }
.eyebrow--dim  { color: rgba(255,255,255,.3); }
.h1  { font-family:var(--f-display); font-size:clamp(2.4rem,5.5vw,4.2rem); font-weight:300; line-height:1.1; letter-spacing:-0.02em; color:var(--ink); }
.h2  { font-family:var(--f-display); font-size:clamp(1.9rem,3.5vw,3rem); font-weight:300; line-height:1.15; letter-spacing:-0.02em; color:var(--ink); }
.h2--light { color: #ffffff; }
.h3  { font-family:var(--f-display); font-size:1.25rem; font-weight:400; line-height:1.3; color:var(--ink); }
.h3--light { color: #ffffff; }
.h4  { font-family:var(--f-display); font-size:1rem; font-weight:400; color:var(--ink); margin-bottom:7px; }
.italic-accent { font-family:var(--f-serif); font-style:italic; color:var(--red); }
.body-lg  { font-size:1.0625rem; line-height:1.75; color:var(--ink-2); }
.body-lg--dim { color: rgba(255,255,255,.5); }
.body-sm  { font-size:.875rem; line-height:1.7; color:var(--ink-2); }
.body-sm--dim { color: rgba(255,255,255,.55); }
.body-sm--italic { font-style: italic; }
.label-sm { font-size:.75rem; font-weight:500; color:var(--ink-3); }
.label-sm--dim { color: rgba(255,255,255,.35); }
.f-display { font-family:var(--f-display); }
.f-serif   { font-family:var(--f-serif); }
.text-center { text-align: center; }
.text-red  { color: var(--red); }
.text-white{ color: #ffffff; }
.text-dim  { color: rgba(255,255,255,.4); }

/* Section heading intro block */
.section-head        { display:flex; flex-direction:column; gap:8px; }
.section-head--center{ text-align: center; align-items: center; }

/* ── Italic serif accent line (e.g. "Zero complexity.") ── */
.serif-sub { font-family:var(--f-serif); font-style:italic; font-size:1.6rem; color:var(--ink-2); margin-bottom:56px; }
.serif-cta { font-family:var(--f-serif); font-style:italic; font-size:clamp(1.8rem,4vw,3rem); color:var(--red); margin-bottom:24px; }

/* ── Buttons ── */
.btn-dark  { display:inline-flex;align-items:center;gap:8px;padding:14px 28px;background:var(--ink);color:#fff;border-radius:9999px;font-family:var(--f-body);font-size:.875rem;font-weight:500;border:1.5px solid var(--ink);cursor:pointer;transition:background .2s,transform .2s;text-decoration:none; }
.btn-dark:hover { background:#2a2a2a; transform:translateY(-1px); }
.btn-dark--white { background:#fff; color:var(--ink); border-color:#fff; }
.btn-dark--white:hover { background:var(--paper-2); }
.btn-dark--red { background:var(--red); border-color:var(--red); }
.btn-dark--red:hover { opacity:.9; }
.btn-ghost { display:inline-flex;align-items:center;gap:8px;padding:14px 28px;background:transparent;color:var(--ink);border-radius:9999px;font-family:var(--f-body);font-size:.875rem;font-weight:500;border:1.5px solid var(--border);cursor:pointer;transition:border-color .2s,transform .2s;text-decoration:none; }
.btn-ghost:hover { border-color:var(--ink); transform:translateY(-1px); }
.btn-ghost--dark { color:rgba(255,255,255,.7); border-color:rgba(255,255,255,.25); }
.btn-ghost--dark:hover { color:#fff; border-color:rgba(255,255,255,.6); }
.btn-ghost--full { width:100%; justify-content:center; }
.btn-dark--full  { width:100%; justify-content:center; }
.btn-red { display:inline-flex;align-items:center;gap:8px;padding:14px 28px;background:var(--red);color:#fff;border-radius:9999px;font-family:var(--f-body);font-size:.875rem;font-weight:500;border:1.5px solid var(--red);cursor:pointer;transition:opacity .2s,transform .2s;text-decoration:none; }
.btn-red:hover { opacity:.88; transform:translateY(-1px); }
.btn-red--sm { padding:10px 20px; font-size:12px; }

/* ── Cards ── */
.card { background:#fff; border:1px solid var(--border); border-radius:24px; padding:40px; transition:box-shadow .3s,transform .3s; }
.card:hover { box-shadow:0 16px 48px rgba(0,0,0,.07); transform:translateY(-4px); }
.card-dark { background:var(--ink); border:1px solid rgba(255,255,255,.06); border-radius:24px; padding:40px; position:relative; overflow:hidden; }
.card-dark .h3 { color:#fff; }
.card-dark .body-sm { color:rgba(255,255,255,.55); }

/* Icon box */
.icon-box { width:48px;height:48px;border-radius:14px;background:var(--paper-2);display:flex;align-items:center;justify-content:center;margin-bottom:28px;transition:background .25s;font-size:20px;color:var(--ink-3); }
.icon-box--dark { background:rgba(255,255,255,.08); color:#fff; }
.card:hover .icon-box { background:var(--ink); color:#fff; }

/* Card badge (top-right "Popular") */
.card-badge-wrap { position:absolute; top:0; right:0; padding:16px; }
.card-badge { background:var(--red); color:#fff; font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:4px 10px; border-radius:6px; display:inline-flex; align-items:center; gap:5px; }

/* Tilt + spotlight */
.tilt { transform-style:preserve-3d; transition:transform .15s ease,box-shadow .3s; }
.tilt:hover { box-shadow:0 24px 56px rgba(0,0,0,.12); }
.spotlight { isolation:isolate; }
.spotlight-layer { position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:3;opacity:0;transition:opacity .3s; }
.magnetic { transition:transform .3s cubic-bezier(.23,1,.32,1),background .2s,border-color .2s; }

/* ── Divider ── */
.divider      { width:100%; height:1px; background:var(--border); }
.divider-dark { width:100%; height:1px; background:rgba(255,255,255,.08); }

/* Tool CTA link (inside service cards) */
.tool-cta-link { display:inline-flex;align-items:center;gap:6px;margin-top:20px;padding:10px 20px;border-radius:9999px;background:var(--ink);color:#fff;font-size:13px;font-weight:500;font-family:var(--f-body);text-decoration:none;transition:background .2s; }
.tool-cta-link:hover { background:#2a2a2a; }
.tool-cta-link--outline { background:transparent; color:rgba(255,255,255,.8); border:1px solid rgba(255,255,255,.22); }
.tool-cta-link--outline:hover { background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.5); }

/* ── Stat pills ── */
.stat-pill { display:flex;align-items:center;gap:12px;padding:12px 22px;border-radius:9999px;background:#fff;border:1px solid var(--border);box-shadow:0 2px 12px rgba(0,0,0,.04); }
.stat-pill-icon { font-size:18px; color:var(--red); }
.stat-pill-sep  { width:1px; height:18px; background:var(--border); }
.stat-num { font-family:var(--f-display); font-size:1.1rem; font-weight:600; color:var(--ink); }
.counter  { display:inline-block; }

/* ── Hero ── */
.hero-grid { background-image:linear-gradient(var(--border) 1px,transparent 1px),linear-gradient(90deg,var(--border) 1px,transparent 1px);background-size:56px 56px; }
.hero-section { position:relative; min-height:100vh; display:flex; align-items:center; padding-top:96px; padding-bottom:96px; overflow:hidden; }
.hero-glow-tr { position:absolute;top:0;right:0;width:600px;height:600px;border-radius:50%;background:radial-gradient(circle,rgba(185,28,28,.07) 0%,transparent 70%);pointer-events:none; }
.hero-fade-b  { position:absolute;bottom:0;left:0;right:0;height:160px;background:linear-gradient(transparent,var(--paper));pointer-events:none; }
.hero-badge-pill { display:inline-flex;align-items:center;gap:8px;padding:8px 18px;border-radius:9999px;background:#fff;border:1px solid var(--border);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-2); }
.hero-badge-dot  { width:6px;height:6px;border-radius:50%;background:var(--red);animation:pulse 2s infinite; }
.hero-center { display:flex; justify-content:center; margin-bottom:40px; }
.hero-headline-wrap { text-align:center; margin-bottom:28px; }
.hero-headline-wrap .h1 { max-width:800px; margin:0 auto; }
.hero-sub-wrap { text-align:center; margin-bottom:44px; }
.hero-sub-wrap .body-lg { max-width:560px; margin:0 auto; }
.hero-ctas { display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-bottom:56px; }
.hero-stats { display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-bottom:72px; }

/* Hero dark panel (stats) */
.hero-panel { background:var(--ink);border-radius:28px;padding:56px;position:relative;overflow:hidden; }
.hero-panel::before { content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 15% 85%,rgba(185,28,28,.3) 0%,transparent 60%);pointer-events:none; }
.hero-panel-inner { position:relative; z-index:2; }
.hero-panel-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0; }
.hero-panel-col  { padding-right:48px; }
.hero-panel-col--mid { padding:0 48px; border-left:1px solid rgba(255,255,255,.08); }
.hero-panel-col--last{ padding-left:48px; border-left:1px solid rgba(255,255,255,.08); }
.panel-stat  { font-family:var(--f-display); font-size:3rem; font-weight:300; color:#fff; line-height:1; margin-bottom:12px; }
.panel-desc  { font-size:13.5px; line-height:1.7; color:rgba(255,255,255,.5); }
.panel-eyebrow { font-size:11px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; color:rgba(255,255,255,.35); margin-bottom:12px; display:flex; align-items:center; gap:7px; }

/* Bounce scroll arrow */
.scroll-hint  { text-align:center; margin-top:64px; }
.scroll-hint a { display:inline-flex;flex-direction:column;align-items:center;gap:8px;color:var(--ink-3);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;text-decoration:none; }
.scroll-hint i { font-size:20px; }
@keyframes bounce-y { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }
.bounce { animation:bounce-y 1.8s ease-in-out infinite; }

/* ── Sticky bar ── */
#sticky-bar { position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(100px);z-index:300;transition:transform .5s cubic-bezier(.16,1,.3,1);pointer-events:none;white-space:nowrap; }
#sticky-bar.show { transform:translateX(-50%) translateY(0); pointer-events:auto; }
.sticky-pill { background:#181818;border:1px solid rgba(255,255,255,.12);border-radius:9999px;padding:12px 20px;display:flex;align-items:center;gap:16px;box-shadow:0 12px 40px rgba(0,0,0,.35); }
.sticky-pill-text { font-size:13px; color:rgba(255,255,255,.65); display:flex; align-items:center; gap:7px; }

/* ── Cursor ── */
#cursor-dot,#cursor-ring { position:fixed;top:0;left:0;border-radius:50%;pointer-events:none;z-index:9999;transform:translate(-50%,-50%);will-change:transform; }
#cursor-dot  { width:8px;height:8px;background:var(--red); }
#cursor-ring { width:36px;height:36px;border:1.5px solid rgba(185,28,28,.4);transition:width .2s,height .2s,border-color .2s; }
.cursor-expand #cursor-ring { width:56px;height:56px;border-color:rgba(185,28,28,.7); }

/* Typewriter */
#typewriter-word { position:relative;display:inline-block; }
#typewriter-word::after { content:'';position:absolute;right:-4px;top:10%;bottom:10%;width:2px;background:var(--red);opacity:0;animation:blink .9s step-end infinite; }
#typewriter-word.typing::after { opacity:1; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Stagger list */
.stagger-list li { opacity:0;transform:translateX(-10px);transition:opacity .4s ease,transform .4s ease; }
.stagger-list.revealed li { opacity:1;transform:translateX(0); }
.feat-list    { display:flex; flex-direction:column; gap:10px; list-style:none; }
.feat-list-dark { gap:10px; }
.feat-list li { display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--ink-2); }
.feat-list-dark li { color:rgba(255,255,255,.6); }
.feat-list-check li { display:flex;align-items:center;gap:12px;font-size:13.5px;color:var(--ink-2); }
.feat-list-check-dark li { display:flex;align-items:center;gap:12px;font-size:13.5px;color:rgba(255,255,255,.7); }

/* ── Red strip marquee ── */
.red-strip { background:var(--red);padding:16px 0;overflow:hidden; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee     { display:flex;width:fit-content;animation:marquee 36s linear infinite; }
.marquee-rev { animation-direction:reverse; }
.marquee-item { font-size:13px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.9);padding:0 32px;display:flex;align-items:center;gap:12px;white-space:nowrap; }
.marquee-sep  { color:rgba(255,255,255,.4);padding:0 8px; }

/* Trust bar */
.trust-bar  { padding:24px 28px;border-bottom:1px solid var(--border);overflow:hidden; }
.trust-item { font-size:11px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-3);white-space:nowrap;padding:0 28px;display:flex;align-items:center;gap:8px; }
.trust-sep  { color:var(--paper-3);padding:0 4px; }

/* ── Use-cases marquee ── */
.use-case-bar { padding:28px 0;border-top:1px solid var(--border);overflow:hidden;background:var(--paper); }
.dtag { padding:12px 24px;border-radius:12px;border:1px solid var(--border);background:#fff;color:var(--ink-2);font-weight:500;font-size:14px;white-space:nowrap;transition:background .2s,color .2s;display:inline-flex;align-items:center;gap:7px; }
.dtag:hover { background:var(--ink); color:#fff; border-color:var(--ink); }
.dtag i { color:var(--red); }

/* ── Sections ── */
.section--paper   { background:var(--paper); }
.section--paper-2 { background:var(--paper-2); }
.section--border-t{ border-top:1px solid var(--border); }
.section--dark    { background:#181818; }

/* ── Grid layouts ── */
.grid-3  { display:grid;grid-template-columns:repeat(3,1fr);gap:24px; }
.grid-4  { display:grid;grid-template-columns:repeat(4,1fr);gap:24px; }
.grid-2-1{ display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center; }
.grid-2  { display:grid;grid-template-columns:1fr 1fr;gap:32px; }

/* ── Section heading spacers ── */
.mb-section { margin-bottom:64px; }
.mb-section-lg { margin-bottom:72px; }

/* ── Why us numbered items ── */
.why-list { display:flex;flex-direction:column;gap:40px; }
.why-item { display:flex;gap:24px; }
.why-num  { font-family:var(--f-display);font-size:2rem;font-weight:300;color:var(--paper-3);flex-shrink:0;line-height:1;padding-top:4px; }
.why-title{ font-size:15px;font-weight:600;color:var(--ink);display:flex;align-items:center;gap:8px;margin-bottom:8px; }
.why-title i { color:var(--red); }

/* ── Stats panel (inside dark hero-panel) ── */
.stats-grid { display:grid;grid-template-columns:1fr 1fr;gap:32px; }
.stat-big   { font-family:var(--f-display);font-size:2.8rem;font-weight:300;color:#fff;line-height:1; }
.stat-lbl   { font-size:12px;color:rgba(255,255,255,.4);margin-top:6px;display:flex;align-items:center;gap:5px; }
.panel-rule { height:1px;background:rgba(255,255,255,.08); }
.panel-quote{ font-family:var(--f-serif);font-style:italic;font-size:1.15rem;color:rgba(255,255,255,.85);line-height:1.6; }
.panel-attr { display:flex;align-items:center;gap:12px; }
.panel-avatar { width:36px;height:36px;border-radius:50%;background:var(--red);display:flex;align-items:center;justify-content:center;font-size:14px;color:#fff;flex-shrink:0; }
.panel-attr-name { font-size:13px;font-weight:600;color:#fff; }
.panel-attr-role { font-size:12px;color:rgba(255,255,255,.35); }

/* ── How it works step ── */
.p-step { background:#fff;border:1px solid var(--border);border-radius:20px;padding:40px 32px;text-align:center;transition:border-color .3s,transform .3s; }
.p-step:hover { border-color:var(--red); transform:translateY(-4px); }
.p-step-icon { width:48px;height:48px;border-radius:14px;background:var(--paper-2);display:flex;align-items:center;justify-content:center;margin:0 auto 20px;font-size:20px;color:var(--red); }
.p-step-num  { font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--paper-3);margin-bottom:12px; }
.p-step-title{ font-family:var(--f-display);font-size:1rem;font-weight:400;color:var(--ink);margin-bottom:8px; }

/* ── Features / expert cards ── */
.expert-card { background:#fff;border:1px solid var(--border);border-radius:20px;padding:32px;transition:box-shadow .3s,transform .3s; }
.expert-card:hover { box-shadow:0 12px 40px rgba(0,0,0,.07); transform:translateY(-3px); }
.expert-icon { width:48px;height:48px;border-radius:14px;background:var(--paper-2);display:flex;align-items:center;justify-content:center;font-size:20px;color:var(--red);margin-bottom:20px; }
.expert-label{ margin-bottom:4px; }
.expert-title{ font-family:var(--f-display);font-size:1rem;font-weight:400;color:var(--ink);margin-bottom:4px; }
.expert-meta { margin-bottom:16px; }
.expert-tags { display:flex;align-items:center;gap:8px;margin-top:auto; }
.expert-tag-sep { color:var(--border); }
.expert-rating  { font-size:12px;color:var(--red); }

/* ── Pricing ── */
.price-card { background:#fff;border:1px solid var(--border);border-radius:24px;padding:44px 40px;transition:box-shadow .3s,transform .3s; }
.price-card:hover { box-shadow:0 16px 48px rgba(0,0,0,.07); transform:translateY(-3px); }
.price-card.featured { background:var(--ink); border-color:var(--ink); }
.price-badge-wrap { position:absolute;top:-14px;left:50%;transform:translateX(-50%); }
.price-badge { display:inline-flex;align-items:center;gap:5px;background:var(--red);color:#fff;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:5px 14px;border-radius:9999px;white-space:nowrap; }
.price-tier   { font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--ink-3);margin-bottom:8px; }
.price-tier--dark { color:rgba(255,255,255,.4); }
.price-amount { font-family:var(--f-display);font-size:2.6rem;font-weight:300;color:var(--ink);line-height:1;margin-bottom:4px; }
.price-amount--light { color:#ffffff; }
.price-period { margin-bottom:36px; }
.price-period--dark { font-size:12px;color:rgba(255,255,255,.4);margin-bottom:36px; }
.chk { width:20px;height:20px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700; }
.chk-l { background:#fce8e8;color:var(--red); }
.chk-d { background:rgba(255,255,255,.1);color:#fff; }
.price-list      { display:flex;flex-direction:column;gap:14px;list-style:none; }
.price-list-item { display:flex;align-items:center;gap:12px;font-size:13.5px;color:var(--ink-2); }
.price-list-item--dark { color:rgba(255,255,255,.7); }

/* ── Testimonials ── */
.tcard { background:#fff;border:1px solid var(--border);border-radius:24px;padding:40px; }
.tcard-stars  { display:flex;gap:4px;margin-bottom:20px; }
.tcard-stars i{ color:#f59e0b;font-size:14px; }
.tcard-quote  { margin-bottom:28px;font-style:italic; }
.tcard-author { display:flex;align-items:center;gap:12px; }
.tcard-avatar { width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;flex-shrink:0; }
.tcard-name   { font-size:13.5px;font-weight:600;color:var(--ink); }

/* ── FAQ ── */
.faq-item { border-bottom:1px solid var(--border); }
.faq-trigger { cursor:pointer;user-select:none;padding:28px 0;display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;background:none;border:none; }
.faq-q    { font-size:15px;font-weight:500;color:var(--ink);display:flex;align-items:center;gap:8px; }
.faq-q i  { color:var(--red);flex-shrink:0; }
.faq-body { max-height:0;overflow:hidden;transition:max-height .4s cubic-bezier(.16,1,.3,1); }
.faq-body.open { max-height:320px; }
.faq-icon { font-size:1.25rem;color:var(--ink-3);transition:transform .3s;flex-shrink:0; }
.faq-icon.open { transform:rotate(45deg); }
.faq-answer { padding-bottom:28px; }

/* ── CTA dark section ── */
.cta-dark { background:#181818;border-radius:40px;padding:80px 64px;text-align:center;position:relative;overflow:hidden; }
.cta-glow-tr { position:absolute;top:0;right:0;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,rgba(185,28,28,.2) 0%,transparent 70%);transform:translate(30%,-30%);pointer-events:none; }
.cta-glow-bl { position:absolute;bottom:0;left:0;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(185,28,28,.12) 0%,transparent 70%);transform:translate(-30%,30%);pointer-events:none; }
.cta-inner   { position:relative;z-index:1; }
.cta-btns    { display:flex;flex-wrap:wrap;justify-content:center;gap:12px; }

/* ── Transition delay helpers (for staggered SR) ── */
.delay-1 { transition-delay:.08s !important; }
.delay-2 { transition-delay:.16s !important; }
.delay-3 { transition-delay:.24s !important; }
.delay-4 { transition-delay:.32s !important; }

/* @keyframes pulse (used by hero badge dot) */
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(185,28,28,.5)} 50%{box-shadow:0 0 0 7px rgba(185,28,28,0)} }

/* ── Responsive overrides for landing ── */
@media (max-width:960px){
  .grid-2-1 { grid-template-columns:1fr; gap:48px; }
  .hero-panel-grid { grid-template-columns:1fr; }
  .hero-panel-col, .hero-panel-col--mid, .hero-panel-col--last { padding:0; border:none; margin-bottom:28px; }
}
@media (max-width:768px){
  .section      { padding:80px 20px; }
  .grid-3       { grid-template-columns:1fr; }
  .grid-4       { grid-template-columns:repeat(2,1fr); }
  .grid-2       { grid-template-columns:1fr; }
  .hero-section { padding-top:80px; padding-bottom:64px; }
  .hero-panel   { padding:32px 24px; }
  .cta-dark     { padding:48px 28px; border-radius:24px; }
  .price-card   { padding:32px 24px; }
}
@media (max-width:480px){
  .grid-4 { grid-template-columns:1fr; }
  .hero-stats { flex-direction:column; align-items:center; }
}

/* ── Stagger delay classes (replaces inline transition-delay) ── */
.delay-0 { transition-delay: 0s    !important; }
.delay-1 { transition-delay: .08s  !important; }
.delay-2 { transition-delay: .16s  !important; }
.delay-3 { transition-delay: .24s  !important; }
.delay-4 { transition-delay: .32s  !important; }

/* Pricing featured card needs relative positioning */
.price-card.featured { position: relative; }

/* Testimonial avatar colour variants */
.avatar--red   { background: #b91c1c; }
.avatar--blue  { background: #1e3a5f; }
.avatar--green { background: #2d4a2d; }

/* ════════════════════════════════════════════
   NAV DROPDOWN  (AI Tools mega-item)
════════════════════════════════════════════ */
/* ════════════════════════════════════════════
   DROPDOWN — hover gap fix + mega menu
   The key fix: padding-top on the panel creates
   a seamless hover bridge so the mouse never
   leaves the dropdown container while moving
   from button to panel.
════════════════════════════════════════════ */
.s-nav-dropdown { position: static; }
.s-nav-dropdown-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--f-body); position: relative;
}
.s-nav-chevron { font-size: 14px; transition: transform .25s; }
.s-nav-dropdown.open .s-nav-chevron { transform: rotate(180deg); }

/* Panel sits on the full nav, not relative to button */
.s-nav-dropdown-panel {
  position: fixed;
  top: 72px;               /* = nav height; flush to bottom of nav */
  left: 0; right: 0;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s cubic-bezier(.16,1,.3,1),
              transform .22s cubic-bezier(.16,1,.3,1);
  z-index: 998;
  overflow: hidden;
}
.s-nav-dropdown.open .s-nav-dropdown-panel {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}

/* Inner layout wrapper */
.s-nav-panel-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 28px 28px 32px;
  display: flex; gap: 0;
}

/* ── MEGA MENU for Services ── */
.s-mega-col {
  flex: 1; padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.s-mega-col:first-child { padding-left: 0; }
.s-mega-col:last-child  { border-right: none; padding-right: 0; }

.s-mega-col-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.25);
  padding: 0 10px 12px;
  display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 6px;
}

/* Featured "All Services" header inside mega */
.s-mega-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 10px; border-radius: 12px;
  text-decoration: none; margin-bottom: 8px;
  background: rgba(185,28,28,.12);
  border: 1px solid rgba(185,28,28,.2);
  transition: background .2s;
}
.s-mega-hero:hover { background: rgba(185,28,28,.2); }
.s-mega-hero-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--red); display: flex; align-items: center;
  justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0;
}
.s-mega-hero strong { display: block; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.s-mega-hero em      { display: block; font-size: 11.5px; font-style: normal; color: rgba(255,255,255,.45); }

/* Regular item */
.s-nav-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 10px;
  text-decoration: none;
  transition: background .18s;
}
.s-nav-dropdown-item:hover { background: rgba(255,255,255,.06); }
.s-nav-dropdown-item.active { background: rgba(255,255,255,.09); }
.s-nav-dropdown-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--red); flex-shrink: 0;
}
.s-nav-dropdown-item strong {
  display: block; font-size: 13px; font-weight: 600; color: #fff;
}
.s-nav-dropdown-item em {
  display: block; font-size: 11px; font-style: normal;
  color: rgba(255,255,255,.38); margin-top: 1px;
}

/* ── Simple dropdown for AI Tools ── */
.s-nav-dropdown-panel--simple {
  left: auto; right: auto;
  width: 280px;
}
/* Position simple panel under its trigger button */
.s-nav-dropdown--simple {
  position: relative;
}
.s-nav-dropdown--simple .s-nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%; right: auto;
  width: 280px;
  transform: translateX(-50%) translateY(-4px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px;
}
.s-nav-dropdown--simple.open .s-nav-dropdown-panel {
  transform: translateX(-50%) translateY(0);
}
.s-nav-dropdown--simple .s-nav-panel-inner {
  display: block; padding: 0;
}

/* Divider */
.s-nav-dropdown-divider {
  height: 1px; background: rgba(255,255,255,.07);
  margin: 6px 10px;
}

/* ── Responsive: mobile collapse ── */
@media (max-width: 768px) {
  .s-nav-dropdown-panel,
  .s-nav-dropdown--simple .s-nav-dropdown-panel {
    position: static; transform: none !important;
    opacity: 1; pointer-events: auto;
    box-shadow: none; border: none;
    background: transparent; overflow: visible;
    display: none;
  }
  .s-nav-dropdown.open .s-nav-dropdown-panel { display: block; }
  .s-nav-panel-inner { flex-direction: column; padding: 0 0 0 16px; gap: 0; }
  .s-mega-col { border: none; padding: 0; }
  .s-mega-col-title { display: none; }
  .s-mega-hero { margin-bottom: 4px; }
}

/* ════════════════════════════════════════════
   HOME PAGE — new service/landing classes
════════════════════════════════════════════ */

/* Service cards grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 24px; padding: 36px 32px;
  transition: box-shadow .3s, transform .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.svc-card:hover {
  box-shadow: 0 20px 56px rgba(0,0,0,.08);
  transform: translateY(-5px); border-color: var(--red);
}
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--red); margin-bottom: 22px;
  transition: background .25s, color .25s;
}
.svc-card:hover .svc-icon { background: var(--ink); color: #fff; }
.svc-title { font-family: var(--f-display); font-size: 1.1rem; font-weight: 400; color: var(--ink); margin-bottom: 10px; }
.svc-desc  { font-size: .875rem; line-height: 1.75; color: var(--ink-3); flex: 1; }
.svc-link  {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 12.5px; font-weight: 600;
  color: var(--red); text-decoration: none;
  transition: gap .2s;
}
.svc-link:hover { gap: 10px; }

/* Process / steps row */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.process-grid::before {
  content: '';
  position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 1px;
  background: var(--border); z-index: 0;
}
.process-step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.process-num {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 1rem; font-weight: 400;
  color: var(--ink-3); margin: 0 auto 20px;
  transition: background .3s, color .3s, border-color .3s;
}
.process-step:hover .process-num { background: var(--red); color: #fff; border-color: var(--red); }
.process-step-title { font-family: var(--f-display); font-size: .95rem; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.process-step-desc  { font-size: .8125rem; line-height: 1.65; color: var(--ink-3); }

/* AI Tools strip (mini cards on home page) */
.ai-tools-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.ai-tool-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 24px 22px;
  text-decoration: none;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.ai-tool-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
  transform: translateY(-4px); border-color: var(--red);
}
.ai-tool-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--paper-2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--red);
}
.ai-tool-card-name { font-family: var(--f-display); font-size: 1rem; font-weight: 400; color: var(--ink); margin-bottom: 4px; }
.ai-tool-card-desc { font-size: .8125rem; color: var(--ink-3); line-height: 1.6; }
.ai-tool-card-cta  { font-size: 11.5px; font-weight: 600; color: var(--red); margin-top: 8px; display: flex; align-items: center; gap: 4px; }

/* Testimonial row (3-col on home) */
.tcard-stars i { color: #f59e0b; font-size: 13px; }

/* Numbered why-list (already exists) */

/* Contact / CTA form section */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-label { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.contact-input {
  padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--paper);
  color: var(--ink); font-family: var(--f-body); font-size: 14px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.contact-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(185,28,28,.09); background: #fff; }
.contact-input::placeholder { color: var(--ink-3); }
textarea.contact-input { min-height: 120px; resize: vertical; }
select.contact-input   { color: var(--ink); }

/* Contact info list */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--red); flex-shrink: 0;
}
.contact-info-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.contact-info-value { font-size: 14px; font-weight: 500; color: var(--ink); }

/* Responsive additions */
@media (max-width: 960px) {
  .svc-grid        { grid-template-columns: repeat(2,1fr); }
  .ai-tools-strip  { grid-template-columns: 1fr 1fr; }
  .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .svc-grid        { grid-template-columns: 1fr; }
  .ai-tools-strip  { grid-template-columns: 1fr; }
  .process-grid    { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .process-grid::before { display: none; }
  .contact-page-left, .contact-page-right { padding: 48px 32px; }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   HOME.PHP  — NEW LAYOUTS
   Completely different compositions from index.php
   Same tokens, different visual grammar
════════════════════════════════════════════ */

/* ── Split asymmetric hero ── */
.home-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 72px;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}
.home-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px 80px 60px;
  position: relative;
  z-index: 2;
}
.home-hero-right {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
}
.home-hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.home-hero-right-glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,28,28,.22) 0%, transparent 65%);
  pointer-events: none;
}
.home-hero-right-glow-2 {
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,28,28,.12) 0%, transparent 65%);
  pointer-events: none;
}
.home-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: var(--paper-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
  width: fit-content;
}
.home-hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
.home-hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}
.home-hero-h1 em { font-family: var(--f-serif); font-style: italic; color: var(--red); }
.home-hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-3);
  max-width: 440px;
  margin-bottom: 40px;
}
.home-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.home-hero-stats { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.home-stat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.home-stat-row:last-child { border-bottom: none; }
.home-stat-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--red); flex-shrink: 0; }
.home-stat-val { font-family: var(--f-display); font-size: 1.4rem; font-weight: 300; color: var(--ink); line-height: 1; }
.home-stat-lbl { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* Right panel stacked cards */
.home-hero-cards { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.home-hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background .2s;
}
.home-hero-card:hover { background: rgba(255,255,255,.1); }
.home-hero-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--red); flex-shrink: 0;
}
.home-hero-card-title { font-size: 13.5px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.home-hero-card-sub   { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.5; }
.home-hero-card-arrow { margin-left: auto; font-size: 18px; color: rgba(255,255,255,.2); flex-shrink: 0; }
.home-hero-right-label {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.25); margin-bottom: 20px; position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px;
}

/* ── Diagonal section divider ── */
.diagonal-section {
  position: relative;
  padding: 120px 28px 140px;
  background: var(--ink);
  overflow: hidden;
}
.diagonal-section::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.diagonal-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
}
.diagonal-glow {
  position: absolute;
  top: -150px; right: -150px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,28,28,.18) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Bento grid for services ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.bento-cell {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 32px 28px;
  transition: background .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.bento-cell:hover { background: rgba(255,255,255,.09); border-color: rgba(185,28,28,.4); }
.bento-cell--wide  { grid-column: span 4; }
.bento-cell--narrow{ grid-column: span 2; }
.bento-cell--half  { grid-column: span 3; }
.bento-cell--full  { grid-column: span 6; }
.bento-cell-num {
  font-family: var(--f-display);
  font-size: 4rem; font-weight: 300; line-height: 1;
  color: rgba(255,255,255,.06);
  position: absolute; top: 16px; right: 24px;
  pointer-events: none; user-select: none;
}
.bento-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--red); margin-bottom: 20px;
}
.bento-title { font-family: var(--f-display); font-size: 1.15rem; font-weight: 400; color: #fff; margin-bottom: 10px; }
.bento-desc  { font-size: .875rem; line-height: 1.75; color: rgba(255,255,255,.5); }
.bento-cta   {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 12.5px; font-weight: 600;
  color: var(--red); text-decoration: none;
  transition: gap .2s;
}
.bento-cta:hover { gap: 10px; }

/* Wide bento cell inner layout */
.bento-cell--featured {
  background: rgba(185,28,28,.12);
  border-color: rgba(185,28,28,.3);
  display: flex; align-items: center; gap: 40px;
}
.bento-cell--featured .bento-icon { width: 64px; height: 64px; font-size: 28px; background: rgba(185,28,28,.2); flex-shrink: 0; }
.bento-feature-content { flex: 1; }
.bento-feature-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); background: rgba(185,28,28,.15); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }

/* ── Horizontal scrolling process timeline ── */
.timeline-section { padding: 100px 0 120px; background: var(--paper); overflow: hidden; }
.timeline-inner   { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.timeline-track   { display: flex; gap: 0; position: relative; margin-top: 56px; }
.timeline-track::before {
  content: '';
  position: absolute;
  top: 32px; left: 32px; right: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 10%, var(--border) 90%, transparent);
}
.timeline-step {
  flex: 1; padding: 0 20px; text-align: center; position: relative;
}
.timeline-step-node {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--red);
  margin: 0 auto 24px;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
  position: relative; z-index: 1;
}
.timeline-step:hover .timeline-step-node {
  background: var(--red); color: #fff; border-color: var(--red);
  box-shadow: 0 8px 24px rgba(185,28,28,.3);
}
.timeline-step-num   { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-3); margin-bottom: 10px; }
.timeline-step-title { font-family: var(--f-display); font-size: 1rem; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.timeline-step-desc  { font-size: .8125rem; line-height: 1.65; color: var(--ink-3); }

/* ── Zigzag / alternating feature rows ── */
.zigzag-section { padding: 100px 28px; background: var(--paper-2); }
.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 80px;
}
.zigzag-row:last-child { margin-bottom: 0; }
.zigzag-row--flip { direction: rtl; }
.zigzag-row--flip > * { direction: ltr; }
.zigzag-visual {
  border-radius: 28px;
  background: var(--ink);
  padding: 40px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.zigzag-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.zigzag-visual-glow {
  position: absolute; top: -60px; right: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,28,28,.22) 0%, transparent 70%);
  pointer-events: none;
}
.zigzag-visual-big-num {
  font-family: var(--f-display);
  font-size: 6rem; font-weight: 300;
  color: rgba(255,255,255,.08);
  line-height: 1;
  position: absolute; top: 24px; left: 32px;
  user-select: none;
}
.zigzag-visual-content { position: relative; z-index: 2; }
.zigzag-visual-label { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.zigzag-visual-stat  { font-family: var(--f-display); font-size: 3.5rem; font-weight: 300; color: #fff; line-height: 1; margin-bottom: 8px; }
.zigzag-visual-desc  { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; max-width: 240px; }
.zigzag-text {}
.zigzag-text .eyebrow { margin-bottom: 12px; }
.zigzag-text .h2      { margin-bottom: 16px; }
.zigzag-text .body-lg { margin-bottom: 28px; }
.zigzag-text .btn-dark,
.zigzag-text .btn-ghost,
.zigzag-text .btn-red,
.zigzag-text .hero-v2-ctas { margin-top: 28px; }
.zigzag-checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.zigzag-check-item { display: flex; align-items: flex-start; gap: 12px; font-size: .875rem; color: var(--ink-2); line-height: 1.6; }
.zigzag-check-dot  { width: 20px; height: 20px; border-radius: 50%; background: var(--paper-3); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* ── AI tools section — horizontal card row ── */
.ai-section { padding: 100px 28px; background: var(--paper); }
.ai-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  align-items: start;
}
.ai-tool-list { display: flex; flex-direction: column; gap: 12px; }
.ai-tool-tab {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.ai-tool-tab.active,
.ai-tool-tab:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(185,28,28,.1);
}
.ai-tool-tab-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--red); flex-shrink: 0; }
.ai-tool-tab-name { font-family: var(--f-display); font-size: 1rem; font-weight: 400; color: var(--ink); }
.ai-tool-tab-sub  { font-size: 12px; color: var(--ink-3); }
.ai-tool-tab-arrow{ margin-left: auto; font-size: 18px; color: var(--border); transition: color .2s; }
.ai-tool-tab.active .ai-tool-tab-arrow,
.ai-tool-tab:hover .ai-tool-tab-arrow { color: var(--red); }

/* AI tool showcase panel */
.ai-showcase {
  background: var(--ink);
  border-radius: 28px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ai-showcase::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.ai-showcase-glow { position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(185,28,28,.2) 0%, transparent 65%); pointer-events: none; }
.ai-showcase-inner { position: relative; z-index: 2; }
.ai-showcase-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 9999px; background: rgba(185,28,28,.18); border: 1px solid rgba(185,28,28,.3); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 24px; }
.ai-showcase-title { font-family: var(--f-display); font-size: 2.2rem; font-weight: 300; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.ai-showcase-desc  { font-size: .9375rem; line-height: 1.75; color: rgba(255,255,255,.55); margin-bottom: 32px; max-width: 460px; }
.ai-showcase-feats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.ai-showcase-feat  { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.ai-showcase-feat i { color: var(--red); font-size: 16px; }

/* ── Testimonials — magazine pull-quote layout ── */
.testimonials-section { padding: 100px 28px; background: var(--paper-2); }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.tquote-big {
  background: var(--ink);
  border-radius: 28px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tquote-big::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 20%, rgba(185,28,28,.2) 0%, transparent 60%); }
.tquote-big-mark { font-family: var(--f-serif); font-size: 8rem; font-weight: 400; color: rgba(255,255,255,.06); line-height: 1; position: absolute; top: 20px; left: 32px; user-select: none; }
.tquote-big-text { font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; color: rgba(255,255,255,.88); line-height: 1.65; position: relative; z-index: 1; margin-bottom: 28px; }
.tquote-big-author { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.tquote-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.tquote-name   { font-size: 13.5px; font-weight: 600; color: #fff; }
.tquote-role   { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }
.tquote-stars  { display: flex; gap: 3px; margin-bottom: 16px; position: relative; z-index: 1; }
.tquote-stars i{ color: #f59e0b; font-size: 13px; }

.tquote-small {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow .3s, transform .3s;
}
.tquote-small:hover { box-shadow: 0 16px 48px rgba(0,0,0,.07); transform: translateY(-4px); }
.tquote-small-text { font-size: .875rem; line-height: 1.75; color: var(--ink-2); font-style: italic; flex: 1; margin-bottom: 24px; }
.tquote-small-author { display: flex; align-items: center; gap: 10px; }
.tquote-small-name   { font-size: 13px; font-weight: 600; color: var(--ink); }
.tquote-small-role   { font-size: 11.5px; color: var(--ink-3); }

/* ── Contact — full-width dark ── */
.contact-section { background: var(--paper); padding: 100px 28px; }
.contact-wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.contact-left {
  background: var(--ink);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.contact-left::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 110% 110%, rgba(185,28,28,.2) 0%, transparent 55%); }
.contact-left-inner { position: relative; z-index: 2; }
.contact-left .h2 { color: #fff; margin-bottom: 16px; }
.contact-left .body-lg { color: rgba(255,255,255,.55); margin-bottom: 48px; }
.contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-list-item { display: flex; align-items: center; gap: 14px; }
.contact-list-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--red); flex-shrink: 0; }
.contact-list-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 3px; }
.contact-list-value { font-size: 14px; font-weight: 500; color: #fff; }

.contact-right {
  background: #fff;
  padding: 64px 56px;
}
.contact-right-title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 400; color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.contact-right-sub   { font-size: 13.5px; color: var(--ink-3); margin-bottom: 32px; }

/* Responsive home layout */
@media (max-width: 1024px) {
  .home-hero { grid-template-columns: 1fr; min-height: auto; }
  .home-hero-right { min-height: 420px; }
  .bento-grid { grid-template-columns: repeat(2,1fr); }
  .bento-cell--wide, .bento-cell--narrow, .bento-cell--half, .bento-cell--full { grid-column: span 2; }
  .bento-cell--featured { flex-direction: column; gap: 20px; }
  .ai-row { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .tquote-big { grid-column: span 2; }
  .zigzag-row, .zigzag-row--flip { grid-template-columns: 1fr; direction: ltr; }
}
@media (max-width: 768px) {
  .home-hero-left, .home-hero-right { padding: 40px 24px; }
  .timeline-track { flex-direction: column; gap: 32px; }
  .timeline-track::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .tquote-big { grid-column: span 1; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 40px 28px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-cell--wide,.bento-cell--narrow,.bento-cell--half,.bento-cell--full { grid-column: span 1; }
}

/* ════════════════════════════════════════════
   HOME HERO v4 — full light, stat cards right
   Left : headline + sub + CTAs
   Right: 2×2 grid of large stat cards
   No bottom bar — stats live in the right col
════════════════════════════════════════════ */
.home-hero-v2 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 54% 46%;
  padding-top: 72px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

/* Dot grid across the whole section */
.home-hero-v2::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--paper-3) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none; z-index: 0;
}

.hero-v2-glow-1 {
  position: absolute; top: 10%; left: 35%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,28,28,.06) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero-v2-glow-2 {
  position: absolute; bottom: -60px; left: -60px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,28,28,.04) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

/* ── LEFT ── */
.hero-v2-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 48px 80px 72px;
  position: relative; z-index: 2;
}

.hero-v2-tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 14px; border-radius: 9999px;
  background: #fff; border: 1px solid var(--border);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 28px; width: fit-content;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.hero-v2-tag-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: pulse 2s infinite; flex-shrink: 0;
}

.hero-v2-h1 {
  font-family: var(--f-display);
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 300; line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink); margin-bottom: 24px;
}
.hero-v2-h1 em { font-family: var(--f-serif); font-style: italic; color: var(--red); }

.hero-v2-sub {
  font-size: 1.0625rem; line-height: 1.8;
  color: var(--ink-3); max-width: 400px; margin-bottom: 40px;
}

.hero-v2-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── RIGHT: stat card grid ── */
.hero-v2-right {
  display: flex; align-items: center; justify-content: center;
  padding: 80px 64px 80px 32px;
  position: relative; z-index: 2;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

.hero-stat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: transform .3s cubic-bezier(.16,1,.3,1),
              box-shadow .3s cubic-bezier(.16,1,.3,1),
              border-color .25s;
  display: flex; flex-direction: column; gap: 14px;
}
.hero-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,.1);
  border-color: var(--red);
}

.hero-stat-card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--red);
}

.hero-stat-card-num {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  font-weight: 300; line-height: 1;
  color: var(--ink); letter-spacing: -0.03em;
}

.hero-stat-card-lbl {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-3); font-weight: 400;
}

/* No separate stat bar needed */
.hero-v2-stats { display: none; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-v2-left  { padding: 60px 36px 60px 48px; }
  .hero-v2-right { padding: 60px 40px 60px 24px; }
}
@media (max-width: 820px) {
  .home-hero-v2  { grid-template-columns: 1fr; min-height: auto; }
  .hero-v2-left  { padding: 56px 24px 32px; }
  .hero-v2-right { padding: 0 24px 56px; }
  .hero-stat-grid { max-width: 100%; }
  .hero-v2-h1    { font-size: clamp(2.4rem, 7vw, 3.4rem); }
  .hero-stat-card { padding: 24px 20px; }
}
@media (max-width: 420px) {
  .hero-stat-grid { grid-template-columns: 1fr; }
}



/* ════════════════════════════════════════════
   CONTACT PAGE / BOOK SESSION SECTION
   (restored — was inside hero block that got replaced)
════════════════════════════════════════════ */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border-radius: 32px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,.08);
}

.contact-page-left {
  background: var(--ink);
  padding: 72px 60px;
  position: relative;
  overflow: hidden;
}
.contact-page-left::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 110% 0%, rgba(185,28,28,.22) 0%, transparent 55%);
  pointer-events: none;
}
.contact-page-left-inner {
  position: relative; z-index: 2;
}
.contact-page-left .eyebrow {
  color: rgba(255,255,255,.3);
  margin-bottom: 14px;
}
.contact-page-left .h2 {
  color: #fff;
  margin-bottom: 16px;
}
.contact-page-left .body-lg {
  color: rgba(255,255,255,.5);
  margin-bottom: 40px;
}

.contact-page-right {
  background: #fff;
  padding: 72px 60px;
}

.contact-page-form-title {
  font-family: var(--f-display);
  font-size: 1.4rem; font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.contact-page-form-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 28px;
}

/* Contact info list inside dark left panel */
.contact-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 20px;
}
.contact-list-item {
  display: flex; align-items: center; gap: 14px;
}
.contact-list-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--red); flex-shrink: 0;
}
.contact-list-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 3px;
}
.contact-list-value {
  font-size: 14px; font-weight: 500; color: #fff;
}

/* Contact form fields */
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
}
.contact-field {
  display: flex; flex-direction: column; gap: 6px;
}
.contact-label {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-2);
}
.contact-input {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body); font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.contact-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185,28,28,.09);
  background: #fff;
}
.contact-input::placeholder { color: var(--ink-3); }
textarea.contact-input { min-height: 110px; resize: vertical; }
select.contact-input    { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
  .contact-page-left,
  .contact-page-right { padding: 48px 32px; }
}
@media (max-width: 540px) {
  .contact-page-left,
  .contact-page-right { padding: 36px 24px; }
}

/* ════════════════════════════════════════════
   RESTORED MISSING CLASSES
   These were in the original file but got
   wiped when the hero block was replaced.
   Covers: page-hero, about, services, team,
   value cards, svc-page cards, svc-faq,
   contact map/socials, footer cols,
   grid helpers.
════════════════════════════════════════════ */

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--ink);
  padding: 140px 28px 100px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.page-hero-glow {
  position: absolute; top: -160px; right: -120px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,28,28,.2) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,.3);
  margin-bottom: 24px;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,.3); text-decoration: none; transition: color .2s; }
.page-hero-breadcrumb a:hover { color: rgba(255,255,255,.7); }
.page-hero-breadcrumb i { font-size: 13px; }
.page-hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 16px; display: flex; align-items: center; gap: 6px;
}
.page-hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300; line-height: 1.08;
  letter-spacing: -0.025em; color: #ffffff;
  margin-bottom: 20px; max-width: 720px;
}
.page-hero-h1 em { font-family: var(--f-serif); font-style: italic; color: var(--red); }
.page-hero-sub {
  font-size: 1.0625rem; line-height: 1.8;
  color: rgba(255,255,255,.5); max-width: 560px;
}

/* ── About page layouts ── */
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-intro-text .h2 { margin-bottom: 20px; }
.about-intro-text .body-lg { margin-bottom: 28px; }
.about-values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 56px; }

/* Value cards */
.value-card {
  background: var(--paper-2); border-radius: 20px;
  padding: 28px 24px; border: 1px solid var(--border);
  transition: box-shadow .3s, transform .3s;
}
.value-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.07); transform: translateY(-4px); }
.value-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--red); margin-bottom: 16px;
}
.value-title { font-family: var(--f-display); font-size: 1rem; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.value-desc  { font-size: .875rem; line-height: 1.7; color: var(--ink-3); }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.team-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,.08); transform: translateY(-4px); }
.team-avatar { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 52px; color: rgba(255,255,255,.7); }
.team-avatar--red    { background: linear-gradient(135deg,#b91c1c,#7f1d1d); }
.team-avatar--blue   { background: linear-gradient(135deg,#1e3a5f,#0f172a); }
.team-avatar--green  { background: linear-gradient(135deg,#14532d,#052e16); }
.team-avatar--purple { background: linear-gradient(135deg,#4c1d95,#1e1b4b); }
.team-body { padding: 20px; }
.team-name { font-family: var(--f-display); font-size: 1rem; font-weight: 400; color: var(--ink); margin-bottom: 4px; }
.team-role { font-size: 12.5px; color: var(--red); font-weight: 600; margin-bottom: 8px; }
.team-bio  { font-size: .8125rem; line-height: 1.65; color: var(--ink-3); }

/* ── Services page cards ── */
.svc-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-page-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 28px; padding: 44px 40px;
  display: flex; flex-direction: column;
  transition: box-shadow .3s, transform .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.svc-page-card:hover { box-shadow: 0 24px 64px rgba(0,0,0,.09); transform: translateY(-6px); border-color: var(--red); }
.svc-page-card--featured { background: var(--ink); border-color: var(--ink); grid-column: span 2; }
.svc-page-num {
  font-family: var(--f-display); font-size: 5rem; font-weight: 300;
  color: var(--paper-2); line-height: 1;
  position: absolute; top: 20px; right: 28px;
  user-select: none; pointer-events: none; transition: color .3s;
}
.svc-page-card:hover .svc-page-num { color: rgba(185,28,28,.08); }
.svc-page-card--featured .svc-page-num { color: rgba(255,255,255,.04); }
.svc-page-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--paper-2); display: flex;
  align-items: center; justify-content: center;
  font-size: 24px; color: var(--red); margin-bottom: 24px; flex-shrink: 0;
  transition: background .3s, color .3s;
}
.svc-page-card:hover .svc-page-icon { background: var(--red); color: #fff; }
.svc-page-card--featured .svc-page-icon { background: rgba(185,28,28,.2); color: var(--red); }
.svc-page-title { font-family: var(--f-display); font-size: 1.4rem; font-weight: 400; color: var(--ink); margin-bottom: 14px; }
.svc-page-card--featured .svc-page-title { color: #fff; }
.svc-page-desc  { font-size: .9375rem; line-height: 1.8; color: var(--ink-3); flex: 1; }
.svc-page-card--featured .svc-page-desc { color: rgba(255,255,255,.5); }
.svc-page-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 28px; font-size: 13px; font-weight: 600;
  color: var(--red); text-decoration: none; transition: gap .2s;
}
.svc-page-link:hover { gap: 12px; }
.svc-page-card--featured .svc-page-link { color: rgba(255,255,255,.5); }
.svc-page-card--featured .svc-page-link:hover { color: #fff; }
.svc-page-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(185,28,28,.12); color: var(--red); margin-bottom: 16px; width: fit-content;
}
.svc-page-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.svc-page-feat-bullets { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.svc-page-feat-bullet  { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.svc-page-feat-bullet i { color: var(--red); font-size: 16px; flex-shrink: 0; margin-top: 2px; }

/* Services page FAQ */
.svc-faq { display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--border); border-radius: 24px; overflow: hidden; }
.svc-faq-item { border-bottom: 1px solid var(--border); }
.svc-faq-item:last-child { border-bottom: none; }
.svc-faq-trigger { width: 100%; background: #fff; border: none; padding: 22px 28px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: background .2s; }
.svc-faq-trigger:hover { background: var(--paper); }
.svc-faq-q   { font-size: 15px; font-weight: 500; color: var(--ink); text-align: left; display: flex; align-items: center; gap: 10px; }
.svc-faq-q i { color: var(--red); font-size: 18px; flex-shrink: 0; }
.svc-faq-icon { font-size: 1.2rem; color: var(--ink-3); transition: transform .3s; flex-shrink: 0; }
.svc-faq-icon.open { transform: rotate(45deg); }
.svc-faq-body { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.16,1,.3,1); background: var(--paper); }
.svc-faq-body.open { max-height: 240px; }
.svc-faq-ans { padding: 0 28px 22px; font-size: 14px; line-height: 1.75; color: var(--ink-3); }

/* ── Contact page extras ── */
.contact-map {
  border-radius: 20px; overflow: hidden;
  border: 1.5px solid var(--border); background: var(--paper-2);
  height: 200px; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 12px;
  color: var(--ink-3); font-size: 13px; margin-top: 40px;
}
.contact-map i { font-size: 32px; color: var(--red); }
.contact-socials { display: flex; gap: 10px; margin-top: 32px; }
.contact-social {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); font-size: 16px;
  text-decoration: none; transition: background .2s, color .2s;
}
.contact-social:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Footer column classes ── */
.s-footer-brand-col {}
.s-footer-col {}

/* ── Grid helper ── */
.grid-2-1--top { align-items: start; }

/* ── Responsive for restored classes ── */
@media (max-width: 960px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-grid         { grid-template-columns: repeat(2,1fr); }
  .about-values-grid { grid-template-columns: 1fr 1fr; }
  .svc-page-grid     { grid-template-columns: 1fr; }
  .svc-page-card--featured { grid-column: span 1; }
  .svc-page-inner    { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .team-grid         { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: 1fr; }
  .svc-page-card     { padding: 32px 24px; }
}

/* ════════════════════════════════════════════
   BLOG — Archive & Detail pages
════════════════════════════════════════════ */

/* ── Archive grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Blog card ── */
.blog-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.16,1,.3,1),
              box-shadow .3s,
              border-color .25s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,.09);
  border-color: var(--red);
}

/* Card thumbnail */
.blog-card-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-thumb-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.blog-card:hover .blog-card-thumb-img { transform: scale(1.06); }

/* Thumb colour variants */
.blog-thumb--red    { background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%); color: rgba(255,255,255,.25); }
.blog-thumb--navy   { background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%); color: rgba(255,255,255,.25); }
.blog-thumb--forest { background: linear-gradient(135deg, #14532d 0%, #052e16 100%); color: rgba(255,255,255,.25); }
.blog-thumb--purple { background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%); color: rgba(255,255,255,.25); }
.blog-thumb--amber  { background: linear-gradient(135deg, #92400e 0%, #451a03 100%); color: rgba(255,255,255,.25); }

/* Category badge on thumb */
.blog-card-cat {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 9999px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
}

/* Card body */
.blog-card-body {
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; color: var(--ink-3);
  margin-bottom: 14px;
}
.blog-card-meta i { font-size: 13px; color: var(--red); }
.blog-card-meta-sep { color: var(--border); }

.blog-card-title {
  font-family: var(--f-display);
  font-size: 1.15rem; font-weight: 400;
  color: var(--ink); line-height: 1.3;
  margin-bottom: 12px;
}
.blog-card:hover .blog-card-title { color: var(--red); }

.blog-card-excerpt {
  font-size: .875rem; line-height: 1.75;
  color: var(--ink-3); flex: 1; margin-bottom: 20px;
}

.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.blog-card-author {
  display: flex; align-items: center; gap: 8px;
}
.blog-card-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; flex-shrink: 0;
}
.blog-card-author-name { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.blog-card-read {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--red);
  transition: gap .2s;
}
.blog-card:hover .blog-card-read { gap: 8px; }

/* ── Featured (first / hero) blog card ── */
.blog-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  border-radius: 28px;
}
.blog-card--featured .blog-card-thumb {
  width: 46%; height: auto; min-height: 320px; flex-shrink: 0;
}
.blog-card--featured .blog-card-body {
  padding: 40px 44px;
  justify-content: center;
}
.blog-card--featured .blog-card-title {
  font-size: 1.6rem; line-height: 1.2; margin-bottom: 16px;
}
.blog-card--featured .blog-card-excerpt { font-size: .9375rem; }

/* ── Sidebar ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.blog-sidebar {}
.blog-sidebar-widget {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}
.blog-sidebar-title {
  font-family: var(--f-display);
  font-size: 1rem; font-weight: 400;
  color: var(--ink); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.blog-sidebar-title i { color: var(--red); font-size: 16px; }
.blog-cat-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.blog-cat-item a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; color: var(--ink-2);
  text-decoration: none; transition: background .2s, color .2s;
}
.blog-cat-item a:hover { background: var(--paper-2); color: var(--ink); }
.blog-cat-item a.active { background: var(--paper-2); color: var(--red); font-weight: 600; }
.blog-cat-count {
  font-size: 11px; font-weight: 700;
  background: var(--paper-2); color: var(--ink-3);
  padding: 2px 8px; border-radius: 999px;
}

.blog-recent-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.blog-recent-item a {
  display: flex; gap: 12px; text-decoration: none;
  transition: opacity .2s;
}
.blog-recent-item a:hover { opacity: .8; }
.blog-recent-thumb {
  width: 52px; height: 52px; border-radius: 10px;
  flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 22px;
}
.blog-recent-text { flex: 1; }
.blog-recent-title { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: 3px; }
.blog-recent-date  { font-size: 11.5px; color: var(--ink-3); }

/* ── Blog detail page ── */
.blog-detail-hero {
  background: var(--ink);
  padding: 140px 28px 80px;
  position: relative; overflow: hidden;
}
.blog-detail-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.blog-detail-glow {
  position: absolute; top: -120px; right: -80px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,28,28,.2) 0%, transparent 65%);
  pointer-events: none;
}
.blog-detail-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.blog-detail-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.3); margin-bottom: 20px;
}
.blog-detail-breadcrumb a { color: rgba(255,255,255,.3); text-decoration: none; transition: color .2s; }
.blog-detail-breadcrumb a:hover { color: rgba(255,255,255,.7); }
.blog-detail-cat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 14px; border-radius: 9999px;
  background: rgba(185,28,28,.18); border: 1px solid rgba(185,28,28,.3);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}
.blog-detail-h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.025em; color: #fff;
  margin-bottom: 20px;
}
.blog-detail-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  font-size: 13px; color: rgba(255,255,255,.45);
}
.blog-detail-meta i { color: var(--red); }
.blog-detail-meta-author {
  display: flex; align-items: center; gap: 8px;
}
.blog-detail-meta-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
}

/* Article body */
.blog-article {
  max-width: 800px; margin: 0 auto;
  padding: 64px 28px 80px;
}
.blog-article h2 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 300; letter-spacing: -0.02em;
  color: var(--ink); margin: 48px 0 20px;
  line-height: 1.2;
}
.blog-article h3 {
  font-family: var(--f-display);
  font-size: 1.2rem; font-weight: 400;
  color: var(--ink); margin: 32px 0 14px;
}
.blog-article p {
  font-size: 1.0625rem; line-height: 1.85;
  color: var(--ink-2); margin-bottom: 22px;
}
.blog-article ul, .blog-article ol {
  padding-left: 0; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 10px; list-style: none;
}
.blog-article ul li, .blog-article ol li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2);
}
.blog-article ul li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); flex-shrink: 0; margin-top: 10px;
}
.blog-article ol { counter-reset: ol-counter; }
.blog-article ol li { counter-increment: ol-counter; }
.blog-article ol li::before {
  content: counter(ol-counter);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper-2); color: var(--ink-2);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 6px;
}
.blog-article blockquote {
  border-left: 3px solid var(--red);
  padding: 20px 28px;
  background: var(--paper-2);
  border-radius: 0 16px 16px 0;
  margin: 32px 0;
}
.blog-article blockquote p {
  font-family: var(--f-serif);
  font-style: italic; font-size: 1.1rem;
  color: var(--ink); margin: 0; line-height: 1.65;
}
.blog-article .callout {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 24px 28px; margin: 32px 0;
  display: flex; gap: 16px; align-items: flex-start;
}
.blog-article .callout-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--paper-2); display: flex; align-items: center;
  justify-content: center; font-size: 18px; color: var(--red); flex-shrink: 0;
}
.blog-article .callout p { margin: 0; font-size: .9375rem; }

/* Article divider */
.blog-article hr {
  border: none; border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Author card at bottom */
.blog-author-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 24px; padding: 28px 32px;
  margin-top: 56px;
}
.blog-author-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; flex-shrink: 0;
}
.blog-author-name { font-family: var(--f-display); font-size: 1.1rem; font-weight: 400; color: var(--ink); margin-bottom: 2px; }
.blog-author-role { font-size: 12.5px; color: var(--red); font-weight: 600; margin-bottom: 10px; }
.blog-author-bio  { font-size: .875rem; line-height: 1.7; color: var(--ink-3); }

/* Related posts strip */
.blog-related-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}

/* ── Pagination ── */
.blog-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 48px 0 0;
}
.blog-page-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff; color: var(--ink-2);
  font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.blog-page-btn:hover { border-color: var(--ink); color: var(--ink); }
.blog-page-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.blog-page-btn--wide { width: auto; padding: 0 16px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { flex-direction: column; }
  .blog-card--featured .blog-card-thumb { width: 100%; min-height: 220px; }
  .blog-card--featured .blog-card-body { padding: 28px; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-author-card { flex-direction: column; }
}

/* Blog sidebar misc */
.blog-page-ellipsis { border:none;background:none;cursor:default;width:auto;padding:0 8px; }
.blog-sidebar-ctas  { margin-top:16px;display:flex;flex-direction:column;gap:8px; }

/* Blog — coming soon placeholder card */
.blog-card--placeholder { cursor:default; pointer-events:none; opacity:.5; }

/* ── Contact form extras ── */
.contact-honeypot { display:none; }          /* hide honeypot from humans */
.contact-required { color:var(--red); margin-left:2px; }
.contact-optional { color:var(--ink-3); font-weight:400; font-size:10px; text-transform:none; letter-spacing:0; }

/* Success / error messages */
.form-msg {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-radius: 14px;
  font-size: 14px; line-height: 1.6;
  margin-bottom: 20px;
}
/* CSS display:flex overrides HTML hidden attribute — fix it */
.form-msg[hidden] { display: none !important; }
.form-msg i { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.form-msg strong { display: block; margin-bottom: 3px; }
.form-msg--success {
  background: #f0fdf4; border: 1.5px solid #86efac; color: #15803d;
}
.form-msg--success i { color: #16a34a; }
.form-msg--error {
  background: #fff1f2; border: 1.5px solid #fca5a5; color: #b91c1c;
}
.form-msg--error i { color: #dc2626; }

/* Disabled submit button */
button:disabled, button[disabled] {
  opacity: .6; cursor: not-allowed; transform: none !important;
}

/* ════════════════════════════════════════════
   NAV AUTH — guest / user states
════════════════════════════════════════════ */

/* Guest: Sign In + Register Free */
.s-nav-auth-guest {
  display: flex; align-items: center; gap: 8px;
}
.s-nav-auth-guest[hidden],
.s-nav-auth-user[hidden] { display: none !important; }
.s-nav-auth-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.6); text-decoration: none;
  padding: 8px 14px; border-radius: 9999px;
  transition: color .2s, background .2s;
}
.s-nav-auth-link:hover { color: #fff; background: rgba(255,255,255,.07); }

/* User dropdown trigger */
.s-nav-auth-user { display: flex; align-items: center; }
.s-nav-user-dropdown { position: relative; }

.s-nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9999px;
  padding: 6px 14px 6px 6px;
  cursor: pointer; font-family: var(--f-body);
  color: #fff; transition: background .2s, border-color .2s;
}
.s-nav-user-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }

.s-nav-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center;
  justify-content: center; font-size: 13px; flex-shrink: 0;
}
.s-nav-avatar-initial {
  font-size: 13px; font-weight: 700; color: #fff; line-height: 1;
}
.s-nav-user-name {
  font-size: 13.5px; font-weight: 500; color: #fff;
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.s-nav-user-dropdown .s-nav-chevron { font-size: 14px; transition: transform .25s; }
.s-nav-user-dropdown.open .s-nav-chevron { transform: rotate(180deg); }

/* User dropdown panel */
.s-nav-user-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 240px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s cubic-bezier(.16,1,.3,1),
              transform .22s cubic-bezier(.16,1,.3,1);
  z-index: 1000;
}
.s-nav-user-dropdown.open .s-nav-user-panel {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}

/* User info at top of panel */
.s-nav-user-info {
  padding: 10px 12px 12px;
}
.s-nav-user-info-name {
  font-size: 13.5px; font-weight: 600; color: #fff; margin-bottom: 2px;
}
.s-nav-user-info-email {
  font-size: 11.5px; color: rgba(255,255,255,.35);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.s-nav-user-plan {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; padding: 3px 10px; border-radius: 9999px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.5);
}
.s-nav-user-plan.s-nav-plan--paid {
  background: rgba(185,28,28,.2); color: var(--red);
}

/* Menu items */
.s-nav-user-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; color: rgba(255,255,255,.7);
  text-decoration: none; cursor: pointer;
  width: 100%; background: none; border: none;
  font-family: var(--f-body); text-align: left;
  transition: background .18s, color .18s;
}
.s-nav-user-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.s-nav-user-item i { font-size: 16px; flex-shrink: 0; }
.s-nav-user-logout { color: rgba(185,28,28,.8); }
.s-nav-user-logout:hover { background: rgba(185,28,28,.12); color: var(--red); }

/* Auth loader overlay for protected pages */
.auth-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
}
.auth-loader-spin {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-loader p {
  font-size: 13.5px; color: var(--ink-3);
}

/* Mobile auth */
@media (max-width: 768px) {
  .s-nav-auth-guest .s-nav-auth-link { display: none; }
  .s-nav-user-name { display: none; }
  .s-nav-user-btn  { padding: 6px 10px 6px 6px; gap: 6px; }
}

/* Error message inline link */
.err-link { color: var(--red); font-weight: 600; text-decoration: underline; }

/* Dashboard usage bar states (replaces JS inline styles) */
.dash-usage-fill {
  height: 100%; border-radius: 999px;
  background: var(--red);
  width: var(--bar-pct, 0%);
  transition: width .4s cubic-bezier(.16,1,.3,1);
}
.dash-usage-fill.bar--low    { background: var(--red); }
.dash-usage-fill.bar--warn   { background: #f97316; }
.dash-usage-fill.bar--danger { background: #ef4444; }

/* Paid plan badge */
.dash-plan-badge--paid {
  background: rgba(185,28,28,.1);
  border-color: rgba(185,28,28,.25);
  color: var(--red);
}

/* Nav auth — prevent layout jump while Firebase checks auth state.
   Both #nav-guest and #nav-user start hidden.
   Firebase reveals the correct one within ~100ms.
   Reserve minimum space so the burger doesn't shift. */
.s-nav-right {
  min-width: 120px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Resume builder misc ── */
.resume-action-btns { display:flex; flex-wrap:wrap; gap:10px; margin-top:4px; }
.resume-nav-btns    { display:flex; gap:10px; align-items:center; }
.t-how-head         { margin-top:72px; }
.t-faq-head         { margin-bottom:40px; }
.t-faq-icon-q       { color:var(--red); margin-right:6px; }
.t-h2-em            { font-family:'DM Serif Display',serif; font-style:italic; color:var(--red); }

/* Colour picker swatches */
.t-color--blue   { background:#2563eb; }
.t-color--red    { background:#b91c1c; }
.t-color--green  { background:#16a34a; }
.t-color--purple { background:#a855f7; }

/* Score bar CSS variable */
.t-score-bar-fill { width: var(--score-pct, 0%); }
/* Progress bar CSS variable */
.t-progress-bar   { width: var(--prog, 25%); }

/* Toastify classes */
.toast-success .toastify { background: #16a34a !important; }
.toast-error   .toastify { background: #b91c1c !important; }
.toast-prog-wrap { height:4px; background:#e0dbd1; margin-top:6px; }
.toast-prog-bar  { height:4px; width:0; background:#b91c1c; transition:width .3s; }

/* Hidden button override */
button[hidden], a[hidden] { display:none !important; }
.t-eval-panel[hidden]     { display:none !important; }

/* ── Resume builder extra classes ── */
.rb-btn-full    { width:100%; justify-content:center; }
.rb-required    { color:var(--red); }

/* Keyword importance badges */
.rb-kw-badge {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 999px;
  flex-shrink: 0;
}
.rb-kw-badge--critical     { background:#fee2e2; color:#dc2626; }
.rb-kw-badge--important    { background:#fef9c3; color:#a16207; }
.rb-kw-badge--nice-to-have { background:#f0f9ff; color:#0369a1; }

/* JD keyword summary line */
.rb-kw-summary {
  font-size: 12px; color: var(--ink-3); line-height: 1.6;
  padding: 10px 12px; background: var(--paper-2);
  border-radius: 10px; margin-bottom: 12px;
}
.rb-kw-jobtitle {
  font-weight: 700; color: var(--ink);
  font-size: 11px;
}
.plag-passages-list { display:flex; flex-direction:column; gap:12px; }
.plag-no-sources    { color:var(--ink-3); font-size:13px; }
.rb-section-head--flush  { margin:0; }
.rb-modal-btns--spaced   { margin-top:20px; }
.rb-kw-lib-grid          { margin-top:8px; max-height:50vh; overflow-y:auto; }


/* ════════════════════════════════════════════
   LEGAL PAGES (.legal-doc)
════════════════════════════════════════════ */
.legal-doc { max-width:820px; margin:0 auto; }

.legal-intro-card {
  display:flex; align-items:flex-start; gap:20px;
  background:var(--ink); color:#fff;
  padding:28px 32px; border-radius:16px;
  margin-bottom:48px;
}
.legal-intro-card i  { font-size:28px; color:var(--red-bright); flex-shrink:0; margin-top:2px; }
.legal-intro-card p  { font-size:15px; line-height:1.75; color:rgba(255,255,255,.8); }
.legal-intro-card strong { color:#fff; }

.legal-section       { margin-bottom:48px; padding-bottom:48px; border-bottom:1px solid var(--border); }
.legal-section:last-child { border-bottom:none; }

.legal-section h2 {
  display:flex; align-items:center; gap:14px;
  font-family:var(--f-display); font-size:1.5rem; font-weight:400;
  color:var(--ink); margin-bottom:20px; line-height:1.3;
}
.legal-num {
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%; background:var(--red);
  color:#fff; font-size:12px; font-weight:700; font-family:var(--f-body);
  flex-shrink:0; letter-spacing:.02em;
}
.legal-section h3 {
  font-size:14px; font-weight:700; color:var(--ink); letter-spacing:.05em;
  text-transform:uppercase; margin:24px 0 12px;
}
.legal-section p  { font-size:15px; line-height:1.8; color:var(--ink-2); margin-bottom:16px; }
.legal-section ul { padding-left:0; list-style:none; display:flex; flex-direction:column; gap:10px; }
.legal-section ul li {
  font-size:15px; line-height:1.75; color:var(--ink-2);
  padding-left:24px; position:relative;
}
.legal-section ul li::before {
  content:''; position:absolute; left:0; top:9px;
  width:6px; height:6px; border-radius:50%; background:var(--red);
}
.legal-section a { color:var(--red); text-decoration:underline; text-underline-offset:3px; }
.legal-section a:hover { opacity:.75; }

.legal-highlight {
  display:flex; gap:16px; align-items:flex-start;
  background:var(--paper-2); border:1.5px solid var(--border);
  border-left:4px solid var(--red); border-radius:12px;
  padding:20px 24px; margin:20px 0;
}
.legal-highlight i   { font-size:22px; color:var(--red); flex-shrink:0; margin-top:2px; }
.legal-highlight div { font-size:14px; line-height:1.75; color:var(--ink-2); }
.legal-highlight strong { color:var(--ink); }

.legal-contact-box {
  background:var(--paper-2); border:1px solid var(--border); border-radius:12px;
  padding:20px 24px; margin-top:16px;
  display:flex; flex-direction:column; gap:10px;
}
.legal-contact-box div {
  display:flex; align-items:center; gap:10px;
  font-size:14px; color:var(--ink-2);
}
.legal-contact-box i { color:var(--red); font-size:16px; }
.legal-contact-box a { color:var(--red); }

/* Cookie table */
.legal-cookie-table  { border:1px solid var(--border); border-radius:12px; overflow:hidden; margin-top:16px; }
.legal-cookie-row    { display:grid; grid-template-columns:180px 1fr 130px; gap:0; border-bottom:1px solid var(--border); }
.legal-cookie-row:last-child { border-bottom:none; }
.legal-cookie-row > div { padding:14px 16px; font-size:13px; line-height:1.6; color:var(--ink-2); }
.legal-cookie-header { background:var(--ink); }
.legal-cookie-header > div { color:#fff; font-weight:700; font-size:12px; letter-spacing:.05em; text-transform:uppercase; }

@media(max-width:640px) {
  .legal-cookie-row { grid-template-columns:1fr; }
  .legal-cookie-header .legal-cookie-row > div:not(:first-child) { display:none; }
  .legal-intro-card { flex-direction:column; gap:12px; padding:20px; }
}

/* Footer badges */
.s-footer-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.s-footer-badge  {
  display:inline-flex; align-items:center; gap:6px;
  font-size:11px; font-weight:600; color:rgba(255,255,255,.5);
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  padding:5px 12px; border-radius:20px; letter-spacing:.03em;
}
.s-footer-badge i { font-size:12px; color:var(--red-bright); }

/* Logo image in navbar */
.s-nav-logo-img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

/* ── Navbar social icons ── */
.s-nav-socials {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  border-left: 1px solid rgba(255,255,255,.1);
  border-right: 1px solid rgba(255,255,255,.1);
  margin: 0 8px;
}
.s-nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: rgba(255,255,255,.5);
  font-size: 15px;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.s-nav-social:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Hide on small screens */
@media(max-width:900px) { .s-nav-socials { display: none; } }

/* Contact list clickable links */
.contact-list-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity .15s;
}
.contact-list-link:hover { opacity: .75; text-decoration: underline; }
.contact-list-link i { font-size: 14px; }
