:root {
  --teal-900: #0a2a43;   /* darkest brand navy (hero end, footer) */
  --teal-800: #0f3d68;    /* primary brand blue (headings, hero, active) */
  --teal-700: #1e5b96;    /* mid blue */
  --orange-600: #2563eb;  /* blue — buttons, card labels */
  --orange-700: #1d4ed8;  /* blue dark — links, hovers */
  --green-700: #1d4ed8;   /* secondary accent (kept blue) */
  --green-600: #2563eb;
  --gray-800: #1f2933;
  --gray-600: #45505c;
  --gray-400: #6b7684;
  --gray-200: #e2e7ec;
  --gray-100: #f4f6f8;
  --cream: #f8fafc;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(15, 37, 64, 0.08);
  --shadow-lg: 0 10px 34px rgba(15, 37, 64, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, Segoe UI, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--teal-800);
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.35rem; font-weight: 700; margin-top: 1.4em; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
a { color: var(--orange-700); text-decoration: none; }
a:hover { color: var(--orange-600); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--orange-600); color: var(--white); }
.btn-primary:hover { background: var(--orange-700); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: var(--green-600); color: var(--white); transform: translateY(-1px); }

/* Header */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 500;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--teal-800); }
.site-logo img { height: 46px; width: auto; }
#main-nav { display: flex; align-items: center; gap: 1.7rem; }
#main-nav a { color: var(--gray-800); font-weight: 600; font-size: 0.95rem; }
#main-nav a:hover { color: var(--orange-700); text-decoration: none; }
#main-nav .btn-primary { padding: 0.6rem 1.3rem; color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.7rem; color: var(--teal-800); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  #main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: flex-start;
    padding: 1rem 20px 1.5rem; gap: 0.9rem;
    box-shadow: var(--shadow-lg);
  }
  #main-nav.open { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-900));
  color: var(--white);
  padding: 4.5rem 0 4rem;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { max-height: 320px; border-radius: var(--radius); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } .hero-actions{justify-content:center;} .hero-art{order:-1;} }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--gray-100); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head .eyebrow { color: var(--green-700); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }

/* Cards / grids */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-cat { color: var(--orange-700); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.card h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
.card p { color: var(--gray-400); font-size: .93rem; flex: 1; }
.card .read-more { font-weight: 700; font-size: .9rem; margin-top: .6rem; color: var(--orange-700); }

.tool-card { text-align: center; padding: 2.2rem 1.6rem; border: 1px solid var(--gray-200); }
.tool-card .icon { font-size: 2.4rem; margin-bottom: .8rem; }
.tool-card h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.tool-card p { color: var(--gray-400); font-size: .9rem; flex: 1; }

/* Article */
.article-hero {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-900));
  color: var(--white);
  padding: 3rem 0 2.5rem;
}
.article-hero .breadcrumb { font-size: .85rem; color: rgba(255,255,255,.72); margin-bottom: 1rem; }
.article-hero .breadcrumb a { color: rgba(255,255,255,.88); }
.article-hero h1 { color: var(--white); max-width: 40ch; }
.article-meta { color: rgba(255,255,255,.78); font-size: .9rem; margin-top: .8rem; }
.article-meta a { color: inherit; text-decoration: underline; }
.article-wrap { max-width: 760px; margin: -2.5rem auto 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2.6rem clamp(1.4rem, 5vw, 3.2rem) 3rem; position: relative; }
.article-wrap img.featured { border-radius: var(--radius); margin-bottom: 2rem; width: 100%; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .93rem; }
.article-body th, .article-body td { border: 1px solid var(--gray-200); padding: .6rem .8rem; text-align: left; }
.article-body th { background: var(--gray-100); }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: .4rem; }
.article-body blockquote { margin: 1.6rem 0; padding: .6rem 0 .6rem 1.2rem; border-left: 4px solid var(--orange-600); color: var(--gray-600); font-style: italic; }

