:root {
  --forest-950: #10392f;
  --forest-900: #174b3a;
  --forest-800: #23634a;
  --leaf-600: #36a35f;
  --leaf-500: #4bc878;
  --mint-200: #ccefd2;
  --mint-100: #e8f8e9;
  --coral-500: #ff6f61;
  --sun-400: #f5c451;
  --sky-300: #a9d9df;
  --cream: #fbfaf4;
  --paper: #f6f8f3;
  --white: #ffffff;
  --ink: #18302a;
  --muted: #66766f;
  --line: rgba(23, 75, 58, 0.16);
  --shadow: 0 24px 70px rgba(18, 70, 53, 0.16);
  --shadow-soft: 0 14px 38px rgba(18, 70, 53, 0.1);
  --display: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}
body, button, a { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--sun-400); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(920px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 120px 0; }
.section-kicker {
  margin-bottom: 14px;
  color: var(--leaf-600);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.section-title {
  margin-bottom: 24px;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: 4.35rem;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}
.section-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.site-header.scrolled,
.site-header.detail-header {
  color: var(--forest-950);
  background: rgba(251, 250, 244, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.08rem;
  font-weight: 800;
}
.brand img { width: 38px; height: 38px; border-radius: 8px; box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.92rem; font-weight: 650; }
.nav-links a { opacity: 0.82; transition: opacity 160ms ease; }
.nav-links a:hover { opacity: 1; }
.nav-cta,
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.nav-cta { min-height: 42px; border: 1px solid currentColor; }
.nav-cta:hover,
.button:hover { transform: translateY(-2px); }
.site-header:not(.scrolled):not(.detail-header) .nav-cta:hover { color: var(--forest-950); background: var(--white); }
.site-header.scrolled .nav-cta:hover,
.detail-header .nav-cta:hover { color: var(--white); background: var(--forest-950); }
.button-primary { color: var(--forest-950); background: var(--sun-400); }
.button-primary:hover { background: #ffda76; }
.button-dark { color: var(--white); background: var(--forest-950); }
.button-dark:hover { background: var(--forest-800); }
.button-light { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.66); background: rgba(16, 57, 47, 0.22); }
.button-coral { color: var(--white); background: var(--coral-500); }
.button svg,
.nav-cta svg { width: 18px; height: 18px; stroke-width: 2; }
.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.menu-button svg { width: 21px; height: 21px; }

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--forest-950) url("plantscope-hero.jpg") center center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 47, 37, 0.55);
}
.hero-content { max-width: 660px; padding: 142px 0 94px; }
.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.hero-mark::before { content: ""; width: 30px; height: 2px; background: var(--coral-500); }
.hero h1 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 6.75rem;
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0;
}
.hero-tagline {
  max-width: 600px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.18;
}
.hero-copy { max-width: 580px; margin-bottom: 32px; color: rgba(255, 255, 255, 0.84); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; color: rgba(255, 255, 255, 0.62); font-size: 0.82rem; }
.hero-next {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
}
.hero-next::after { content: "↓"; font-size: 1.25rem; }

.proof-band { background: var(--white); border-bottom: 1px solid var(--line); }
.proof-grid { min-height: 112px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.proof-item { padding: 20px 36px; border-right: 1px solid var(--line); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border-right: 0; }
.proof-value { color: var(--forest-900); font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1.2; }
.proof-label { color: var(--muted); font-size: 0.86rem; }

.journey { background: var(--cream); }
.journey-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: end; margin-bottom: 60px; }
.journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journey-step { min-height: 250px; padding: 28px 26px; border-right: 1px solid var(--line); }
.journey-step:last-child { border-right: 0; }
.journey-number { display: block; margin-bottom: 48px; color: var(--coral-500); font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.journey-step h3 { margin-bottom: 8px; color: var(--forest-950); font-size: 1.08rem; }
.journey-step p { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }

.demo { position: relative; overflow: hidden; color: var(--white); background: var(--forest-950); }
.demo-grid { min-height: 830px; display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 90px; align-items: center; }
.demo .section-title { color: var(--white); }
.demo .section-lead { color: rgba(255, 255, 255, 0.7); }
.mode-switch {
  display: inline-flex;
  margin: 28px 0 26px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}
.mode-switch button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.mode-switch button[aria-selected="true"] { color: var(--forest-950); background: var(--mint-200); }
.mode-copy { min-height: 116px; max-width: 460px; color: rgba(255, 255, 255, 0.7); }
.mode-copy strong { display: block; margin-bottom: 6px; color: var(--white); font-size: 1.05rem; }
.mode-copy p { margin-bottom: 0; }
.demo-stat { display: flex; gap: 28px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.demo-stat b { display: block; color: var(--mint-200); font-family: var(--display); font-size: 1.65rem; }
.demo-stat span { color: rgba(255, 255, 255, 0.56); font-size: 0.76rem; }
.phone-stage { min-height: 650px; display: flex; align-items: center; justify-content: center; }
.phone-shell {
  width: min(360px, 100%);
  min-height: 690px;
  position: relative;
  overflow: hidden;
  border: 9px solid #14211d;
  border-radius: 44px;
  color: var(--ink);
  background: #f9fbf7;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.4);
}
.phone-notch { width: 116px; height: 28px; position: absolute; top: 9px; left: 50%; z-index: 4; border-radius: 16px; background: #14211d; transform: translateX(-50%); }
.phone-status { height: 51px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 24px 8px; font-size: 0.72rem; font-weight: 800; }
.phone-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px 13px; }
.phone-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.phone-brand img { width: 28px; height: 28px; border-radius: 7px; }
.scan-frame { position: relative; margin: 0 14px; overflow: hidden; border-radius: 8px; background: #d9eadb; }
.scan-frame > img { width: 100%; height: 300px; object-fit: cover; }
.scan-corners::before,
.scan-corners::after { content: ""; position: absolute; width: 42px; height: 42px; border-color: var(--white); }
.scan-corners::before { top: 18px; left: 18px; border-top: 3px solid; border-left: 3px solid; }
.scan-corners::after { right: 18px; bottom: 18px; border-right: 3px solid; border-bottom: 3px solid; }
.scan-badge { position: absolute; left: 50%; bottom: 14px; padding: 7px 11px; border-radius: 5px; color: var(--white); background: rgba(16, 57, 47, 0.88); font-size: 0.72rem; font-weight: 800; transform: translateX(-50%); white-space: nowrap; }
.result-panel { padding: 18px 17px 22px; }
.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.result-top small { display: block; color: var(--leaf-600); font-weight: 800; text-transform: uppercase; }
.result-top h3 { margin: 2px 0 2px; font-family: var(--display); font-size: 1.7rem; line-height: 1.15; }
.latin { margin: 0; color: var(--muted); font-family: var(--display); font-size: 0.88rem; font-style: italic; }
.confidence { flex: 0 0 auto; padding: 5px 8px; border-radius: 4px; color: var(--forest-900); background: var(--mint-100); font-size: 0.68rem; font-weight: 800; }
.care-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 17px; }
.care-chip { min-height: 78px; padding: 10px 7px; border: 1px solid var(--line); border-radius: 6px; text-align: center; background: var(--white); }
.care-chip b { display: block; margin-top: 3px; font-size: 0.76rem; }
.care-chip span { color: var(--muted); font-size: 0.64rem; }
.diagnose-state { display: none; }
.phone-shell[data-mode="diagnose"] .identify-state { display: none; }
.phone-shell[data-mode="diagnose"] .diagnose-state { display: block; }
.diagnose-card { padding: 18px 17px 22px; }
.diagnose-card img { width: 122px; margin: -18px auto -4px; }
.diagnose-card small { color: var(--coral-500); font-weight: 800; text-transform: uppercase; }
.diagnose-card h3 { margin: 3px 0 7px; font-family: var(--display); font-size: 1.62rem; }
.diagnose-card p { color: var(--muted); font-size: 0.78rem; }
.treatment-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.76rem; font-weight: 750; }
.treatment-index { width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--forest-950); background: var(--mint-200); }

