/* ===========================
   Creator Essentials – Main CSS
   Brand: Clean minimal, red/charcoal/white
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Custom Properties ── */
:root {
  --red:      #F21B2D;
  --charcoal: #282A2D;
  --slate:    #666B72;
  --cloud:    #F5F6F8;
  --soft-red: #FFECEF;
  --white:    #FFFFFF;
  --border:   #E2E4E8;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w: 1120px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --section: clamp(4rem, 8vw, 7rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--slate); max-width: 68ch; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.75rem;
}

/* ── Layout ── */
.container {
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}

section { padding-block: var(--section); }
.bg-cloud   { background: var(--cloud); }
.bg-charcoal{ background: var(--charcoal); color: var(--white); }
.bg-charcoal p { color: rgba(255,255,255,0.7); }
.bg-charcoal h1,
.bg-charcoal h2,
.bg-charcoal h3 { color: var(--white); }
.bg-red     { background: var(--red); color: var(--white); }
.bg-red h1,
.bg-red h2,
.bg-red p   { color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.btn-primary   { background: var(--red); color: var(--white); }
.btn-secondary { background: transparent; color: var(--charcoal); border: 2px solid var(--charcoal); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-white     { background: var(--white); color: var(--red); }

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-block: 1.1rem;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--charcoal);
  transition: background 0.12s;
}
.nav-links a:hover { background: var(--cloud); }
.nav-links .btn-primary:hover { background: var(--red); color: #000; }
.nav-links .btn { padding: 0.6rem 1.25rem; font-size: 0.8rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--charcoal);
}

/* ── Nav Dropdowns ── */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: '▾';
  margin-left: 0.25rem;
  font-size: 0.65rem;
  vertical-align: middle;
  opacity: 0.6;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 0.5rem 0 0.375rem;
  list-style: none;
  z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 0.6rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 0;
  transition: background 0.1s;
}
.dropdown li a:hover { background: var(--cloud); }

/* ── Hero ── */
.hero {
  padding-block: clamp(5rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 60% 50%, var(--soft-red) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-content { max-width: 640px; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: 1.125rem; margin-bottom: 2rem; max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--soft-red);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.875rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--charcoal);
}
.card.card-red::before { background: var(--red); }
.card-number {
  width: 2.5rem; height: 2.5rem;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.625rem; }
.card p  { font-size: 0.95rem; margin: 0; }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--red);
  margin-top: 1.25rem;
}
.card-cta:hover { gap: 0.625rem; }
.card-cta svg { transition: transform 0.15s; }
.card-cta:hover svg { transform: translateX(3px); }

/* ── Section helpers ── */
.section-header { max-width: 640px; margin-bottom: var(--gap); }
.section-header h2 { margin-bottom: 0.75rem; }

/* ── Offer cards (services) ── */
.offer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.offer-card-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.offer-card h3 { color: var(--charcoal); }
.offer-card p  { flex: 1; }
.offer-card .btn { align-self: flex-start; margin-top: auto; }

/* ── Steps ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 1.4rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.step-num {
  width: 3rem; height: 3rem;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  flex-shrink: 0;
}
.step-body h4 { margin-bottom: 0.375rem; padding-top: 0.5rem; }
.step-body p  { margin: 0; }

/* ── Testimonials ── */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}
.testimonial blockquote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.testimonial-source { font-size: 0.85rem; color: var(--slate); font-weight: 500; }
.stars { color: var(--red); font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }

/* ── Proof bar ── */
.proof-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.proof-item { text-align: center; }
.proof-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--charcoal);
}
.proof-item span { font-size: 0.875rem; color: var(--slate); }

/* ── Blog ── */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.09); transform: translateY(-3px); }
.post-card-meta { font-size: 0.8rem; color: var(--slate); }
.post-card h3 { font-size: 1.15rem; }
.post-card p  { font-size: 0.9rem; flex: 1; }
.post-card .card-cta { margin-top: 0; }

.post-tag {
  display: inline-block;
  background: var(--cloud);
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
}

/* ── Article content ── */
.article-body {
  max-width: 720px;
}
.article-body h2 { margin-top: 2.5rem; margin-bottom: 0.875rem; }
.article-body h3 { margin-top: 2rem; margin-bottom: 0.625rem; }
.article-body p  { margin-bottom: 1.25rem; max-width: 100%; }
.article-body ul,
.article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.5rem; color: var(--slate); }
.article-body strong { color: var(--charcoal); }
.article-body a { color: var(--red); text-decoration: underline; }
.article-body a:hover { text-decoration: none; }
.article-body .btn { text-decoration: none; }
.article-body .btn-primary { color: var(--white); }
.article-body .btn-secondary { color: var(--charcoal); }
.article-body .btn-outline-white { color: var(--white); }

