:root {
  color-scheme: light;
  --ink: #15130f;
  --ink-soft: #4e473c;
  --ink-muted: #766f63;
  --cream: #f8faf5;
  --cream-deep: #e7eee6;
  --glass: rgba(255, 255, 250, 0.78);
  --glass-strong: rgba(255, 255, 250, 0.94);
  --line: rgba(80, 71, 56, 0.18);
  --line-strong: rgba(80, 71, 56, 0.34);
  --moss: #234835;
  --moss-2: #35634b;
  --gold: #a16207;
  --gold-strong: #8a5206;
  --teal: #0f766e;
  --shadow: rgba(49, 38, 22, 0.18);
  --radius: 8px;
  --max: 1180px;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(248, 250, 245, 0.84), rgba(248, 250, 245, 1) 34rem),
    radial-gradient(circle at 18% 10%, rgba(15, 118, 110, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 5%, rgba(161, 98, 7, 0.10), transparent 30rem),
    var(--cream);
  color: var(--ink);
}

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

video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 245, 0.84);
  backdrop-filter: blur(22px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 800;
}

.brand-copy small {
  color: var(--gold-strong);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(49, 38, 22, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a,
.header-cta,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: rgba(35, 72, 53, 0.3);
}

.header-cta,
.button {
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-cta {
  color: #fff;
  background: var(--moss);
  box-shadow: 0 10px 24px rgba(35, 72, 53, 0.16);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: calc(100dvh - 170px);
  display: grid;
  align-items: end;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(248, 250, 245, 0.98) 0%, rgba(248, 250, 245, 0.89) 36%, rgba(248, 250, 245, 0.34) 68%, rgba(248, 250, 245, 0.52) 100%),
    linear-gradient(180deg, rgba(248, 250, 245, 0.08) 0%, rgba(248, 250, 245, 0.95) 96%);
}

.hero-bg img,
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.95) contrast(1.02);
}

.hero-bg video {
  z-index: 1;
}

.hero-bg img {
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 62px) 0 clamp(24px, 3vw, 36px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(42px, 5.9vw, 70px);
  line-height: 0.98;
  color: var(--ink);
}

h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
}

p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.62;
}

.hero-copy {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: clamp(18px, 1.7vw, 22px);
  color: #322d25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button.primary {
  color: #fff;
  background: linear-gradient(180deg, var(--moss-2), var(--moss));
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 34px rgba(35, 72, 53, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 252, 246, 0.74);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 30px rgba(49, 38, 22, 0.09);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(560px, 100%);
  margin: 22px 0 0;
}

.hero-stats div {
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.hero-stats dt {
  margin-bottom: 3px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.proof-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 250, 0.64);
}

.proof-strip span,
.query-list a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 126px) 0;
}

section {
  scroll-margin-top: 88px;
}

.two-column,
.search-playbook {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.stack p:first-child {
  margin-top: 0;
}

.stack p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
}

.loop-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.loop-grid article,
.benefit-grid article,
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: 0 22px 60px -46px var(--shadow);
}

.loop-grid article,
.benefit-grid article {
  min-height: 268px;
  padding: 22px;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  margin-bottom: 46px;
  border-radius: 999px;
  border: 1px solid rgba(161, 98, 7, 0.22);
  color: var(--gold-strong);
  background: rgba(161, 98, 7, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.loop-grid p,
.benefit-grid p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

.showcase {
  width: min(1320px, calc(100% - 36px));
}

.motion-band {
  position: relative;
  min-height: min(720px, calc(100dvh - 88px));
  display: grid;
  align-items: end;
  overflow: hidden;
  margin: 0;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 46px);
  background: #101a14;
  color: #fff;
}

.motion-band video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.motion-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 17, 12, 0.86) 0%, rgba(9, 17, 12, 0.58) 34%, rgba(9, 17, 12, 0.14) 72%, rgba(9, 17, 12, 0.34) 100%),
    linear-gradient(180deg, rgba(9, 17, 12, 0.04), rgba(9, 17, 12, 0.74));
}

.motion-band-content {
  position: relative;
  width: min(660px, 100%);
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.motion-band .eyebrow,
.motion-band h2,
.motion-band p {
  color: #fff;
}

.motion-band p {
  color: rgba(255, 255, 255, 0.82);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
}

.product-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 36px 90px -54px rgba(49, 38, 22, 0.56);
}

.product-shot.large {
  grid-row: span 2;
}

.product-shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.43 / 1;
  object-fit: cover;
}

.product-shot:not(.large) img {
  aspect-ratio: 1.49 / 1;
}

.product-shot figcaption {
  min-height: 48px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #1b1916;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.4;
}

.benefits {
  padding-top: 0;
}

.feature-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
  width: min(1320px, calc(100% - 36px));
  margin-top: 0;
  padding: clamp(44px, 6vw, 68px);
  border-radius: var(--radius);
  background: var(--moss);
  color: #fff;
  box-shadow: 0 36px 90px -60px rgba(35, 72, 53, 0.72);
}

