/* ============================================================
   TWINSOULCALCULATORS.COM — MASTER STYLESHEET v3
   Light warm theme. Mobile-first. No overflow anywhere.
   ============================================================ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* ── Light Backgrounds */
  --bg:           #faf8f5;        /* warm ivory */
  --bg-2:         #f3f0eb;        /* slightly deeper cream */
  --bg-3:         #ede8e0;        /* card surfaces */
  --surface:      #ffffff;        /* pure white cards */
  --surface-2:    #f8f5f0;        /* subtle warm white */

  /* ── Brand Accents */
  --violet:       #6b35d4;        /* deep spiritual violet */
  --violet-m:     #8b5cf6;        /* medium violet */
  --violet-l:     #a78bfa;        /* light violet */
  --violet-dim:   rgba(107,53,212,0.08);
  --violet-soft:  rgba(107,53,212,0.12);

  --gold:         #b8860b;        /* deep gold */
  --gold-l:       #d4a017;        /* medium gold */
  --gold-bright:  #f59e0b;        /* bright amber */
  --gold-dim:     rgba(184,134,11,0.1);

  --rose:         #be4b6a;        /* deep rose */
  --rose-l:       #e879a0;        /* medium rose */
  --rose-dim:     rgba(190,75,106,0.08);

  --teal:         #0d9488;        /* deep teal */
  --teal-dim:     rgba(13,148,136,0.1);

  /* ── Text (dark on light — high contrast) */
  --text:         #1e1433;        /* near-black with violet tint */
  --text-2:       #4a3f6b;        /* medium purple-grey */
  --text-3:       #7c6fa0;        /* muted purple */
  --text-4:       #b8aed0;        /* very muted */

  /* ── Borders */
  --border:       rgba(107,53,212,0.12);
  --border-2:     rgba(107,53,212,0.22);
  --border-gold:  rgba(184,134,11,0.2);
  --border-light: rgba(0,0,0,0.06);

  /* ── Fonts */
  --font-head:  'Cormorant Garamond', Georgia, serif;
  --font-body:  'DM Sans', system-ui, -apple-system, sans-serif;
  --font-label: 'Cinzel', Georgia, serif;

  /* ── Spacing */
  --sp-xs:  4px;  --sp-sm: 8px;   --sp-md: 16px;
  --sp-lg:  24px; --sp-xl: 40px;  --sp-2xl: 64px; --sp-3xl: 96px;

  /* ── Layout */
  --max-w: 1200px; --content-w: 820px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;

  /* ── Effects */
  --shadow-sm:   0 2px 8px rgba(107,53,212,0.08);
  --shadow-card: 0 4px 24px rgba(107,53,212,0.1);
  --shadow-lg:   0 12px 48px rgba(107,53,212,0.14);
  --ease:        cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle warm texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(107,53,212,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(184,134,11,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

img    { max-width: 100%; height: auto; display: block; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none;
         font-family: inherit; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 500; }
h4 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; }

em { color: var(--violet); font-style: italic; }

p { color: var(--text-2); font-size: 15px; line-height: 1.78; margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
p strong { color: var(--violet); font-weight: 600; }
p a { color: var(--violet); border-bottom: 1px solid rgba(107,53,212,0.3); transition: border-color 0.2s; }
p a:hover { border-color: var(--violet); }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container         { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: var(--content-w); margin: 0 auto; padding: 0 20px; }
.section     { padding: var(--sp-3xl) 0; }
.section--sm { padding: var(--sp-2xl) 0; }
.section--alt { background: var(--bg-2); }
.section--white { background: var(--surface); }

/* ── SECTION HEADERS ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: var(--sp-xl); }
.section-header h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;                    /* bold headings — visible and authoritative */
}
.section-header p {
  font-size: 16px;
  color: var(--text-2);               /* up from text-3 */
  max-width: 500px;
  margin: 0 auto;
  font-family: var(--font-head);
  font-style: italic;
  line-height: 1.6;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-label); font-size: 9.5px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: #8a6400;                      /* dark gold — visible on any light bg */
  margin-bottom: 12px;
}
.eyebrow::before,.eyebrow::after { content: '✦'; font-size: 7px; opacity: 0.8; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s;
}
.card:hover { border-color: var(--border); box-shadow: var(--shadow-card); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: 0.2px; padding: 14px 28px; border-radius: var(--r-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s;
  white-space: nowrap; position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-m));
  color: #fff;
  box-shadow: 0 4px 20px rgba(107,53,212,0.3);
}
.btn--primary:hover { box-shadow: 0 8px 28px rgba(107,53,212,0.45); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(184,134,11,0.25);
}
.btn--gold:hover { box-shadow: 0 8px 24px rgba(184,134,11,0.4); }

