/* =========================================================================
   tfd.warren.digital — The Farmer's Dog–themed design system
   A personal site for Warren Velázquez, styled after The Farmer's Dog,
   built as the pitch for: Commercial Program Lead, The Farmer's Dog.
   Self-contained. No build step. Shared by index.html / work.html / about.html
   Not affiliated with or endorsed by The Farmer's Dog, Inc.
   ========================================================================= */

:root {
  /* TFD-inspired palette: warm, fresh, honest */
  --tfd-bg:        #FBF9F4;   /* cream page */
  --tfd-bg-2:      #F5F1E6;   /* warm section wash */
  --tfd-surface:   #FFFFFF;   /* cards */
  --tfd-wheat:     #F3E9D2;   /* butter/wheat highlight */
  --tfd-line:      #E9E4D8;   /* soft hairlines */
  --tfd-line-2:    #D9D2C2;

  --tfd-red:       #E4573D;   /* primary CTA warm red */
  --tfd-red-hi:    #EF6B52;
  --tfd-red-deep:  #C94A32;
  --tfd-green:     #3E6B4F;   /* fresh veggie green */
  --tfd-green-soft:#E4EDE4;
  --tfd-gold:      #D9A441;   /* kibble-free gold, sparing */

  --tfd-ink:       #21201D;   /* near-black warm ink */
  --tfd-ink-2:     #5D5A53;   /* secondary */
  --tfd-ink-3:     #8B877D;   /* tertiary / captions */

  --tfd-radius:    16px;
  --tfd-radius-lg: 24px;
  --tfd-shadow:      0 18px 50px rgba(58,50,35,.14);
  --tfd-shadow-card: 0 8px 26px rgba(58,50,35,.10);

  --tfd-maxw:      1240px;
  --tfd-ease:      cubic-bezier(.16,.84,.44,1);

  --tfd-font: "DM Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--tfd-bg);
  color: var(--tfd-ink);
  font-family: var(--tfd-font);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--tfd-red); color: #fff; }

/* warm ambient wash, like sunlight on a kitchen counter */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1100px 560px at 85% -8%, rgba(217,164,65,.10), transparent 60%),
    radial-gradient(900px 640px at -8% 12%, rgba(62,107,79,.07), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

:focus-visible { outline: 3px solid var(--tfd-red); outline-offset: 2px; border-radius: 6px; }

/* =====================  LAYOUT  ===================== */
.tfd-wrap { max-width: var(--tfd-maxw); margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.tfd-section { padding: 52px 0; position: relative; z-index: 1; }
.tfd-section.wash { background: var(--tfd-bg-2); }
@media (max-width: 720px){
  .tfd-wrap { padding: 0 20px; }
  .tfd-section { padding: 36px 0; }
}

/* =====================  TOP NAV  ===================== */
.tfd-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,249,244,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--tfd-line);
}
.tfd-nav-inner {
  max-width: var(--tfd-maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 26px;
  padding: 14px 40px;
}
@media (max-width: 720px){ .tfd-nav-inner { padding: 12px 20px; gap: 12px; } }

/* Wordmark: "warren" in ink + paw icon + "digital" in red — friendly lockup */
.tfd-logo {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; letter-spacing: -.02em; line-height: 1; font-size: 21px;
}
.tfd-logo .w { color: var(--tfd-ink); }
.tfd-logo .d { color: var(--tfd-red); }
.tfd-logo .paw { width: 20px; height: 20px; flex: none; }
.tfd-logo .paw path { fill: var(--tfd-green); }

.tfd-navlinks { display: flex; align-items: center; gap: 24px; margin-left: 10px; }
.tfd-navlinks a {
  font-size: 15px; color: var(--tfd-ink-2); font-weight: 600;
  transition: color .2s var(--tfd-ease); position: relative; padding: 4px 0;
}
.tfd-navlinks a:hover, .tfd-navlinks a[aria-current="page"] { color: var(--tfd-ink); }
.tfd-navlinks a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: var(--tfd-red); border-radius: 3px;
}
.tfd-nav-spacer { flex: 1; }
.tfd-nav-cta {
  background: var(--tfd-red); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 10px 20px; border-radius: 999px;
  transition: background .2s var(--tfd-ease), transform .2s var(--tfd-ease);
  white-space: nowrap;
}
.tfd-nav-cta:hover { background: var(--tfd-red-deep); transform: translateY(-1px); }

