/* PhytoCommerce — Site Stylesheet */

:root {
  --forest:     #1a3c2b;
  --forest-mid: #2a5c42;
  --sage:       #7dab8a;
  --sage-light: #b8d4bf;
  --sage-pale:  #e6f0e9;
  --cream:      #faf8f3;
  --cream-dark: #f0ece3;
  --amber:      #e8a135;
  --amber-light:#f5c97a;
  --bark:       #5c3d2e;
  --text:       #1c2b22;
  --muted:      #3e5243;
  --white:      #ffffff;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(26,60,43,.10);
  --shadow-lg:  0 6px 28px rgba(26,60,43,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--forest-mid); text-decoration: none; }
a:hover { color: var(--amber); }

/* ── NAV ─────────────────────────────────────────── */
nav {
  background: var(--forest);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-logo span { color: var(--sage); }
.nav-logo:hover { color: var(--white); }
nav ul { list-style: none; display: flex; gap: 1.5rem; margin-left: auto; }
nav ul a { color: var(--sage-light); font-size: .9rem; font-weight: 500; transition: color .15s; }
nav ul a:hover { color: var(--amber); }

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 60%, #3a7a55 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1' fill='%237dab8a' opacity='.3'/%3E%3C/svg%3E") repeat;
  opacity: .4;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -1px; margin-bottom: .3rem; }
.hero h1 em { color: var(--sage); font-style: normal; }
.hero-by {
  font-size: .82rem;
  color: rgba(184,212,191,.55);
  margin-bottom: .9rem;
  letter-spacing: .01em;
}
.hero-by strong { color: rgba(184,212,191,.8); font-weight: 600; }
.hero p { font-size: 1.15rem; color: var(--sage-light); max-width: 560px; margin: 0 auto 2rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: .75rem 1.5rem;
  text-align: center;
}
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--amber); line-height: 1; }
.stat-label { font-size: .75rem; color: var(--sage-light); text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }
a.stat-link { text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.stat-link:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
a.stat-link:hover .stat-label { color: var(--amber); }

/* ── LAYOUT ──────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
main { flex: 1; padding: 3rem 0; }

/* ── SECTION HEADING ─────────────────────────────── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--sage-pale);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-title::before { content: '▸'; color: var(--sage); font-size: 1rem; }

/* ── CATEGORY GRID (homepage) ────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: var(--text);
  border-color: var(--sage-light);
}
.category-card h3 { font-size: 1rem; font-weight: 700; color: var(--forest); margin-bottom: .4rem; }
.category-card p { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.cat-count {
  display: inline-block;
  background: var(--sage-pale);
  color: var(--forest-mid);
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 20px;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── MODULE GRID ─────────────────────────────────── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Module card is now an <a> — entire card is clickable */
a.module-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  border-left: 4px solid var(--cat-color, var(--sage));
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}
a.module-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: var(--text);
  border-color: var(--cat-color, var(--sage));
  background: var(--cream);
}

.module-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .6rem;
}
.module-name {
  font-family: 'Fira Mono', 'Courier New', monospace;
  font-size: .88rem;
  font-weight: 700;
  color: var(--forest);
  background: var(--sage-pale);
  padding: .2rem .5rem;
  border-radius: 4px;
  line-height: 1.4;
}
a.module-card:hover .module-name { background: var(--cream-dark); }