.btn--ghost {
  background: transparent;
  color: var(--violet);
  border: 1.5px solid var(--border-2);
}
.btn--ghost:hover { background: var(--violet-dim); color: var(--violet); }

.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.1); }

.btn--lg   { font-size: 15px; padding: 16px 32px; border-radius: var(--r-lg); }
.btn--full { width: 100%; }

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-family: var(--font-label); font-size: 8.5px;
  letter-spacing: 1.8px; text-transform: uppercase; padding: 4px 10px;
  border-radius: 20px; font-weight: 400; line-height: 1.4;
}
.badge--violet { background: var(--violet-soft); color: var(--violet); border: 1px solid rgba(107,53,212,0.2); }
.badge--gold   { background: var(--gold-dim);    color: var(--gold);   border: 1px solid rgba(184,134,11,0.2); }
.badge--rose   { background: var(--rose-dim);    color: var(--rose);   border: 1px solid rgba(190,75,106,0.2); }
.badge--teal   { background: var(--teal-dim);    color: var(--teal);   border: 1px solid rgba(13,148,136,0.2); }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 0.5px; margin-bottom: 6px; }

.form-input {
  width: 100%; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: 13px 16px; color: var(--text);
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  outline: none; transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus {
  border-color: var(--violet-m);
  box-shadow: 0 0 0 3px rgba(107,53,212,0.1);
}
.form-input::placeholder { color: var(--text-4); }
.form-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: opacity(0.5); cursor: pointer;
}

/* ── DIVIDERS ───────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border-light); margin: var(--sp-xl) 0; }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  display: flex;
  align-items: center;
  background: rgba(250,248,245,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.nav.scrolled {
  background: rgba(250,248,245,0.98);
  box-shadow: 0 2px 16px rgba(107,53,212,0.08);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.nav__logo {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;                    /* bolder so it reads on cream */
  color: #8a6400;                      /* darker, richer gold — not washed out */
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.nav__logo span { color: #4a18b8; }   /* deeper violet — visible on cream */

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto 0 24px;
}

.nav__link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__link:hover { color: var(--violet); background: var(--violet-dim); }
.nav__link--active { color: var(--violet); font-weight: 500; }

.nav__cta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-m));
  border-radius: 20px;
  padding: 8px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(107,53,212,0.25);
  transition: opacity 0.2s, transform 0.2s;
}
.nav__cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* HAMBURGER */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  -webkit-tap-highlight-color: transparent;
}
.nav__hamburger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
  pointer-events: none;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE MENU */
.nav__mobile {
  display: none;
  position: fixed;
  top: 62px; left: 0; right: 0;
  background: rgba(250,248,245,0.99);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 14px 16px;
  z-index: 999;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(107,53,212,0.1);
}
.nav__mobile.open { display: flex; }

.nav__mobile .nav__link {
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);                  /* full dark text — highly visible */
  border-radius: var(--r-sm);
  border-bottom: 1px solid var(--border-light);
}
.nav__mobile .nav__link:last-of-type { border-bottom: none; }
.nav__mobile .nav__link:hover { background: var(--violet-dim); color: var(--violet); }
.nav__mobile .nav__cta {
  margin-top: 10px; text-align: center;
  padding: 14px; border-radius: var(--r-md);
  font-size: 14px; display: block;
}

.page-top { padding-top: 62px; }

/* ══════════════════════════════════════════════════════════════
   HERO — Light gradient with violet wash
══════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #f0ebff 0%, #faf8f5 40%, #fff8f0 100%);
  border-bottom: 1px solid var(--border);
  min-height: calc(100svh - 62px);
  display: flex;
  align-items: center;
  padding: var(--sp-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,53,212,0.07) 0%, transparent 70%);
  top: -150px; right: -150px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,11,0.06) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  pointer-events: none;
}

.hero__stars { display: none; } /* not needed on light theme */

.hero__eyebrow {
  font-family: var(--font-label); font-size: 9.5px; letter-spacing: 4px;
  text-transform: uppercase;
  color: #8a6400;                      /* deep gold — not washed out on lavender */
  font-weight: 600;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.hero__eyebrow::before,.hero__eyebrow::after { content: '✦'; font-size: 7px; opacity: 0.8; }

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;                    /* bold — strong visual anchor */
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--text);
  overflow-wrap: break-word;
}