/* ---- Mobile nav: hamburger + slide-down (injected by app.js) ---- */
.tfd-nav-burger { display: none; }
@media (max-width: 880px){
  .tfd-navlinks {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 59;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--tfd-surface); border-top: 1px solid var(--tfd-line);
    box-shadow: 0 18px 40px rgba(58,50,35,.16);
    padding: 4px 20px; max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s var(--tfd-ease), opacity .2s var(--tfd-ease), padding .3s var(--tfd-ease);
  }
  .tfd-nav.nav-open .tfd-navlinks { max-height: 70vh; opacity: 1; pointer-events: auto; padding: 4px 20px 12px; }
  .tfd-navlinks a { padding: 14px 2px; font-size: 16px; color: var(--tfd-ink); border-bottom: 1px solid var(--tfd-line); }
  .tfd-navlinks a:last-child { border-bottom: 0; }
  .tfd-navlinks a[aria-current="page"] { color: var(--tfd-red); }
  .tfd-navlinks a[aria-current="page"]::after { display: none; }
  .tfd-nav-burger {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; flex: none; width: 42px; height: 42px; border: 1px solid var(--tfd-line-2);
    border-radius: 12px; background: var(--tfd-surface); cursor: pointer; padding: 0; margin-left: 2px;
    transition: background .2s;
  }
  .tfd-nav-burger:hover { background: var(--tfd-wheat); }
  .tfd-nav-burger span {
    display: block; width: 18px; height: 2px; background: var(--tfd-ink); border-radius: 2px;
    transition: transform .25s var(--tfd-ease), opacity .2s var(--tfd-ease);
  }
  .tfd-nav.nav-open .tfd-nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .tfd-nav.nav-open .tfd-nav-burger span:nth-child(2) { opacity: 0; }
  .tfd-nav.nav-open .tfd-nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 400px){
  .tfd-nav-cta { padding: 8px 14px; font-size: 13px; }
  .tfd-logo { font-size: 18px; }
}

/* =====================  BADGES / PILLS / TYPE  ===================== */
.tfd-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--tfd-green);
  background: var(--tfd-green-soft); border: 1px solid rgba(62,107,79,.28);
  padding: 3px 11px; border-radius: 999px;
}
.tfd-tag.red { color: var(--tfd-red-deep); background: rgba(228,87,61,.10); border-color: rgba(228,87,61,.30); }
.tfd-tag.gold { color: #8a6516; background: rgba(217,164,65,.14); border-color: rgba(217,164,65,.4); }

.tfd-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--tfd-ink-2); font-weight: 600;
  background: var(--tfd-bg-2); border: 1px solid var(--tfd-line);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.tfd-meta {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--tfd-ink-2); font-weight: 500; flex-wrap: wrap;
}
.tfd-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--tfd-ink-3); }

.tfd-kicker {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tfd-red-deep); margin-bottom: 10px;
}
.tfd-h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; margin: 0 0 12px; }
.tfd-lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--tfd-ink-2); max-width: 760px; margin: 0 0 8px; }
.fine { font-size: 12.5px; color: var(--tfd-ink-3); }

