/* hecsdebtcalculator.com.au — Luxury Modern Theme 2026
   Signature sunset gradient (indigo -> fuchsia -> amber) on a warm cream base.
   Fraunces serif display + Inter variable body. Glassmorphism tool cards. */

/* Fonts are preloaded in <head> to avoid blocking render. Fallbacks cover the gap. */

:root {
  /* surfaces */
  --bg: #FAF7F2;
  --bg-elev: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4EFE6;
  --surface-ink: #14091F;

  /* ink */
  --ink: #1A1033;
  --ink-soft: #3B2E5A;
  --muted: #6B5E87;
  --muted-2: #9B91B0;

  /* borders */
  --hairline: rgba(26, 16, 51, 0.07);
  --hairline-strong: rgba(26, 16, 51, 0.14);

  /* brand / accents */
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-soft: rgba(124, 58, 237, 0.08);
  --indigo: #6366F1;
  --fuchsia: #EC4899;
  --amber: #F59E0B;
  --teal: #0D9488;

  /* signature gradient */
  --gradient: linear-gradient(120deg, #6366F1 0%, #A855F7 35%, #EC4899 70%, #F59E0B 100%);
  --gradient-warm: linear-gradient(135deg, #F472B6 0%, #F59E0B 100%);
  --gradient-cool: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
  --gradient-soft: linear-gradient(120deg, rgba(99,102,241,0.08), rgba(236,72,153,0.07), rgba(245,158,11,0.05));
  --mesh:
    radial-gradient(at 12% 18%, rgba(99,102,241,0.18) 0, transparent 52%),
    radial-gradient(at 85% 10%, rgba(236,72,153,0.16) 0, transparent 46%),
    radial-gradient(at 80% 88%, rgba(245,158,11,0.14) 0, transparent 44%),
    radial-gradient(at 15% 90%, rgba(13,148,136,0.10) 0, transparent 50%);

  /* shape */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --radius-pill: 999px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(26,16,51,0.04), 0 2px 6px rgba(26,16,51,0.05);
  --shadow: 0 4px 12px rgba(26,16,51,0.06), 0 20px 48px rgba(124,58,237,0.08);
  --shadow-lg: 0 12px 32px rgba(26,16,51,0.07), 0 48px 96px rgba(236,72,153,0.12);
  --shadow-glow: 0 0 0 1px rgba(124,58,237,0.12), 0 12px 32px rgba(124,58,237,0.18);

  /* geom */
  --seo-width: 1240px;

  /* type */
  --display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#seo-content {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* soft atmospheric mesh on the page */
#seo-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  background: var(--mesh);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
#seo-content > * { position: relative; z-index: 1; }

/* ========== HEADER / NAV ========== */
#seo-header {
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}

#seo-header nav {
  max-width: var(--seo-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.seo-brand {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  position: relative;
  padding-left: 44px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}
.seo-brand::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #6366F1 0%, #A855F7 55%, #EC4899 100%);
  box-shadow: 0 8px 18px rgba(124,58,237,0.32), inset 0 1px 0 rgba(255,255,255,0.25);
}
.seo-brand::after {
  content: "";
  position: absolute;
  left: 7px; top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M4 10 L12 6 L20 10 L12 14 Z' fill='%23FFFFFF'/><path d='M7 11.5 V15.5 C7 17 9 18 12 18 C15 18 17 17 17 15.5 V11.5' stroke='%23FFFFFF' stroke-width='1.6' stroke-linecap='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}

.seo-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.seo-menu a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.18s ease;
}
.seo-menu a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.seo-menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.seo-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}
.seo-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.seo-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.seo-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== BREADCRUMBS ========== */
.seo-breadcrumbs {
  max-width: var(--seo-width);
  margin: 28px auto 0;
  padding: 0 28px;
  font-size: 13px;
  color: var(--muted);
}
.seo-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.seo-breadcrumbs li + li::before {
  content: "/";
  color: var(--muted-2);
  margin-right: 8px;
}
.seo-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.seo-breadcrumbs a:hover { color: var(--accent); }

/* ========== MAIN CONTENT ========== */
.seo-main {
  max-width: var(--seo-width);
  margin: 36px auto 80px;
  padding: 0 28px;
}

.seo-main article > section { margin-bottom: 72px; }

.seo-main h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  color: var(--ink);
  font-weight: 700;
  max-width: 18ch;
}
.seo-main h1 em,
.seo-main h1 .gradient {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.seo-main h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 600;
  max-width: 24ch;
}
.seo-main h3 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 28px 0 12px;
  color: var(--ink);
  font-weight: 600;
}
.seo-main h4 {
  font-family: var(--body);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 24px 0 10px;
  color: var(--muted);
  font-weight: 600;
}

