/* =========================================================
   Carrie Explains AI - shared design system (matches main site)
   Pulled verbatim from carrieexplainsai.com, plus guide-specific
   components at the bottom. Pair with the Google Fonts link:
   Cormorant Garamond + Jost.
   ========================================================= */

:root {
  --sage: #74A98A;
  --sage-deep: #5C8F73;
  --moss: #52796F;
  --forest: #2D6A4F;
  --mist: #B7D5C4;
  --leaf: #D8F3DC;
  --cream: #F5F0E8;
  --warm: #FDFAF4;
  --bark: #3D2B1F;
  --stone: #7C6F64;
  --blush: #E8DDD0;
  --dark: #1A2E22;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  font-family: var(--font-body);
  color: var(--bark);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sage-deep); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--moss);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(22px, 3vw, 28px); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-primary { background: var(--sage); color: white; }
.btn-primary:hover { background: var(--sage-deep); color: white; }
.btn-outline { background: transparent; color: var(--moss); border: 1.5px solid var(--sage); }
.btn-outline:hover { background: var(--leaf); color: var(--moss); }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm);
  border-bottom: 1px solid var(--blush);
  height: var(--nav-height);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 2px; text-decoration: none; }
.nav-logo-text { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--bark); }
.nav-logo-text .ai { color: var(--sage); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--stone); letter-spacing: 0.02em; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--sage); transition: width 0.25s ease; }
.nav-links a:hover { color: var(--moss); }
.nav-links a:hover::after { width: 100%; }
.nav-links .btn { padding: 10px 24px; font-size: 13px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--bark); border-radius: 2px; transition: all 0.3s ease; }

.hero { background: var(--sage); position: relative; overflow: hidden; padding: 100px 0 110px; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(82,121,111,0.3) 0%, transparent 50%); }
.hero-inner { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 0 32px; text-align: center; }
.hero h1 { color: white; margin-bottom: 20px; }
.hero-tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(18px, 2.5vw, 24px); color: var(--leaf); margin-bottom: 36px; }
.hero p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 600px; margin: 0 auto 40px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: white; color: var(--moss); }
.hero .btn-primary:hover { background: var(--leaf); color: var(--moss); }

.section { padding: 88px 0; }
.section-alt { background: var(--warm); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header p { color: var(--stone); font-size: 17px; margin-top: 16px; line-height: 1.7; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card { background: var(--warm); border: 1px solid var(--blush); border-radius: 3px; padding: 36px 32px; box-shadow: 0 2px 12px rgba(61,43,31,0.06); transition: box-shadow 0.3s ease, transform 0.2s ease; }
.card:hover { box-shadow: 0 6px 24px rgba(61,43,31,0.10); transform: translateY(-1px); }
.card-icon { width: 48px; height: 48px; background: var(--leaf); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--moss); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--stone); font-size: 15px; line-height: 1.7; }

.pull-quote { border-left: 3px solid var(--sage); padding: 24px 32px; border-radius: 0 6px 6px 0; background: var(--leaf); margin: 32px 0; }
.pull-quote p { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--moss); line-height: 1.55; }

.cta-banner { background: var(--moss); padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(116,169,138,0.15) 0%, transparent 70%); }
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner p { color: var(--mist); font-size: 17px; max-width: 520px; margin: 0 auto 32px; }

.footer { background: var(--dark); padding: 48px 0 36px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.footer-brand .footer-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: white; margin-bottom: 8px; }
.footer-brand .footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--sage); }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.06); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); transition: all 0.2s; }
.footer-social a:hover { background: var(--sage); color: white; }

