/* TruHue homepage editorial layer (v1). Requires /css/truhue-editorial.css first.
   Loaded AFTER the page's own <style>, so it only restyles; no HTML changes.
   Kept untouched on purpose: logo, YAY/OKAY/NAY verdict colors, app screenshots and their layout. */


/* ---------- Base ---------- */
body { background: var(--te-ivory) !important; font-family: var(--te-sans); color: var(--te-ink); font-size: 17px; line-height: 1.65; }
p, li { color: var(--te-body); }

/* Headlines: Fraunces everywhere (overrides inline Cormorant on headings), except the logo wordmark */
h1, h2, h3, .section-title, .feature-card h3, .step h3, .blog-card h3, .founder-name, .value-card h3,
.exit-popup h3, .season-palette-info .palette-name, .stat-number {
  font-family: var(--te-serif) !important; font-optical-sizing: auto; font-weight: 500 !important;
  color: var(--te-ink) !important; letter-spacing: -0.01em;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); line-height: 1.06; }
.hero h1 em, .section-title em { color: var(--te-rose) !important; font-style: italic; font-weight: 400; }
.section-title { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.12; }
.hero-body, .how-subtitle, .mission-intro, .seasons-description, .about-story { color: var(--te-body); font-size: 1.08rem; }

/* Eyebrow labels: small caps, rose, the main place rose appears */
.hero-label, .section-label {
  font-family: var(--te-sans); font-size: var(--te-size-label); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--te-rose) !important;
}

/* ---------- Top bar + nav: a thin masthead rule instead of a dark bar / pink band ---------- */
.social-top-bar { background: var(--te-ivory); color: var(--te-muted); border-bottom: 1px solid var(--te-rule-2); }
.social-top-bar a, .social-top-bar a svg, .social-top-bar .bar-label { color: var(--te-muted); }
.social-top-bar a:hover, .social-top-bar a:hover svg { color: var(--te-ink); }
nav { background: rgba(250, 246, 240, 0.96) !important; border-bottom: 1px solid var(--te-rule); box-shadow: none !important; }
nav a { font-family: var(--te-sans); color: var(--te-ink); letter-spacing: 0.02em; }
nav a:hover { color: var(--te-rose); }

/* ---------- Buttons: squared, ink, no glow ---------- */
.btn, .cta-nav, .cta-signin {
  font-family: var(--te-sans); font-weight: 600; letter-spacing: 0.03em; border-radius: 2px !important; box-shadow: none !important;
}
.btn { padding: 0.95rem 1.7rem; font-size: 0.95rem; }
.btn-primary, .cta-nav { background: var(--te-ink) !important; color: var(--te-ivory) !important; border: 1px solid var(--te-ink); }
.btn-primary:hover, .cta-nav:hover { background: var(--te-rose) !important; border-color: var(--te-rose); }
.btn-secondary { background: transparent !important; color: var(--te-ink) !important; border: 1px solid var(--te-ink) !important; }
.btn-secondary:hover { background: var(--te-ink) !important; color: var(--te-ivory) !important; }
.btn-tertiary, .cta-signin { background: transparent !important; color: var(--te-ink) !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--te-rule); }
.cta-signin { text-decoration: none; border: 1px solid var(--te-ink) !important; }
.btn-tertiary:hover, .cta-signin:hover { color: var(--te-rose) !important; text-decoration-color: var(--te-rose); }

