/* ============================================
   PROPAGATING SUCCULENTS - Global Styles
   Aesthetic: Pop-art botanical / Risograph print
   Palette extracted from illustration series
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Karla:ital,wght@0,300..800;1,300..800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Core palette from the illustrations */
  --coral: #E84D2E;
  --coral-light: #F26B4E;
  --coral-dark: #C43A1E;
  --teal: #1B3F3E;
  --teal-light: #2A5E5C;
  --olive: #8BA83E;
  --olive-light: #A6C452;
  --navy: #1A2744;
  --cream: #FFF8F0;
  --cream-dark: #F5EDE0;
  --warm-white: #FFFCF7;
  --text-dark: #1A2222;
  --text-body: #2D3333;
  --text-muted: #6B7272;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --border-radius: 6px;
  --border-radius-lg: 12px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--warm-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coral);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral-dark);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--teal);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
  max-width: 65ch;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-xl) 0;
}

.section--coral {
  background-color: var(--coral);
  color: var(--cream);
}

.section--coral h2,
.section--coral h3 {
  color: var(--cream);
}

.section--teal {
  background-color: var(--teal);
  color: var(--cream);
}

.section--teal h2,
.section--teal h3 {
  color: var(--cream);
}

.section--cream {
  background-color: var(--cream);
}

.section--cream-dark {
  background-color: var(--cream-dark);
}

/* --- Sticky Email Opt-in Bar --- */
.opt-in-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--teal);
  color: var(--cream);
  padding: 0.6rem var(--space-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.opt-in-bar p {
  margin: 0;
  font-weight: 500;
  max-width: none;
}

.opt-in-bar .opt-in-form {
  display: flex;
  gap: 0.4rem;
}

.opt-in-bar input[type="email"] {
  padding: 0.4rem 0.8rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--border-radius);
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  min-width: 220px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.opt-in-bar input[type="email"]::placeholder {
  color: rgba(255,248,240,0.5);
}

.opt-in-bar input[type="email"]:focus {
  outline: none;
  border-color: var(--olive-light);
  background: rgba(255,255,255,0.15);
}

.opt-in-bar .btn--small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.opt-in-close {
  background: none;
  border: none;
  color: rgba(255,248,240,0.6);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  margin-left: var(--space-xs);
  transition: color 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opt-in-close:hover {
  color: var(--cream);
}

body.has-opt-in {
  padding-top: 52px;
}

/* --- Navigation --- */
.nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--cream-dark);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(10px);
  background: rgba(255,252,247,0.95);
}

body.has-opt-in .nav {
  top: 52px;
}

/* opt-in offset handled in consolidated responsive section below */

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand:hover {
  color: var(--teal);
}

.nav-brand svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding: 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--coral);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 1px;
}

/* Mobile nav toggle — hidden on desktop, flex on mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--coral);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--coral-dark);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,77,46,0.3);
}

.btn--secondary {
  background: var(--teal);
  color: var(--cream);
}

.btn--secondary:hover {
  background: var(--teal-light);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--coral);
  border: 2px solid var(--coral);
}

.btn--outline:hover {
  background: var(--coral);
  color: var(--cream);
}

.btn--olive {
  background: var(--olive);
  color: white;
}

.btn--olive:hover {
  background: var(--olive-light);
  transform: translateY(-1px);
}

.btn--small {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--coral);
  padding: var(--space-2xl) 0 var(--space-xl);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(139,168,62,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26,39,68,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-content {
  color: var(--cream);
}

.hero-content h1 {
  color: var(--cream);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero-content .lead {
  color: rgba(255,248,240,0.85);
  font-size: 1.15rem;
  margin-bottom: var(--space-lg);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--cream);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

/* --- Card Components --- */
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--cream-dark);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card-image {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: var(--space-md);
}

.card-body h3 {
  color: var(--teal);
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--olive);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* --- Plant Grid (Identify Your Plant) --- */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.plant-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--coral);
}

.plant-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.plant-card:hover img {
  transform: scale(1.08);
}

.plant-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(transparent, rgba(26,34,34,0.85));
  color: var(--cream);
  transform: translateY(30%);
  transition: transform 0.35s ease;
}

.plant-card:hover .plant-card-overlay {
  transform: translateY(0);
}

.plant-card-overlay h3 {
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.plant-card-overlay .method-tag {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 500;
}

.plant-card-overlay p {
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
  margin-top: 0.5rem;
}

.plant-card:hover .plant-card-overlay p {
  opacity: 0.85;
}

/* --- Success/Failure Toggle --- */
.toggle-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  background: var(--cream);
  border: 2px solid var(--cream-dark);
}

.toggle-slider-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.toggle-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  text-align: center;
}

