/* =========================================================================
   Seller Sprout — Design System
   A single stylesheet powering every page. Edit the :root tokens below to
   re-theme the entire site (colors, spacing, fonts, radius, shadows).
   ========================================================================= */

/* ---------- Design tokens ------------------------------------------------ */
:root {
  /* Brand palette */
  --brand:        #0f766e;   /* teal-700  — primary brand */
  --brand-dark:   #115e59;   /* teal-800  — hover/active */
  --brand-soft:   #ccfbf1;   /* teal-100  — tints/badges */
  --accent:       #f59e0b;   /* amber-500 — CTAs / highlights */
  --accent-dark:  #d97706;   /* amber-600 — CTA hover */

  /* Neutrals */
  --ink:          #0f172a;   /* slate-900 — headings */
  --body:         #334155;   /* slate-700 — body text */
  --muted:        #64748b;   /* slate-500 — secondary text */
  --line:         #e2e8f0;   /* slate-200 — borders */
  --surface:      #ffffff;
  --surface-2:    #f8fafc;   /* slate-50  — section bg */
  --surface-3:    #f1f5f9;   /* slate-100 */

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;

  /* Layout */
  --container: 1120px;
  --container-narrow: 760px;   /* article reading width */
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, .12);

  /* Transitions */
  --ease: 200ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
ul, ol { padding-left: 1.25rem; }