.module-desc {
  font-size: .88rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.module-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.module-arrow {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s, transform .15s;
  white-space: nowrap;
}
a.module-card:hover .module-arrow {
  color: var(--cat-color, var(--forest-mid));
  transform: translateX(3px);
}

/* ── BADGES ──────────────────────────────────────── */
.badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.badge-category {
  background: var(--sage-pale);
  color: var(--forest-mid);
}
.badge-version {
  background: var(--cream-dark);
  color: var(--bark);
  flex-shrink: 0;
}

/* ── CATEGORY GROUP HEADING ──────────────────────── */
.cat-group { margin-bottom: 3rem; }
.cat-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  background: var(--sage-pale);
  border-left: 4px solid var(--sage);
  padding: .7rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cat-group-count {
  margin-left: auto;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(26,60,43,.08);
  padding: .15rem .55rem;
  border-radius: 20px;
  color: var(--forest-mid);
}

/* ── SINGLE MODULE PAGE ──────────────────────────── */
.module-hero {
  background: var(--forest);
  color: var(--white);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}
.module-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.module-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  margin-bottom: 1rem;
  opacity: .7;
}
.module-hero-breadcrumb a { color: var(--sage-light); }
.module-hero-breadcrumb a:hover { color: var(--amber); }
.module-hero-breadcrumb span { color: var(--muted); }
.module-hero h1 { font-size: 1.8rem; font-weight: 800; font-family: 'Fira Mono', 'Courier New', monospace; margin-bottom: .5rem; }
.module-hero .desc { color: var(--sage-light); font-size: 1rem; max-width: 640px; margin-bottom: 1rem; }
.module-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  border: none;
}
.btn-primary { background: var(--amber); color: var(--forest); }
.btn-primary:hover { background: var(--amber-light); color: var(--forest); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-back {
  background: var(--cream-dark);
  color: var(--forest);
  border: 1px solid var(--sage-light);
}
.btn-back:hover { background: var(--sage-pale); color: var(--forest); }

/* ── MODULE CONTENT (single page) ───────────────── */
.module-content {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  max-width: 860px;
}
.module-content h2 { font-size: 1.2rem; color: var(--forest); margin: 1.75rem 0 .75rem; border-bottom: 1px solid var(--sage-pale); padding-bottom: .4rem; }
.module-content h3 { font-size: 1.05rem; color: var(--forest-mid); margin: 1.25rem 0 .5rem; }
.module-content h4 { font-size: .95rem; color: var(--bark); margin: 1rem 0 .4rem; font-weight: 700; }
.module-content p { margin-bottom: .9rem; font-size: .94rem; color: var(--text); }
.module-content ul, .module-content ol { padding-left: 1.4rem; margin-bottom: .9rem; }
.module-content li { font-size: .94rem; color: var(--text); margin-bottom: .3rem; }
.module-content code {
  background: var(--sage-pale);
  color: var(--forest);
  font-size: .82rem;
  padding: .1rem .35rem;
  border-radius: 4px;
  font-family: 'Fira Mono', 'Courier New', monospace;
}
.module-content pre {
  background: var(--forest);
  color: var(--sage-light);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: .83rem;
  line-height: 1.6;
}
.module-content pre code { background: none; color: inherit; padding: 0; }
.module-content blockquote {
  border-left: 3px solid var(--sage);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
  margin: 1rem 0;
}
.module-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin-bottom: 1rem;
}
.module-content th { background: var(--sage-pale); color: var(--forest); font-weight: 700; padding: .5rem .75rem; text-align: left; }
.module-content td { padding: .45rem .75rem; border-bottom: 1px solid var(--cream-dark); }

/* ── GITHUB LINK BOX ─────────────────────────────── */
.github-box {
  background: var(--sage-pale);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.path {
  font-family: 'Fira Mono', 'Courier New', monospace;
  font-size: .88rem;
  color: var(--forest);
  font-weight: 600;
}

/* ── STORE PITCH BANNER ──────────────────────────── */
.store-pitch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--forest);
  color: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2.75rem;
  margin-bottom: 3rem;
  align-items: start;
}
.store-pitch-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber);
  margin-bottom: .6rem;
}
.store-pitch h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: .9rem;
  color: var(--white);
  letter-spacing: -.3px;
}
.store-pitch p { font-size: .93rem; color: var(--sage-light); line-height: 1.65; margin-bottom: 1.25rem; }
.store-pitch-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  text-decoration: none;
  transition: all .15s;
}
.btn-outline-dark:hover { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.6); }
.store-pitch-right { display: flex; flex-direction: column; gap: 1rem; padding-top: .3rem; }
.pitch-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: .85rem 1rem;
}
.pitch-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1; margin-top: .1rem; }
.pitch-item strong { display: block; font-size: .88rem; color: var(--white); margin-bottom: .2rem; }
.pitch-item div { font-size: .8rem; color: var(--sage-light); line-height: 1.5; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--forest);
  color: var(--sage-light);
  margin-top: auto;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 1.5rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: start;
}

/* Segment styles */
.footer-seg {}
.footer-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .6rem;
}
.footer-tagline {
  font-size: .82rem;
  color: var(--sage-light);
  line-height: 1.65;
  margin-bottom: .9rem;
  max-width: 300px;
}
.footer-dev {
  font-size: .82rem;
  color: var(--sage-light);
  margin-bottom: .3rem;
}
.footer-dev a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
}
.footer-dev a:hover { color: var(--amber-light); }
.footer-org {
  font-size: .78rem;
  color: rgba(184,212,191,.6);
  line-height: 1.6;
}
.footer-org a { color: var(--sage-light); text-decoration: underline; text-underline-offset: 2px; }
.footer-org a:hover { color: var(--amber); }

.footer-heading {
  font-size: .72rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: var(--sage-light); font-size: .85rem; text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--amber); }

.footer-contact-note {
  font-size: .82rem;
  color: var(--sage-light);
  line-height: 1.6;
  margin-bottom: .9rem;
}
.footer-contact-list { list-style: none; }
.footer-contact-list li { margin-bottom: .5rem; }
.footer-contact-list a {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--sage-light);
  font-size: .84rem;
  text-decoration: none;
  transition: color .15s;
}
.footer-contact-list a:hover { color: var(--amber); }
.footer-contact-list a:hover svg { stroke: var(--amber); }
.footer-contact-list svg { flex-shrink: 0; opacity: .7; }