.seo-main p { margin: 0 0 16px; color: var(--ink-soft); font-size: 17px; max-width: 68ch; }
.seo-main ul, .seo-main ol { margin: 0 0 18px; padding-left: 24px; color: var(--ink-soft); max-width: 68ch; }
.seo-main li { margin-bottom: 8px; }
.seo-main strong { color: var(--ink); font-weight: 600; }
.seo-main em { color: var(--accent); font-style: italic; }
.seo-main a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(124,58,237,0.25);
  transition: all 0.15s;
}
.seo-main a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* lede paragraph */
.seo-intro {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 28px;
  font-weight: 400;
}

.seo-tldr {
  background: linear-gradient(180deg, #FFFFFF, #FAF7F2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0 36px;
  box-shadow: var(--shadow-sm);
}
.seo-tldr strong { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* ========== TABLES ========== */
.seo-table-wrap {
  margin: 24px 0 28px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.seo-table-wrap figcaption {
  padding: 16px 22px 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
}
.seo-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15px;
}
.seo-table th,
.seo-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.seo-table th {
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.seo-table tbody tr:hover { background: var(--accent-soft); }
.seo-table tbody tr:last-child td { border-bottom: none; }
.seo-table-source {
  padding: 12px 22px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ========== BENTO CARDS ========== */
.seo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.seo-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.seo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.seo-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 160px;
  height: 160px;
  background: var(--gradient);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.18;
  transition: opacity 0.3s;
  pointer-events: none;
}
.seo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124,58,237,0.22);
}
.seo-card:hover::before { opacity: 1; }
.seo-card:hover::after { opacity: 0.32; }
.seo-card h3 { margin: 0 0 8px; font-size: 20px; position: relative; }
.seo-card h3 a { text-decoration: none; color: var(--ink); border: none; }
.seo-card h3 a:hover { color: var(--accent); }
.seo-card p { margin: 0; color: var(--ink-soft); font-size: 15px; position: relative; line-height: 1.55; }

/* ========== TOPIC LIST ========== */
.seo-topic-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.seo-topic-list li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: all 0.2s;
}
.seo-topic-list li:hover {
  border-color: rgba(124,58,237,0.25);
  transform: translateX(2px);
}
.seo-topic-list li a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border: none;
}
.seo-topic-list li a:hover { color: var(--accent); }

/* ========== FAQ ========== */
.seo-faq { margin-top: 60px; }
.seo-faq h2 { margin-bottom: 24px; }
.seo-faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.seo-faq-item[open] {
  border-color: rgba(124,58,237,0.22);
  box-shadow: var(--shadow-sm);
}
.seo-faq-item summary {
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--ink);
  font-weight: 500;
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item summary h3 {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}
.seo-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}
.seo-faq-item[open] summary::after { content: "−"; }
.seo-faq-answer { padding: 0 24px 22px; color: var(--ink-soft); }
.seo-faq-answer p:last-child { margin-bottom: 0; }

/* ========== NOTE FROM JACK ========== */
.seo-note-jack {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 26px;
  margin: 28px 0 36px;
  background: linear-gradient(135deg, #FEF3E4 0%, #FDE8E8 100%);
  border: 1px solid rgba(236,72,153,0.18);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.seo-note-jack::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: linear-gradient(180deg, #A855F7 0%, #EC4899 55%, #F59E0B 100%);
}
.seo-note-jack-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(168,85,247,0.24);
}
.seo-note-jack-avatar svg { width: 100%; height: 100%; display: block; }
.seo-note-jack-body { flex: 1; }
.seo-note-jack-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #B45309;
  margin: 0 0 6px 0;
}
.seo-note-jack p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #3B2E5A;
}
.seo-note-jack em { color: #7C3AED; font-style: italic; font-weight: 500; }

/* ========== AUTHOR CARD ========== */
.seo-author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 30px;
  margin-top: 64px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(59,46,90,0.06);
}
.seo-author-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(124,58,237,0.22);
}
.seo-author-avatar svg { width: 100%; height: 100%; display: block; }
.seo-author-body { flex: 1; }
.seo-author-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px 0;
}
.seo-author-body h3 {
  font-family: var(--display);
  font-size: 20px;
  margin: 0 0 4px 0;
  letter-spacing: -0.015em;
}
.seo-author-body h3 a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s;
}
.seo-author-body h3 a:hover {
  border-bottom-color: var(--accent);
}
.seo-author-role {
  color: var(--ink-soft);
  margin: 0 0 10px 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.seo-author-verify {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed var(--hairline);
}
.seo-author-verify a { color: var(--accent); text-decoration: none; font-weight: 500; }
.seo-author-verify a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .seo-author-card { flex-direction: column; padding: 22px 20px; }
  .seo-note-jack { padding: 18px 20px; gap: 14px; }
  .seo-note-jack-avatar { width: 40px; height: 40px; flex: 0 0 40px; }
}

