/* =========================================================
   LIFELONG DOG LOVE — Design System (tasteskill 2.5)
   Flat grounds, equal edges, refined editorial polish.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,600;1,6..72,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg:           #FAF6EE;
  --surface:      #FFFFFF;
  --band:         #1E3311;
  --band-ink:     #FAF6EE;
  --band-muted:   #C5D1B8;
  --ink:          #1A1D16;
  --muted:        #52584D;
  --line:         #E2DDD1;
  --accent:       #A8531F;
  --accent-hover: #8F4419;
  --green:        #2D5016;
  --green-tint:   #EBF1E4;
  --danger-tint:  #F9ECE6;

  --font-display: 'Newsreader', Georgia, serif;
  --font-sans:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius:       8px;
  --radius-lg:    14px;
  --nav-h:        74px;
  --shadow-sm:    0 1px 2px rgba(26, 29, 22, 0.04);
  --shadow-md:    0 14px 32px -10px rgba(26, 29, 22, 0.12);
  --shadow-photo: 0 24px 56px -14px rgba(30, 51, 17, 0.18);
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  background: var(--band);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── EQUAL EDGES CONTAINER ── */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* ── TYPOGRAPHY ── */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 4.9vw, 4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
  line-height: 1.12;
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

/* ── BUTTONS (ONE PAIR, STEP & PRESS) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--surface);
}

.band-dark .btn-secondary {
  color: var(--band-ink);
  border-color: rgba(250, 246, 238, 0.45);
}
.band-dark .btn-secondary:hover {
  background: var(--band-ink);
  color: var(--band);
  border-color: var(--band-ink);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.navbar-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  transform: scaleX(1);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── SECTIONS (ONE SECTION PER SCREEN) ── */
main {
  padding-top: var(--nav-h);
}

main > section {
  padding-block: clamp(72px, 9vw, 116px);
}

.section-screen {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
}

.band-white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-cream {
  background: var(--bg);
}

.band-dark {
  background: var(--band);
  color: var(--band-ink);
}

.band-dark h1,
.band-dark h2,
.band-dark h3 {
  color: var(--band-ink);
}

.band-dark p {
  color: var(--band-muted);
}

.band-dark .eyebrow {
  color: #E38B5B;
}

/* ── PHOTO FRAMES (NO CAPTIONS, SUBTLE HOVER ZOOM) ── */
.photo-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-photo);
}

.card .photo-frame {
  border-radius: 0;
  box-shadow: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.photo-frame:hover img,
.card:hover .photo-frame img {
  transform: scale(1.025);
}

/* ── LINKED CARDS (2PX LIFT) ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.24s var(--ease), border-color 0.24s ease, box-shadow 0.24s var(--ease);
}

a.card:hover,
.card-linked:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.card-link-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
}

.card-link-hint span {
  transition: transform 0.2s var(--ease);
}

a.card:hover .card-link-hint span {
  transform: translateX(3px);
}

/* ── GRIDS ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}

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

/* ── HERO ENTRANCE (RUNS ONCE ON LOAD) ── */
@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-enter] .enter-item {
  animation: heroEnter 0.55s var(--ease) both;
}
[data-enter] .enter-item:nth-child(2) { animation-delay: 0.06s; }
[data-enter] .enter-item:nth-child(3) { animation-delay: 0.12s; }
[data-enter] .enter-item:nth-child(4) { animation-delay: 0.18s; }
[data-enter] .enter-item:nth-child(5) { animation-delay: 0.24s; }

/* ── FORMS ── */
.email-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.email-form input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
}

.email-form input:focus {
  border-color: var(--green);
  outline: none;
}

.form-status {
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  min-height: 1.25em;
}

/* Spam honeypot: hidden from people, visible to naive bots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status.is-error { color: #A12C1B; }

/* ── LONG-FORM / LEGAL PAGES ── */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 8px; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 36px 0 10px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose p, .prose li { color: var(--ink); font-size: 1rem; line-height: 1.75; }
.prose p { margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose-meta { color: var(--muted) !important; font-size: 0.9rem !important; margin-bottom: 20px !important; }
.prose-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 22px; margin: 24px 0 8px; }
.prose-toc ol { padding-left: 20px; columns: 2; column-gap: 32px; }
.prose-toc li { font-size: 0.94rem; margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 540px) { .prose-toc ol { columns: 1; } }