@media (max-width: 900px) {
  .footer-top { flex-direction: column; gap: 20px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--warm); flex-direction: column; padding: 24px 32px; gap: 20px; border-bottom: 1px solid var(--blush); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 72px 0 80px; }
  .section { padding: 64px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

/* =========================================================
   GUIDE-SPECIFIC COMPONENTS (built on the same tokens/fonts)
   ========================================================= */

/* Level pills */
.pill { display: inline-block; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 14px; }
.pill-l1 { background: var(--leaf); color: var(--moss); }
.pill-l2 { background: var(--mist); color: var(--moss); }
.pill-l3 { background: var(--moss); color: white; }

/* Clickable guide cards on the index */
a.card-link { display: flex; flex-direction: column; color: inherit; }
a.card-link:hover { color: inherit; }
a.card-link .go { margin-top: 16px; color: var(--moss); font-weight: 600; font-size: 14px; }
.card.soon { opacity: 0.6; }
.card.soon .go { color: var(--stone); }

/* Opt-in strip under the hero on the index */
.optin-strip { background: var(--moss); color: white; text-align: center; padding: 18px 32px; font-size: 15px; }
.optin-strip a { color: var(--leaf); font-weight: 600; }

.guides-intro { padding: 64px 0 24px; }

/* Guide page header (smaller than the homepage hero) */
.guide-hero { background: var(--sage); position: relative; overflow: hidden; padding: 72px 0 64px; }
.guide-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(82,121,111,0.3) 0%, transparent 50%); }
.guide-hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 0 32px; }
.guide-hero h1 { color: white; margin-bottom: 14px; }
.guide-hero p { color: rgba(255,255,255,0.88); font-size: 18px; max-width: 640px; }
.guide-hero .pill { background: rgba(216,243,220,0.2); color: var(--leaf); }

/* Readable article column */
.article { max-width: 780px; margin: 0 auto; padding: 56px 32px; }
.article .lead { font-size: 20px; color: var(--moss); margin-bottom: 20px; line-height: 1.6; }
.article p { margin-bottom: 16px; color: var(--bark); }
.article h2 { margin: 36px 0 14px; }

.cat { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); border-bottom: 1px solid var(--blush); padding-bottom: 8px; margin: 32px 0 16px; }

.check { background: var(--warm); border: 1px solid var(--blush); border-left: 3px solid var(--sage); border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; font-size: 15px; color: var(--stone); }
.check b { color: var(--moss); }

.prompt { background: var(--warm); border: 1px solid var(--blush); border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; }
.prompt .t { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--moss); margin-bottom: 6px; }
.prompt .x { font-style: italic; color: var(--stone); font-size: 15px; line-height: 1.6; }

.optin-box { background: var(--moss); color: white; border-radius: 12px; padding: 32px; margin: 36px 0; text-align: center; position: relative; overflow: hidden; }
.optin-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(116,169,138,0.18) 0%, transparent 70%); }
.optin-box > * { position: relative; z-index: 1; }
.optin-box h3 { color: white; margin-bottom: 8px; }
.optin-box p { color: var(--mist); margin-bottom: 0; }

.offer-box { background: var(--leaf); border-left: 3px solid var(--sage); border-radius: 0 6px 6px 0; padding: 24px 28px; margin-top: 24px; }
.offer-box h3 { margin-bottom: 10px; }
.offer-box p { color: var(--moss); margin: 0; }

@media (max-width: 768px) {
  .article { padding: 40px 24px; }
}

/* Emphasis = bold, not italic. Italics reserved for tagline & pull quotes. */
.section-title em, .hero h1 em, .final-bg h2 em, h1 em, h2 em, h3 em, h4 em { font-style: normal; }
.promise-body em, .about-copy em, .faq-body em, .prep-callout-body em, .hero-copy em, .section-kicker em, p em { font-style: normal; font-weight: 600; }

.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color:#fff !important; }

/* Starter Kit popup */
.gh-modal{position:fixed;inset:0;background:rgba(26,46,34,0.55);display:none;align-items:center;justify-content:center;z-index:1000;padding:20px;}
.gh-modal.open{display:flex;}
.gh-modal-card{background:var(--warm);border-radius:6px;max-width:420px;width:100%;padding:32px 28px;position:relative;box-shadow:0 16px 48px rgba(26,46,34,0.25);}
.gh-modal-card h3{color:var(--moss);margin-bottom:8px;}
.gh-modal-card p{color:var(--stone);font-size:15px;margin-bottom:18px;}
.gh-modal-x{position:absolute;top:10px;right:14px;background:none;border:none;font-size:26px;line-height:1;color:var(--stone);cursor:pointer;}
.gh-input{width:100%;padding:13px 16px;margin-bottom:12px;border:1px solid var(--blush);border-radius:6px;font-family:var(--font-body);font-size:15px;background:#fff;color:var(--bark);}
.gh-input:focus{outline:none;border-color:var(--sage);}
.gh-submit{width:100%;cursor:pointer;}
.gh-success{margin-top:6px;color:var(--moss);font-weight:600;text-align:center;}