/* ========== TIPS & TRICKS ========== */
.seo-tips {
  margin-top: 72px;
  padding: 48px clamp(24px, 4vw, 56px);
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FDF9F1 100%),
    radial-gradient(at 85% 0%, rgba(245,158,11,0.10) 0, transparent 55%),
    radial-gradient(at 0% 100%, rgba(168,85,247,0.10) 0, transparent 55%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(59,46,90,0.06);
  position: relative;
  overflow: hidden;
}
.seo-tips::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #6366F1 0%, #A855F7 40%, #EC4899 70%, #F59E0B 100%);
}
.seo-tips-head { margin-bottom: 36px; }
.seo-tips-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B5CF6;
  background: rgba(168,85,247,0.10);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.seo-tips-head h2 {
  margin: 0 0 10px 0;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
}
.seo-tips-head p { color: var(--ink-soft); max-width: 680px; margin: 0; }
.seo-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}
.seo-tip-card {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  position: relative;
}
.seo-tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(59,46,90,0.08);
  border-color: rgba(168,85,247,0.24);
}
.seo-tip-num {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 42px;
  letter-spacing: -0.03em;
}
.seo-tip-body h3 {
  font-size: 17px;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
}
.seo-tip-body p {
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 10px 0;
  color: var(--ink-soft);
}
.seo-tip-body p:last-child { margin-bottom: 0; }
.seo-tip-action {
  padding: 10px 14px;
  background: rgba(245,158,11,0.10);
  border-left: 3px solid #F59E0B;
  border-radius: 6px;
  font-size: 13.5px !important;
}
.seo-tip-action strong { color: #B45309; }
.seo-tip-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ========== HECS HUB ========== */
.seo-hub {
  margin-top: 72px;
  padding: 48px clamp(24px, 4vw, 56px);
  background: linear-gradient(180deg, #1F1733 0%, #2A1B4A 100%);
  color: #E5DDF4;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.seo-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 15% 20%, rgba(99,102,241,0.25) 0, transparent 50%),
    radial-gradient(at 85% 80%, rgba(236,72,153,0.18) 0, transparent 50%);
  pointer-events: none;
}
.seo-hub > * { position: relative; }
.seo-hub-head { margin-bottom: 36px; max-width: 780px; }
.seo-hub-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FDE68A;
  background: rgba(245,158,11,0.16);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.seo-hub-head h2 {
  margin: 0 0 10px 0;
  font-size: clamp(24px, 2.8vw, 32px);
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.seo-hub-head p { color: #C3B8DE; margin: 0; font-size: 15px; }
.seo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px 28px;
}
.seo-hub-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F5D985;
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245,217,133,0.22);
}
.seo-hub-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.seo-hub-col a {
  color: #E5DDF4;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.18s, transform 0.18s;
  display: inline-block;
}
.seo-hub-col a:hover {
  color: #FDE68A;
  transform: translateX(3px);
}

@media (max-width: 760px) {
  .seo-tips, .seo-hub { padding: 36px 22px; margin-top: 52px; }
  .seo-tips-list { grid-template-columns: 1fr; }
}

/* ========== RELATED ========== */
.seo-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--hairline); }
.seo-related h2 { margin-bottom: 18px; }
.seo-related ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.seo-related li { margin: 0; }
.seo-related li a {
  display: block;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.18s;
  border-bottom: 1px solid var(--hairline);
}
.seo-related li a:hover {
  color: var(--accent);
  border-color: rgba(124,58,237,0.22);
  transform: translateX(2px);
}

/* ========== FOOTER ========== */
#seo-footer {
  background: var(--surface-ink);
  color: #CFC6E4;
  padding: 72px 28px 32px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