/* ---------- Cards become ruled entries (no white boxes, no shadows, no radius) ---------- */
.feature-card, .step, .testimonial, .blog-card, .founder-card, .value-card {
  background: transparent !important; border-radius: 0 !important; box-shadow: none !important;
  border-top: 1px solid var(--te-rule); padding: 1.6rem 0 0.4rem !important; transform: none !important;
}
.feature-card:hover, .step:hover, .testimonial:hover, .blog-card:hover, .founder-card:hover, .value-card:hover { box-shadow: none !important; transform: none !important; }
.step-number { background: transparent !important; color: var(--te-rose) !important; border-radius: 0 !important; font-family: var(--te-serif) !important; font-style: italic; font-weight: 400 !important; width: auto !important; height: auto !important; justify-content: flex-start !important; }
.testimonial p { font-family: var(--te-serif); font-style: italic; font-size: 1.12rem; color: var(--te-ink); }
.testimonial-author, .founder-role { color: var(--te-muted) !important; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.blog-card-header { background: transparent !important; color: var(--te-ink) !important; padding: 0 0 0.6rem !important; }
.blog-category { background: transparent !important; color: var(--te-rose) !important; padding: 0 !important; border-radius: 0 !important; letter-spacing: 0.16em; text-transform: uppercase; }
.blog-card-body { padding: 0 !important; }
.blog-see-all { color: var(--te-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Section bands: flat ivory, alternating with a warmer ivory, separated by rules ---------- */
.mission, .seasons, .blog, .about, .waitlist, .mid-cta, .social { background: var(--te-ivory-2) !important; border-top: 1px solid var(--te-rule-2); border-bottom: 1px solid var(--te-rule-2); }
.how-it-works, .testimonials, .values, .faq, .email-capture, .hero, #example-preview { background: var(--te-ivory) !important; }
.social-link, .footer-social a { background: transparent !important; border-radius: 0 !important; color: var(--te-ink) !important; border-bottom: 1px solid var(--te-rule); padding: 0.3rem 0.1rem !important; }
.social-link:hover, .footer-social a:hover { color: var(--te-rose) !important; border-color: var(--te-rose); }

/* App screenshots + hero visual: keep size/layout, swap glow for a hairline */
.hero-visual video, .hero-visual img, .step-screenshot { box-shadow: none !important; border: 1px solid var(--te-rule); border-radius: 14px !important; }

/* ---------- Forms ---------- */
.form-group input, .exit-popup input[type="email"] { border-radius: 2px !important; border: 1px solid var(--te-rule) !important; background: #fff; }
.form-group input:focus { box-shadow: none !important; border-color: var(--te-ink) !important; }

/* ---------- FAQ: ruled list ---------- */
details { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; border-top: 1px solid var(--te-rule); padding: 1.1rem 0 !important; }
details:hover { box-shadow: none !important; }
details[open] { background: transparent !important; }
summary { font-family: var(--te-serif); font-size: 1.15rem; color: var(--te-ink); }

/* ---------- Footer ---------- */
footer { background: var(--te-ivory-2) !important; border-top: 1px solid var(--te-rule); color: var(--te-body); }
.footer-nav h4 { font-family: var(--te-sans) !important; font-size: var(--te-size-label) !important; letter-spacing: 0.18em; text-transform: uppercase; color: var(--te-muted) !important; }
.footer-nav a, .footer-tagline, .footer-copyright { color: var(--te-body); }

/* ---------- Mobile: sticky email bar + popups ---------- */
.sticky-email-bar { background: var(--te-ink) !important; box-shadow: none !important; }
.exit-popup { border-radius: 4px !important; box-shadow: none !important; border: 1px solid var(--te-rule); }
.topics-nav { background: var(--te-ivory) !important; border-bottom: 1px solid var(--te-rule-2); }
.topics-nav a { border-radius: 0 !important; }
.topics-nav a:hover { background: transparent !important; color: var(--te-rose); text-decoration: underline; }

@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 2.35rem; }
  .section-title { font-size: 1.9rem; }
}

/* ---------- Fixes after first render ---------- */
/* Footer text is white in the base page, so the footer becomes a near-black band instead of ivory */
footer { background: var(--te-ink) !important; border-top: 0; }
footer, footer p, .footer-tagline, .footer-copyright, .footer-nav a, .footer-bottom-links a { color: rgba(250, 246, 240, 0.78) !important; }
.footer-nav h4 { color: rgba(250, 246, 240, 0.55) !important; }
.footer-nav a:hover, .footer-bottom-links a:hover { color: #fff !important; }
/* Remove leftover outlines so entries are separated only by a top rule */
.feature-card, .step, .blog-card, .founder-card, .value-card { border: 0 !important; border-top: 1px solid var(--te-rule) !important; }
details { border: 0 !important; border-top: 1px solid var(--te-rule) !important; }
details:last-of-type { border-bottom: 1px solid var(--te-rule) !important; }
/* Testimonials keep a thin rose rule on the left, as a pull quote */
.testimonial { border: 0 !important; border-left: 2px solid var(--te-rose) !important; padding: 0.2rem 0 0.2rem 1.3rem !important; }


/* =================== v1 additions: layout =================== */

/* Hero: large flush-left headline, two CTAs, offset phone */
.hero { padding: 5rem 0 3.5rem !important; text-align: left !important; }
.hero .container { display: grid !important; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 4rem; align-items: center; }
.hero-content { text-align: left !important; }
.hero h1 { font-size: var(--te-size-display) !important; max-width: 13ch; margin-bottom: 1.2rem; }
.hero-body { max-width: 34rem; font-size: var(--te-size-lede) !important; margin-bottom: 1.8rem; }
.hero-buttons { justify-content: flex-start !important; gap: 0.8rem !important; margin-bottom: 0.9rem !important; }
.hero-quiz-link { font-size: 0.95rem; color: var(--te-body); margin: 0.2rem 0 0; }
.hero-quiz-link a { color: var(--te-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--te-rose); }
.hero-visual { position: relative; justify-self: end; width: min(300px, 100%); flex: none !important; order: 0 !important; transform: translateY(2.2rem); }
.hero-visual::before { content: ""; position: absolute; inset: -1.4rem 1.6rem 3rem -1.6rem; background: var(--te-ivory-2); border: 1px solid var(--te-rule-2); z-index: -1; }
.hero-visual picture, .hero-visual img { display: block; width: 100%; height: auto; }
.hero .stats-bar { grid-column: 1 / -1; justify-content: flex-start !important; gap: 3rem !important; border-color: var(--te-rule) !important; margin-top: 3.5rem; }
.stat-label { color: var(--te-muted) !important; font-size: var(--te-size-meta) !important; }

/* Verdict legend under the example feed */
.verdict-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; margin: 1.6rem auto 0.4rem; max-width: 640px; font-size: 0.95rem; color: var(--te-body); }
.verdict-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Founder note: compact, near the bottom */
.about.founder-note { padding: 3.5rem 0 !important; }
.founder-note .container { max-width: 760px !important; }
.founder-note .section-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem) !important; }
.founder-note p { font-size: 1rem; }
.founder-note .founder-more { margin-top: 1rem; }
.founder-note .founder-more a { color: var(--te-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--te-rose); font-weight: 600; }