.feature-species { background: var(--white); }
.species-showcase { display: grid; grid-template-columns: 1.03fr 0.97fr; min-height: 700px; }
.species-image { min-height: 700px; background: url("monstera-deliciosa.jpg") center center / cover no-repeat; }
.species-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px 9%; background: var(--mint-100); }
.species-copy .section-title { margin-bottom: 12px; }
.species-latin { margin-bottom: 24px; color: var(--forest-800); font-family: var(--display); font-size: 1.2rem; font-style: italic; }
.species-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0 34px; }
.species-point { padding: 14px 0; border-top: 1px solid rgba(23, 75, 58, 0.24); }
.species-point b { display: block; color: var(--forest-900); }
.species-point span { color: var(--muted); font-size: 0.82rem; }

.explore { background: var(--cream); }
.explore-head { display: grid; grid-template-columns: 1fr 0.76fr; gap: 90px; align-items: end; margin-bottom: 60px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { position: relative; min-height: 430px; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.category-card:nth-child(2) { background: #fff5f0; }
.category-card:nth-child(3) { background: #eff7ed; }
.category-art { height: 240px; display: flex; align-items: center; justify-content: center; }
.category-art img { width: 230px; max-height: 230px; object-fit: contain; }
.category-card h3 { margin-bottom: 6px; color: var(--forest-950); font-family: var(--display); font-size: 1.7rem; }
.category-card p { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }

.care-system { background: var(--white); }
.care-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; align-items: center; }
.care-visual { position: relative; min-height: 590px; overflow: hidden; border-radius: 8px; background: var(--sky-300); }
.care-visual img { width: 100%; height: 590px; object-fit: cover; }
.care-float {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(330px, calc(100% - 40px));
  padding: 19px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}
.care-float-label { color: var(--leaf-600); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.care-float h3 { margin: 2px 0 12px; font-size: 1.12rem; }
.care-task { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.82rem; }
.care-task b { color: var(--forest-800); }
.care-list { margin-top: 36px; }
.care-list-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.care-list-item:last-child { border-bottom: 1px solid var(--line); }
.care-list-number { color: var(--coral-500); font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.care-list-item b { display: block; margin-bottom: 3px; }
.care-list-item span { color: var(--muted); font-size: 0.88rem; }

.download { padding: 100px 0; color: var(--white); background: var(--forest-900); }
.download-grid { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.download h2 { margin-bottom: 12px; color: var(--white); font-family: var(--display); font-size: 4.25rem; font-weight: 500; line-height: 1.03; }
.download p { max-width: 680px; margin-bottom: 0; color: rgba(255, 255, 255, 0.7); font-size: 1.05rem; }
.download-actions { display: flex; gap: 12px; }
.download-icon { width: 94px; height: 94px; border-radius: 20px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25); }

.site-footer { padding: 42px 0; color: rgba(255, 255, 255, 0.76); background: #0c2d25; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.82rem; }
.footer-meta { margin-top: 10px; font-size: 0.76rem; color: rgba(255, 255, 255, 0.46); }

/* Species page */
.species-page { background: var(--cream); }
.species-hero { padding: 112px 0 40px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 0.82rem; }
.breadcrumb span { opacity: 0.55; }
.species-hero-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 80px; align-items: center; }
.taxonomy { margin-bottom: 14px; color: var(--leaf-600); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.species-hero h1 { margin-bottom: 10px; color: var(--forest-950); font-family: var(--display); font-size: 5.7rem; font-weight: 500; line-height: 0.94; }
.species-subtitle { margin-bottom: 22px; color: var(--forest-800); font-family: var(--display); font-size: 1.45rem; font-style: italic; }
.species-summary { color: var(--muted); font-size: 1.08rem; }
.species-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; }
.species-tag { padding: 7px 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--forest-900); background: var(--white); font-size: 0.78rem; font-weight: 750; }
.species-tag.warning { color: #8c3d36; border-color: rgba(255, 111, 97, 0.42); background: #fff1ef; }
.species-hero-photo { width: 100%; max-width: 520px; position: relative; justify-self: end; overflow: hidden; border-radius: 8px; box-shadow: var(--shadow); }
.species-hero-photo { margin: 0; }
.species-hero-photo img { width: 100%; height: 520px; object-fit: cover; }
.photo-caption { position: absolute; right: 14px; bottom: 14px; padding: 6px 9px; border-radius: 4px; color: var(--white); background: rgba(16, 57, 47, 0.76); font-size: 0.68rem; }

.quick-care { background: var(--forest-950); color: var(--white); }
.quick-care-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.quick-care-item { padding: 30px 20px; border-right: 1px solid rgba(255, 255, 255, 0.14); }
.quick-care-item:last-child { border-right: 0; }
.quick-care-item svg { width: 23px; height: 23px; margin-bottom: 14px; color: var(--mint-200); }
.quick-care-item b { display: block; margin-bottom: 2px; }
.quick-care-item span { color: rgba(255, 255, 255, 0.58); font-size: 0.78rem; }

.page-nav { position: sticky; top: 75px; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(251, 250, 244, 0.95); backdrop-filter: blur(14px); }
.page-nav .shell { min-height: 58px; display: flex; align-items: center; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.page-nav a { flex: 0 0 auto; color: var(--muted); font-size: 0.84rem; font-weight: 750; }
.page-nav a:hover { color: var(--forest-900); }

.detail-intro-grid { display: grid; grid-template-columns: 0.74fr 1.26fr; gap: 90px; }
.detail-side-label { color: var(--leaf-600); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.detail-copy h2 { margin-bottom: 24px; color: var(--forest-950); font-family: var(--display); font-size: 3.6rem; font-weight: 500; line-height: 1.06; }
.detail-copy p { color: var(--muted); font-size: 1.02rem; }
.feature-list { margin-top: 34px; border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.feature-row b { color: var(--forest-900); }
.feature-row span { color: var(--muted); }

.care-guide { background: var(--mint-100); }
.care-guide-head { display: grid; grid-template-columns: 1fr 0.72fr; gap: 70px; align-items: end; margin-bottom: 54px; }
.care-guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(23, 75, 58, 0.2); border-left: 1px solid rgba(23, 75, 58, 0.2); }
.care-guide-item { min-height: 260px; padding: 28px; border-right: 1px solid rgba(23, 75, 58, 0.2); border-bottom: 1px solid rgba(23, 75, 58, 0.2); }
.care-guide-item svg { width: 28px; height: 28px; margin-bottom: 34px; color: var(--coral-500); }
.care-guide-item h3 { margin-bottom: 8px; font-family: var(--display); font-size: 1.55rem; }
.care-guide-item p { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }

.diagnosis-section { background: var(--white); }
.diagnosis-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 86px; align-items: start; }
.issue-list { border-top: 1px solid var(--line); }
.issue-item { border-bottom: 1px solid var(--line); }
.issue-button { width: 100%; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; color: var(--ink); background: transparent; text-align: left; font-weight: 800; cursor: pointer; }
.issue-button svg { width: 19px; height: 19px; transition: transform 180ms ease; }
.issue-item.open .issue-button svg { transform: rotate(45deg); }
.issue-panel { display: none; padding: 0 0 22px; color: var(--muted); font-size: 0.9rem; }
.issue-item.open .issue-panel { display: block; }
.diagnosis-note { padding: 28px; border-radius: 8px; color: var(--white); background: var(--forest-900); }
.diagnosis-note img { width: 220px; margin: 0 auto 12px; }
.diagnosis-note h3 { font-family: var(--display); font-size: 2rem; font-weight: 500; }
.diagnosis-note p { color: rgba(255, 255, 255, 0.72); }

.safety-section { color: var(--white); background: var(--coral-500); }
.safety-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 90px; align-items: start; }
.safety-icon { width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; }
.safety-icon svg { width: 31px; height: 31px; }
.safety-section h2 { margin-bottom: 18px; color: var(--white); font-family: var(--display); font-size: 3.6rem; font-weight: 500; line-height: 1.05; }
.safety-section p { max-width: 720px; color: rgba(255, 255, 255, 0.84); }
.safety-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.range-section { background: var(--cream); }
.range-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 90px; align-items: center; }
.range-band { min-height: 420px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 42px; border-radius: 8px; color: var(--white); background: var(--forest-900); }
.range-band::before {
  content: "MEXICO  →  GUATEMALA";
  position: absolute;
  top: 42px;
  left: 42px;
  right: 42px;
  color: var(--mint-200);
  font-family: var(--display);
  font-size: 2.8rem;
  line-height: 1.1;
}
.range-band::after { content: ""; position: absolute; inset: 118px 42px 120px; border-top: 1px solid rgba(255, 255, 255, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.range-band p { position: relative; z-index: 1; max-width: 520px; margin-bottom: 0; color: rgba(255, 255, 255, 0.7); }
.source-list { margin-top: 34px; border-top: 1px solid var(--line); }
.source-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--forest-900); font-weight: 750; }
.source-link span { color: var(--muted); font-size: 0.78rem; font-weight: 500; }

.related { background: var(--white); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.related-card { min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; }
.related-card small { color: var(--leaf-600); font-weight: 800; text-transform: uppercase; }
.related-card h3 { margin: 28px 0 8px; font-family: var(--display); font-size: 1.55rem; }
.related-card p { margin-bottom: 0; color: var(--muted); font-size: 0.88rem; }

/* species-profile species content */
.profile-source-note { display: inline-flex; align-items: center; gap: 7px; color: var(--leaf-600); font-size: 0.76rem; font-weight: 800; }
.profile-source-note svg { width: 16px; height: 16px; }
.profile-muted { color: var(--muted); }
.profile-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 28px; border-top: 1px solid var(--line); }
.profile-value-list { margin-top: 18px; border-top: 1px solid rgba(23, 75, 58, 0.18); }
.profile-value-line { display: grid; grid-template-columns: minmax(108px, 0.7fr) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.profile-fact-grid .profile-value-line { padding: 16px 0; }
.profile-value-line b { color: var(--forest-900); }
.profile-value-line span { color: var(--muted); overflow-wrap: anywhere; }
.profile-care-card { min-height: 310px; }
.profile-record-note > svg { width: 34px; height: 34px; margin-bottom: 28px; color: var(--mint-200); }
.profile-record-note h3 { margin-bottom: 10px; }
.profile-record-note p { margin-bottom: 0; }
.issue-group { margin-left: auto; color: var(--leaf-600); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.safety-section[hidden] { display: none; }
.profile-safety-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.profile-safety-grid > div { padding: 18px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 6px; background: rgba(255, 255, 255, 0.1); }
.profile-safety-grid b { display: block; margin-bottom: 10px; }
.profile-safety-grid ul { margin: 0; padding-left: 18px; color: rgba(255, 255, 255, 0.82); font-size: 0.82rem; }
.profile-safety-grid li + li { margin-top: 8px; }
.profile-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-gallery-item { margin: 0; overflow: hidden; border-radius: 8px; background: var(--white); box-shadow: var(--shadow-soft); }
.profile-gallery-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.profile-gallery-item figcaption { padding: 10px 12px; color: var(--muted); font-size: 0.7rem; overflow-wrap: anywhere; }

[data-profile-state="loading"] .species-hero { min-height: 620px; }
[data-profile-state="error"] .profile-source-note { color: #8c3d36; }

/* Plant library */
.species-library-page { background: var(--cream); }
.library-hero {
  padding: 154px 0 84px;
  color: var(--white);
  background: var(--forest-950);
}
.library-hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 90px; align-items: end; }
.library-hero .section-kicker { color: var(--mint-200); }
.library-hero h1 {
  margin: 0;
  max-width: 700px;
  font-family: var(--display);
  font-size: 5.5rem;
  font-weight: 500;
  line-height: 0.98;
}
.library-hero-copy > p { max-width: 570px; margin-bottom: 28px; color: rgba(255, 255, 255, 0.72); font-size: 1.06rem; }
.species-search {
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 7px 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
}
.species-search > svg { width: 20px; height: 20px; color: var(--mint-200); }
.species-search input { min-width: 0; border: 0; outline: 0; color: var(--white); background: transparent; }
.species-search input::placeholder { color: rgba(255, 255, 255, 0.54); }
.search-submit {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  color: var(--forest-950);
  background: var(--sun-400);
  cursor: pointer;
}
.search-submit svg { width: 19px; height: 19px; }
.library-browser { background: var(--cream); }
.library-toolbar { display: grid; grid-template-columns: 1fr minmax(260px, 0.7fr); gap: 60px; align-items: end; margin-bottom: 34px; }
.library-toolbar h2 { margin: 0; color: var(--forest-950); font-family: var(--display); font-size: 3.6rem; font-weight: 500; line-height: 1.04; }
.library-toolbar > p { margin: 0 0 6px; color: var(--muted); text-align: right; }
.collection-tabs { display: flex; gap: 8px; margin-bottom: 38px; overflow-x: auto; scrollbar-width: none; }
.collection-tabs button {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--forest-900);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}
.collection-tabs button[aria-selected="true"] { color: var(--white); border-color: var(--forest-900); background: var(--forest-900); }
.species-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.species-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.species-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.species-card-featured { grid-column: span 2; }
.species-card-image { height: 300px; position: relative; overflow: hidden; background: #dce9dc; }
.species-card-featured .species-card-image { height: 390px; }
.species-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.species-card:hover .species-card-image img { transform: scale(1.025); }
.species-card-arrow {
  width: 42px;
  height: 42px;
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--forest-950);
  background: rgba(255, 255, 255, 0.92);
}
.species-card-arrow svg { width: 18px; height: 18px; }
.species-card-copy { min-height: 145px; padding: 22px; }
.species-card-copy small { color: var(--leaf-600); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.species-card-copy h3 { margin: 22px 0 3px; color: var(--forest-950); font-family: var(--display); font-size: 1.65rem; font-weight: 600; line-height: 1.08; overflow-wrap: anywhere; }
.species-card-copy p { margin: 0; color: var(--muted); font-family: var(--display); font-size: 0.9rem; font-style: italic; overflow-wrap: anywhere; }
.species-image-placeholder { height: 100%; display: grid; place-items: center; color: var(--forest-800); background: var(--mint-100); }
.species-image-placeholder svg { width: 42px; height: 42px; }
.species-card-skeleton { height: 440px; border-radius: 8px; background: linear-gradient(110deg, #eef2eb 28%, #f8faf6 44%, #eef2eb 60%); background-size: 220% 100%; animation: library-loading 1.4s linear infinite; }
@keyframes library-loading { to { background-position-x: -220%; } }
.library-empty { padding: 80px 20px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.library-empty svg { width: 42px; height: 42px; margin-bottom: 20px; color: var(--leaf-600); }
.library-empty h3 { margin-bottom: 8px; color: var(--forest-950); font-family: var(--display); font-size: 2rem; }
.library-empty p { max-width: 520px; margin: 0 auto; color: var(--muted); }
.library-note { padding: 92px 0; color: var(--white); background: var(--forest-900); }
.library-note-grid { display: grid; grid-template-columns: 0.55fr 1.2fr auto; gap: 54px; align-items: center; }
.library-note-number { color: var(--mint-200); font-family: var(--display); font-size: 4.5rem; font-weight: 700; }
.library-note .section-kicker { color: var(--mint-200); }
.library-note h2 { margin-bottom: 12px; color: var(--white); font-family: var(--display); font-size: 2.5rem; font-weight: 500; line-height: 1.08; }
.library-note p { margin: 0; color: rgba(255, 255, 255, 0.66); }

/* Refreshed species detail */
.species-detail-hero { padding: 116px 0 70px; background: var(--cream); }
.species-detail-hero .breadcrumb { margin-bottom: 30px; }
.species-detail-hero .species-hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 72px; }
.species-detail-hero .species-hero-photo { max-width: none; justify-self: stretch; border-radius: 8px; box-shadow: none; }
.species-detail-hero .species-hero-photo img { height: 620px; aspect-ratio: 5 / 6; object-fit: cover; }
.species-hero-copy { min-width: 0; padding: 26px 0; }
.back-library { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 54px; color: var(--forest-800); font-size: 0.8rem; font-weight: 800; }
.back-library svg { width: 16px; height: 16px; }
.species-detail-hero .taxonomy { margin-bottom: 12px; }
.species-detail-hero h1 { margin-bottom: 8px; font-size: 4.65rem; line-height: 0.98; overflow-wrap: anywhere; }
.species-detail-hero .species-subtitle { margin-bottom: 24px; font-size: 1.34rem; }
.species-detail-hero .species-summary { max-width: 550px; font-size: 1.02rem; }
.species-hero-note { display: flex; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.species-hero-note svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--leaf-600); }
.species-overview { background: var(--white); }
.detail-intro-heading h2 { margin-bottom: 20px; color: var(--forest-950); font-family: var(--display); font-size: 3.6rem; font-weight: 500; line-height: 1.04; }
.detail-intro-heading p { max-width: 430px; color: var(--muted); }
.species-overview .profile-fact-grid { margin-top: 0; }
.species-overview .profile-value-line { grid-template-columns: 150px 1fr; }
.species-care-note { position: sticky; top: 160px; }
.species-care-note > svg { width: 32px; height: 32px; margin-bottom: 36px; color: var(--mint-200); }
.species-care-note .section-kicker { color: var(--mint-200); }
.species-care-note .button { margin-top: 22px; }
.safety-kicker { color: rgba(255, 255, 255, 0.78); }
.range-layout { align-items: start; }
.gallery-intro { position: sticky; top: 160px; }
.profile-gallery-item:first-child { grid-column: 1 / -1; }
.profile-gallery-item:first-child img { aspect-ratio: 16 / 10; }
.related-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--forest-900); font-size: 0.82rem; font-weight: 800; }
.text-link svg { width: 17px; height: 17px; }

@media (max-width: 1024px) {
  .section-title { font-size: 3.6rem; }
  .hero h1 { font-size: 5.25rem; }
  .hero-tagline { font-size: 1.72rem; }
  .journey-head,
  .explore-head,
  .care-guide-head { gap: 50px; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-step:nth-child(2) { border-right: 0; }
  .journey-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .demo-grid { gap: 48px; }
  .care-layout,
  .range-layout { gap: 55px; }
  .species-hero h1 { font-size: 4.7rem; }
  .species-hero-grid { gap: 50px; }
  .library-hero-grid { gap: 55px; }
  .library-hero h1 { font-size: 4.6rem; }
  .species-card-image { height: 260px; }
  .species-card-featured .species-card-image { height: 340px; }
  .species-detail-hero h1 { font-size: 4rem; }
  .species-detail-hero .species-hero-photo img { height: 560px; }
}

@media (max-width: 820px) {
  .shell, .narrow { width: min(100% - 32px, 680px); }
  .section { padding: 88px 0; }
  .section-title { font-size: 3.2rem; }
  .nav-links { display: none; position: absolute; top: 66px; left: 16px; right: 16px; padding: 18px; flex-direction: column; align-items: stretch; gap: 0; border-radius: 8px; color: var(--forest-950); background: var(--white); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links .nav-cta { margin-top: 10px; }
  .menu-button { display: inline-flex; }
  .hero { min-height: 820px; background-position: 58% center; }
  .hero::before { background: rgba(10, 47, 37, 0.65); }
  .hero-content { max-width: 590px; padding-top: 130px; }
  .hero h1 { font-size: 4.6rem; }
  .proof-grid { grid-template-columns: 1fr; padding: 8px 0; }
  .proof-item { padding: 17px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .journey-head,
  .explore-head,
  .care-guide-head,
  .detail-intro-grid { grid-template-columns: 1fr; gap: 22px; }
  .demo-grid,
  .species-showcase,
  .care-layout,
  .download-grid,
  .species-hero-grid,
  .diagnosis-layout,
  .safety-grid,
  .range-layout { grid-template-columns: 1fr; }
  .demo-grid { padding: 88px 0; }
  .phone-stage { min-height: 710px; }
  .species-image { min-height: 590px; }
  .species-copy { padding: 72px 9%; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 300px; display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; }
  .category-art { height: 220px; }
  .care-visual, .care-visual img { min-height: 520px; height: 520px; }
  .download-actions { align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .quick-care-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-care-item { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .quick-care-item:nth-child(2n) { border-right: 0; }
  .quick-care-item:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .species-hero { padding-top: 118px; }
  .species-hero h1 { font-size: 4.2rem; }
  .species-hero-photo { order: -1; }
  .species-hero-photo img { height: auto; aspect-ratio: 4 / 5; }
  .detail-intro-grid { gap: 32px; }
  .care-guide-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .library-hero-grid,
  .library-toolbar,
  .library-note-grid,
  .related-head { grid-template-columns: 1fr; }
  .library-hero { padding: 126px 0 72px; }
  .library-hero-grid { gap: 36px; }
  .library-hero h1 { font-size: 4.25rem; }
  .library-toolbar { gap: 14px; }
  .library-toolbar > p { text-align: left; }
  .species-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .species-card-featured { grid-column: span 2; }
  .library-note-grid { gap: 24px; }
  .library-note-number { font-size: 3.8rem; }
  .library-note .button { justify-self: start; }
  .species-detail-hero .species-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .species-detail-hero .species-hero-photo { order: 0; }
  .species-detail-hero .species-hero-copy { order: 1; }
  .species-detail-hero .species-hero-photo img { height: auto; aspect-ratio: 4 / 5; }
  .back-library { margin-bottom: 34px; }
  .species-care-note,
  .gallery-intro { position: static; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .shell, .narrow { width: calc(100% - 28px); }
  .section { padding: 74px 0; }
  .section-title { font-size: 2.75rem; }
  .nav { min-height: 66px; }
  .brand img { width: 34px; height: 34px; }
  .hero { min-height: 760px; background-position: 60% center; }
  .hero-content { padding: 116px 0 78px; }
  .hero h1 { font-size: 3.75rem; }
  .hero-tagline { font-size: 1.48rem; }
  .hero-copy { font-size: 1rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-next { display: none; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-step { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .journey-step:last-child { border-bottom: 0; }
  .journey-number { margin-bottom: 30px; }
  .demo-grid { padding: 76px 0; }
  .demo-stat { gap: 16px; }
  .phone-shell { min-height: 655px; border-radius: 38px; }
  .scan-frame > img { height: 265px; }
  .species-image { min-height: 470px; }
  .species-points { grid-template-columns: 1fr; }
  .category-card { display: block; min-height: 390px; }
  .category-art { height: 245px; }
  .care-visual, .care-visual img { min-height: 480px; height: 480px; }
  .download h2 { font-size: 3rem; }
  .download-grid { gap: 30px; }
  .download-actions { flex-direction: column; align-items: stretch; }
  .download-actions .button { width: 100%; }
  .footer-links { gap: 14px; }
  .species-hero h1 { font-size: 3.55rem; }
  .species-hero-grid { gap: 34px; }
  .quick-care-grid { grid-template-columns: 1fr; }
  .quick-care-item { border-right: 0; }
  .quick-care-item:last-child { grid-column: auto; }
  .page-nav { top: 65px; }
  .detail-copy h2,
  .safety-section h2 { font-size: 2.75rem; }
  .feature-row { grid-template-columns: 1fr; gap: 5px; }
  .care-guide-item { min-height: 230px; }
  .range-band { min-height: 390px; padding: 28px; }
  .range-band::before { top: 30px; left: 28px; right: 28px; font-size: 2rem; }
  .range-band::after { inset: 92px 28px 130px; }
  .profile-fact-grid,
  .profile-safety-grid { grid-template-columns: 1fr; }
  .profile-gallery { grid-template-columns: 1fr 1fr; }
  .profile-value-line { grid-template-columns: 1fr; gap: 4px; }
  .issue-group { max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .library-hero h1 { font-size: 3.45rem; }
  .library-hero-copy > p { font-size: 1rem; }
  .library-toolbar h2 { font-size: 2.75rem; }
  .species-card-grid { grid-template-columns: 1fr; }
  .species-card-featured { grid-column: auto; }
  .species-card-image,
  .species-card-featured .species-card-image { height: 290px; }
  .species-card-copy { min-height: 132px; }
  .library-note { padding: 74px 0; }
  .library-note h2 { font-size: 2.1rem; }
  .library-note .button { width: 100%; }
  .species-detail-hero { padding-top: 96px; }
  .species-detail-hero h1 { font-size: 3.25rem; }
  .species-detail-hero .species-summary { font-size: 0.96rem; }
  .detail-intro-heading h2 { font-size: 2.75rem; }
  .species-overview .profile-value-line { grid-template-columns: 1fr; }
  .related-head { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Product layout and interaction refinement */
html { scroll-padding-top: 142px; }
body.menu-open,
body.dialog-open { overflow: hidden; }
.shell { width: min(1200px, calc(100% - 64px)); }
.narrow { width: min(920px, calc(100% - 64px)); }
.section { padding: 96px 0; }
.section-title { max-width: 780px; margin-bottom: 20px; font-size: 3.85rem; line-height: 1.03; }
.section-lead { font-size: 1.03rem; line-height: 1.68; }
.nav { min-height: 70px; }
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]:not(.nav-cta) { position: relative; }
.nav-links a[aria-current="page"]:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; background: var(--leaf-600); }

.hero { min-height: 680px; height: min(88svh, 860px); }
.hero-content { max-width: 620px; padding: 124px 0 78px; }
.hero h1 { font-size: 5.6rem; }
.hero-tagline { max-width: 560px; font-size: 1.75rem; }
.hero-copy { max-width: 560px; margin-bottom: 28px; font-size: 1.02rem; }
.hero-note { max-width: 590px; }
.proof-grid { min-height: 96px; }
.proof-item { padding-top: 16px; padding-bottom: 16px; }
.proof-value { font-size: 1.85rem; }
.journey-head { gap: 64px; margin-bottom: 48px; }
.journey-grid { background: rgba(255, 255, 255, 0.28); }
.journey-step { min-height: 220px; padding: 26px 24px; }
.journey-number { margin-bottom: 34px; }
.demo-grid { min-height: 740px; gap: 72px; }
.phone-stage { min-height: 620px; }
.phone-shell { min-height: 660px; }
.species-showcase { min-height: 620px; }
.species-image { min-height: 620px; }
.species-copy { padding: 68px 8%; }
.explore-head { gap: 70px; margin-bottom: 48px; }
.category-card { min-height: 390px; padding: 24px; display: flex; flex-direction: column; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.category-card:hover { transform: translateY(-4px); border-color: rgba(23, 75, 58, 0.3); box-shadow: var(--shadow-soft); }
.category-art { height: 220px; }
.category-art img { width: 205px; max-height: 205px; transition: transform 220ms ease; }
.category-card:hover .category-art img { transform: scale(1.04); }
.category-card-copy { margin-top: auto; }
.category-card h3 { font-size: 1.55rem; }
.category-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--forest-900); font-size: 0.78rem; font-weight: 800; }
.category-link svg { width: 16px; height: 16px; transition: transform 160ms ease; }
.category-card:hover .category-link svg { transform: translateX(3px); }
.care-layout { gap: 72px; }
.care-visual,
.care-visual img { min-height: 520px; height: 520px; }
.download { padding: 78px 0; }
.download h2 { font-size: 3.65rem; }

/* Plant library */
.library-hero { padding: 128px 0 64px; }
.library-hero-grid { grid-template-columns: 1fr 0.9fr; gap: 72px; }
.library-hero h1 { font-size: 4.7rem; line-height: 0.96; }
.species-search { grid-template-columns: auto 1fr auto auto; }
.search-clear { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: rgba(255, 255, 255, 0.76); background: transparent; cursor: pointer; }
.search-clear:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.search-clear[hidden] { display: none; }
.search-clear svg { width: 18px; height: 18px; }
.species-search[data-loading="true"] .search-submit svg { visibility: hidden; }
.species-search[data-loading="true"] .search-submit::after { content: ""; width: 17px; height: 17px; position: absolute; border: 2px solid rgba(16, 57, 47, 0.28); border-top-color: var(--forest-950); border-radius: 50%; animation: search-spin 700ms linear infinite; }
.search-submit { position: relative; }
@keyframes search-spin { to { transform: rotate(360deg); } }
.library-toolbar { grid-template-columns: 1fr minmax(300px, 0.8fr); gap: 52px; margin-bottom: 20px; }
.library-toolbar h2 { font-size: 3.15rem; }
.library-status { margin: 0 0 4px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: var(--muted); text-align: right; }
.library-status p { margin: 0; }
.library-status button { padding: 0; border: 0; border-bottom: 1px solid currentColor; color: var(--forest-800); background: transparent; font-size: 0.78rem; font-weight: 800; cursor: pointer; }
.library-status button[hidden] { display: none; }
.collection-tabs { position: sticky; top: 70px; z-index: 16; margin: 0 0 30px; padding: 12px 0; background: rgba(251, 250, 244, 0.94); backdrop-filter: blur(14px); }
.collection-tabs button { min-height: 40px; }
.species-card-grid { gap: 18px; }
.species-card { display: flex; flex-direction: column; }
.species-card-featured { grid-column: auto; }
.species-card-image,
.species-card-featured .species-card-image { height: auto; aspect-ratio: 4 / 3; }
.species-card-copy { min-height: 132px; padding: 19px 20px 21px; }
.species-card-copy h3 { margin: 14px 0 3px; font-size: 1.48rem; }
.species-card-arrow { width: 38px; height: 38px; }
.species-card:focus-visible { outline-offset: 5px; }
.library-note { padding: 76px 0; }
.library-note-grid { grid-template-columns: 0.45fr 1.2fr auto; gap: 44px; }

/* Species detail */
.species-detail-hero { padding: 106px 0 56px; }
.species-detail-hero .breadcrumb { margin-bottom: 24px; }
.species-detail-hero .species-hero-grid { grid-template-columns: 1fr 1fr; gap: 68px; }
.species-detail-hero .species-hero-photo img { height: 560px; aspect-ratio: 1 / 1; }
.species-hero-copy { padding: 14px 0; }
.back-library { margin-bottom: 30px; }
.species-detail-hero h1 { font-size: 4.2rem; }
.species-detail-hero .species-subtitle { margin-bottom: 18px; }
.species-detail-hero .species-summary { max-width: 520px; }
.species-tags { margin: 22px 0 26px; }
.quick-care-item { min-width: 0; padding: 22px 18px; }
.quick-care-item svg { margin-bottom: 10px; }
.page-nav { top: 70px; }
.page-nav-links { min-height: 54px; display: flex; align-items: center; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.page-nav-links a { min-height: 54px; position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; }
.page-nav-mobile { display: none !important; }
.page-nav a.active { color: var(--forest-950); }
.page-nav a.active::after { content: ""; height: 3px; position: absolute; right: 0; bottom: 0; left: 0; background: var(--coral-500); }
.detail-intro-grid { grid-template-columns: 0.68fr 1.32fr; gap: 72px; }
.detail-intro-heading h2 { font-size: 3.2rem; }
.species-overview .profile-value-line { grid-template-columns: 132px 1fr; }
.care-guide-head { gap: 56px; margin-bottom: 42px; }
.care-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 0; }
.care-guide-item,
.profile-care-card { width: 100%; min-height: 0; margin: 0; display: block; padding: 24px; border: 1px solid rgba(23, 75, 58, 0.2); border-radius: 6px; background: rgba(255, 255, 255, 0.28); }
.profile-care-card:nth-child(n+5) { grid-column: 1 / -1; }
.profile-care-card:nth-child(n+5) .profile-value-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; border-top: 1px solid rgba(23, 75, 58, 0.18); }
.profile-care-card:nth-child(n+5) .profile-value-line { display: block; padding: 14px 0; border-top: 0; border-bottom: 0; }
.profile-care-card:nth-child(n+5) .profile-value-line b,
.profile-care-card:nth-child(n+5) .profile-value-line span { display: block; }
.profile-care-card:nth-child(n+5) .profile-value-line span { margin-top: 6px; }
.care-guide-item svg { margin-bottom: 18px; }
.care-guide-item h3 { font-size: 1.42rem; }
.profile-value-list { margin-top: 14px; }
.profile-value-line { grid-template-columns: minmax(92px, 0.7fr) 1fr; gap: 12px; padding: 10px 0; }
.diagnosis-layout { grid-template-columns: 1.15fr 0.65fr; gap: 72px; }
.issue-button { min-height: 68px; padding: 16px 0; }
.issue-button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.issue-panel { max-width: 700px; padding-right: 38px; }
.issue-item-extra { display: none; }
.issue-list.show-all .issue-item-extra { display: block; }
.issues-more { min-height: 44px; margin-top: 20px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--forest-900); background: transparent; font-weight: 800; cursor: pointer; }
.issues-more[hidden] { display: none; }
.issues-more svg { width: 17px; height: 17px; }
.diagnosis-note { padding: 26px; }
.safety-section { background: #c9584f; }
.safety-section h2 { font-size: 3.25rem; }
.profile-safety-grid > div { background: rgba(255, 255, 255, 0.08); }
.range-layout { grid-template-columns: 0.72fr 1.28fr; gap: 72px; }
.profile-gallery { gap: 12px; }
.profile-gallery-item { box-shadow: none; border: 1px solid var(--line); }
.gallery-trigger { width: 100%; position: relative; display: block; padding: 0; overflow: hidden; border: 0; color: var(--forest-950); background: transparent; cursor: zoom-in; }
.gallery-trigger > span { width: 38px; height: 38px; position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.92); opacity: 0; transform: translateY(5px); transition: opacity 160ms ease, transform 160ms ease; }
.gallery-trigger > span svg { width: 17px; height: 17px; }
.gallery-trigger:hover > span,
.gallery-trigger:focus-visible > span { opacity: 1; transform: translateY(0); }
.gallery-trigger img { transition: transform 220ms ease; }
.gallery-trigger:hover img { transform: scale(1.02); }
.related-grid { gap: 16px; margin-top: 34px; }
.related-card { min-height: 190px; }
.gallery-dialog { width: min(1040px, calc(100% - 48px)); max-width: none; padding: 0; overflow: visible; border: 0; color: var(--white); background: transparent; }
.gallery-dialog::backdrop { background: rgba(7, 24, 19, 0.92); backdrop-filter: blur(8px); }
.gallery-dialog figure { margin: 0; }
.gallery-dialog figure img { width: 100%; max-height: 78vh; object-fit: contain; }
.gallery-dialog figcaption { padding-top: 12px; color: rgba(255, 255, 255, 0.76); text-align: center; font-size: 0.78rem; }
.gallery-dialog-close,
.gallery-dialog-nav { width: 46px; height: 46px; position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 50%; color: var(--white); background: rgba(16, 57, 47, 0.82); cursor: pointer; }
.gallery-dialog-close { top: -58px; right: 0; }
.gallery-dialog-prev { top: 50%; left: -64px; transform: translateY(-50%); }
.gallery-dialog-next { top: 50%; right: -64px; transform: translateY(-50%); }
.gallery-dialog-close svg,
.gallery-dialog-nav svg { width: 21px; height: 21px; }
.back-to-top { width: 46px; height: 46px; position: fixed; right: 22px; bottom: 22px; z-index: 35; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: var(--white); background: var(--forest-950); box-shadow: var(--shadow-soft); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 160ms ease, transform 160ms ease; cursor: pointer; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 19px; height: 19px; }

@media (max-width: 1024px) {
  .section-title { font-size: 3.35rem; }
  .hero h1 { font-size: 4.9rem; }
  .library-hero h1 { font-size: 4.1rem; }
  .species-card-image,
  .species-card-featured .species-card-image { height: auto; }
  .species-detail-hero h1 { font-size: 3.75rem; }
  .gallery-dialog-prev { left: 10px; }
  .gallery-dialog-next { right: 10px; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 128px; }
  .shell,
  .narrow { width: min(100% - 32px, 680px); }
  .section { padding: 76px 0; }
  .section-title { font-size: 3rem; }
  .nav { min-height: 66px; }
  .nav-links { top: 58px; padding: 12px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 10px; }
  .nav-links a[aria-current="page"]:not(.nav-cta)::after { display: none; }
  .hero { min-height: 660px; height: min(86svh, 760px); }
  .hero-content { padding: 108px 0 68px; }
  .hero h1 { font-size: 4.1rem; }
  .hero-tagline { font-size: 1.5rem; }
  .journey-head { margin-bottom: 36px; }
  .demo-grid { min-height: 0; gap: 36px; padding: 76px 0; }
  .phone-stage { min-height: 670px; }
  .species-image { min-height: 0; aspect-ratio: 4 / 3; }
  .species-copy { padding: 62px max(24px, 8%); }
  .category-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; overflow: visible; }
  .category-card { min-width: 0; min-height: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; }
  .category-art { height: 150px; }
  .category-art img { width: 140px; max-height: 140px; }
  .category-card-copy { margin-top: 0; }
  .care-layout { gap: 42px; }
  .care-visual,
  .care-visual img { min-height: 430px; height: 430px; }
  .download { padding: 68px 0; }
  .download h2 { font-size: 3.1rem; }

  .library-hero { padding: 112px 0 56px; }
  .library-hero-grid,
  .library-toolbar,
  .library-note-grid { grid-template-columns: 1fr; }
  .library-hero-grid { gap: 30px; }
  .library-hero h1 { font-size: 3.8rem; }
  .library-toolbar { gap: 10px; }
  .library-status { justify-content: flex-start; text-align: left; }
  .collection-tabs { position: static; flex-wrap: wrap; overflow: visible; padding: 0; background: transparent; backdrop-filter: none; }
  .species-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-note-grid { gap: 20px; }

  .species-detail-hero { padding: 96px 0 48px; }
  .species-detail-hero .species-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .species-detail-hero .species-hero-copy { order: 0; padding-top: 0; }
  .species-detail-hero .species-hero-photo { order: 1; }
  .species-detail-hero .species-hero-photo img { height: auto; aspect-ratio: 4 / 3; }
  .species-detail-hero h1 { font-size: 3.5rem; }
  .back-library { margin-bottom: 26px; }
  .quick-care { overflow: visible; }
  .quick-care-grid { width: min(100% - 32px, 680px); margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .quick-care-item { min-width: 0; border-right: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .quick-care-item:nth-child(2n) { border-right: 0; }
  .quick-care-item:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .page-nav { top: 66px; }
  .page-nav .page-nav-links { display: none; }
  .page-nav-mobile { min-height: 54px; display: flex !important; align-items: center; justify-content: space-between; gap: 14px; position: relative; color: var(--forest-900); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; }
  .page-nav-mobile select { min-width: 0; flex: 1; appearance: none; padding: 0 30px 0 0; border: 0; outline: 0; color: var(--forest-950); background: transparent; font-size: 0.88rem; font-weight: 800; text-align: right; cursor: pointer; }
  .page-nav-mobile svg { width: 17px; height: 17px; position: absolute; right: 0; pointer-events: none; }
  .detail-intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .care-guide-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 30px; }
  .care-guide-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; overflow: visible; }
  .care-guide-item,
  .profile-care-card { min-width: 0; padding: 22px; }
  .profile-care-card:nth-child(n+5) { grid-column: auto; }
  .profile-care-card:nth-child(n+5) .profile-value-list { display: block; border-top: 1px solid rgba(23, 75, 58, 0.18); }
  .profile-care-card:nth-child(n+5) .profile-value-line { display: grid; }
  .profile-care-card:nth-child(n+5) .profile-value-line span { margin-top: 0; }
  .diagnosis-layout { grid-template-columns: 1fr; gap: 30px; }
  .range-layout { grid-template-columns: 1fr; gap: 34px; }
  .gallery-intro { position: static; }
  .profile-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
  .profile-gallery-item:first-child img { height: 100%; aspect-ratio: auto; }
  .profile-gallery-item figcaption { display: none; }
  .gallery-trigger,
  .gallery-trigger img { height: 100%; }
  .gallery-trigger img { object-fit: cover; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .shell,
  .narrow { width: calc(100% - 32px); }
  .section { padding: 66px 0; }
  .section-title { font-size: 2.58rem; line-height: 1.04; }
  .hero { min-height: 650px; height: min(88svh, 730px); background-position: 58% center; }
  .hero-content { min-width: 0; padding: 104px 0 60px; }
  .hero h1 { font-size: 3.4rem; line-height: 0.98; overflow-wrap: anywhere; }
  .hero-tagline { max-width: 100%; font-size: 1.35rem; line-height: 1.24; }
  .hero-copy { max-width: 100%; font-size: 0.94rem; }
  .hero-actions { width: 100%; }
  .hero-actions .button { min-width: 0; padding-right: 14px; padding-left: 14px; white-space: normal; text-align: center; }
  .hero-note { font-size: 0.76rem; }
  .proof-grid { padding: 4px 0; }
  .proof-item { min-width: 0; padding: 13px 0; }
  .proof-value { font-size: 1.65rem; }
  .proof-label { font-size: 0.8rem; line-height: 1.45; }
  .journey-head { gap: 16px; }
  .journey-grid { display: block; }
  .journey-step { min-height: 0; display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; padding: 22px 0; }
  .journey-number { grid-row: 1 / 3; margin: -3px 0 0; font-size: 1.35rem; text-align: center; }
  .journey-step h3 { margin-bottom: 4px; }
  .journey-step p { font-size: 0.86rem; }
  .demo-grid { padding: 66px 0; }
  .mode-switch { width: 100%; }
  .mode-switch button { flex: 1; }
  .phone-stage { min-height: 610px; }
  .phone-shell { width: min(326px, 100%); min-height: 620px; border-width: 7px; border-radius: 34px; }
  .scan-frame > img { height: 245px; }
  .species-copy { padding: 54px 16px; }
  .category-grid { margin: 0; }
  .category-card { min-width: 0; min-height: 0; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .category-art { height: 108px; }
  .category-art img { width: 100px; max-height: 100px; }
  .category-card h3 { font-size: 1.3rem; }
  .category-card p { font-size: 0.82rem; line-height: 1.5; }
  .category-link { margin-top: 10px; }
  .care-visual,
  .care-visual img { min-height: 360px; height: 360px; }
  .care-float { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 15px; }
  .download h2 { font-size: 2.65rem; }

  .library-hero { padding: 104px 0 48px; }
  .library-hero h1 { max-width: 340px; font-size: 3.15rem; }
  .library-hero-copy > p { margin-bottom: 22px; font-size: 0.94rem; }
  .species-search { min-height: 56px; gap: 8px; padding-left: 14px; }
  .search-submit { width: 42px; height: 42px; }
  .library-browser.section { padding-top: 60px; }
  .library-toolbar h2 { font-size: 2.38rem; }
  .library-status { align-items: flex-start; flex-direction: column; gap: 4px; font-size: 0.84rem; }
  .collection-tabs { margin-right: 0; padding-right: 0; gap: 6px; }
  .collection-tabs button { min-height: 38px; padding: 0 14px; }
  .species-card-grid { grid-template-columns: 1fr; gap: 12px; }
  .species-card { min-height: 132px; display: grid; grid-template-columns: 118px minmax(0, 1fr); }
  .species-card-image,
  .species-card-featured .species-card-image { height: 132px; aspect-ratio: auto; }
  .species-card-copy { min-height: 132px; padding: 17px 15px; }
  .species-card-copy h3 { margin: 10px 0 3px; font-size: 1.28rem; }
  .species-card-copy p { font-size: 0.78rem; }
  .species-card-copy small { font-size: 0.62rem; }
  .species-card-arrow { width: 32px; height: 32px; right: 8px; bottom: 8px; }
  .species-card-arrow svg { width: 15px; height: 15px; }
  .library-note { padding: 62px 0; }
  .library-note-number { font-size: 3.2rem; }

  .species-detail-hero { padding: 92px 0 40px; }
  .species-detail-hero .breadcrumb { margin-bottom: 20px; font-size: 0.74rem; }
  .back-library { margin-bottom: 22px; }
  .species-detail-hero h1 { font-size: 2.75rem; }
  .species-detail-hero .species-subtitle { font-size: 1.14rem; }
  .species-detail-hero .species-summary { font-size: 0.93rem; }
  .species-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 18px 0 22px; }
  .species-tag { padding: 6px 8px; font-size: 0.7rem; }
  .quick-care-grid { width: calc(100% - 32px); margin: 0 auto; }
  .quick-care-item { min-width: 0; padding: 18px 14px; }
  .detail-intro-heading h2 { font-size: 2.5rem; }
  .profile-fact-grid { grid-template-columns: 1fr; gap: 0; }
  .species-overview .profile-value-line { grid-template-columns: 106px minmax(0, 1fr); gap: 14px; padding: 13px 0; }
  .profile-value-line { grid-template-columns: minmax(104px, 0.72fr) 1fr; gap: 12px; padding: 11px 0; }
  .profile-value-line b { font-size: 0.74rem; }
  .profile-value-line span { font-size: 0.78rem; }
  .care-guide-item,
  .profile-care-card { min-width: 0; padding: 20px; }
  .profile-care-card:nth-child(n+5) .profile-value-line { grid-template-columns: 1fr; gap: 4px; }
  .issue-button { gap: 10px; font-size: 0.88rem; }
  .issue-group { max-width: 26%; }
  .issue-panel { padding-right: 20px; }
  .diagnosis-note { padding: 22px; }
  .safety-grid { gap: 24px; }
  .safety-section h2 { font-size: 2.55rem; }
  .profile-safety-grid { grid-template-columns: 1fr; gap: 10px; }
  .profile-gallery { gap: 7px; }
  .related-grid { margin-top: 24px; }
  .gallery-dialog { width: calc(100% - 24px); }
  .gallery-dialog-close { top: -52px; }
  .gallery-dialog-nav { width: 40px; height: 40px; }
  .gallery-dialog-prev { left: 8px; }
  .gallery-dialog-next { right: 8px; }
  .back-to-top { right: 14px; bottom: 14px; }
}