#seo-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 10% 10%, rgba(99,102,241,0.22) 0, transparent 40%),
    radial-gradient(at 90% 30%, rgba(236,72,153,0.18) 0, transparent 40%),
    radial-gradient(at 50% 100%, rgba(245,158,11,0.12) 0, transparent 50%);
  pointer-events: none;
}
.seo-footer-cols {
  position: relative;
  max-width: var(--seo-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.seo-footer-cols h4 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 16px;
  text-transform: none;
  letter-spacing: -0.01em;
}
.seo-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.seo-footer-cols li { margin-bottom: 10px; }
.seo-footer-cols a {
  color: #B0A6C8;
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.15s;
}
.seo-footer-cols a:hover { color: #FFFFFF; }
.seo-footer-bottom {
  position: relative;
  max-width: var(--seo-width);
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #867CA0;
  font-size: 13px;
  text-align: center;
}
.seo-footer-bottom a { color: #B0A6C8; margin: 0 6px; }
.seo-footer-bottom a:hover { color: #FFFFFF; }

/* ========== SKIP LINK ========== */
.seo-skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.seo-skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  z-index: 1000;
}

/* ========== META STRIP (byline / date) ========== */
.seo-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.seo-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.seo-meta-item strong { color: var(--ink); font-weight: 600; }
.seo-meta-item a { color: var(--accent); text-decoration: none; border: none; }
.seo-meta-item a:hover { color: var(--accent-hover); }
.seo-meta-item time { color: var(--ink-soft); }
.seo-meta-sep { color: var(--muted-2); }

/* ========== TOC ========== */
.seo-toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}
.seo-toc-title {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 600;
}
.seo-toc ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 0;
  color: var(--muted);
}
.seo-toc ol li { margin-bottom: 6px; font-size: 14.5px; }
.seo-toc a {
  color: var(--ink-soft);
  text-decoration: none;
  border: none;
  transition: color 0.15s;
}
.seo-toc a:hover { color: var(--accent); }

.seo-main h2[id] { scroll-margin-top: 96px; }

/* ========== DISCLAIMER ========== */
.seo-disclaimer {
  background: linear-gradient(135deg, #FFF7ED 0%, #FDF2F8 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  margin: 28px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.seo-disclaimer strong { color: var(--ink); }
.seo-disclaimer a { color: var(--accent); border: none; }
.seo-disclaimer a:hover { color: var(--accent-hover); }

/* ========================================
   CALCULATOR — the hero of the tool pages
   ======================================== */

.seo-calc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 0;
  margin: 32px 0 48px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.seo-calc::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 0% 0%, rgba(99,102,241,0.08) 0, transparent 40%),
    radial-gradient(at 100% 0%, rgba(236,72,153,0.07) 0, transparent 40%);
  pointer-events: none;
}
.seo-calc::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
}

.seo-calc-head {
  padding: 32px 36px 20px;
  position: relative;
  border-bottom: 1px solid var(--hairline);
}
.seo-calc-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}
.seo-calc-sub {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

.seo-calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}
@media (max-width: 860px) {
  .seo-calc-body { grid-template-columns: 1fr; }
}

.seo-calc-inputs {
  padding: 32px 36px;
  display: grid;
  gap: 20px;
  border-right: 1px solid var(--hairline);
}
@media (max-width: 860px) {
  .seo-calc-inputs { border-right: none; border-bottom: 1px solid var(--hairline); }
}

.seo-calc-field { display: grid; gap: 8px; }
.seo-calc-field[hidden] { display: none !important; }
.seo-calc-field > span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.seo-calc-field small {
  color: var(--muted-2);
  font-size: 12.5px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
}

.seo-calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--hairline-strong);
  border-radius: 14px;
  transition: all 0.18s ease;
  overflow: hidden;
}
.seo-calc-input-wrap:focus-within {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}
.seo-calc-input-wrap input {
  border: none;
  background: transparent;
  padding: 16px 16px;
  font-size: 18px;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  outline: none;
  font-feature-settings: "tnum";
}
.seo-calc-input-wrap input::-webkit-outer-spin-button,
.seo-calc-input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.seo-calc-input-wrap input[type=number] { -moz-appearance: textfield; }
.seo-calc-prefix,
.seo-calc-suffix {
  padding: 0 16px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  background: transparent;
  pointer-events: none;
}
.seo-calc-prefix { border-right: 1px solid var(--hairline); }
.seo-calc-suffix { border-left: 1px solid var(--hairline); }

/* plain inputs/selects (fallback shape) */
.seo-calc-field > input:not([type]),
.seo-calc-field > input[type="text"],
.seo-calc-field > input[type="number"],
.seo-calc-field > select {
  border: 1.5px solid var(--hairline-strong);
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--body);
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: all 0.18s;
}
.seo-calc-field > input:focus,
.seo-calc-field > select:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}

