:root {
  --bg: #ddd6c6;
  --surface: #d2cab8;
  --paper: #eeefeb;
  --ink: #292a26;
  --muted: #545249;
  --accent: #4f6238;
  --deep: #22241f;
  --font-dot: "Doto", "Courier New";
  --margin: clamp(20px, 4vw, 64px);
  --body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --small: clamp(.8125rem, .79rem + .1vw, .875rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-bottom: 92px; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: Switzer, Arial, sans-serif; font-size: var(--body); line-height: 1.5; letter-spacing: -.01em; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #8ea56c; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 10px 14px; background: var(--paper); }
.skip-link:focus { top: 16px; }
.offer-nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 0 var(--margin); background: var(--deep); color: var(--paper); }
.offer-nav .wordmark { font-family: var(--font-dot); font-weight: 700; text-decoration: none; }
.offer-nav nav { display: flex; gap: clamp(12px, 1.7vw, 26px); align-items: center; overflow-x: auto; white-space: nowrap; }
.offer-nav nav a { color: #d8d9d1; font-size: var(--small); text-underline-offset: 5px; }
.offer-nav nav a[aria-current="page"] { color: #fff; text-decoration-thickness: 2px; }
.detail-hero { min-height: 76svh; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--deep); color: var(--paper); }
.detail-hero-copy { align-self: center; padding: clamp(70px, 8vw, 120px) var(--margin); }
.detail-hero h1, .detail-section h2, .detail-close h2 { margin: 0; font-family: var(--font-dot); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.detail-hero h1 { max-width: 18ch; font-size: clamp(42px, 5vw, 72px); }
.detail-hero-copy > p { max-width: 46ch; margin: 28px 0 0; color: #d8d9d1; font-size: clamp(18px, 1.5vw, 22px); }
.detail-price { display: flex; flex-direction: column; justify-content: center; padding: clamp(60px, 8vw, 110px) var(--margin); background: #30332d; }
.detail-price strong { font-family: var(--font-dot); font-size: clamp(64px, 8vw, 118px); line-height: .86; letter-spacing: -.06em; }
.detail-price .price-prefix { margin-bottom: 14px; color: #d8d9d1; font-family: var(--font-dot); font-size: clamp(18px, 2vw, 28px); }
.detail-price span { max-width: 34ch; margin-top: 24px; color: #d8d9d1; }
.detail-section { padding: clamp(84px, 9vw, 130px) var(--margin); }
.detail-section h2, .detail-close h2 { max-width: 18ch; font-size: clamp(36px, 4.2vw, 62px); }
.scope-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10vw; }
.scope-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.scope-list li { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; min-height: 76px; padding: 16px 20px; background: var(--paper); }
.scope-list span { color: var(--muted); font-size: var(--small); }
.detail-output { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; background: var(--paper); }
.output-copy p { max-width: 46ch; margin: 28px 0; }
.output-copy ul { display: grid; gap: 10px; padding-left: 1.1em; }
.report-preview { align-self: center; padding: clamp(24px, 4vw, 48px); background: #fff; border-radius: 2px; }
.report-preview header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 42px; color: var(--muted); font-family: var(--font-dot); font-size: var(--small); }
.preview-finding { margin-bottom: 8px; padding: 22px; background: #f0ddd5; }
.preview-finding strong, .preview-verified strong { display: block; font-weight: 500; }
.preview-finding span, .preview-verified span { color: var(--muted); font-size: var(--small); }
.preview-verified { padding: 22px; background: #dce5d5; }
.detail-gallery { display: grid; grid-template-columns: 1.35fr .65fr 1fr; grid-template-rows: 260px 260px; gap: 8px; padding: 0 var(--margin) clamp(84px, 9vw, 130px); background: var(--paper); }
.detail-gallery figure { margin: 0; overflow: hidden; background: var(--deep); }
.detail-gallery figure:first-child { grid-row: 1 / 3; }
.detail-gallery figure:last-child { grid-column: 2 / 4; }
.detail-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.82) contrast(1.03); }
.detail-gallery figure:nth-child(2) img { object-position: 28% 28%; }
.detail-gallery figure:nth-child(3) img { object-position: 70% 70%; }
.detail-gallery figure:nth-child(4) img { object-position: center 82%; }
.fit-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10vw; }
.fit-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fit-columns div { padding: clamp(24px, 3vw, 38px); background: var(--surface); }
.fit-columns div:last-child { background: #c7c0af; }
.fit-columns h3 { margin: 0 0 24px; font-family: var(--font-dot); font-size: clamp(24px, 2.5vw, 34px); }
.fit-columns ul { margin: 0; padding-left: 1.1em; }
.fit-columns li + li { margin-top: 10px; }
.detail-close { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; padding: clamp(84px, 9vw, 130px) var(--margin); background: var(--deep); color: var(--paper); }
.detail-close p { max-width: 42ch; margin: 0; color: #d8d9d1; }
.detail-footer { min-height: 160px; display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 var(--margin) 32px; color: var(--muted); font-size: var(--small); }
.detail-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.sticky-checkout { position: fixed; z-index: 10; right: 20px; bottom: 20px; display: block; } /* taste-skill-ignore: this is the real persistent checkout overlay */
.sticky-offer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.checkout-button { min-width: 190px; min-height: 58px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 2px; padding: 0 24px; background: var(--accent); color: #fff; font-family: var(--font-dot); font-weight: 700; cursor: pointer; }
.checkout-button:hover { transform: translateY(-2px); }
.motion .motion-target { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.16,1,.3,1); }
.motion .motion-target.is-visible { opacity: 1; transform: translateY(0); }
.motion .detail-gallery img { animation: photo-drift 12s ease-in-out infinite alternate; }
@keyframes photo-drift { from { transform: scale(1.01); } to { transform: scale(1.06); } }

@media (max-width: 760px) {
  body { padding-bottom: 96px; }
  .offer-nav { min-height: 70px; }
  .offer-nav nav a:not([aria-current="page"]) { display: none; }
  .detail-hero { min-height: auto; grid-template-columns: 1fr; }
  .detail-hero-copy { padding-top: 100px; }
  .detail-price { min-height: 260px; }
  .scope-layout, .detail-output, .fit-layout, .detail-close { grid-template-columns: 1fr; }
  .scope-layout, .fit-layout { gap: 54px; }
  .detail-output { gap: 60px; }
  .detail-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 200px; }
  .detail-gallery figure:first-child { grid-row: auto; }
  .detail-gallery figure:last-child { grid-column: 1 / 3; }
  .fit-columns { grid-template-columns: 1fr; }
  .sticky-checkout { right: 14px; bottom: 14px; }
  .checkout-button { min-width: 96px; min-height: 50px; padding: 0 14px; font-size: 13px; }
  .detail-footer { align-items: flex-start; flex-direction: column; justify-content: end; }
}

@media (max-width: 420px) {
  .sticky-checkout { right: 8px; bottom: 8px; }
  .checkout-button { min-width: 76px; padding: 0 9px; }
  body[data-offer="remediation"] .checkout-button { min-width: 46px; width: 46px; height: 96px; padding: 8px 0; writing-mode: vertical-rl; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .motion .motion-target { opacity: 1; transform: none; }
  .motion .detail-gallery img { animation: none; }
}