/* UPI one-liner */
.footer-upi-line {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
  color: rgba(184,212,191,.6);
  line-height: 1.5;
}
.footer-upi-line a { color: var(--amber); text-decoration: none; }
.footer-upi-line a:hover { color: var(--amber-light); }
.footer-upi-line code {
  font-family: 'Fira Mono', 'Courier New', monospace;
  font-size: .78rem;
  background: rgba(232,161,53,.12);
  color: var(--amber);
  padding: .1rem .4rem;
  border-radius: 4px;
  user-select: all;
}
.footer-upi-hint { color: rgba(184,212,191,.35); font-size: .74rem; }
/* ── HOSTED DOMAINS SECTION ──────────────────────────── */
.hosted-domains-section { margin-bottom: 3rem; }
.hosted-domains-intro {
  background: var(--forest);
  color: var(--sage-light);
  border-radius: 12px 12px 0 0;
  padding: 1.75rem 2.25rem;
}
.hosted-domains-intro p {
  font-size: .97rem;
  line-height: 1.75;
  margin-bottom: .6rem;
  color: var(--sage-light);
}
.hosted-domains-intro p:last-child { margin-bottom: 0; }
.hosted-domains-intro strong { color: var(--white); }

.domain-cards-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--cream-dark);
  border-top: none;
}
.domain-card-full {
  background: var(--white);
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--cream-dark);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.domain-card-full:last-child { border-right: none; }
.domain-card-full-header {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .2rem;
}
.domain-card-full-emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .15rem;
}
.domain-card-name {
  font-family: 'Fira Mono', 'Courier New', monospace;
  font-size: .78rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.3;
  word-break: break-all;
}
.domain-card-full-tag {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-top: .2rem;
}
.domain-card-full p {
  font-size: .84rem;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.domain-card-example {
  font-size: .76rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--cream-dark);
}
.domain-card-example code,
.domain-card-full .domain-card-example code {
  font-size: .72rem;
  background: var(--sage-pale);
  color: var(--forest-mid);
  padding: .1rem .35rem;
  border-radius: 3px;
  font-family: 'Fira Mono', 'Courier New', monospace;
}
.domain-pricing-note {
  background: var(--sage-pale);
  border: 1px solid var(--sage-light);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 1rem 2.25rem;
  font-size: .9rem;
  color: var(--text);
  line-height: 2;
}
.domain-pricing-note a { color: var(--forest-mid); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.domain-pricing-note a:hover { color: var(--amber); }
.domain-pricing-note code {
  font-family: 'Fira Mono', 'Courier New', monospace;
  font-size: .82rem;
  background: rgba(26,60,43,.08);
  color: var(--forest);
  padding: .1rem .35rem;
  border-radius: 3px;
}

.footer-domain-pill {
  display: inline-block;
  font-family: 'Fira Mono', 'Courier New', monospace;
  font-size: .76rem;
  color: var(--sage-light);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: .1rem .5rem;
  border-radius: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem;
  color: rgba(184,212,191,.55);
}
.footer-bottom a { color: var(--sage); text-decoration: none; }
.footer-bottom a:hover { color: var(--amber); }

/* ── ORIGIN STORY SECTION ───────────────────────────── */
.origin-story {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--forest);
  color: var(--white);
  border-radius: 12px;
  padding: 2.25rem 2.5rem;
  margin-bottom: 3rem;
}
.origin-story-avatar {
  font-size: 3rem;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgba(125,171,138,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.origin-story-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--amber);
  margin: 0 0 .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
}
.origin-story-text p {
  font-size: .93rem;
  color: var(--sage-light);
  line-height: 1.75;
  margin-bottom: .75rem;
}
.origin-story-text p:last-child { margin-bottom: 0; }
.origin-story-text em { color: var(--white); font-style: italic; }
.origin-story-sig {
  font-size: .82rem !important;
  color: rgba(184,212,191,.55) !important;
  margin-top: 1rem !important;
}
.origin-story-sig a { color: var(--sage); text-decoration: underline; text-underline-offset: 2px; }
.origin-story-sig a:hover { color: var(--amber); }
@media (max-width: 640px) {
  .origin-story { flex-direction: column; gap: 1.25rem; padding: 1.5rem 1.25rem; }
  .origin-story-avatar { width: 48px; height: 48px; font-size: 2rem; }
}