.hero__subtitle {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;                    /* up from 300 — more readable */
  font-style: italic;
  color: var(--text-2);               /* up from text-3 — much better contrast */
  margin: 0 auto var(--sp-xl);
  max-width: 540px;
  line-height: 1.6;
}
.hero__subtitle strong { color: #be4b6a; font-style: normal; font-weight: 600; }

.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: var(--sp-xl); }

.hero__scroll {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0.7;                        /* up from 0.4 — actually visible now */
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.hero__scroll span {
  font-size: 10px; letter-spacing: 2px; font-family: var(--font-label);
  text-transform: uppercase;
  color: var(--text-2);               /* up from text-3 */
  font-weight: 500;
}
@keyframes scrollBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ══════════════════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--violet);
  padding: 22px 0;
}
.stats-bar__inner {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
}

.stat { text-align: center; padding: 8px 28px; border-right: 1px solid rgba(255,255,255,0.2); }
.stat:last-child { border-right: none; }
.stat__value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 400; color: #fff; display: block; line-height: 1.1; }
.stat__label { font-size: 11px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 3px; display: block; }

/* ══════════════════════════════════════════════════════════════
   TOOL CARDS
══════════════════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}

.tool-card__icon  { font-size: 32px; line-height: 1; }
.tool-card__title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.tool-card__desc  { font-size: 13.5px; color: var(--text-2); line-height: 1.65; flex: 1; margin: 0; }
.tool-card__link  {
  font-family: var(--font-label); font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--violet); display: flex;
  align-items: center; gap: 8px; transition: gap 0.3s;
}
.tool-card:hover .tool-card__link { gap: 14px; }

.tool-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  background: linear-gradient(135deg, #f0ebff 0%, #faf8ff 100%);
  border-color: rgba(107,53,212,0.2);
  padding: 32px 28px;
}
.tool-card--featured .tool-card__icon  { font-size: 48px; flex-shrink: 0; }
.tool-card--featured .tool-card__title { font-size: 1.7rem; color: var(--text); }
.tool-card--featured .tool-card__desc  { font-size: 14px; color: var(--text-2); }

/* ══════════════════════════════════════════════════════════════
   FEATURES GRID — vertical stack on mobile
══════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.features-grid .card {
  padding: 24px 20px;
  text-align: left;
  border: 1.5px solid var(--border-light);
}

.features-grid .card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.features-grid .card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--font-body);
}

.features-grid .card p {
  font-size: 13.5px;
  margin: 0;
  color: var(--text-2);
  line-height: 1.65;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS — vertical stack on mobile
══════════════════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testi-card {
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testi-stars { color: var(--gold-bright); font-size: 14px; letter-spacing: 2px; }

.testi-text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;                    /* up from 300 */
  color: var(--text-2);               /* darker */
  line-height: 1.7;
  flex: 1;
}

.testi-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-dim), var(--gold-dim));
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 500; color: var(--text); display: block; }
.testi-loc  { font-size: 11px; color: var(--text-3); display: block; }

/* ══════════════════════════════════════════════════════════════
   BLOG
══════════════════════════════════════════════════════════════ */
.blog-section { background: var(--bg-2); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.blog-card {
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-card); }

.blog-card__thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--bg-3); }
.blog-card__thumb-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--violet-dim), var(--gold-dim));
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}

.blog-card__body  { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__meta  { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); flex-wrap: wrap; }
.blog-card__cat   {
  font-family: var(--font-label); font-size: 8px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--violet); background: var(--violet-dim);
  padding: 3px 8px; border-radius: 4px;
}
.blog-card__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--text); line-height: 1.3; transition: color 0.2s; }
.blog-card:hover .blog-card__title { color: var(--violet); }
.blog-card__excerpt { font-size: 13.5px; color: var(--text-2); line-height: 1.65; flex: 1; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__read  { font-family: var(--font-label); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--violet); display: flex; align-items: center; gap: 6px; transition: gap 0.3s; }
.blog-card:hover .blog-card__read { gap: 10px; }