/* Mobile menu: logo + Download + Menu button; links in a dropdown panel */
.nav-toggle { display: none; align-items: center; gap: 0.45rem; background: transparent; border: 1px solid var(--te-ink); color: var(--te-ink); font-family: var(--te-sans); font-weight: 600; font-size: 0.9rem; padding: 0.55rem 0.85rem; border-radius: var(--te-radius); cursor: pointer; }
.nav-toggle .bars { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.nav-mobile-cta { display: none; }

@media (max-width: 900px) {
  nav .container { position: relative; flex-wrap: nowrap !important; gap: 0.6rem; }
  nav .logo { margin-right: auto; }
  .nav-toggle, .nav-mobile-cta { display: inline-flex; }
  .nav-mobile-cta { background: var(--te-ink); color: var(--te-ivory) !important; font-weight: 600; font-size: 0.9rem; padding: 0.6rem 0.9rem; border-radius: var(--te-radius); text-decoration: none; }
  nav ul { display: none !important; position: absolute; top: calc(100% + 1rem); left: 0; right: 0; flex-direction: column; gap: 0 !important; background: var(--te-ivory); border-top: 1px solid var(--te-rule); border-bottom: 1px solid var(--te-rule); padding: 0.4rem 1.25rem 1rem; z-index: 1001; }
  nav.nav-open ul { display: flex !important; }
  nav ul li { border-bottom: 1px solid var(--te-rule-2); }
  nav ul li:last-child { border-bottom: 0; }
  nav ul a { display: block; padding: 0.85rem 0; font-size: 1.05rem !important; }
  nav ul .cta-signin, nav ul .cta-nav { display: inline-block; margin-top: 0.8rem; font-size: 1rem !important; padding: 0.8rem 1.2rem !important; }

  .hero { padding: 2.5rem 0 2.5rem !important; }
  .hero .container { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-visual { justify-self: center; width: 230px; transform: none; order: 1 !important; }
  .hero-visual::before { inset: -1rem 1.2rem 2rem -1.2rem; }
  .hero .stats-bar { margin-top: 1rem; gap: 1.4rem 2rem !important; flex-direction: row !important; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2.45rem !important; max-width: none; }
  .hero-buttons { flex-direction: column; align-items: stretch !important; }
  .hero-buttons .btn { text-align: center; }
  .hero .stats-bar .stat-item { flex: 1 1 40%; }
}

/* Topics bar: Public Sans is wider than Jost, so let the row wrap instead of overflowing on phones */
.topics-nav .container { flex-wrap: wrap !important; row-gap: 0.35rem; }

/* =================== v1 polish: blocks styled inline in the HTML =================== */
.hero-body { margin-left: 0 !important; margin-right: 0 !important; }

/* Guide signup box: flat ivory band with rules instead of a pink rounded card */
.email-capture .container > div[style*="border-radius"] { background: var(--te-ivory-2) !important; border: 0 !important; border-top: 1px solid var(--te-rule) !important; border-bottom: 1px solid var(--te-rule) !important; border-radius: 0 !important; }
.email-capture p[style*="text-transform:uppercase"] { color: var(--te-rose) !important; font-size: var(--te-size-label) !important; font-weight: 600 !important; letter-spacing: 0.16em !important; }
.email-capture p[style*="color:#6B5A5F"] { color: var(--te-body) !important; font-size: 1rem !important; }

/* All homepage email inputs: squared, hairline */
.lead-magnet-form input[type="email"], .mid-cta-form input[type="email"], .waitlist-form input { border-radius: var(--te-radius) !important; border: 1px solid var(--te-rule) !important; font-family: var(--te-sans) !important; font-size: 1rem !important; background: #fff !important; }
.lead-magnet-form .btn, .mid-cta-form .btn, .waitlist-form button { border-radius: var(--te-radius) !important; }

/* "From the Blog" links: ruled entries instead of white shadow cards */
.blog a[href^="/blog-"][style*="background: white"] { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; border-top: 1px solid var(--te-rule); padding: 1.2rem 0.4rem 0.4rem !important; text-align: left; }
.blog a[href^="/blog-"] div[style*="Cormorant"] { font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; }
.blog a[href^="/blog-"] div[style*="text-transform: uppercase"] { color: var(--te-rose) !important; font-size: var(--te-size-label) !important; font-weight: 600 !important; }
.blog a[href^="/blog-"] div[style*="font-size: 0.85rem"] { color: var(--te-body) !important; font-size: 0.95rem !important; }

/* Founder note: readable paragraph spacing */
.founder-note .about-story p { margin-bottom: 0.9rem; }

/* No dead band above the footer */
footer { margin-top: 0 !important; }
@media (max-width: 900px) { .nav-mobile-cta { white-space: nowrap; font-size: 0.85rem !important; padding: 0.55rem 0.75rem !important; } nav .logo img { width: 30px; height: 30px; } }
#example-preview h2 { line-height: 1.15 !important; }

/* Four testimonials: 2 x 2 on desktop so none sits alone on a row */
@media (min-width: 901px) { .testimonial-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 2.2rem 3rem !important; } }

/* ---------- Mobile fit (Nov 2026): header + drawer stay inside the viewport at 320–390px.
   Done with sizing (border-box, min-width:0, smaller gaps/buttons), not by hiding overflow. ---------- */
nav, nav *, nav *::before, nav *::after, .social-top-bar, .social-top-bar * { box-sizing: border-box; }
@media (max-width: 900px) {
  nav .container { width: 100%; max-width: 100%; min-width: 0; padding-left: 16px; padding-right: 16px; gap: 0.5rem; }
  nav .logo { min-width: 0; flex: 0 1 auto; white-space: nowrap; font-size: 1.4rem; gap: 0.4rem; }
  .nav-toggle, .nav-mobile-cta { flex: 0 0 auto; }
  nav ul { width: 100%; max-width: 100%; min-width: 0; padding-left: 16px !important; padding-right: 16px !important; }
  nav ul li, nav ul a { min-width: 0; max-width: 100%; }
  nav ul a { overflow-wrap: anywhere; }
  nav ul .cta-signin, nav ul .cta-nav { max-width: 100%; white-space: normal; text-align: center; }
  .social-top-bar .container { max-width: 100%; min-width: 0; flex-wrap: wrap; padding-left: 16px; padding-right: 16px; gap: 0.75rem; }
  .color-wheel-svg-wrap { width: min(340px, 100%); height: auto; aspect-ratio: 1 / 1; }
}
@media (max-width: 400px) {
  nav .container { gap: 0.4rem; }
  nav .logo { font-size: 1.2rem; gap: 0.3rem; }
  nav .logo img { width: 26px; height: 26px; }
  .nav-mobile-cta { font-size: 0.8rem !important; padding: 0.5rem 0.6rem !important; }
  .nav-toggle { font-size: 0.8rem; padding: 0.5rem 0.6rem; gap: 0.35rem; }
}
@media (max-width: 345px) {
  /* icon-only menu button; the word "Menu" stays as its accessible name */
  .nav-toggle { font-size: 0; gap: 0; padding: 0.55rem; }
  .nav-toggle .bars { width: 18px; }
}
