/* course-platform-picks.com — shared stylesheet
   Online course-platform comparison (Thinkific/Kajabi/Teachable/...). Audience =
   creators/coaches choosing where to BUILD & sell courses.
   Deliberately distinct from sibling sites: light "creator studio" — warm paper,
   a single confident rose accent, a chunky grotesque display face.
   Fonts (loaded from Google Fonts in <head>):
     Bricolage Grotesque (display/headings) + Instrument Sans (body).
   Mobile-first. Comparison tables scroll horizontally. */

:root {
  --bg:        #FCFBF9;   /* warm paper white */
  --bg-2:      #F4F1EB;   /* soft section panel */
  --surface:   #FFFFFF;
  --surface-2: #F6F2EC;   /* table header etc. */
  --ink:       #1A1613;   /* warm near-black */
  --ink-soft:  #6A615A;
  --line:      #E7E0D6;
  --line-strong:#D6CCBE;
  --accent:    #C5384F;   /* deep rose (single accent) */
  --accent-deep:#A02740;
  --accent-soft:#FAE9EC;
  --accent-2:  #1F6F60;   /* deep teal (rank/secondary, sparing) */
  --good:      #1F7A55;
  --bad:       #C0463C;
  --maxw:      73rem;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(60,40,30,.05), 0 4px 12px rgba(60,40,30,.05);
  --shadow-md: 0 10px 26px rgba(60,40,30,.10), 0 18px 44px rgba(60,40,30,.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 0.98rem + 0.2vw, 18px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.3rem; }
section { padding-block: clamp(2.6rem, 6vw, 5rem); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  font-weight: 700; line-height: 1.12; letter-spacing: -0.018em;
  margin: 0 0 0.55em; color: var(--ink);
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem); margin-top: 0.3em; }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
a  { color: var(--accent-deep); text-underline-offset: 2px; transition: color .15s ease; }
a:hover { color: var(--accent); }
.lead { font-size: 1.16em; color: var(--ink-soft); line-height: 1.65; max-width: 60ch; }
.kicker { display: inline-block; font-weight: 600; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); padding: 0.3rem 0.75rem; border-radius: 6px; margin: 0 0 1.1rem; }
.fineprint, small { color: var(--ink-soft); font-size: 0.84rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
table.grid, .facts dd, .price { font-variant-numeric: tabular-nums; }

/* ---------- Header / nav ---------- */
.masthead { background: rgba(252,251,249,.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.22rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 1.15rem; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent-deep); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.82rem; color: var(--ink-soft); padding-top: 1.3rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin-inline: 0.4rem; opacity: 0.5; }

/* ---------- Hero (asymmetric left-aligned) ---------- */
.hero { background: linear-gradient(150deg, var(--accent-soft) 0%, var(--bg) 55%); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 54ch; }

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff;
  font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 0.78rem 1.55rem; border-radius: var(--radius-sm);
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 4px 14px rgba(197,56,79,.22);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(197,56,79,.3); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--accent-deep); border: 1.5px solid var(--accent); box-shadow: none; font-weight: 600; padding: 0.73rem 1.45rem; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: 'Instrument Sans', sans-serif; transition: background .15s ease, transform .12s ease; }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-deep); transform: translateY(-2px); }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* ---------- Cards ---------- */
.deck { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.5rem; position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.tile .label { display: inline-block; font-weight: 600; font-size: 0.72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); padding: 0.25rem 0.65rem; border-radius: 5px; margin-bottom: 0.6rem; }
.tile h3 { margin-bottom: 0.2rem; }
.tile .price { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.tile ul { margin: 0.7rem 0 1.2rem; padding-left: 1.1rem; color: var(--ink-soft); }
.tile .btn, .tile .btn-outline { margin-top: auto; align-self: stretch; justify-content: center; }
.tile .rank { position: absolute; top: -0.75rem; left: 1.2rem; font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.82rem; font-weight: 800; color: #fff; background: var(--accent-2); width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 7px; box-shadow: var(--shadow-sm); }
.tile.featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow-md); }

/* ---------- Comparison table ---------- */
.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table.grid { width: 100%; border-collapse: collapse; min-width: 44rem; font-size: 0.93rem; }
table.grid th, table.grid td { padding: 0.85rem 0.95rem; text-align: left; border-bottom: 1px solid var(--line); }
table.grid thead th { background: var(--surface-2); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; position: sticky; top: 0; }
table.grid tbody th { position: sticky; left: 0; background: var(--surface); font-weight: 700; white-space: nowrap; }
table.grid tbody tr:last-child td, table.grid tbody tr:last-child th { border-bottom: 0; }
table.grid tbody tr:hover td { background: #FBF6F1; }
table.grid .win { color: var(--good); font-weight: 700; }

/* ---------- Verdict / pros-cons ---------- */
.verdict { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); }
.split { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 0.4rem; }
.split ul { list-style: none; margin: 0; padding: 0; }
.split li { padding-left: 1.7rem; position: relative; margin-bottom: 0.5rem; color: var(--ink-soft); }
.plus li::before { content: '+'; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.minus li::before { content: '–'; position: absolute; left: 0.15rem; color: var(--bad); font-weight: 800; }

/* ---------- Spec list ---------- */
.facts { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); box-shadow: var(--shadow-sm); }
.facts div { background: var(--surface); padding: 0.9rem 1.1rem; }
.facts dt { font-size: 0.74rem; color: var(--ink-soft); margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 700; font-size: 1.02rem; }

/* ---------- Use-case / nav grid ---------- */
.picks { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.picks a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); transition: border-color .15s ease, color .15s ease, transform .14s ease, box-shadow .15s ease; }
.picks a::after { content: '→'; color: var(--accent); }
.picks a:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Callouts ---------- */
.note { background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.note.update { border-left: 4px solid var(--accent-2); background: #E8F2EF; }
.asof { color: #9A5B22; font-size: 0.84rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0.95rem 1.2rem; margin-bottom: 0.7rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; gap: .6rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; color: #fff; background: var(--accent); width: 1.4rem; height: 1.4rem; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; flex: none; }
.faq details p { margin: 0.7rem 0 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.colophon { background: #211B18; color: #CFC6BD; border-top: 1px solid var(--line); margin-top: 2.5rem; }
.colophon .wrap { padding-block: 2.4rem; }
.colophon .logo { color: #fff; }
.colophon .logo b { color: var(--accent); }
.colophon .nav { margin-bottom: 1.1rem; }
.colophon .nav a { color: #B7ADA3; }
.colophon .nav a:hover { color: #fff; }
.disclose { color: #998E84; font-size: 0.83rem; max-width: 62ch; }

/* ---------- Utilities ---------- */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }
.mt0 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
