/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2D5016;
  --primary-light: #3a6620;
  --primary-glow: rgba(45,80,22,0.25);
  --secondary: #E8A317;
  --secondary-dim: rgba(232,163,23,0.15);
  --accent: #C84B31;

  /* Dark theme */
  --bg: #0F0F0F;
  --bg-raised: #161616;
  --bg-card: #1A1A1A;
  --bg-hover: #222222;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text: #F0F0F0;
  --text-muted: #888;
  --text-dim: #555;

  --radius: 0.875rem;
  --radius-sm: 0.5rem;
  --sidebar-w: 260px;
  --nav-h: 64px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code, pre { font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ===== TOP NAV ===== */
.nav {
  background: var(--primary);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}
.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.nav-logo span.tag {
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 0.4rem;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-links a.active { color: white; background: rgba(255,255,255,0.15); }
.nav-cta {
  background: var(--secondary);
  color: var(--primary) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  transition: background 0.15s !important;
  white-space: nowrap;
}
.nav-cta:hover { background: #f5b83a !important; color: var(--primary) !important; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #111;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--secondary); }
.mobile-menu .mobile-cta {
  margin-top: 1rem;
  background: var(--secondary);
  color: var(--primary) !important;
  text-align: center;
  padding: 0.75rem !important;
  border-radius: 2rem;
  font-weight: 700 !important;
  border-bottom: none !important;
}

/* ===== HERO (index.html) ===== */
.hero {
  background: linear-gradient(145deg, #0d1a08 0%, #0F0F0F 60%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(45,80,22,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--secondary-dim);
  border: 1px solid rgba(232,163,23,0.3);
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: white;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--secondary); font-style: normal; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-search {
  max-width: 420px;
  margin: 0 auto 2.5rem;
  position: relative;
}
.hero-search input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border-hover);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px var(--primary-glow); }
.hero-search input::placeholder { color: var(--text-dim); }
.hero-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}
.btn-group { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--secondary);
  color: #0F0F0F;
  padding: 0.8rem 1.75rem;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: #f5b83a; transform: translateY(-1px); }
.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text);
  padding: 0.8rem 1.75rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bg-raised);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.3); background: var(--bg-hover); transform: translateY(-1px); }

/* ===== QUICK LINKS GRID (index) ===== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}
.quick-card:hover { border-color: var(--border-hover); background: var(--bg-hover); transform: translateY(-2px); }
.quick-card-icon { font-size: 1.75rem; margin-bottom: 0.25rem; }
.quick-card h3 { font-size: 0.95rem; font-weight: 700; color: white; }
.quick-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.quick-card-arrow { color: var(--text-dim); font-size: 0.85rem; margin-top: auto; padding-top: 0.75rem; transition: color 0.2s; }
.quick-card:hover .quick-card-arrow { color: var(--secondary); }

/* ===== PAGE SECTIONS ===== */
.section { padding: 4rem 2rem; }
.section-alt { background: rgba(255,255,255,0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.section-sub { color: var(--text-muted); margin-bottom: 3rem; font-size: 1rem; }
.text-center { text-align: center; }

/* ===== GRID ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.card h3 { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* ===== FEATURE ITEMS ===== */
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s;
}
.feature-item:hover { border-color: var(--border-hover); }
.feature-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); flex-shrink: 0; margin-top: 0.45rem; }
.feature-item h3 { font-weight: 600; color: white; margin-bottom: 0.2rem; font-size: 0.9rem; }
.feature-item p { color: var(--text-muted); font-size: 0.825rem; }