.toggle-success {
  background: linear-gradient(135deg, #e8f5e0, #f0f8ea);
  z-index: 1;
}

.toggle-failure {
  background: linear-gradient(135deg, #fde8e8, #f8eaea);
  z-index: 0;
}

.toggle-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--teal);
  z-index: 10;
  left: 50%;
  cursor: ew-resize;
  transition: left 0.05s linear;
}

.toggle-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--teal);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.toggle-labels {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--cream-dark);
}

.toggle-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toggle-label--success {
  color: var(--olive);
}

.toggle-label--failure {
  color: var(--coral);
}

/* --- Hub Link Cards --- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.hub-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--cream-dark);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.hub-card:hover {
  border-color: var(--coral);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232,77,46,0.1);
  color: inherit;
}

.hub-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  min-width: 56px;
  min-height: 56px;
}

.hub-card-icon--coral {
  background: rgba(232,77,46,0.1);
  color: var(--coral);
}

.hub-card-icon--teal {
  background: rgba(27,63,62,0.1);
  color: var(--teal);
}

.hub-card-icon--olive {
  background: rgba(139,168,62,0.1);
  color: var(--olive);
}

.hub-card h3 {
  margin-bottom: 0.5rem;
  color: var(--teal);
}

.hub-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.hub-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--coral);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: var(--space-sm);
}

.hub-card:hover .card-link {
  gap: 0.6rem;
}

/* --- Starter Kit Sidebar --- */
.starter-kit {
  background: var(--cream);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  border: 2px solid var(--cream-dark);
}

.starter-kit h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.kit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--cream-dark);
}

.kit-item:last-child {
  border-bottom: none;
}

.kit-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  background: rgba(232,77,46,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.kit-item-text h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.kit-item-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.about-photo {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 3px solid var(--cream-dark);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.section-header p {
  max-width: none;
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

.section--coral .section-label,
.section--teal .section-label {
  color: var(--olive-light);
}

/* --- Matrix Table --- */
.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  font-size: 0.95rem;
}

.matrix-table thead {
  background: var(--teal);
  color: var(--cream);
}

.matrix-table th {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-weight: 700;
  font-family: var(--font-display);
}

.matrix-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: top;
}

.matrix-table tbody tr {
  background: white;
  transition: background 0.15s;
}

.matrix-table tbody tr:hover {
  background: var(--cream);
}

.matrix-table tbody tr:nth-child(even) {
  background: var(--cream);
}

.matrix-table tbody tr:nth-child(even):hover {
  background: var(--cream-dark);
}

.cell-success {
  color: #2e7d32;
}

.cell-failure {
  color: var(--coral);
}

/* --- FAQ / Accordion --- */
.faq-item {
  border: 1px solid var(--cream-dark);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: white;
}

.faq-question {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--cream);
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--coral);
  font-weight: 300;
  transition: transform 0.25s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--text-body);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 2000px;
}

/* --- Calculator Widget --- */
.calculator {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  border: 2px solid var(--cream-dark);
  max-width: 500px;
  margin: 0 auto;
}

.calc-field {
  margin-bottom: var(--space-sm);
}

.calc-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.calc-field select,
.calc-field input[type="range"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color 0.2s;
}

.calc-field select:focus {
  outline: none;
  border-color: var(--olive);
}

.calc-result {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--cream);
  border-radius: var(--border-radius);
  text-align: center;
}

.calc-result .result-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
}

.calc-result .result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,248,240,0.7);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255,248,240,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--coral-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,248,240,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Schema / SEO helpers (visually hidden) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   Tablet: 768–1024px
   Mobile: below 768px
   Small mobile: below 480px
   ============================================ */

/* --- Quick Jump Thumbnails --- */
.quick-jump-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
  max-width: 700px;
  margin: 0 auto;
}

.quick-jump-thumb {
  text-decoration: none;
  text-align: center;
  display: block;
}

.quick-jump-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 2px solid var(--cream-dark);
  transition: all 0.2s;
}

.quick-jump-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.quick-jump-thumb:hover .quick-jump-img {
  border-color: var(--coral);
  box-shadow: 0 4px 12px rgba(232,77,46,0.15);
}

.quick-jump-thumb:hover .quick-jump-img img {
  transform: scale(1.05);
}

.quick-jump-name {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}