/* ── WHAT IS PHYTOCOMMERCE SECTION ──────────────────── */
.what-is-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.what-is-story p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.what-is-lead {
  font-size: 1.05rem !important;
  color: var(--forest) !important;
}
.what-is-quote {
  border-left: 3px solid var(--sage);
  padding: .7rem 1.1rem;
  margin: 1.25rem 0;
  font-style: italic;
  font-size: .92rem;
  color: var(--forest-mid);
  background: var(--sage-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}
.what-is-features {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.wif-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  box-shadow: var(--shadow);
}
.wif-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: .1rem;
}
.wif-item strong {
  display: block;
  font-size: .88rem;
  color: var(--forest);
  margin-bottom: .2rem;
}
.wif-item p {
  font-size: .81rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.what-is-install {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.install-box {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}
.install-platform {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--forest-mid);
  margin-bottom: .55rem;
}
.install-box p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.install-box a { color: var(--forest-mid); }
.install-box a:hover { color: var(--amber); }
.install-box code {
  font-family: 'Fira Mono', 'Courier New', monospace;
  font-size: .78rem;
  background: var(--sage-pale);
  color: var(--forest);
  padding: .1rem .35rem;
  border-radius: 3px;
}

/* ── PLATFORM BADGES ─────────────────────────────────── */
.badge-platform {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 700;
  padding: .22rem .65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-coming {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.15);
}
.badge-ps8 {
  background: rgba(78,110,242,.18);
  color: #4e6ef2;
  border: 1px solid rgba(78,110,242,.3);
}
.badge-woo {
  background: rgba(127,84,179,.18);
  color: #9b72d0;
  border: 1px solid rgba(127,84,179,.3);
}
.badge-ps8-sm {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(78,110,242,.15);
  color: #6b84f5;
  border: 1px solid rgba(78,110,242,.25);
}
.badge-woo-sm {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(127,84,179,.15);
  color: #a880e0;
  border: 1px solid rgba(127,84,179,.25);
}
.platform-section-header {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.5rem;
}
.platform-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0;
}