/* =====================  BUTTONS  ===================== */
.tfd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--tfd-font);
  font-weight: 700; font-size: 15.5px; padding: 13px 26px; border-radius: 999px;
  cursor: pointer; border: 0; white-space: nowrap;
  transition: background .2s var(--tfd-ease), transform .15s var(--tfd-ease), color .2s var(--tfd-ease), border-color .2s var(--tfd-ease);
}
.tfd-btn-primary { background: var(--tfd-red); color: #fff; box-shadow: 0 6px 18px rgba(228,87,61,.28); }
.tfd-btn-primary:hover { background: var(--tfd-red-deep); transform: translateY(-1px); }
.tfd-btn-ghost { background: var(--tfd-wheat); color: var(--tfd-ink); }
.tfd-btn-ghost:hover { background: #ecdfc0; }
.tfd-btn-outline { background: transparent; color: var(--tfd-ink); border: 2px solid var(--tfd-line-2); }
.tfd-btn-outline:hover { border-color: var(--tfd-ink); }

/* =====================  HERO  ===================== */
.tfd-hero { padding: 64px 0 46px; }
.tfd-hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.tfd-hero h1 {
  font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.028em;
  font-weight: 800; margin: 10px 0 18px;
}
.tfd-hero h1 .accent { color: var(--tfd-red); }
.tfd-hero .tfd-lead { margin-bottom: 24px; }
.tfd-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
@media (max-width: 940px){
  .tfd-hero { padding: 40px 0 30px; }
  .tfd-hero-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---- The Warren + dog photo slot ----
   <figure class="tfd-photo"><img src="warren-dog.jpg" onerror="...add('no-img')">
   <figcaption>…</figcaption><div class="ph"><svg…/><p>…</p></div></figure> */
.tfd-photo {
  margin: 0; position: relative; border-radius: var(--tfd-radius-lg); overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, #f6ecd6 0%, transparent 55%),
    linear-gradient(150deg, #f1e8d3 0%, #e7ecdd 55%, #dbe6da 100%);
  box-shadow: var(--tfd-shadow);
  aspect-ratio: 4 / 4.6;
}
.tfd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tfd-photo figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  background: rgba(255,255,255,.92); color: var(--tfd-ink);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(58,50,35,.18);
}
.tfd-photo .ph {
  position: absolute; inset: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 24px; z-index: 2;
}
.tfd-photo .ph svg { width: 76px; height: 76px; opacity: .5; }
.tfd-photo .ph svg path { fill: var(--tfd-green); }
.tfd-photo .ph p { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--tfd-ink-2); max-width: 240px; }
.tfd-photo.no-img img { display: none; }
.tfd-photo.no-img .ph { display: flex; }
.tfd-photo.small { aspect-ratio: 4 / 3.4; }

/* =====================  NEED CARDS (plan-builder grid)  ===================== */
.tfd-needs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.tfd-need {
  background: var(--tfd-surface); border: 1px solid var(--tfd-line);
  border-radius: var(--tfd-radius-lg); padding: 24px 22px 22px;
  box-shadow: var(--tfd-shadow-card);
  transition: transform .22s var(--tfd-ease), box-shadow .22s var(--tfd-ease), border-color .22s var(--tfd-ease);
  display: block;
}
.tfd-need:hover { transform: translateY(-4px); box-shadow: var(--tfd-shadow); border-color: var(--tfd-line-2); }
.tfd-need .ico {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--tfd-green-soft); margin-bottom: 14px;
}
.tfd-need .ico svg { width: 24px; height: 24px; }
.tfd-need .ico svg path, .tfd-need .ico svg circle { fill: var(--tfd-green); }
.tfd-need.red .ico { background: rgba(228,87,61,.10); }
.tfd-need.red .ico svg path, .tfd-need.red .ico svg circle { fill: var(--tfd-red); }
.tfd-need.gold .ico { background: rgba(217,164,65,.14); }
.tfd-need.gold .ico svg path, .tfd-need.gold .ico svg circle { fill: #a87c1f; }
.tfd-need h3 { font-size: 18.5px; margin: 0 0 6px; letter-spacing: -.01em; }
.tfd-need p { font-size: 14.5px; color: var(--tfd-ink-2); margin: 0; }
@media (max-width: 980px){ .tfd-needs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .tfd-needs { grid-template-columns: 1fr; } }

/* =====================  STRIKETHROUGH BLOCK (the anti-kibble move)  ===================== */
.tfd-strike-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tfd-strike {
  background: var(--tfd-surface); border: 1px solid var(--tfd-line);
  border-radius: var(--tfd-radius-lg); padding: 26px 24px;
  box-shadow: var(--tfd-shadow-card);
}
.tfd-strike h3 {
  font-size: 22px; margin: 0 0 10px; letter-spacing: -.01em;
  color: var(--tfd-ink-3); text-decoration: line-through;
  text-decoration-color: var(--tfd-red); text-decoration-thickness: 3px;
}
.tfd-strike p { margin: 0; font-size: 15px; color: var(--tfd-ink-2); }
.tfd-strike p strong { color: var(--tfd-ink); }
@media (max-width: 900px){ .tfd-strike-grid { grid-template-columns: 1fr; } }

/* =====================  ROWS + RECIPE CARDS  ===================== */
.tfd-row { margin: 8px 0 26px; }
.tfd-row-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.tfd-row-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.015em; margin: 0; }
.tfd-row-sub { font-size: 14px; color: var(--tfd-ink-3); font-weight: 500; }
.tfd-row-scrollcue { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--tfd-ink-3); opacity: 0; transition: opacity .3s; }
.tfd-row-scrollcue.show { opacity: 1; }
.tfd-row-scrollcue .arrow { color: var(--tfd-red); }

