/* ================================================================
   LOYAL™ — premium pet-brand SaaS: warm cream/caramel/cocoa, big
   friendly radii, golden-hour photography. The warmth is the point;
   the metering is the joke.
   ================================================================ */

:root {
  --cream: #f7f0e2;
  --paper: #fffaf1;
  --cocoa: #3b2a1c;
  --cocoa-deep: #2a1c11;
  --caramel: #d9a45b;
  --kibble: #b57e3e;
  --tan: #e8d6b8;
  --accent: #d96b2f;
  --meadow: #6d9d63;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Nunito Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 22px;
  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1em; }
a { color: inherit; }

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

.center { text-align: center; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--kibble);
  margin-bottom: 1.25rem;
}

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: var(--measure); }
.center-lede { margin: 0 auto 2.5rem; text-align: center; }

.footnote, .fine {
  font-size: 0.8rem;
  opacity: 0.65;
  font-style: italic;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.btn-warm {
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 4px 14px rgba(217, 107, 47, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(217, 107, 47, 0.4);
}

.btn-line {
  border: 2px solid var(--cocoa);
  transition: background 0.2s, color 0.2s;
}
.btn-line:hover { background: var(--cocoa); color: var(--cream); }

.btn-big { font-size: 1.02rem; padding: 1.1rem 2.4rem; }

/* ---------------- live bar ---------------- */

.live-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  background: var(--cocoa-deep);
  color: var(--tan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.5rem var(--pad);
  text-align: center;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--meadow);
  animation: pulse 2s ease-in-out infinite;
}
.live-fine { opacity: 0.5; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------------- nav ---------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.1rem var(--pad);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  text-decoration: none;
}
.wordmark .tm { font-size: 0.6em; vertical-align: super; color: var(--kibble); }

.nav nav { display: flex; gap: 1.6rem; }
.nav nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.8;
}
.nav nav a:hover { color: var(--accent); opacity: 1; }

/* ---------------- hero ---------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
  max-width: 78rem;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.8rem 0 1.2rem;
}

.hero-art { margin: 0; position: relative; }
.hero-art img {
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(59, 42, 28, 0.25);
}
.hero-art .tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(42, 28, 17, 0.85);
  color: var(--tan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
}

/* ---------------- plans ---------------- */

.plans-section {
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
  max-width: 82rem;
  margin: 0 auto;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
  align-items: start;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  position: relative;
}
.plan-total {
  border: 2px solid var(--accent);
  box-shadow: 0 14px 34px rgba(217, 107, 47, 0.18);
}

.plan-flag {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin: 0;
}
.flag-free { background: var(--meadow); }

.plan h3 { margin-bottom: 0.2em; }
.price { margin-bottom: 1rem; }
.price .amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
}
.price .with {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kibble);
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.plan li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  border-top: 1px dashed var(--tan);
}
.plan li::before {
  content: "🦴";
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}
.plan li.no { opacity: 0.55; }
.plan li.no::before { content: "—"; color: var(--kibble); }

.plan-tagline {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}

/* ---------------- program ---------------- */

.program {
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
  max-width: 78rem;
  margin: 0 auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
.feature img {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1.2rem;
  box-shadow: 0 14px 30px rgba(59, 42, 28, 0.18);
}
.feature p { font-size: 0.95rem; }

/* ---------------- points ---------------- */

.points {
  background: var(--cocoa);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
}
.points-inner { max-width: 72rem; margin: 0 auto; }
.points .eyebrow { color: var(--caramel); }
.points .lede { color: var(--tan); }

.points-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 2rem 0 1.5rem;
}

.menu table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.menu td {
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(232, 214, 184, 0.3);
}
.menu td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--caramel);
  white-space: nowrap;
  padding-left: 1rem;
}

.earn ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.earn li { margin-bottom: 0.9rem; }
.earn strong { color: var(--caramel); }

.statement {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(217, 164, 91, 0.5);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--tan);
}
.statement b { color: var(--caramel); }

.points .fine { color: var(--tan); }

/* ---------------- delegation slider ---------------- */

.delegate {
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
  max-width: 66rem;
  margin: 0 auto;
}

.slider-widget {
  background: var(--paper);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.8rem);
  box-shadow: 0 18px 40px rgba(59, 42, 28, 0.12);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.slider-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  height: 2rem;
}

.slider-readout { text-align: center; margin: 1.2rem 0 1.8rem; }
.tier-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
}
.tier-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--kibble);
  margin: 0.3rem 0 0;
}

.task-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}
.task-col h3 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kibble);
}
.task-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.task-col li {
  padding: 0.4rem 0;
  border-top: 1px dashed var(--tan);
}
.task-col li.faded { opacity: 0.4; text-decoration: line-through; }

.dog-zone {
  text-align: center;
  min-width: 9rem;
  align-self: center;
}
#sim-dog {
  display: block;
  font-size: 5rem;
  line-height: 1;
  transition: font-size 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}
#sim-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--kibble);
  margin: 0.8rem 0 0;
  min-height: 3em;
}

/* ---------------- voices ---------------- */

.voices {
  background: var(--tan);
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
}
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 78rem;
  margin: 2.5rem auto 0;
}
.quotes blockquote {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem;
  font-size: 0.98rem;
}
.quotes cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--kibble);
}

/* ---------------- faq ---------------- */

.faq {
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
  max-width: 46rem;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px dashed var(--kibble);
  padding: 0.9rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq details p { margin: 0.8rem 0 0.2rem; }

/* ---------------- cta ---------------- */

.cta {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 7rem) var(--pad);
}
.cta h2 { margin-bottom: 1.4rem; }
.cta .footnote { margin-top: 1.4rem; }

/* ---------------- footer ---------------- */

.legal {
  background: var(--cocoa-deep);
  color: var(--tan);
  padding: 2.5rem var(--pad) 3rem;
  font-size: 0.85rem;
}
.legal p { max-width: 72ch; }
.wordmark-small {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--caramel);
  font-size: 0.95rem;
}
.legal .fine { opacity: 0.55; }

.coffee { margin: 1.2rem 0 1.8rem; }
.coffee a { display: inline-block; }
.coffee img {
  height: 44px;
  width: auto;
  transition: transform 0.15s;
}
.coffee a:hover img { transform: translateY(-2px); }
.coffee .fine { margin: 0.6rem 0 0; }

/* ---------------- responsive ---------------- */

@media (max-width: 1020px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .features { grid-template-columns: 1fr; }
  .points-cols { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .task-cols { grid-template-columns: 1fr; }
  .dog-zone { order: -1; }
  .nav nav { order: 3; width: 100%; justify-content: flex-start; }
}

@media (max-width: 620px) {
  .plans { grid-template-columns: 1fr; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .btn-warm, .btn-warm:hover { transform: none; transition: none; }
  .coffee img, .coffee a:hover img { transform: none; transition: none; }
  #sim-dog { transition: none; }
}