/* Blog list page */
.blog-list { display: flex; flex-direction: column; gap: 20px; }
.blog-list-card { background: var(--surface); border: 1.5px solid var(--border-light); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 240px 1fr; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color 0.3s, transform 0.3s; }
.blog-list-card:hover { border-color: var(--border-2); transform: translateX(4px); }
.blog-list-card__thumb { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.blog-list-card__body  { padding: 24px; }
.blog-list-card__title { font-family: var(--font-head); font-size: 1.3rem; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.blog-list-card:hover .blog-list-card__title { color: var(--violet); }
.blog-list-card__excerpt { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 14px; }

/* ══════════════════════════════════════════════════════════════
   AUTHOR SECTION
══════════════════════════════════════════════════════════════ */
.author-section {
  background: linear-gradient(135deg, #f0ebff 0%, #faf8f5 60%, #fff8f0 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-2xl) 0;
}

.author-section__header { text-align: center; margin-bottom: var(--sp-xl); }
.author-section__header .eyebrow { justify-content: center; margin-bottom: 10px; }

.authors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 780px; margin: 0 auto; }

.author-card {
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.author-card:hover { border-color: var(--border-gold); transform: translateY(-3px); box-shadow: var(--shadow-card); }

.author-card__avatar {
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto 16px; object-fit: cover;
  border: 2px solid var(--border-gold);
  box-shadow: 0 0 0 4px rgba(184,134,11,0.1);
}
.author-card__avatar-fallback {
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--violet-dim), var(--gold-dim));
  border: 2px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 2rem; color: var(--gold);
}

.author-card__role {
  font-family: var(--font-label);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a6400;                      /* dark gold — visible on white card */
  display: block;
  margin-bottom: 10px;
}
.author-card__name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;                    /* bold name — clear and prominent */
  color: var(--text);
  margin-bottom: 10px;
}
.author-card__bio  { font-size: 14px; color: var(--text-2); line-height: 1.75; margin: 0; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--text);    /* deep dark on light site — creates contrast */
  padding: var(--sp-2xl) 0 var(--sp-lg);
}

.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: var(--sp-xl); }

.footer__logo    { font-family: var(--font-label); font-size: 13px; color: var(--gold-bright); display: block; margin-bottom: 12px; }
.footer__logo span { color: var(--violet-l); }
.footer__tagline { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: var(--sp-md); max-width: 240px; }

.footer__col h4 { font-family: var(--font-label); font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 16px; font-weight: 400; }
.footer__links  { display: flex; flex-direction: column; gap: 10px; }
.footer__link   { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer__link:hover { color: rgba(255,255,255,0.9); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--sp-md); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__copy        { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer__disclaimer  { font-size: 11px; color: rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════════ */
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 0; text-align: left; cursor: pointer; }
.faq-q__text { font-family: var(--font-head); font-size: 1.05rem; color: var(--text); line-height: 1.4; flex: 1; }
.faq-q__icon { color: var(--violet); font-size: 18px; flex-shrink: 0; margin-top: 2px; transition: transform 0.3s var(--ease); line-height: 1; }
.faq-item.open .faq-q__icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 18px; font-size: 14px; color: var(--text-2); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }
.faq-a strong { color: var(--violet); font-weight: 500; }
.faq-a a { color: var(--violet); border-bottom: 1px solid rgba(107,53,212,0.25); }

/* ══════════════════════════════════════════════════════════════
   TOC / INTERNAL CTA / COMPARE TABLE / TOAST / BREADCRUMB
══════════════════════════════════════════════════════════════ */
.toc { background: var(--surface-2); border: 1.5px solid var(--border-light); border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--sp-xl); box-shadow: var(--shadow-sm); }
.toc__toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; gap: 12px; }
.toc__title  { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--violet); display: flex; align-items: center; gap: 8px; }
.toc__arrow  { font-size: 11px; color: var(--text-3); transition: transform 0.3s; }
.toc.open .toc__arrow { transform: rotate(180deg); }
.toc__body   { display: none; padding: 0 18px 16px; border-top: 1px solid var(--border-light); }
.toc.open .toc__body { display: block; }
.toc__list   { padding: 12px 0 0; counter-reset: toc; }
.toc__item   { counter-increment: toc; display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.toc__item::before { content: counter(toc); min-width: 18px; height: 18px; background: var(--violet-soft); color: var(--violet); border-radius: 50%; font-size: 10px; font-weight: 500; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toc__link   { font-size: 13px; color: var(--text-3); transition: color 0.2s; line-height: 1.4; }
.toc__link:hover { color: var(--violet); }

.internal-cta { display: flex; align-items: center; gap: 14px; background: var(--gold-dim); border: 1px solid var(--border-gold); border-radius: var(--r-md); padding: 16px 18px; text-decoration: none; transition: background 0.25s, border-color 0.25s; }
.internal-cta:hover { background: rgba(184,134,11,0.16); border-color: rgba(184,134,11,0.35); }
.internal-cta__icon  { font-size: 26px; flex-shrink: 0; }
.internal-cta__title { font-family: var(--font-head); font-size: 1rem; color: var(--gold); display: block; margin-bottom: 3px; }
.internal-cta__sub   { font-size: 12px; color: var(--text-3); }
.internal-cta__arrow { color: var(--gold); font-size: 16px; margin-left: auto; flex-shrink: 0; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); margin-bottom: var(--sp-lg); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-3); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb__current { color: var(--text-2); }

.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th { padding: 10px 14px; font-family: var(--font-label); font-size: 9px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border-light); text-align: left; }
.compare-table td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); color: var(--text-2); vertical-align: top; line-height: 1.5; }
.compare-table td:first-child { color: var(--text); font-weight: 400; font-size: 12px; white-space: nowrap; }
.compare-table tr:last-child td { border-bottom: none; }
.col-tf { color: var(--gold) !important; }
.col-sm { color: var(--violet) !important; }
.col-km { color: var(--teal) !important; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--text); color: #fff; padding: 12px 24px; border-radius: 30px; font-size: 13px; font-weight: 500; z-index: 9999; transition: transform 0.35s var(--ease-spring); pointer-events: none; white-space: nowrap; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse  { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.animate-fade-up    { animation: fadeUp 0.7s var(--ease) both; }
.animate-fade-up--1 { animation-delay: 0.1s; }
.animate-fade-up--2 { animation-delay: 0.2s; }
.animate-fade-up--3 { animation-delay: 0.3s; }
.animate-fade-up--4 { animation-delay: 0.4s; }
.animate-fade-up--5 { animation-delay: 0.5s; }