/* Stacked label + input (my-downloads) */
.field-stack { display: flex; flex-direction: column; gap: 6px; }
.field-stack label { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.field-stack input {
  min-height: 48px; padding: 0 16px; border-radius: var(--radius); border: 1.5px solid #D4CEC0;
  background: var(--bg); font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
}
.field-stack input:focus { border-color: var(--green); outline: none; }

/* ── FOOTER ── */
footer {
  background: var(--band);
  color: var(--band-ink);
  padding-block: 64px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250, 246, 238, 0.14);
}

.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--surface);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--surface);
  font-size: 0.925rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--band-muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.925rem;
  color: var(--band-ink);
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: #E38B5B;
}

.footer-col ul {
  list-style: none;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.825rem;
  color: var(--band-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .grid-2, .grid-3, .footer-grid {
    grid-template-columns: 1fr;
  }
  .section-screen {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 12px;
    z-index: 999;
  }
  .navbar-nav.open {
    display: flex;
  }
  .navbar-nav a {
    font-size: 1.25rem;
    width: 100%;
    min-height: 48px;
  }
  .navbar-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .btn {
    width: 100%;
  }
}

/* ── FUNNEL & CONVERSION COMPONENTS ── */
.funnel-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.funnel-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 20px;
}
.funnel-step.is-active {
  background: var(--green-tint);
  color: var(--green);
  font-weight: 700;
}
.funnel-step.is-done {
  color: var(--green);
}
.funnel-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.funnel-step.is-active .funnel-step-num,
.funnel-step.is-done .funnel-step-num {
  background: var(--green);
  color: var(--surface);
}
.funnel-sep {
  color: var(--line);
}

/* Badges */
.pill-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-tint);
  color: var(--green);
  margin-bottom: 14px;
}
.pill-badge.terra {
  background: var(--danger-tint);
  color: var(--accent);
}

/* Spec list */
.spec-list {
  list-style: none;
  margin: 20px 0 24px;
  border-top: 1px solid var(--line);
}
.spec-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.spec-list li span:last-child {
  color: var(--muted);
  text-align: right;
}

/* Comparison cards */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
}
.compare-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.compare-before {
  background: var(--surface);
}
.compare-after {
  background: var(--green-tint);
  border-color: var(--green);
}
.compare-card h3 {
  margin-bottom: 16px;
}
.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink);
}
.badge-x,
.badge-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.badge-x {
  background: var(--danger-tint);
  color: var(--accent);
}
.badge-check {
  background: var(--green);
  color: var(--surface);
}

/* Tabs (Inside the Guide) */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.tab-btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.tab-btn:hover {
  border-color: var(--green);
  color: var(--ink);
}
.tab-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--surface);
}
.tab-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

/* Offer Box & Order Bump */
.offer-box {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
.price-now {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}
.price-was {
  font-size: 1.15rem;
  color: var(--muted);
  text-decoration: line-through;
}
.price-save {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--danger-tint);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
}

.order-bump {
  background: #FFF9EF;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.order-bump.is-checked {
  background: var(--green-tint);
  border-color: var(--green);
  border-style: solid;
}
.order-bump-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.order-bump-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.order-bump-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.order-bump-title span {
  color: var(--accent);
}
.order-bump-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-btn::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.faq-btn[aria-expanded="true"]::after {
  content: '−';
}
.faq-panel {
  padding: 0 22px 18px;
  font-size: 0.94rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* Data / Preview Table */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table th {
  background: var(--green);
  color: var(--surface);
  text-align: left;
  padding: 12px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:nth-child(even) td {
  background: rgba(143, 175, 114, 0.08);
}

/* Responsive additions */
@media (max-width: 860px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

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