.feature-teaser-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-teaser h2,
.feature-teaser p {
  color: #fff;
}

.feature-teaser-copy > p {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 24px;
}

.teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.feature-teaser .button.secondary {
  background: rgba(255, 252, 246, 0.9);
}

.feature-teaser-grid,
.feature-grid {
  display: grid;
  gap: 14px;
}

.feature-teaser-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-teaser-grid article,
.feature-grid article,
.feature-list p {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-teaser-grid article {
  min-height: 230px;
  padding: 22px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.feature-teaser-grid span,
.feature-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.feature-teaser-grid p,
.feature-grid p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.58;
}

.feature-teaser-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.search-playbook {
  width: min(1320px, calc(100% - 36px));
  padding: clamp(56px, 8vw, 90px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.94), rgba(240, 232, 216, 0.78)),
    var(--cream-deep);
  box-shadow: 0 36px 90px -60px var(--shadow);
}

.query-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.query-list a:hover {
  border-color: rgba(35, 72, 53, 0.36);
  color: var(--moss);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 0;
}

summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 16px;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 56px;
  padding: clamp(38px, 6vw, 64px);
  border: 1px solid rgba(35, 72, 53, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(35, 72, 53, 0.95), rgba(42, 86, 62, 0.9)),
    var(--moss);
  color: #fff;
  box-shadow: 0 36px 90px -56px rgba(35, 72, 53, 0.72);
}

.final-cta .eyebrow,
.final-cta p,
.final-cta h2 {
  color: #fff;
}

.final-cta p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.82);
}

.final-cta .button.primary {
  flex: 0 0 auto;
  background: #fff;
  color: var(--moss);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 46px);
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 14px;
}

.feature-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.92fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
  width: min(1320px, calc(100% - 36px));
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 106px) 0 clamp(50px, 7vw, 84px);
}

.feature-hero h1 {
  max-width: 780px;
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 0.9;
}

.feature-hero-copy > p {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(18px, 1.8vw, 23px);
}

.feature-hero-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: 0 38px 90px -56px rgba(49, 38, 22, 0.58);
}

.feature-hero-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}

.feature-hero-tags span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 250, 0.72);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
}

.feature-grid-section .section-heading {
  max-width: 860px;
}

.feature-grid article {
  min-height: 270px;
  padding: 24px;
  background: var(--glass-strong);
  box-shadow: 0 22px 60px -46px var(--shadow);
}

.feature-grid p {
  color: var(--ink-soft);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  gap: clamp(30px, 5vw, 62px);
  align-items: start;
  padding: clamp(58px, 8vw, 92px) clamp(18px, 4vw, 46px);
  background: var(--moss);
  color: #fff;
}

.feature-band h2 {
  color: #fff;
}

.feature-band p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list p {
  max-width: none;
  margin: 0;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.48;
}

.comparison-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  width: min(1380px, calc(100% - 36px));
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
}

.comparison-hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 90px);
  line-height: 0.9;
}

.comparison-hero-copy > p {
  max-width: 710px;
  margin: 22px 0 0;
  font-size: clamp(18px, 1.8vw, 23px);
}

.comparison-art {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: 0 38px 90px -56px rgba(49, 38, 22, 0.58);
}

.comparison-art img {
  width: 100%;
  aspect-ratio: 2.85 / 1;
  object-fit: cover;
}

.comparison-art figcaption {
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.comparison-summary-grid,
.ease-grid {
  display: grid;
  gap: 14px;
}

.comparison-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.comparison-summary-grid article,
.ease-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: 0 22px 60px -46px var(--shadow);
}

.comparison-summary-grid article {
  min-height: 250px;
  padding: 22px;
}

.comparison-summary-grid span,
.story-card span,
.ease-card span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-summary-grid p,
.story-card p,
.ease-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.scroll-story {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) 0;
}

.story-visual {
  position: sticky;
  top: 96px;
  align-self: start;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(35, 72, 53, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.62), rgba(35, 72, 53, 0.08)),
    var(--cream-deep);
}

.story-visual img {
  width: min(78%, 420px);
  border-radius: 28px;
  box-shadow: 0 34px 80px -56px rgba(20, 26, 21, 0.82);
  animation: shepherd-float 6s ease-in-out infinite;
}

.story-loop {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.story-loop span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(35, 72, 53, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 250, 0.74);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}

.story-cards {
  display: grid;
  gap: 28px;
}

.story-card {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 250, 0.82);
  padding: clamp(26px, 4vw, 42px);
}

.footprint-section {
  width: min(1320px, calc(100% - 36px));
}

.size-bars {
  display: grid;
  gap: 12px;
}

.size-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(190px, 0.3fr) minmax(180px, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 66px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
}

.size-row span {
  font-weight: 900;
}

.size-row strong {
  color: var(--ink-soft);
  font-size: 15px;
}

.size-row i {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--moss), var(--gold));
  transform-origin: left;
}