/* ── Article layout with sidebar ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: 2; }
  .article-main { order: 1; }
}
.article-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sidebar CTA card */
.sidebar-cta {
  background: var(--charcoal);
  color: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
}
.sidebar-cta .eyebrow { color: var(--red); margin-bottom: 0.625rem; }
.sidebar-cta h3 {
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.sidebar-cta p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
  max-width: 100%;
}
.sidebar-cta .btn { width: 100%; text-align: center; font-size: 0.8rem; }
.sidebar-cta .btn + .btn { margin-top: 0.625rem; }

/* Sidebar related card */
.sidebar-related {
  background: var(--cloud);
  border-radius: 12px;
  padding: 1.5rem;
}
.sidebar-related h4 {
  font-size: 0.875rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.sidebar-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-related-list li {
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.sidebar-related-list li:last-child { border-bottom: none; }
.sidebar-related-list a {
  display: block;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
  transition: color 0.15s;
}
.sidebar-related-list a:hover { color: var(--red); }

/* Sidebar tools teaser */
.sidebar-tools {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.sidebar-tools p {
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: 1rem;
  max-width: 100%;
}
.sidebar-tools .btn { width: 100%; text-align: center; font-size: 0.8rem; }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 1.25rem;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--red);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 0.75rem; margin-bottom: 0; }

/* ── CTA Banner ── */
.cta-banner {
  padding-block: clamp(3.5rem, 7vw, 5rem);
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,0.8); margin-inline: auto; margin-bottom: 2rem; }
.cta-banner .hero-ctas { justify-content: center; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--charcoal);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,0.7); font-size: 1.125rem; max-width: 56ch; }

/* ── Footer ── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 3rem;
}
.footer-brand h3 { color: var(--white); margin-bottom: 0.5rem; font-size: 1rem; }
.footer-brand p  { font-size: 0.875rem; max-width: 28ch; }
.footer-col h4 { color: var(--white); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.12s; }
.footer-links a:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.footer-social a:hover { background: var(--red); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  background: var(--cloud);
  border-bottom: 1px solid var(--border);
  padding: 0.625rem 0;
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--slate);
}
.breadcrumb-item { display: flex; align-items: center; gap: 0.25rem; }
.breadcrumb-item:not(:last-child)::after {
  content: '›';
  color: var(--border);
  font-size: 1rem;
  line-height: 1;
  margin-left: 0.25rem;
}
.breadcrumb-item a { color: var(--slate); transition: color 0.1s; }
.breadcrumb-item a:hover { color: var(--red); }
.breadcrumb-item span[aria-current="page"] {
  color: var(--charcoal);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 28ch;
}

/* ── Glossary Hub ── */
.glossary-categories {
  display: grid;
  gap: 3rem;
}
.glossary-category-heading {
  font-size: 1.125rem;
  color: var(--charcoal);
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  display: inline-block;
}
.glossary-term-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.125rem 2rem;
}
.glossary-term-list a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  color: var(--charcoal);
  border-bottom: 1px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.glossary-term-list a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.glossary-letter {
  font-size: 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--red);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border);
}
.glossary-letter:first-of-type {
  margin-top: 1.25rem;
}

/* ── Tools Page ── */
.tools-section-heading {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}
.tools-category { margin-bottom: 3rem; }
.tools-category-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 1.25rem;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bg-cloud .tool-card { background: var(--white); }
.tool-card-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--soft-red);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  width: fit-content;
}
.tool-name {
  font-size: 1rem;
  font-family: var(--font-head);
  color: var(--charcoal);
  margin: 0;
}
.tool-card p { font-size: 0.875rem; margin: 0; flex: 1; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; margin-top: auto; width: fit-content; }

/* ── Availability notice ── */
.notice-bar {
  background: var(--soft-red);
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 0.75rem 1rem;
}

/* ── Price badge ── */
.price-block {
  background: var(--cloud);
  border-radius: 12px;
  padding: 1.5rem;
  display: inline-block;
}
.price-block .amount {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--charcoal);
}
.price-block .period { font-size: 0.875rem; color: var(--slate); }

/* ── Feature list ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--charcoal);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.2rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.5 3L6 10.5 2.5 7 1 8.5l5 5 9-9z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.5 3L6 10.5 2.5 7 1 8.5l5 5 9-9z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── Logo SVG inline ── */
.logo-svg { display: inline-block; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: 0.125rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  /* Mobile dropdowns: static, indented */
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--red);
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 0.75rem;
    margin: 0.25rem 0 0.25rem 0.5rem;
    min-width: unset;
  }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown > a { width: 100%; }
  .dropdown li a { padding: 0.375rem 0.5rem; }

  .proof-bar { justify-content: center; }
  .proof-item { min-width: 140px; }

  .step { grid-template-columns: 2.5rem 1fr; }
}