.quick-jump-method {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- Tablet (768–1024px) --- */
@media (max-width: 1024px) {
  .hero .container {
    gap: var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-layout {
    grid-template-columns: 1fr 280px;
  }
}

/* --- Below 768px: stack to single-column layouts --- */
@media (max-width: 768px) {
  /* Quick jump grid: 3 columns on mobile */
  .quick-jump-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 400px;
  }

  /* Nav becomes mobile hamburger */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: var(--space-sm) var(--space-md) var(--space-md);
    gap: 0.25rem;
    z-index: 80;
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    animation: slideDown 0.25s ease forwards;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem var(--space-sm);
    min-height: 44px;
    font-size: 1rem;
    border-radius: var(--border-radius);
    width: 100%;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--cream);
  }

  .nav-links a.active::after {
    display: none;
  }

  /* Hero stacks */
  .hero {
    min-height: auto;
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    max-width: 480px;
    margin: 0 auto;
    order: 2;
  }

  .hero-content {
    order: 1;
  }

  /* About stacks */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    max-width: 220px;
    margin: 0 auto;
  }

  /* Grids go 2-col */
  .plant-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  /* Content + sidebar stacks */
  .content-layout {
    grid-template-columns: 1fr;
  }

  /* Footer stacks to 2-col */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  /* Starter kit section (inline styles use grid) */
  .section--teal .container > div[style] {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }

  /* Sections get less vertical space */
  .section {
    padding: var(--space-lg) 0;
  }

  /* Smaller hero variant */
  .hero--small .container {
    min-height: auto;
    padding: var(--space-md) 0;
  }

  .hero--small h1 {
    font-size: 2rem;
  }

  .blind-spot-card {
    padding: var(--space-md);
  }

  .blind-spots-grid {
    grid-template-columns: 1fr !important;
  }

  /* Matrix table tighter */
  .matrix-table {
    font-size: 0.85rem;
  }

  .matrix-table th,
  .matrix-table td {
    padding: 0.6rem 0.8rem;
  }
}

/* --- Small mobile (below 480px) --- */
@media (max-width: 480px) {
  /* Opt-in bar stacks vertically */
  .opt-in-bar {
    flex-direction: column;
    text-align: center;
    padding: 0.5rem var(--space-sm);
    gap: 0.4rem;
    font-size: 0.8rem;
  }

  .opt-in-bar p {
    font-size: 0.8rem;
  }

  .opt-in-bar .opt-in-form {
    flex-direction: row;
    width: 100%;
    gap: 0.3rem;
  }

  .opt-in-bar input[type="email"] {
    min-width: 0;
    flex: 1;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .opt-in-bar .btn--small {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
  }

  body.has-opt-in {
    padding-top: 72px;
  }

  body.has-opt-in .nav {
    top: 72px;
  }

  /* Plant grid goes 1 col */
  .plant-grid {
    grid-template-columns: 1fr;
  }

  /* Footer single col */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Hero tighter */
  .hero {
    padding: var(--space-lg) 0;
  }

  /* Buttons full width on small screens */
  .hero-content .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-content div[style] {
    flex-direction: column !important;
  }

  /* Toggle slider shorter */
  .toggle-slider-wrap {
    height: 220px;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }
.animate-in:nth-child(6) { animation-delay: 0.6s; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-sm) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--coral);
}

.breadcrumbs span {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* --- Two Column Layout (content + sidebar) --- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-lg);
  align-items: start;
}

.content-main h2 {
  margin-top: var(--space-lg);
}

.content-main h2:first-child {
  margin-top: 0;
}

/* --- Diagnostic Links Grid --- */
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-sm);
}

.diagnostic-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: var(--border-radius);
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.diagnostic-link:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--cream);
}

.diagnostic-link .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* --- Watering Phases --- */
.phase-timeline {
  position: relative;
  padding-left: 2rem;
}

.phase-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.7rem;
  width: 2px;
  background: var(--cream-dark);
}

.phase {
  position: relative;
  margin-bottom: var(--space-md);
  padding-left: var(--space-sm);
}

.phase::before {
  content: '';
  position: absolute;
  left: calc(-2rem + 0.45rem);
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--warm-white);
}

.phase h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.3rem;
}

/* -- Range slider custom -- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--cream-dark);
  outline: none;
  border: none;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* --- Success vs Failure Page --- */

/* Hero Small Variant */
.hero--small {
  padding: var(--space-lg) 0;
}

.hero--small .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: var(--space-md) 0;
}

.hero--small h1 {
  margin-bottom: var(--space-md);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

/* Toggle Content Styling */
.toggle-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--space-md);
  text-align: center;
}

.toggle-emoji {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Blind Spots Grid */
.blind-spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.blind-spot-card {
  background: var(--warm-white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.blind-spot-card:hover {
  border-color: var(--coral);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.blind-spot-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.blind-spot-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--teal);
}

.blind-spot-card p {
  color: var(--text-body);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.blind-spot-tip {
  background: var(--cream-dark);
  border-left: 4px solid var(--coral);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  color: var(--text-body);
}

.blind-spot-tip strong {
  color: var(--teal);
  display: block;
  margin-bottom: 0.3rem;
}

/* hero--small and blind-spot responsive handled in consolidated responsive section */