/* ===== PRESET CARDS (home page mini) ===== */
.preset-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.preset-swatch { padding: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.preset-color { border-radius: 0.4rem; flex-shrink: 0; }
.preset-name { background: var(--bg-raised); padding: 0.75rem 1rem; font-weight: 600; color: white; font-size: 0.875rem; border-top: 1px solid var(--border); }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #1f3a0f 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(45,80,22,0.5);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: white; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.cta-band p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; font-size: 1rem; }
.btn-dark {
  background: var(--secondary);
  color: #0F0F0F;
  padding: 0.8rem 1.75rem;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.btn-dark:hover { background: #f5b83a; }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  padding: 0.8rem 1.75rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.05);
  transition: border-color 0.15s, background 0.15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 0.8rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--text-muted); }

/* ===== DOCS LAYOUT ===== */
.docs-wrapper {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
}

/* ===== SIDEBAR ===== */
.docs-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 1.5rem 0 2rem;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar ul { list-style: none; padding: 0 0.75rem; }
.docs-sidebar li { margin-bottom: 1px; }
.docs-sidebar a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.docs-sidebar a:hover { background: var(--bg-hover); color: var(--text); }
.docs-sidebar a.active { background: var(--primary-glow); color: #86d47a; font-weight: 600; }
.docs-sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 0.75rem 1.5rem 0.35rem;
  display: block;
}
.sidebar-group { margin-bottom: 0.25rem; }

/* ===== MAIN CONTENT ===== */
.docs-main {
  flex: 1;
  min-width: 0;
  display: flex;
}
.docs-content {
  flex: 1;
  min-width: 0;
  padding: 3rem 3.5rem;
  max-width: 800px;
}
.docs-toc {
  width: 200px;
  flex-shrink: 0;
  padding: 3rem 1.5rem 2rem 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.docs-toc-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 0.75rem; display: block; }
.docs-toc a { display: block; font-size: 0.775rem; color: var(--text-dim); padding: 0.25rem 0; transition: color 0.15s; border-left: 2px solid transparent; padding-left: 0.75rem; margin-left: -0.75rem; }
.docs-toc a:hover { color: var(--text-muted); }
.docs-toc a.active { color: var(--secondary); border-left-color: var(--secondary); }

/* ===== DOCS TYPOGRAPHY ===== */
.docs-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.docs-content .page-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}
.docs-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 2.5rem 0 1rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.docs-content h3 { font-size: 1rem; font-weight: 700; color: white; margin: 1.5rem 0 0.5rem; }
.docs-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-size: 0.9rem; }
.docs-content ul, .docs-content ol { padding-left: 1.5rem; color: var(--text-muted); line-height: 2; margin-bottom: 1rem; font-size: 0.9rem; }
.docs-content li { margin-bottom: 0.25rem; }
.docs-content strong { color: var(--text); font-weight: 600; }
.docs-content a { color: #86d47a; text-decoration: underline; text-underline-offset: 3px; }
.docs-content a:hover { color: #a0e890; }

/* ===== INLINE CODE ===== */
.docs-content code {
  background: rgba(255,255,255,0.07);
  color: #e2b96a;
  padding: 0.15em 0.45em;
  border-radius: 0.3rem;
  font-size: 0.825em;
}

/* ===== CODE BLOCKS ===== */
.code-block {
  position: relative;
  margin: 1.5rem 0;
}
.code-block pre {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.25rem 1.25rem;
  overflow-x: auto;
  font-size: 0.825rem;
  line-height: 1.75;
  color: #c9d1d9;
}
.code-block pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: inherit;
  padding: 0.3rem 0.65rem;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.copy-btn:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.copy-btn.copied { color: #86d47a; border-color: rgba(134,212,122,0.3); }

/* Standalone pre (no .code-block wrapper) */
.docs-content > pre {
  background: #0d1117;
  border: 1px solid var(--border);
  color: #c9d1d9;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.825rem;
  line-height: 1.75;
  margin: 1.5rem 0;
}

/* ===== CALLOUTS ===== */
.callout-tip, .callout-warning, .callout-info {
  display: flex;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.callout-icon { flex-shrink: 0; font-size: 1rem; margin-top: 0.05rem; }
.callout-body { flex: 1; }
.callout-body strong { display: block; margin-bottom: 0.25rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.callout-body p { margin: 0; }

.callout-tip {
  background: rgba(134,212,122,0.08);
  border: 1px solid rgba(134,212,122,0.2);
  color: #c3e8be;
}
.callout-tip .callout-body strong { color: #86d47a; }

.callout-warning {
  background: rgba(232,163,23,0.08);
  border: 1px solid rgba(232,163,23,0.25);
  color: #f0d090;
}
.callout-warning .callout-body strong { color: var(--secondary); }

.callout-info {
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.2);
  color: #bcd4f8;
}
.callout-info .callout-body strong { color: #93c5fd; }

/* keep old .notice working */
.notice {
  background: rgba(232,163,23,0.08);
  border: 1px solid rgba(232,163,23,0.25);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: #f0d090;
}
.notice p { color: inherit; margin: 0; }
.notice a { color: var(--secondary); }

/* ===== STEP LIST ===== */
.step-list { list-style: none !important; padding: 0 !important; margin: 1.5rem 0 !important; }
.step-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 0;
  position: relative;
  padding-bottom: 1.75rem;
}
.step-list li:last-child { padding-bottom: 0; }
.step-list li::before {
  content: '';
  position: absolute;
  left: 1.125rem;
  top: 2.5rem;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.step-list li:last-child::before { display: none; }
.step-num {
  background: var(--primary);
  color: white;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--primary-light);
  z-index: 1;
}
.step-body { flex: 1; padding-top: 0.35rem; }
.step-body strong { color: white; display: block; margin-bottom: 0.25rem; font-size: 0.9rem; }
.step-body p, .step-list li > span { color: var(--text-muted); font-size: 0.875rem; }

/* ===== MINI GRID / CARD ===== */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.mini-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.mini-card h4 { font-weight: 600; color: white; font-size: 0.875rem; margin-bottom: 0.3rem; }
.mini-card p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* ===== SECTION CARDS (sections.html) ===== */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.section-card:hover { border-color: var(--border-hover); }
.section-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}
.section-card-icon { font-size: 1.75rem; line-height: 1; }
.section-card-header h2 { font-size: 1.1rem; font-weight: 700; color: white; margin: 0; }
.section-card > p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  padding: 0.75rem 1.5rem 1rem;
  margin: 0;
}

/* ===== SECTION MOCKUP ===== */
.section-mockup {
  background: #111;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin: 0;
}
.mockup-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  display: block;
}
/* Shop by Pet mockup */
.mock-pet-row { display: flex; gap: 0.5rem; }
.mock-pet-chip { background: var(--bg-card); border: 1px solid var(--border); border-radius: 2rem; padding: 0.35rem 0.75rem; font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
/* Before/After mockup */
.mock-ba { display: flex; height: 60px; border-radius: 0.4rem; overflow: hidden; border: 1px solid var(--border); }
.mock-ba-before { flex: 1; background: linear-gradient(135deg, #3a2a1a, #5c3d1a); display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: rgba(255,255,255,0.4); }
.mock-ba-divider { width: 2px; background: white; flex-shrink: 0; }
.mock-ba-after { flex: 1; background: linear-gradient(135deg, #1a3a1a, #2D5016); display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: rgba(255,255,255,0.4); }
/* Ingredients mockup */
.mock-badge-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.mock-badge { background: rgba(45,80,22,0.2); border: 1px solid rgba(45,80,22,0.4); color: #86d47a; font-size: 0.65rem; padding: 0.2rem 0.55rem; border-radius: 2rem; }
.mock-badge.free { background: rgba(232,163,23,0.1); border-color: rgba(232,163,23,0.3); color: var(--secondary); }
/* Quiz mockup */
.mock-quiz { display: flex; flex-direction: column; gap: 0.4rem; }
.mock-quiz-q { font-size: 0.7rem; color: white; font-weight: 600; margin-bottom: 0.25rem; }
.mock-quiz-opts { display: flex; gap: 0.4rem; }
.mock-quiz-opt { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 0.3rem; padding: 0.25rem 0.6rem; font-size: 0.65rem; color: var(--text-muted); cursor: pointer; }
.mock-quiz-opt.sel { border-color: var(--primary-light); background: var(--primary-glow); color: #86d47a; }
/* Autoship mockup */
.mock-autoship { display: flex; align-items: center; gap: 1rem; }
.mock-freq { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 0.3rem; padding: 0.3rem 0.6rem; font-size: 0.65rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; }
.mock-sub-btn { background: var(--secondary); color: #0F0F0F; font-size: 0.65rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 0.3rem; }
/* Vet Trust mockup */
.mock-stats { display: flex; gap: 1.5rem; }
.mock-stat { text-align: center; }
.mock-stat-val { font-size: 0.85rem; font-weight: 800; color: white; }
.mock-stat-lbl { font-size: 0.6rem; color: var(--text-dim); }
/* Featured Collection mockup */
.mock-prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.mock-prod { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 0.3rem; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; color: var(--text-dim); }

/* Settings tags */
.settings-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 0.5rem; display: block; padding: 0 1.5rem; }
.settings-list { list-style: none; padding: 0 1.5rem 1.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.settings-list li { background: rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.75rem; padding: 0.2rem 0.65rem; border-radius: 2rem; font-weight: 500; border: 1px solid var(--border); }

/* ===== PRESET CARDS (presets.html) ===== */
.preset-full {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.preset-full-swatch { padding: 1.75rem 2rem; display: flex; align-items: center; gap: 1rem; }
.preset-full-body { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.preset-full-body h2 { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 0.25rem; }
.preset-tagline { font-style: italic; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.preset-best { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 0.25rem; }
.preset-best-val { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.swatches-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.swatch-chip { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.swatch-chip-color { width: 40px; height: 40px; border-radius: 0.5rem; border: 1px solid var(--border); }
.swatch-chip-label { font-size: 0.65rem; font-family: monospace; color: var(--text-dim); }

/* ===== ACCORDION / FAQ ===== */
.faq-category { margin-bottom: 2.5rem; }
.faq-category-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-category-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.5rem;
  transition: border-color 0.15s;
}
details[open] { border-color: var(--border-hover); }
details summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}
details summary:hover { background: var(--bg-hover); }
details summary::after { content: '+'; font-size: 1.1rem; color: var(--text-dim); flex-shrink: 0; margin-left: 1rem; }
details[open] summary::after { content: '−'; color: var(--secondary); }
details .answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}
details .answer code {
  background: rgba(255,255,255,0.07);
  color: #e2b96a;
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.85em;
}
details .answer a { color: #86d47a; text-decoration: underline; }

/* ===== CONTACT FORM ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg-raised);
  color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-btn {
  background: var(--secondary);
  color: #0F0F0F;
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.form-btn:hover { background: #f5b83a; }
.info-box {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.info-box h3 { font-weight: 700; color: white; font-size: 0.875rem; margin-bottom: 0.4rem; }
.info-box p, .info-box a { font-size: 0.825rem; color: var(--text-muted); line-height: 1.6; }
.info-box a { color: #86d47a; text-decoration: underline; display: block; }

/* ===== WHAT'S IN THE BOX ===== */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-check { color: #86d47a; font-size: 1rem; flex-shrink: 0; margin-top: 0.05rem; }
.feature-row h4 { font-weight: 600; color: white; font-size: 0.9rem; margin-bottom: 0.15rem; }
.feature-row p { font-size: 0.82rem; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .docs-toc { display: none; }
}

@media (max-width: 900px) {
  .docs-sidebar { width: 220px; }
  .docs-content { padding: 2rem 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* sidebar becomes pill strip */
  .docs-wrapper { display: block; }
  .docs-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    overflow-x: auto;
  }
  .docs-sidebar ul { display: flex; flex-wrap: nowrap; gap: 0.25rem; overflow-x: auto; padding: 0; }
  .docs-sidebar li { white-space: nowrap; }
  .docs-sidebar a {
    padding: 0.3rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.775rem;
    white-space: nowrap;
  }
  .docs-sidebar a.active { background: var(--primary-glow); border-color: rgba(45,80,22,0.4); }
  .docs-sidebar-label { display: none; }
  .docs-main { display: block; }
  .docs-content { padding: 1.5rem 1.25rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-prod-grid { grid-template-columns: repeat(2, 1fr); }
  .preset-full-swatch { flex-wrap: wrap; }
  .swatches-row { flex-wrap: wrap; }
  .section-card-header { padding: 1.25rem 1.25rem 0; }
  .settings-list { padding: 0 1.25rem 1.25rem; }
  .settings-label { padding: 0 1.25rem; }
  .section-mockup { padding: 1rem 1.25rem; }
  .section-card > p { padding: 0.75rem 1.25rem 0.75rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
}

@media (max-width: 480px) {
  .quick-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mock-stats { gap: 1rem; }
}

/* ===== SIDEBAR REMOVED — SINGLE COLUMN LAYOUT ===== */
.docs-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.docs-wrapper, .docs-main { display: block; }
@media (max-width: 600px) {
  .docs-container { padding: 2rem 1.25rem 4rem; }
}

/* ===== HOMEPAGE OVERFLOW FIXES ===== */
body { overflow-x: hidden; }
.section { overflow-x: hidden; }

/* "What's in the box" two-col layout */
.features-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 768px) {
  .features-two-col { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .grid-3[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .quick-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .presets-row { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 400px) {
  .quick-grid { grid-template-columns: 1fr !important; }
}
.features-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 480px) {
  .features-icon-grid { grid-template-columns: 1fr; }
}