/* ══════════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════════ */
.text-center  { text-align: center; }
.text-gold    { color: var(--gold); }
.text-violet  { color: var(--violet); }
.text-muted   { color: var(--text-3); }
.mt-sm{margin-top:var(--sp-sm);} .mt-md{margin-top:var(--sp-md);}
.mt-lg{margin-top:var(--sp-lg);} .mt-xl{margin-top:var(--sp-xl);}
.mb-sm{margin-bottom:var(--sp-sm);} .mb-md{margin-bottom:var(--sp-md);}
.mb-lg{margin-bottom:var(--sp-lg);} .mb-xl{margin-bottom:var(--sp-xl);}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   Key rule: every multi-column grid → single column on mobile
══════════════════════════════════════════════════════════════ */

/* 1024px */
@media (max-width: 1024px) {
  .footer__grid      { grid-template-columns: 1fr 1fr; gap: 28px; }
  .blog-grid         { grid-template-columns: repeat(2, 1fr); }
  .features-grid     { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* 768px — tablet */
@media (max-width: 768px) {
  :root { --sp-3xl: 60px; --sp-2xl: 44px; --sp-xl: 28px; }

  /* Nav */
  .nav__links    { display: none; }
  .nav__cta      { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero { min-height: auto; padding: 40px 0 32px; }

  /* Stats */
  .stat { padding: 8px 16px; }

  /* Featured tool card */
  .tool-card--featured { flex-direction: column; gap: 14px; }
  .tool-card--featured .tool-card__icon  { font-size: 36px; }
  .tool-card--featured .tool-card__title { font-size: 1.45rem; }

  /* All grids → single column on tablet */
  .features-grid     { grid-template-columns: 1fr; gap: 12px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 12px; }
  .blog-grid         { grid-template-columns: 1fr; }

  /* Blog list */
  .blog-list-card { grid-template-columns: 1fr; }
  .blog-list-card__thumb { height: 180px; }

  /* Authors */
  .authors-grid { grid-template-columns: 1fr; max-width: 400px; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__disclaimer { text-align: center; }
}

/* 480px — mobile */
@media (max-width: 480px) {
  .container         { padding: 0 14px; }
  .container--narrow { padding: 0 14px; }

  /* Nav */
  .nav__logo { font-size: 11px; }

  /* Tools → single column */
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card  { padding: 20px 16px; }
  .tool-card__icon  { font-size: 26px; }
  .tool-card__title { font-size: 1.15rem; }

  /* Features → already single col from 768px */

  /* Hero */
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .btn--lg    { width: 100%; justify-content: center; }

  /* Stats → 2×2 */
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); width: 50%; }
  .stat:nth-child(odd)       { border-right: 1px solid rgba(255,255,255,0.2); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }

  /* Footer → single col */
  .footer__grid    { grid-template-columns: 1fr; gap: 20px; }
  .footer__tagline { max-width: 100%; }

  /* Author */
  .author-card { padding: 22px 16px; }
}

/* 360px */
@media (max-width: 360px) {
  .nav__logo { font-size: 10px; letter-spacing: 0; }
  .hero__title { font-size: 2.1rem; }
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet-m); }

/* ── SELECTION ──────────────────────────────────────────────── */
::selection { background: rgba(107,53,212,0.18); color: var(--violet); }