.tfd-row-viewport { position: relative; }
.tfd-row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 330px);
  gap: 18px; overflow-x: auto; padding: 6px 4px 18px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--tfd-line-2) transparent;
}
.tfd-row-scroll > * { scroll-snap-align: start; }
.tfd-row-viewport.scrollable::before, .tfd-row-viewport.scrollable::after {
  content: ""; position: absolute; top: 0; bottom: 14px; width: 42px; z-index: 2; pointer-events: none;
  transition: opacity .25s;
}
.tfd-row-viewport.scrollable::before { left: -2px; background: linear-gradient(90deg, var(--tfd-bg), transparent); opacity: 1; }
.tfd-row-viewport.scrollable::after { right: -2px; background: linear-gradient(270deg, var(--tfd-bg), transparent); opacity: 1; }
.tfd-row-viewport.at-start::before { opacity: 0; }
.tfd-row-viewport.at-end::after { opacity: 0; }
.tfd-row-arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tfd-line-2);
  background: var(--tfd-surface); color: var(--tfd-ink); cursor: pointer;
  box-shadow: 0 6px 18px rgba(58,50,35,.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; transition: background .2s, opacity .2s, transform .2s;
}
.tfd-row-arrow:hover { background: var(--tfd-wheat); }
.tfd-row-arrow.prev { left: -14px; }
.tfd-row-arrow.next { right: -14px; }
.tfd-row-arrow[disabled] { opacity: 0; pointer-events: none; }
.tfd-row-arrow .chev { transform: translateY(-1px); }

.tfd-card {
  background: var(--tfd-surface); border: 1px solid var(--tfd-line);
  border-radius: var(--tfd-radius-lg); overflow: hidden; cursor: pointer;
  box-shadow: var(--tfd-shadow-card); position: relative;
  transition: transform .24s var(--tfd-ease), box-shadow .24s var(--tfd-ease), border-color .24s var(--tfd-ease);
  display: flex; flex-direction: column;
}
.tfd-card:hover, .tfd-card:focus-visible { transform: translateY(-5px); box-shadow: var(--tfd-shadow); border-color: var(--tfd-line-2); }
.tfd-card-art {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(140deg, #f0e6cf 0%, #e5ecdf 55%, #d7e4d6 100%);
}
.tfd-card-art .glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 80% at 18% 10%, rgba(217,164,65,.28), transparent 55%),
    radial-gradient(80% 90% at 85% 90%, rgba(62,107,79,.22), transparent 60%);
}
.tfd-card-art.g-red { background: linear-gradient(140deg, #f6e3da 0%, #f0e6cf 60%, #ecd9c8 100%); }
.tfd-card-art.g-red .glow {
  background:
    radial-gradient(90% 80% at 18% 10%, rgba(228,87,61,.25), transparent 55%),
    radial-gradient(80% 90% at 85% 90%, rgba(217,164,65,.25), transparent 60%);
}
.tfd-card-art.g-green { background: linear-gradient(140deg, #e2ecdf 0%, #d8e6d8 55%, #e9ecd8 100%); }
.tfd-card-art.g-green .glow {
  background:
    radial-gradient(90% 80% at 18% 10%, rgba(62,107,79,.30), transparent 55%),
    radial-gradient(80% 90% at 85% 90%, rgba(217,164,65,.22), transparent 60%);
}
.tfd-card-art.has-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.tfd-card-art.has-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(33,32,29,.28) 100%);
}
/* logo art: contain on dark, no scrim (e.g., Pro Plan Vet Diets) */
.tfd-card-art.logo-img { background: #0d0c0a; }
.tfd-card-art.logo-img img { object-fit: contain; padding: 16px; }
.tfd-card-art.logo-img::after { display: none; }
.tfd-topbadge { position: absolute; top: 12px; left: 12px; z-index: 3; }
.tfd-playhint {
  position: absolute; right: 14px; bottom: 12px; z-index: 3;
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s var(--tfd-ease), transform .22s var(--tfd-ease);
}
.tfd-card:hover .tfd-playhint, .tfd-card:focus-visible .tfd-playhint { opacity: 1; transform: translateY(0); }
.tfd-playhint .disc {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--tfd-surface); color: var(--tfd-red);
  box-shadow: 0 6px 16px rgba(58,50,35,.24);
  font-size: 15px; font-weight: 800;
}
.tfd-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tfd-card-kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tfd-green); }
.tfd-card-title { font-size: 18.5px; letter-spacing: -.01em; margin: 0; line-height: 1.25; }
.tfd-card-desc { font-size: 14.5px; color: var(--tfd-ink-2); margin: 0; flex: 1; }
.tfd-card-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* =====================  STEPS ("How this plan works")  ===================== */
.tfd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.tfd-steps.six { grid-template-columns: repeat(3, 1fr); }
.tfd-step {
  background: var(--tfd-surface); border: 1px solid var(--tfd-line);
  border-radius: var(--tfd-radius-lg); padding: 26px 24px 24px; position: relative;
  box-shadow: var(--tfd-shadow-card);
}
.tfd-step .num {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--tfd-red); color: #fff; font-weight: 800; font-size: 19px;
  margin-bottom: 14px; box-shadow: 0 6px 16px rgba(228,87,61,.3);
}
.tfd-step.green .num { background: var(--tfd-green); box-shadow: 0 6px 16px rgba(62,107,79,.3); }
.tfd-step h3 { margin: 0 0 8px; font-size: 18.5px; letter-spacing: -.01em; }
.tfd-step p { margin: 0; font-size: 14.5px; color: var(--tfd-ink-2); }
.tfd-step .eg { margin-top: 10px; font-size: 13px; color: var(--tfd-ink-3); }
.tfd-step .eg strong { color: var(--tfd-green); font-weight: 700; }
@media (max-width: 940px){ .tfd-steps, .tfd-steps.six { grid-template-columns: 1fr; } }