/* results panel */
.seo-calc-results {
  padding: 32px 36px;
  background:
    linear-gradient(160deg, rgba(99,102,241,0.05), rgba(236,72,153,0.04) 55%, rgba(245,158,11,0.03)),
    var(--surface);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.seo-calc-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--hairline-strong);
}
.seo-calc-hero-label {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.seo-calc-hero-value {
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-feature-settings: "tnum";
}
.seo-calc-hero-note,
.seo-calc-hero-meta {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}
.seo-calc-hero-meta span { color: var(--ink-soft); }

.seo-calc-grid,
.seo-calc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 440px) {
  .seo-calc-grid,
  .seo-calc-grid-2 { grid-template-columns: 1fr; }
}
.seo-calc-stat {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition: border-color 0.18s, transform 0.18s;
}
.seo-calc-stat:hover {
  border-color: rgba(124,58,237,0.2);
  transform: translateY(-1px);
}
.seo-calc-stat > span {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}
.seo-calc-stat > strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  font-feature-settings: "tnum";
  line-height: 1.2;
  word-break: break-word;
  hyphens: auto;
}
.seo-calc-stat-success {
  background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(99,102,241,0.05));
  border-color: rgba(13,148,136,0.22);
}
.seo-calc-stat-success > span { color: var(--teal); }
.seo-calc-stat-success > strong {
  background: linear-gradient(135deg, var(--teal) 0%, var(--indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* badges inside verdict slot */
.seo-calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.seo-calc-badge.neutral {
  background: var(--accent-soft);
  color: var(--accent);
}
.seo-calc-badge.win {
  background: linear-gradient(135deg, rgba(13,148,136,0.14), rgba(99,102,241,0.12));
  color: var(--teal);
  border: 1px solid rgba(13,148,136,0.25);
}

/* projection table inside calculator */
.seo-calc-table-wrap {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 4px;
  overflow-x: auto;
}
.seo-calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-feature-settings: "tnum";
}
.seo-calc-table th,
.seo-calc-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.seo-calc-table th {
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.seo-calc-table tbody tr:last-child td { border-bottom: none; }
.seo-calc-table tbody tr:hover { background: var(--accent-soft); }

.seo-calc-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding: 18px 36px 28px;
  margin: 0;
  border-top: 1px solid var(--hairline);
  background: rgba(244, 239, 230, 0.4);
}
@media (max-width: 860px) {
  .seo-calc-note { padding: 16px 22px 22px; }
}

/* primary CTA button */
.seo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #FFFFFF;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  box-shadow: 0 10px 30px rgba(124,58,237,0.35);
  transition: transform 0.18s, box-shadow 0.18s;
  background-size: 180% 180%;
  background-position: 0% 50%;
}
.seo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(236,72,153,0.45);
  background-position: 100% 50%;
}
.seo-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1.5px solid var(--hairline-strong);
  transition: all 0.18s;
}
.seo-cta-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* hero section (homepage + calc pages) */
.seo-hero {
  padding: 60px 0 40px;
  position: relative;
}
.seo-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.seo-hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}
.seo-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* feature pill stat row */
.seo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 32px 0;
}
.seo-stat {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.seo-stat-value {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
  font-feature-settings: "tnum";
}
.seo-stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* callout / highlight box */
.seo-callout {
  background: linear-gradient(135deg, #FFFFFF, #FAF7F2);
  border: 1px solid var(--hairline);
  border-left: 3px solid transparent;
  border-image: var(--gradient) 1;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 860px) {
  #seo-header nav { padding: 14px 20px; }
  .seo-menu-toggle { display: flex; }
  .seo-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-lg);
  }
  .seo-menu.is-open { display: flex; }
  .seo-menu a { padding: 12px 16px; }
  .seo-main { padding: 0 18px; margin: 20px auto 60px; }
  .seo-breadcrumbs { padding: 0 18px; }
  .seo-calc-head { padding: 24px 22px 16px; }
  .seo-calc-inputs, .seo-calc-results { padding: 22px; }
  .seo-main article > section { margin-bottom: 48px; }
  #seo-footer { padding: 48px 20px 28px; }
}

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

/* print basics */
@media print {
  #seo-header, #seo-footer, .seo-menu-toggle { display: none; }
  #seo-content { background: #fff; color: #000; }
  .seo-calc, .seo-card, .seo-table-wrap { box-shadow: none; border: 1px solid #ccc; }
}