/* ── PRICING CARDS ───────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.pricing-card {
  border-radius: 12px;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.pricing-card--hosted {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(26,60,43,.3);
  position: relative;
  overflow: hidden;
}
.pricing-card--hosted::before {
  content: '★ Recommended';
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--amber);
  color: var(--forest);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem 3rem;
  transform: rotate(35deg);
}
.pricing-card--self {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow);
}
.pricing-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber);
  margin-bottom: .2rem;
}
.pricing-card--self .pricing-eyebrow { color: var(--muted); }
.pricing-name {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .4rem;
  color: var(--white);
}
.pricing-card--self .pricing-name { color: var(--forest); }
.pricing-tagline {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--sage-light);
  margin-bottom: .5rem;
}
.pricing-card--self .pricing-tagline { color: var(--muted); }
.pricing-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
  margin-bottom: 1rem;
}
.pricing-perks li {
  font-size: .86rem;
  color: var(--sage-light);
  line-height: 1.45;
}
.pricing-card--self .pricing-perks li { color: var(--text); }
.pricing-perks li strong { color: var(--white); }
.pricing-card--self .pricing-perks li strong { color: var(--forest); }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.price-period {
  font-size: .88rem;
  color: var(--sage-light);
  font-weight: 600;
}
.price-alt {
  font-size: .76rem;
  color: rgba(184,212,191,.55);
  margin-left: .2rem;
}
.pricing-price--dark .price-amount { color: var(--forest); }
.pricing-price--dark .price-period { color: var(--muted); }
.pricing-price--dark .price-alt    { color: var(--muted); }
.domain-list {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .35rem;
}
.domain-list code {
  background: rgba(255,255,255,.08);
  color: var(--sage-light);
  font-size: .74rem;
  padding: .15rem .45rem;
  border-radius: 4px;
  font-family: 'Fira Mono', 'Courier New', monospace;
}
.pricing-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: auto; }
.btn-forest {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600;
  background: var(--forest); color: var(--white);
  text-decoration: none; transition: all .15s;
}
.btn-forest:hover { background: var(--forest-mid); color: var(--white); }
.btn-forest-outline {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600;
  background: transparent; border: 1.5px solid var(--sage-light);
  color: var(--forest); text-decoration: none; transition: all .15s;
}
.btn-forest-outline:hover { background: var(--sage-pale); color: var(--forest); }

/* ── BUILD LOG TERMINAL ──────────────────────────────── */
.build-terminal {
  background: #0d1117;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
}
.terminal-titlebar {
  background: #161b22;
  padding: .55rem 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.terminal-dots { display: flex; gap: .4rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.terminal-title {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  font-family: 'Fira Mono', 'Courier New', monospace;
  flex: 1;
  text-align: center;
}
.terminal-live {
  font-size: .7rem;
  font-weight: 700;
  color: #3a9a6a;
  font-family: 'Fira Mono', 'Courier New', monospace;
  letter-spacing: .05em;
}
.terminal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  font-family: 'Fira Mono', 'Courier New', monospace;
  font-size: .82rem;
  line-height: 1.75;
  color: #c9d1d9;
  min-height: 200px;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #30363d transparent;
}
.term-line { display: block; white-space: pre-wrap; word-break: break-word; }
.term-line.spacer { height: .6rem; }
.term-prompt { color: #3fb950; font-weight: 700; user-select: none; margin-right: .5rem; }
.term-cmd    { color: #79c0ff; }
.term-sha    { color: #d2a8ff; }
.term-msg    { color: #c9d1d9; }
.term-when   { color: #484f58; font-size: .75rem; }
.term-cursor { color: #3fb950; animation: blink 1.1s step-end infinite; display: inline-block; }
.term-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .05rem .5rem;
  border-radius: 4px;
  margin-right: .5rem;
}
.term-badge.ok   { background: rgba(63,185,80,.2);   color: #3fb950; }
.term-badge.run  { background: rgba(232,161,53,.2);  color: #e8a135; }
.term-badge.fail { background: rgba(248,81,73,.2);   color: #f85149; }
.term-badge.dim  { background: rgba(255,255,255,.06); color: #484f58; }
.dim { color: #484f58; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ── HAMBURGER NAV ───────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--sage-light);
  border-radius: 2px;
  transition: transform .22s ease, opacity .15s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════ TAXONOMY PAGE v3 ══════════════════════ */

/* ── Hero ── */
.tx3-hero {
  background: linear-gradient(160deg,#0c2218 0%,#183d28 55%,#0f2d1c 100%);
  padding: 3rem 2rem 2.5rem;
}
.tx3-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.tx3-hero-text { flex: 1 1 280px; }
.tx3-h1 {
  font-size: clamp(1.7rem,3.5vw,2.6rem);
  font-weight: 900; color: #fff;
  line-height: 1.15; letter-spacing: -.03em; margin: 0 0 .75rem;
}
.tx3-sub { font-size: .97rem; color: rgba(255,255,255,.55); line-height: 1.75; margin: 0; max-width: 440px; }
.tx3-stats { display: flex; gap: .6rem; flex-wrap: wrap; flex-shrink: 0; }
.tx3-stat {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px; padding: .85rem 1.25rem; min-width: 80px;
}
.tx3-stat-n { font-size: 1.7rem; font-weight: 900; color: #6ee7a0; line-height: 1; letter-spacing: -.04em; }
.tx3-stat-l { font-size: .62rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .1em; margin-top: .35rem; white-space: nowrap; }

/* ── Toolbar (sticky search + category pills) ── */
.tx3-toolbar {
  position: sticky; top: 60px; z-index: 90;
  background: #fff; border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.tx3-toolbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .5rem 1.5rem .45rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.tx3-search-wrap {
  display: flex; align-items: center;
  background: #f8f8f8; border: 1.5px solid #e0e0e0;
  border-radius: 8px; overflow: hidden; transition: border-color .15s;
}
.tx3-search-wrap:focus-within { border-color: #1a3c2b; background: #fff; }
.tx3-search-ico { width: 18px; height: 18px; margin: 0 .5rem 0 .8rem; color: #9ca3af; flex-shrink: 0; }
.tx3-search {
  flex: 1; border: none; background: transparent; outline: none;
  padding: .55rem .4rem .55rem 0; font-size: .92rem; color: #0f172a;
}
.tx3-search::placeholder { color: #9ca3af; }
.tx3-cat-pills { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.tx3-cat-pills::-webkit-scrollbar { display: none; }
.tx3-cat-pill {
  display: inline-flex; align-items: center; gap: .22rem;
  white-space: nowrap; padding: .26rem .7rem;
  border-radius: 20px; border: 1.5px solid;
  font-size: .78rem; font-weight: 600;
  text-decoration: none; transition: background .12s, color .12s; opacity: .75;
}
.tx3-cat-pill:hover { opacity: 1; }
.tx3-pill-skel {
  height: 28px; width: 90px; border-radius: 20px;
  background: #eee; animation: tx3-shimmer 1.4s ease-in-out infinite; flex-shrink: 0;
}
@keyframes tx3-shimmer { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* ── Tree Section ── */
.tx3-tree-section { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.tx3-tree-toggle {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: .85rem 1.5rem;
  background: none; border: none; cursor: pointer;
  font-size: .9rem; font-weight: 700; color: #1f2937; text-align: left;
}
.tx3-tree-toggle > svg:first-child { width: 18px; height: 18px; color: #6b7280; flex-shrink: 0; }
.tx3-tree-hint { font-size: .78rem; font-weight: 400; color: #9ca3af; }
.tx3-tree-chev { width: 16px; height: 16px; color: #9ca3af; margin-left: auto; transition: transform .2s; }
.tx3-tree-toggle[aria-expanded="false"] .tx3-tree-chev { transform: rotate(-90deg); }
.tx3-tree {
  max-height: 700px; overflow-y: auto;
  transition: max-height .35s ease, opacity .2s;
}
.tx3-tree--closed { max-height: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; }
.tx3-tree-inner { max-width: 1200px; margin: 0 auto; padding: .25rem 1.5rem 1.25rem; }
.tx3-tr-root {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem 1.5rem;
}
.tx3-tr-cat-li > details > summary.tx3-tr-cat-sum {
  display: flex; align-items: center; gap: .4rem;
  font-size: .87rem; font-weight: 700;
  cursor: pointer; user-select: none; list-style: none; padding: .3rem 0;
}
.tx3-tr-cat-li > details > summary.tx3-tr-cat-sum::-webkit-details-marker { display: none; }
.tx3-tr-icon { font-size: 1rem; }
.tx3-tr-fams { list-style: none; padding-left: 1rem; margin-top: .2rem; }
.tx3-tr-fam-li { margin: .12rem 0; }
.tx3-tr-fam-li > details > summary.tx3-tr-fam-sum {
  display: flex; align-items: center; gap: .35rem;
  font-size: .79rem; font-weight: 600; color: #374151;
  cursor: pointer; user-select: none; list-style: none; padding: .18rem 0;
}
.tx3-tr-fam-li > details > summary.tx3-tr-fam-sum::-webkit-details-marker { display: none; }
.tx3-tr-fam-meta { font-size: .7rem; color: #9ca3af; margin-left: auto; }
.tx3-tr-gens { list-style: none; padding-left: .9rem; margin: .1rem 0; }
.tx3-tr-gens li { margin: .06rem 0; }
.tx3-tr-g-lnk {
  display: flex; align-items: center; gap: .3rem;
  font-size: .76rem; color: #374151;
  text-decoration: none; padding: .14rem .28rem; border-radius: 4px;
  transition: background .1s;
}
.tx3-tr-g-lnk:hover { background: #e5e7eb; color: #111; }
.tx3-tr-g-lnk em { font-style: italic; }
.tx3-tr-g-com { color: #9ca3af; font-size: .7rem; }
.tx3-tr-g-cnt { font-size: .68rem; color: #9ca3af; margin-left: auto; white-space: nowrap; }
.tx3-skel { background: #e5e7eb; border-radius: 4px; animation: tx3-shimmer 1.4s ease-in-out infinite; }
.tx3-skel-line { height: 13px; margin: .55rem 0; }

/* ── Main two-column layout ── */
.tx3-main {
  max-width: 1200px; margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  display: grid; grid-template-columns: 210px 1fr;
  gap: 1.75rem; align-items: start;
}

/* ── Sidebar filter ── */
.tx3-sidebar {
  position: sticky; top: 165px;
  max-height: calc(100vh - 210px);
  overflow-y: auto; scrollbar-width: thin;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 10px; padding: .75rem;
}
.tx3-sidebar-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .5rem; padding-bottom: .5rem;
  border-bottom: 1px solid #f0f0f0;
}
.tx3-sidebar-title { font-size: .82rem; font-weight: 700; color: #374151; }
.tx3-filter-clear {
  font-size: .72rem; color: #6b7280;
  background: none; border: none; cursor: pointer; padding: .1rem .25rem; border-radius: 4px;
}
.tx3-filter-clear:hover { color: #111; background: #f0f0f0; }
.tx3-filter-body { font-size: .8rem; }
.tx3-fg { margin-bottom: .7rem; }
.tx3-fg-hdr {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: .3rem 0 .2rem;
}
.tx3-fg-item {
  display: flex; align-items: center; gap: .38rem;
  padding: .18rem .1rem; cursor: pointer; border-radius: 4px; color: #374151;
}
.tx3-fg-item:hover { background: #f5f5f5; }
.tx3-fg-cb { width: 14px; height: 14px; flex-shrink: 0; accent-color: #1a3c2b; cursor: pointer; }
.tx3-fg-name { font-style: italic; }
.tx3-mob-filter-btn { display: none; }

/* ── Content area ── */
.tx3-content { min-width: 0; }
.tx3-skeleton { display: flex; flex-direction: column; gap: 1.25rem; }
.tx3-skel-cat-hdr { height: 42px; border-radius: 8px; background: #e5e7eb; animation: tx3-shimmer 1.4s ease-in-out infinite; }
.tx3-skel-pack { height: 130px; border-radius: 10px; background: #eee; animation: tx3-shimmer 1.4s ease-in-out infinite; }
.tx3-error-box {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
  padding: 1.25rem 1.5rem; color: #991b1b;
}
.tx3-error-box a { color: #991b1b; font-weight: 600; }

/* ── Category section ── */
.tx3-cat { margin-bottom: 2.5rem; scroll-margin-top: 165px; }
.tx3-cat-hdr {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem;
  border: 1px solid #e5e7eb; border-left: 4px solid;
  background: #fff; border-radius: 8px; margin-bottom: .75rem;
}
.tx3-cat-icon { font-size: 1.15rem; }
.tx3-cat-name { font-size: 1.05rem; font-weight: 800; flex: 1; }
.tx3-cat-badge { font-size: .73rem; color: #9ca3af; }

/* ── Pack card ── */
.tx3-pack {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 10px; margin-bottom: 1rem; overflow: hidden;
}
.tx3-pack-hd {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  padding: .7rem 1rem; border-left: 4px solid;
  background: #fafafa; border-bottom: 1px solid #f0f0f0;
}
.tx3-pack-info { flex: 1 1 auto; min-width: 0; }
.tx3-pack-fam { font-size: .95rem; font-weight: 700; color: #111; }
.tx3-pack-com { font-size: .8rem; color: #6b7280; }
.tx3-pack-cnt { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.tx3-pc-tag {
  font-size: .72rem; padding: .12rem .45rem;
  background: #f3f4f6; color: #374151;
  border-radius: 12px; border: 1px solid #e5e7eb;
}
.tx3-pc-tag--cv { background: #f3e8ff; color: #6b21a8; border-color: #d8b4fe; }
.tx3-pack-desc { font-size: .82rem; color: #6b7280; padding: .6rem 1rem .4rem; line-height: 1.6; }

/* ── Genus accordion ── */
.tx3-genera { padding: .1rem .75rem .5rem; }
.tx3-genus { border-bottom: 1px solid #f0f0f0; }
.tx3-genus:last-child { border-bottom: none; }
.tx3-genus-btn {
  display: flex; align-items: center; gap: .5rem;
  width: 100%; background: none; border: none; cursor: pointer;
  padding: .65rem .25rem; text-align: left; transition: background .1s;
}
.tx3-genus-btn:hover { background: #f9fafb; border-radius: 6px; }
.tx3-genus.open .tx3-genus-btn { background: #f9fafb; border-radius: 6px 6px 0 0; }
.tx3-gs { font-style: italic; font-weight: 700; font-size: .92rem; color: #0f172a; flex-shrink: 0; }
.tx3-gc { font-size: .8rem; color: #6b7280; flex: 1; }
.tx3-gpills { display: flex; gap: .22rem; margin-left: auto; flex-shrink: 0; }
.tx3-gp { font-size: .69rem; font-weight: 600; padding: .13rem .42rem; border-radius: 12px; }
.tx3-gp--cv { background: #f3e8ff; color: #6b21a8; }
.tx3-chev { width: 15px; height: 15px; color: #9ca3af; transition: transform .2s; flex-shrink: 0; }
.tx3-genus.open .tx3-chev { transform: rotate(180deg); }

/* ── Species list ── */
.tx3-sp-list {
  list-style: none; max-height: 0; overflow: hidden;
  transition: max-height .3s ease; border-top: 0 solid #e5e7eb;
}
.tx3-genus.open .tx3-sp-list { max-height: 24000px; border-top-width: 1px; }
.tx3-sp { border-bottom: 1px solid #f5f5f5; padding: .45rem .5rem .4rem .75rem; }
.tx3-sp:last-child { border-bottom: none; }
.tx3-sp-row { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.tx3-sp-link {
  display: inline-flex; align-items: center; gap: .2rem;
  font-style: italic; font-weight: 600; font-size: .87rem;
  color: #1a3c2b; text-decoration: none;
  border-bottom: 1px dotted #7dab8a; transition: color .1s, border-color .1s;
}
.tx3-sp-link:hover { color: #0c1f17; border-bottom-style: solid; }
.tx3-wiki-ico { width: 10px; height: 10px; color: #9ca3af; margin-bottom: 1px; }
.tx3-sp-com { font-size: .78rem; color: #6b7280; }
.tx3-badge {
  font-size: .63rem; font-weight: 700; padding: .08rem .32rem;
  border-radius: 4px; border: 1px solid; letter-spacing: .02em;
}
.tx3-sp-cvc { font-size: .7rem; color: #9ca3af; margin-left: auto; }
.tx3-cvs { display: flex; flex-wrap: wrap; gap: .22rem; padding: .3rem 0 .2rem 1rem; }
.tx3-cv {
  font-size: .68rem; background: #f3f4f6; color: #374151;
  border: 1px solid #e5e7eb; border-radius: 4px; padding: .1rem .4rem;
}
.tx3-mob-filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #1a3c2b; color: #fff; font-size: .65rem; font-weight: 700;
}

/* ── RESPONSIVE ──────────────────────────────────── */

/* Tablet — 960px */
@media (max-width: 960px) {
  .store-pitch        { grid-template-columns: 1fr; gap: 1.75rem; }
  .pricing-grid       { grid-template-columns: 1fr; }
  .what-is-grid       { grid-template-columns: 1fr; }
  .what-is-install    { grid-template-columns: 1fr 1fr; }
  .domain-cards-full  { grid-template-columns: 1fr 1fr; }
  .domain-card-full   { border-bottom: 1px solid var(--cream-dark); }
  .domain-card-full:nth-child(2n) { border-right: none; }
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-seg--brand  { grid-column: 1 / -1; }
  .module-hero h1     { font-size: 1.4rem; }
  /* taxonomy v3 responsive — tablet */
  .tx3-main           { grid-template-columns: 1fr; padding: 1.25rem 1rem 3rem; }
  .tx3-sidebar        { position: static; max-height: none; display: none; }
  .tx3-sidebar--open  { display: block; }
  .tx3-mob-filter-btn { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem; padding: .45rem 1rem; border: 1.5px solid #e5e7eb; border-radius: 8px; background: #fff; font-size: .85rem; font-weight: 600; color: #374151; cursor: pointer; }
  .tx3-hero           { padding: 2.5rem 1.25rem 2rem; }
  .tx3-toolbar-inner  { padding: .45rem 1rem .4rem; }
  .tx3-tr-root        { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .tx3-pack-hd        { flex-direction: column; gap: .4rem; }
}

/* Mobile — 640px */
@media (max-width: 640px) {
  /* prevent horizontal scroll */
  html, body { overflow-x: hidden; }

  /* nav: show hamburger, hide links */
  .nav-toggle { display: flex; }
  nav { padding: 0 1.25rem; position: relative; }
  nav ul.nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--forest);
    flex-direction: column;
    padding: .5rem 0 1rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
    z-index: 200;
    margin: 0;
  }
  nav ul.nav-menu.nav-open { display: flex; }
  nav ul.nav-menu li { border-bottom: 1px solid rgba(255,255,255,.06); }
  nav ul.nav-menu li:last-child { border-bottom: none; }
  nav ul.nav-menu a {
    display: block;
    padding: .85rem 1.5rem;
    font-size: .95rem;
    color: var(--sage-light);
  }
  nav ul.nav-menu a:hover { color: var(--amber); background: rgba(255,255,255,.04); }

  /* hero */
  .hero             { padding: 2.5rem 1.25rem 2rem; }
  .hero h1          { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .hero p           { font-size: 1rem; }
  .hero-stats       { gap: .75rem; }
  .stat             { padding: .6rem 1rem; }
  .stat-num         { font-size: 1.4rem; }

  /* layout */
  .container  { padding: 0 1rem; }
  main        { padding: 1.75rem 0; }
  .section-title { font-size: 1.2rem; }

  /* what is */
  .what-is-install  { grid-template-columns: 1fr; }
  .what-is-lead     { font-size: .97rem !important; }
  .wif-item         { padding: .7rem .85rem; }

  /* module grids */
  .module-grid      { grid-template-columns: 1fr; }
  .category-grid    { grid-template-columns: 1fr; }

  /* domain section */
  .domain-cards-full    { grid-template-columns: 1fr; }
  .domain-card-full     { border-right: none; }
  .hosted-domains-intro { padding: 1.25rem 1.25rem; }
  .domain-pricing-note  { padding: .9rem 1.25rem; line-height: 1.9; }

  /* pricing */
  .pricing-card { padding: 1.5rem 1.25rem; }
  .pricing-card--hosted::before { display: none; }

  /* terminal */
  .terminal-body   { max-height: 320px; font-size: .77rem; }
  .terminal-title  { display: none; }

  /* module single page */
  .module-hero             { padding: 1.75rem 0; }
  .module-hero h1          { font-size: 1.2rem; }
  .module-hero .desc       { font-size: .88rem; }
  .module-meta             { gap: .5rem; }
  .module-content          { padding: 1.1rem 1.25rem; }
  .github-box              { flex-direction: column; align-items: flex-start; gap: .75rem; }

  /* buttons — better touch targets */
  .btn, .btn-forest, .btn-forest-outline, .btn-outline-dark {
    min-height: 44px;
    padding: .65rem 1.1rem;
    font-size: .875rem;
  }

  /* footer */
  .footer-grid        { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-seg--brand  { grid-column: auto; }
  .footer-inner       { padding: 1.75rem 1.25rem 1.25rem; }
  .footer-bottom      { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .store-pitch        { padding: 1.5rem 1.25rem; }
  .store-pitch h2     { font-size: 1.2rem; }

  /* taxonomy v3 — mobile */
  .tx3-hero           { padding: 2rem 1.1rem 1.75rem; }
  .tx3-hero-inner     { flex-direction: column; gap: 1.25rem; }
  .tx3-stats          { gap: .45rem; }
  .tx3-stat           { padding: .7rem 1rem; min-width: 70px; }
  .tx3-stat-n         { font-size: 1.4rem; }
  .tx3-toolbar-inner  { padding: .4rem .9rem .38rem; }
  .tx3-tree-toggle    { padding: .75rem 1rem; font-size: .85rem; }
  .tx3-tree-inner     { padding: .2rem 1rem 1rem; }
  .tx3-tr-root        { grid-template-columns: 1fr; gap: .5rem; }
  .tx3-main           { padding: 1rem .9rem 2.5rem; gap: 1rem; }
  .tx3-tree           { max-height: 50vh; }
  .tx3-cat            { scroll-margin-top: 140px; }
}