/* =====================  STAT STRIP  ===================== */
.tfd-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.tfd-stat {
  background: var(--tfd-surface); border: 1px solid var(--tfd-line);
  border-radius: var(--tfd-radius); padding: 20px 18px; text-align: center;
  box-shadow: var(--tfd-shadow-card);
}
.tfd-stat .v { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--tfd-red); }
.tfd-stat.green .v { color: var(--tfd-green); }
.tfd-stat .k { font-size: 13px; color: var(--tfd-ink-2); font-weight: 600; margin-top: 4px; }
@media (max-width: 980px){ .tfd-stats { grid-template-columns: repeat(2, 1fr); } .tfd-stat:last-child { grid-column: 1 / -1; } }

/* =====================  GUARANTEED ANALYSIS (the JD→proof label)  ===================== */
.tfd-ga {
  background: var(--tfd-surface); border: 3px solid var(--tfd-ink);
  border-radius: 14px; overflow: hidden; box-shadow: var(--tfd-shadow-card);
}
.tfd-ga-head {
  padding: 20px 26px 14px; border-bottom: 8px solid var(--tfd-ink);
}
.tfd-ga-head h3 {
  margin: 0; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.01em;
  text-transform: uppercase;
}
.tfd-ga-head p { margin: 6px 0 0; font-size: 13.5px; color: var(--tfd-ink-2); }
.tfd-ga-row {
  display: grid; grid-template-columns: minmax(220px, .9fr) 1.6fr; gap: 20px;
  padding: 15px 26px; border-bottom: 1px solid var(--tfd-line-2);
  font-size: 15px; align-items: start;
}
.tfd-ga-row:nth-child(even) { background: var(--tfd-bg); }
.tfd-ga-row:last-child { border-bottom: 0; }
.tfd-ga-req { font-weight: 700; letter-spacing: -.005em; }
.tfd-ga-req .min { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tfd-green); margin-top: 3px; }
.tfd-ga-proof { color: var(--tfd-ink-2); }
.tfd-ga-proof strong { color: var(--tfd-ink); font-weight: 700; }
.tfd-ga-foot { padding: 12px 26px; border-top: 8px solid var(--tfd-ink); font-size: 12.5px; color: var(--tfd-ink-3); }
@media (max-width: 760px){
  .tfd-ga-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 18px; }
  .tfd-ga-head, .tfd-ga-foot { padding-left: 18px; padding-right: 18px; }
}