/* Responsive video embeds (2021 viral-video posts) */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); margin: 1.7rem 0; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cta-banner {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.cta-banner h3 { color: #fff; margin: 0 0 .3rem; }
.cta-banner p { margin: 0; color: rgba(255,255,255,.9); }
.cta-banner .btn { background: var(--white); color: var(--orange-700); }

/* Tool form pages */
.tool-form-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 2.2rem clamp(1.2rem, 4vw, 2.6rem); max-width: 760px; margin: -2.5rem auto 0; position: relative;
}
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .92rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--gray-200); border-radius: 8px;
  font-size: 16px; font-family: inherit; background: var(--white);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.tool-submit { width: 100%; padding: 1rem; font-size: 1rem; margin-top: .5rem; }
.tool-loading { display: none; text-align: center; padding: 2rem 0; color: var(--gray-400); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--gray-200); border-top-color: var(--orange-600); border-radius: 50%; margin: 0 auto 1rem; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tool-result { display: none; margin-top: 1.6rem; }
.error-msg { background: #fdecea; color: #b3261e; padding: .9rem 1.1rem; border-radius: 8px; margin-top: 1rem; }
.success-msg { background: #e7f5ec; color: #12633a; border: 1px solid #b7e0c6; padding: 1.1rem 1.3rem; border-radius: 8px; margin-bottom: 1.4rem; }
.success-msg a { color: #12633a; text-decoration: underline; }
.form-errors { background: #fdecea; color: #b3261e; padding: .9rem 1.2rem; border-radius: 8px; margin-bottom: 1.4rem; }
.form-errors ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.form-errors a { color: #b3261e; text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.contact-aside h3 { margin-top: 0; }
.contact-aside address { font-style: normal; color: var(--gray-600); line-height: 1.7; }
@media (max-width: 780px) { .contact-cols { grid-template-columns: 1fr; } }

/* Footer */
#site-footer { background: var(--teal-900); color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4 { color: var(--white); font-size: .95rem; margin-bottom: 1rem; }
.footer-grid a { color: rgba(255,255,255,.75); display: block; margin-bottom: .55rem; font-size: .92rem; }
.footer-grid a:hover { color: var(--white); text-decoration: none; }
.footer-grid p { max-width: 34ch; color: rgba(255,255,255,.65); font-size: .92rem; }
.footer-bottom { padding-top: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.footer-bottom a { color: rgba(255,255,255,.65); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; }
.pagination a, .pagination span { padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--gray-200); font-weight: 600; font-size: .9rem; color: var(--gray-800); }
.pagination a:hover { border-color: var(--teal-800); color: var(--teal-800); text-decoration: none; }
.pagination .current { background: var(--teal-800); color: var(--white); border-color: var(--teal-800); }
.pagination .gap { border: none; padding: .55rem .3rem; color: var(--gray-400); }

/* Listing pages */
.listing-hero { padding: 3rem 0 2.5rem; }
.listing-hero .eyebrow { color: #9ec5ff; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; margin-bottom: .5rem; }
.listing-hero p.listing-blurb { color: rgba(255,255,255,.85); max-width: 62ch; margin: .7rem 0 0; font-size: 1.02rem; }
.listing-body { padding: 3rem 0 1rem; }
.topic-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.topic-nav a { padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--gray-200); font-weight: 600; font-size: .88rem; color: var(--gray-600); background: var(--white); }
.topic-nav a:hover { border-color: var(--teal-700); color: var(--teal-800); text-decoration: none; }
.topic-nav a.active { background: var(--teal-800); border-color: var(--teal-800); color: var(--white); }
.listing-count { color: var(--gray-400); font-size: .9rem; margin: 0 0 1.6rem; }

/* Cookie banner */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--teal-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; padding: 0.9rem 1.5rem; flex-wrap: wrap;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
#cookie-banner p { margin: 0; font-size: 0.88rem; }
#cookie-banner a { color: #9ec5ff; text-decoration: underline; }
@media (max-width: 480px) { #cookie-banner { flex-direction: column; text-align: center; gap: 0.75rem; } }

.disclosure-box { background: var(--gray-100); border-left: 4px solid var(--orange-600); padding: 1rem 1.3rem; border-radius: 6px; font-size: .88rem; color: var(--gray-600); margin: 1.6rem 0; }
.article-disclaimer { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--gray-200); font-size: .82rem; line-height: 1.6; color: var(--gray-400); }

/* Author bio box (E-E-A-T) */
.author-box { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--gray-100); border: 1px solid var(--gray-200); border-left: 4px solid var(--orange-600); border-radius: 8px; padding: 1.2rem 1.3rem; margin: 2.2rem 0 0; }
.author-box .avatar { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--orange-600); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.author-box h4 { margin: 0 0 .25rem; font-size: 1rem; }
.author-box p { margin: 0; font-size: .88rem; color: var(--gray-600); }

/* Glossary */
.az-index { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0 2rem; }
.az-index a { padding: .35rem .7rem; border: 1px solid var(--gray-200); border-radius: 6px; font-weight: 700; font-size: .85rem; }
.glossary-list dt { font-weight: 800; color: var(--teal-800); margin-top: 1.3rem; font-size: 1.05rem; }
.glossary-list dd { margin: .25rem 0 0; color: var(--gray-600); }
.glossary-list dd + dt { border-top: 1px solid var(--gray-200); padding-top: 1.3rem; }

/* ---- AI tool pages: intro + generated results ---- */
.tool-intro { max-width: 760px; margin: 2.4rem auto 0; }
.tool-intro .disclaimer { font-size: .82rem; color: var(--gray-400); margin-top: 1.4rem; }
.tool-result-cta {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-900));
  color: var(--white); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.8rem; animation: aiFade .4s ease both;
}
.tool-result-cta h3 { color: var(--white); margin: 0 0 .2rem; font-size: 1.15rem; }
.tool-result-cta p { color: rgba(255,255,255,.82); margin: 0; font-size: .9rem; }
.tool-result-cta .btn { background: var(--white); color: var(--teal-800); white-space: nowrap; }

.ai-section { margin-bottom: 1.8rem; animation: aiFade .4s ease both; }
.ai-section:nth-child(2) { animation-delay: .05s; }
.ai-section:nth-child(3) { animation-delay: .12s; }
.ai-section:nth-child(4) { animation-delay: .19s; }
.ai-section:nth-child(5) { animation-delay: .26s; }
.ai-section:nth-child(6) { animation-delay: .33s; }
.ai-section > h3 {
  font-size: 1.2rem; margin: 0 0 .9rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--gray-200);
}
.ai-section > p { color: var(--gray-600); font-size: .96rem; }
.ai-section ul, .ai-section ol { padding-left: 1.2rem; color: var(--gray-600); font-size: .96rem; }
.ai-section li { margin-bottom: .4rem; }
.tool-result table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.tool-result th, .tool-result td { border: 1px solid var(--gray-200); padding: .55rem .75rem; text-align: left; }
.tool-result th { background: var(--gray-100); color: var(--teal-800); }

.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.ai-card {
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 1rem .9rem; display: flex; flex-direction: column; gap: .35rem; text-align: center;
}
.ai-card-icon { font-size: 1.5rem; }
.ai-card strong { color: var(--teal-800); font-size: .92rem; }
.ai-card span { color: var(--gray-600); font-size: .84rem; }

.ai-plan { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 620px) { .ai-plan { grid-template-columns: 1fr 1fr; } }
.ai-plan-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; padding: 1rem 1.1rem; }
.ai-plan-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; flex-wrap: wrap; }
.ai-plan-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--teal-800); }
.ai-plan-tag { background: #dbeafe; color: var(--orange-700); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .12rem .6rem; }
.ai-plan-item p { margin: 0; color: var(--gray-600); font-size: .9rem; }

.ai-tips { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: .55rem; }
.ai-tips li { display: flex; gap: .7rem; align-items: flex-start; background: var(--gray-100); border-left: 3px solid var(--orange-600); border-radius: 0 8px 8px 0; padding: .7rem .9rem; margin: 0; }
.ai-tip-ic { flex-shrink: 0; }
.ai-tips li p { margin: 0; font-size: .9rem; color: var(--gray-600); }

@keyframes aiFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