.david-size i { width: 8%; }
.old-size i { width: 14%; }
.claude-size i { width: 32%; }
.openclaw-size i { width: 48%; }
.vscode-size i { width: 72%; }
.codex-size i { width: 86%; }
.hermes-size i { width: 100%; }

.ease-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ease-card {
  min-height: 230px;
  padding: 24px;
}

.ease-card strong {
  display: block;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.95;
}

.ease-card.highlight {
  background: var(--moss);
  color: #fff;
}

.ease-card.highlight span,
.ease-card.highlight strong,
.ease-card.highlight p {
  color: #fff;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  box-shadow: 0 32px 80px -60px var(--shadow);
}

.comparison-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: var(--ink);
}

.comparison-table caption {
  padding: 18px;
  color: var(--ink-muted);
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.48;
}

.comparison-table thead th {
  border-top: 0;
  background: rgba(231, 238, 230, 0.62);
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.comparison-table tbody th {
  min-width: 180px;
  font-size: 16px;
}

.comparison-table tbody tr:hover {
  background: rgba(35, 72, 53, 0.06);
}

.comparison-table .david-row {
  background: rgba(35, 72, 53, 0.08);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.source-grid a {
  min-height: 54px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  color: var(--ink-soft);
  font-weight: 800;
  padding: 0 14px;
}

.source-grid a:hover {
  border-color: rgba(35, 72, 53, 0.36);
  color: var(--moss);
}

@keyframes shepherd-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@supports (animation-timeline: view()) {
  .story-card {
    animation: story-reveal both ease-out;
    animation-timeline: view();
    animation-range: entry 12% cover 42%;
  }
}

@keyframes story-reveal {
  from {
    opacity: 0.44;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: calc(100dvh - 126px);
  }

  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(248, 250, 245, 0.96) 0%, rgba(248, 250, 245, 0.84) 46%, rgba(248, 250, 245, 0.98) 100%);
  }

  .hero-bg img,
  .hero-bg video {
    object-position: center bottom;
    opacity: 0.5;
  }

  .two-column,
  .search-playbook,
  .showcase-grid,
  .feature-teaser,
  .feature-hero,
  .feature-band,
  .comparison-hero,
  .scroll-story {
    grid-template-columns: 1fr;
  }

  .loop-grid,
  .benefit-grid,
  .feature-teaser-grid,
  .feature-grid,
  .comparison-summary-grid,
  .ease-grid,
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-visual {
    position: relative;
    top: auto;
    min-height: 520px;
  }

  .product-shot.large {
    grid-row: auto;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .motion-band {
    min-height: 620px;
  }

  .motion-band video {
    object-position: 58% center;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
  }

  .brand-copy {
    display: none;
  }

  .header-cta {
    padding: 0 12px;
    font-size: 14px;
  }

  .hero-content {
    width: min(100% - 28px, var(--max));
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .hero-stats,
  .loop-grid,
  .benefit-grid,
  .feature-teaser-grid,
  .feature-grid,
  .comparison-summary-grid,
  .ease-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: none;
  }

  .hero-stats div {
    min-height: 70px;
  }

  .hero-actions,
  .hero-actions .button,
  .final-cta .button {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, var(--max));
  }

  .loop-grid article,
  .benefit-grid article,
  .feature-teaser-grid article,
  .feature-grid article {
    min-height: auto;
  }

  .feature-teaser,
  .feature-hero,
  .comparison-hero,
  .scroll-story {
    width: min(100% - 28px, var(--max));
  }

  .feature-teaser {
    padding: 34px 18px;
  }

  .feature-hero {
    min-height: auto;
    padding-top: 52px;
  }

  .feature-hero h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .comparison-hero {
    min-height: auto;
    padding-top: 52px;
  }

  .comparison-hero h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .story-visual {
    min-height: 440px;
  }

  .story-loop {
    grid-template-columns: 1fr;
  }

  .story-card {
    min-height: auto;
  }

  .size-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .comparison-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .comparison-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .comparison-table caption {
    padding: 0 0 12px;
  }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table tbody tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffdf7;
  }

  .comparison-table th,
  .comparison-table td {
    border-top: 1px solid var(--line);
    padding: 14px 16px;
  }

  .comparison-table tbody th {
    min-width: 0;
    border-top: 0;
    background: rgba(231, 238, 230, 0.62);
    font-size: 17px;
  }

  .comparison-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--gold-strong);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .feature-band {
    padding: 54px 18px;
  }

  .step {
    margin-bottom: 30px;
  }

  .search-playbook {
    padding: 36px 18px;
  }

  .motion-band {
    min-height: 560px;
    padding: 34px 14px;
  }

  .motion-scrim {
    background:
      linear-gradient(180deg, rgba(9, 17, 12, 0.76) 0%, rgba(9, 17, 12, 0.42) 42%, rgba(9, 17, 12, 0.92) 100%);
  }

  .motion-band-content {
    margin-left: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  video {
    display: none !important;
  }

  .story-card,
  .story-visual img {
    animation: none !important;
  }
}