/* =====================  CHECKLIST ("We're excited about you because")  ===================== */
.tfd-check { display: flex; flex-direction: column; gap: 12px; }
.tfd-check-row {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  background: var(--tfd-surface); border: 1px solid var(--tfd-line);
  border-radius: var(--tfd-radius); padding: 18px 20px;
  box-shadow: var(--tfd-shadow-card);
}
.tfd-check-row .mark {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--tfd-green); color: #fff; font-weight: 800; font-size: 15px; margin-top: 2px;
}
.tfd-check-row.amber .mark { background: var(--tfd-gold); }
.tfd-check-row h3 { margin: 0 0 4px; font-size: 16.5px; letter-spacing: -.005em; }
.tfd-check-row p { margin: 0; font-size: 14.5px; color: var(--tfd-ink-2); }
.tfd-check-row p strong { color: var(--tfd-ink); }

/* =====================  VALUES GRID  ===================== */
.tfd-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tfd-value {
  background: var(--tfd-surface); border: 1px solid var(--tfd-line);
  border-radius: var(--tfd-radius-lg); padding: 24px;
  box-shadow: var(--tfd-shadow-card);
}
.tfd-value h3 { margin: 0 0 8px; font-size: 17.5px; color: var(--tfd-green); letter-spacing: -.005em; }
.tfd-value p { margin: 0; font-size: 14.5px; color: var(--tfd-ink-2); }
.tfd-value p strong { color: var(--tfd-ink); }
@media (max-width: 760px){ .tfd-grid-2 { grid-template-columns: 1fr; } }

/* =====================  REVIEWS  ===================== */
.tfd-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tfd-review {
  background: var(--tfd-surface); border: 1px solid var(--tfd-line);
  border-radius: var(--tfd-radius-lg); padding: 26px 24px;
  box-shadow: var(--tfd-shadow-card); display: flex; flex-direction: column; gap: 12px;
}
.tfd-review .stars { color: var(--tfd-gold); font-size: 15px; letter-spacing: 3px; }
.tfd-review blockquote { margin: 0; font-size: 15px; color: var(--tfd-ink); }
.tfd-review .who { font-size: 13.5px; color: var(--tfd-ink-2); font-weight: 600; margin-top: auto; }
.tfd-review .who span { display: block; color: var(--tfd-ink-3); font-weight: 500; }
@media (max-width: 900px){ .tfd-reviews { grid-template-columns: 1fr; } }

/* =====================  DETAIL HERO (work page)  ===================== */
.tfd-detail {
  background: var(--tfd-surface); border: 1px solid var(--tfd-line);
  border-radius: var(--tfd-radius-lg); box-shadow: var(--tfd-shadow);
  overflow: hidden;
}
.tfd-detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 0; }
.tfd-detail-main { padding: 40px 44px; }
.tfd-detail-main h1, .tfd-detail-main h2.title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.02em; margin: 12px 0 14px; }
.tfd-detail-aside {
  background: var(--tfd-bg-2); border-left: 1px solid var(--tfd-line);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px;
}
.tfd-detail-aside .tfd-photo, .tfd-detail-aside .art {
  border-radius: var(--tfd-radius); overflow: hidden; position: relative; aspect-ratio: 16/10;
  background: linear-gradient(140deg, #f0e6cf 0%, #e5ecdf 55%, #d7e4d6 100%);
}
.tfd-detail-aside .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tfd-detail-aside .cap { font-size: 13px; color: var(--tfd-ink-3); }
@media (max-width: 900px){
  .tfd-detail-grid { grid-template-columns: 1fr; }
  .tfd-detail-aside { border-left: 0; border-top: 1px solid var(--tfd-line); }
  .tfd-detail-main { padding: 28px 22px; }
  .tfd-detail-aside { padding: 24px 22px; }
}

/* mini fit list inside detail asides & modals */
.tfd-fitlist { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.tfd-fitlist li {
  position: relative; display: block; padding-left: 30px;
  font-size: 13.5px; line-height: 1.5; color: var(--tfd-ink-2);
}
.tfd-fitlist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--tfd-green-soft);
  color: var(--tfd-green); font-weight: 800; font-size: 12px;
}
.tfd-fitlist li strong { color: var(--tfd-ink); }