/* ---------- Layout helpers ---------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section--tight { padding-block: 56px; }
.section--alt { background: var(--surface-2); }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.lead { font-size: 1.2rem; color: var(--body); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease), color var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #3b2400; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-dark); color: #3b2400; box-shadow: var(--shadow-md); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn--lg { padding: 17px 34px; font-size: 1.075rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---------- Header / Nav ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #2dd4bf);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav__links a {
  color: var(--body); font-weight: 500; font-size: .97rem;
  padding: 8px 14px; border-radius: var(--radius-sm);
}
.nav__links a:hover { color: var(--ink); background: var(--surface-3); }
.nav__links a.is-active { color: var(--brand); }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(45, 212, 191, .18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(15, 118, 110, .10), transparent 55%),
    var(--surface);
  padding-block: 96px 84px;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.06; margin-bottom: 22px; }
.hero h1 .hl { color: var(--brand); }
.hero p { font-size: 1.2rem; color: var(--body); max-width: 40ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 20px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 28px;
}
.hero__card h3 { font-size: 1.05rem; margin-bottom: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stat__num { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat__label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }

/* ---------- Feature / value grid ---------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.feature {
  display: block; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
a.feature:hover { color: inherit; }
.feature__arrow { margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--brand); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .98rem; }

/* ---------- Card grid (blog / guides) ----------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--ease), box-shadow var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-soft), #e0f2fe); position: relative; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.post-card h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card__more { margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--brand); }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
}
.badge--guide { background: #dbeafe; color: #1e40af; }
.badge--review { background: #fef3c7; color: #92400e; }
.badge--news { background: #ede9fe; color: #5b21b6; }

/* ---------- Article (blog post) typography ------------------------------ */
.article { padding-block: 56px 88px; }
.article__header { max-width: var(--container-narrow); margin: 0 auto 40px; text-align: center; }
.article__header h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 16px 0; }
.article__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.article__hero-img { max-width: var(--container); margin: 0 auto 44px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.prose { max-width: var(--container-narrow); margin-inline: auto; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; padding-top: .2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p, .prose li { font-size: 1.12rem; color: var(--body); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin-block: 1.6em; box-shadow: var(--shadow-sm); }
.prose blockquote {
  border-left: 4px solid var(--brand); background: var(--surface-2);
  padding: 18px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.15rem; color: var(--ink); font-style: italic;
}
.prose code {
  background: var(--surface-3); padding: .15em .4em; border-radius: 5px;
  font-size: .9em; font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}
.prose figure figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: .6em; }

/* Callout box for tips / affiliate CTAs inside articles */
.callout {
  border: 1px solid var(--brand-soft); background: var(--brand-soft);
  border-radius: var(--radius); padding: 24px 26px;
}
.callout--cta { background: linear-gradient(135deg, #ecfdf5, #eff6ff); border-color: var(--line); box-shadow: var(--shadow-sm); }
.callout h3 { margin-bottom: 8px; }
.callout p { color: var(--body); }
.callout .btn { margin-top: 16px; }

/* ---------- Coupon-style affiliate CTA (whole card links out) ----------- */
.coupon {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 26px;
  background:
    radial-gradient(circle at 0% 50%, transparent 11px, #ecfdf5 12px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 11px, #eff6ff 12px) right / 51% 100% no-repeat;
  border: 2px dashed var(--brand); border-radius: var(--radius);
  padding: 26px 30px; color: var(--ink);
  transition: transform var(--ease), box-shadow var(--ease);
}
.coupon:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }
.coupon__badge {
  display: inline-block; background: var(--accent); color: #3b2400;
  font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.coupon__title { font-size: 1.3rem; line-height: 1.25; margin-bottom: 6px; }
.coupon__text { color: var(--body); font-size: .98rem; margin: 0; }
.coupon__action { text-align: center; border-left: 2px dashed var(--brand); padding-left: 26px; white-space: nowrap; }
.coupon__code {
  display: block; font-weight: 800; font-size: 1.4rem; color: var(--brand-dark);
  letter-spacing: .04em; font-family: var(--font-sans);
}
.coupon__cta { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--accent-dark); }
@media (max-width: 620px) {
  .coupon { grid-template-columns: 1fr; gap: 18px; }
  .coupon__action { border-left: 0; border-top: 2px dashed var(--brand); padding-left: 0; padding-top: 18px; }
}

/* ---------- Article hero image ------------------------------------------ */
.article__hero-img img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }

/* Comparison / spec table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ---------- CTA band ----------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 52ch; margin: 0 auto 28px; font-size: 1.1rem; }

/* ---------- Disclosure --------------------------------------------------- */
.disclosure {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: .88rem; color: var(--muted);
  display: flex; gap: 10px; align-items: flex-start;
}
.disclosure svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding-block: 56px 32px; margin-top: 8px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.footer__about { font-size: .95rem; color: #94a3b8; margin-top: 16px; max-width: 34ch; }
.footer__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: #cbd5e1; font-size: .95rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid #1e293b;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .86rem; color: #94a3b8;
}

/* ---------- Page hero (interior pages) ---------------------------------- */
.page-hero { background: var(--surface-2); border-bottom: 1px solid var(--line); padding-block: 64px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin-inline: auto; }

/* ---------- Utilities ---------------------------------------------------- */
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }
.hide { display: none !important; }

/* ---------- Topic quick-list (hero card) -------------------------------- */
.topic-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.topic-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; font-size: .98rem;
}
.topic-list a:hover { background: var(--surface-2); color: var(--brand); }
.topic-list a::after { content: "→"; color: var(--muted); transition: transform var(--ease); }
.topic-list a:hover::after { color: var(--brand); transform: translateX(3px); }

/* ---------- Category chips (library filter bar) ------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chips--center { justify-content: center; }
.chip {
  display: inline-flex; padding: 9px 18px; border: 1px solid var(--line);
  border-radius: 999px; font-size: .92rem; font-weight: 600;
  color: var(--body); background: var(--surface); transition: all var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip.is-active:hover { color: #fff; }

/* ---------- Empty state (category with no posts yet) -------------------- */
.empty-state {
  text-align: center; border: 2px dashed var(--line); border-radius: var(--radius-lg);
  padding: 64px 32px; background: var(--surface-2);
}
.empty-state svg { width: 44px; height: 44px; color: var(--brand); margin: 0 auto 18px; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 10px; }
.empty-state p { color: var(--muted); max-width: 44ch; margin: 0 auto 24px; }

/* ---------- Related topics (bottom of category pages) ------------------- */
.topic-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero p { max-width: none; }
  .grid--3, .grid--4, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding-block: 60px; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child a { border-bottom: 0; }
  .nav__cta { margin: 10px 0 0; }
  .nav__toggle { display: inline-flex; }
  .grid--3, .grid--4, .card-grid, .grid--2 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .section-head { margin-bottom: 36px; }
}