/* =====================  PROSE  ===================== */
.tfd-prose { max-width: 78ch; }
.tfd-prose p { margin: 0 0 16px; font-size: 16px; color: var(--tfd-ink-2); }
.tfd-prose p strong { color: var(--tfd-ink); }
.tfd-prose h3 { font-size: 20px; margin: 26px 0 10px; letter-spacing: -.01em; }

/* =====================  MODALS (recipe detail overlay)  ===================== */
body.tfd-noscroll { overflow: hidden; }
.tfd-modal-scrim {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto;
  background: rgba(33,32,29,.55); backdrop-filter: blur(4px);
  display: none; padding: 40px 18px;
}
.tfd-modal-scrim.open { display: block; }
.tfd-modal {
  max-width: 860px; margin: 0 auto;
  background: var(--tfd-surface); border-radius: var(--tfd-radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden;
  animation: tfd-pop .28s var(--tfd-ease);
}
@keyframes tfd-pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.tfd-modal-hero {
  position: relative; padding: 34px 36px 26px;
  background:
    radial-gradient(110% 100% at 12% 0%, rgba(217,164,65,.20), transparent 55%),
    radial-gradient(90% 110% at 92% 100%, rgba(62,107,79,.16), transparent 60%),
    var(--tfd-bg-2);
  border-bottom: 1px solid var(--tfd-line);
}
.tfd-modal-hero h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.015em; line-height: 1.15; margin: 10px 0 16px; }
.tfd-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--tfd-line-2);
  background: var(--tfd-surface); color: var(--tfd-ink); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background .2s;
}
.tfd-modal-close:hover { background: var(--tfd-wheat); }
.tfd-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tfd-modal-body { padding: 26px 36px 34px; }
@media (max-width: 640px){
  .tfd-modal-scrim { padding: 16px 8px; }
  .tfd-modal-hero { padding: 26px 20px 20px; }
  .tfd-modal-body { padding: 20px 20px 26px; }
}

/* ---- tabs inside modals ---- */
.tfd-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--tfd-line); margin-bottom: 20px; }
.tfd-tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--tfd-font); font-size: 15px; font-weight: 700; color: var(--tfd-ink-3);
  padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .2s;
}
.tfd-tab:hover { color: var(--tfd-ink); }
.tfd-tab[aria-selected="true"] { color: var(--tfd-ink); border-bottom-color: var(--tfd-red); }

/* =====================  CTA BAND  ===================== */
.tfd-cta {
  background: var(--tfd-green); color: #fff;
  border-radius: var(--tfd-radius-lg); padding: 46px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  box-shadow: var(--tfd-shadow);
  position: relative; overflow: hidden;
}
.tfd-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 130% at 88% -10%, rgba(217,164,65,.35), transparent 55%);
  pointer-events: none;
}
.tfd-cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; position: relative; }
.tfd-cta p { margin: 0; opacity: .9; font-size: 16px; position: relative; max-width: 560px; }
.tfd-cta .tfd-btn-primary { position: relative; }
.tfd-cta .perks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; position: relative; }
.tfd-cta .perks span { font-size: 13.5px; font-weight: 600; opacity: .92; }
@media (max-width: 720px){ .tfd-cta { padding: 32px 24px; } }

/* =====================  FOOTER  ===================== */
.tfd-footer { margin-top: 40px; border-top: 1px solid var(--tfd-line); background: var(--tfd-bg-2); }
.tfd-footer-inner {
  max-width: var(--tfd-maxw); margin: 0 auto; padding: 46px 40px 40px;
  display: grid; grid-template-columns: 1.4fr .6fr .8fr; gap: 34px;
}
.tfd-footer h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--tfd-ink-3); }
.tfd-footer a { display: block; font-size: 14.5px; color: var(--tfd-ink-2); padding: 4px 0; font-weight: 500; }
.tfd-footer a:hover { color: var(--tfd-ink); }
.tfd-footer .tfd-logo { margin-bottom: 12px; }
.tfd-footer .fine { margin: 6px 0; max-width: 480px; }
@media (max-width: 820px){ .tfd-footer-inner { grid-template-columns: 1fr; gap: 22px; padding: 34px 20px 30px; } }

/* anchor targets clear the sticky nav */
section[id], div[id^="m-"] { scroll-margin-top: 74px; }

/* =====================  REVEAL  ===================== */
.tfd-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--tfd-ease), transform .6s var(--tfd-ease); }
.tfd-reveal.in { opacity: 1; transform: none; }

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