/* PetFit landing page. Mobile-first; one accent colour (warm orange), lots of whitespace. */
:root {
  --accent: #ff8a3d;
  --accent-dark: #e8742a;
  --accent-soft: #ffe9d9;
  --bg: #fffbf7;
  --surface: #ffffff;
  --border: #f0e6dd;
  --text: #1f1a17;
  --muted: #7a6f68;
  --success: #3dbe7a;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(120, 70, 30, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 7vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 800; text-align: center; }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }
a { color: inherit; }
.accent { color: var(--accent); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.section-sub { color: var(--muted); text-align: center; max-width: 560px; margin: 0 auto 28px; }
.micro { color: var(--muted); font-size: 13px; margin-top: 10px; }
section { padding: 56px 20px; max-width: 1080px; margin: 0 auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(255, 251, 247, 0.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; font-size: 20px; text-decoration: none; }
.nav-cta { font-weight: 700; color: var(--accent); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--text); color: #fff; }
.btn-lg { padding: 18px 26px; font-size: 18px; }
.link { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 10px; text-decoration: none; display: block; text-align: center; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Hero */
.hero { display: grid; gap: 32px; align-items: center; padding-top: 32px; }
.hero-copy .btn { width: 100%; }
.sub { color: var(--muted); font-size: 18px; }
.hero-visual { display: flex; justify-content: center; align-items: flex-end; gap: 14px; }
.phone {
  width: 170px; aspect-ratio: 9 / 18.5; border-radius: 32px; padding: 8px;
  background: #1f1a17; box-shadow: var(--shadow);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 25px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 20%, #5b6470 0%, #2d3139 70%);
}
.skeleton { position: absolute; inset: 0; width: 100%; height: 100%; }
.rec { position: absolute; top: 10px; left: 10px; font-size: 10px; color: #fff; display: flex; align-items: center; gap: 5px; z-index: 1; }
.rec span { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: blink 1.2s infinite; }
.rep-bubble {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 14px; padding: 4px 14px; text-align: center; line-height: 1.1;
}
.rep-bubble strong { display: block; font-size: 24px; color: var(--accent); }
.rep-bubble span { font-size: 10px; color: var(--muted); }
.kitten-bowl { position: relative; width: 150px; text-align: center; }
.kitten { width: 150px; }
.kitten-head { transform-origin: 80px 110px; animation: nom 1.2s ease-in-out infinite; }
.kibble circle { animation: crunch 3.6s steps(1) infinite; }
.kibble circle:nth-child(2) { animation-delay: 0.9s; }
.kibble circle:nth-child(3) { animation-delay: 1.8s; }
.kibble circle:nth-child(4) { animation-delay: 2.7s; }
.hearts span { position: absolute; top: 20px; color: var(--accent); opacity: 0; animation: float 3s ease-in infinite; }
.hearts span:nth-child(1) { left: 20px; }
.hearts span:nth-child(2) { left: 70px; animation-delay: 1s; }
.hearts span:nth-child(3) { left: 115px; animation-delay: 2s; }
.caption { font-size: 13px; color: var(--muted); margin-top: 4px; }

@keyframes blink { 50% { opacity: 0.2; } }
@keyframes nom { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(-4deg) translateY(9px); } }
@keyframes crunch { 0%, 70% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes float { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px); } }

/* Quiz */
.quiz { max-width: 560px; margin: 0 auto; padding: 24px; }
.progress { display: flex; gap: 6px; margin-bottom: 20px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--border); transition: background 0.3s; }
.progress span.on { background: var(--accent); }
.options { display: grid; gap: 10px; }
.options button {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; text-align: left;
  padding: 14px 16px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface);
  font: inherit; font-size: 24px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.options button b { font-size: 17px; grid-column: 2; }
.options button small { font-size: 13px; color: var(--muted); grid-column: 2; }
.options button:hover, .options button.selected { border-color: var(--accent); background: var(--accent-soft); }
.name-preview { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--accent-soft); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.mini-kitten { width: 110px; animation: nom 2.4s ease-in-out infinite; }
.name-tag { background: #fff; border: 2px dashed var(--accent); border-radius: 12px; padding: 6px 14px; font-weight: 800; font-size: 20px; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pet-name { width: 100%; font: inherit; font-size: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); margin-bottom: 12px; }
#name-next { width: 100%; }
.loader { text-align: center; padding: 24px 0; }
.loader-pct { font-size: 56px; font-weight: 800; color: var(--accent); }
.bar { height: 10px; border-radius: 5px; background: var(--accent-soft); overflow: hidden; margin: 12px 0 16px; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 5px; transition: width 0.1s linear; }
#loader-text { font-weight: 700; font-size: 18px; }

/* Features */
.features { display: grid; gap: 16px; }
.feature { padding: 24px; }
.feature-icon { font-size: 34px; margin-bottom: 8px; }
.feature p { color: var(--muted); }
.feature.privacy { border: 2px solid var(--success); }
.feature.privacy b { color: var(--text); }

/* Share showcase */
.share { display: grid; gap: 28px; align-items: center; }
.share h2, .share .section-sub { text-align: left; margin-left: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.badge-card { position: relative; width: 300px; margin: 0 auto; background: var(--accent-soft); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); transform: rotate(-2deg); }
.badge-sample { position: absolute; top: 12px; right: -8px; background: var(--text); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; transform: rotate(8deg); }
.badge-eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; margin: 0; }
.badge-brand { color: var(--accent); font-size: 26px; font-weight: 800; margin: 0; }
.badge-tag { color: var(--muted); font-size: 12px; }
.badge-hero { background: #fff; border-radius: 16px; padding: 10px; margin-bottom: 10px; }
.badge-hero strong { display: block; font-size: 44px; color: var(--accent); line-height: 1; }
.badge-hero span { font-weight: 700; }
.badge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.badge-grid div { background: #fff; border-radius: 12px; padding: 8px; }
.badge-grid b { display: block; font-size: 18px; }
.badge-grid span { font-size: 11px; color: var(--muted); }
.badge-qr { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 12px; }
.qr { background: #fff; border-radius: 8px; padding: 4px; width: 72px; height: 72px; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.badge-note { font-size: 10px; color: var(--muted); text-align: right; margin: 6px 0 0; }

/* Pricing */
.plans { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.plan { position: relative; padding: 26px; display: flex; flex-direction: column; }
.plan-name { font-weight: 800; font-size: 18px; }
.price { font-size: 44px; font-weight: 800; margin: 0; }
.price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan-note { color: var(--muted); }
.plan ul { padding-left: 0; list-style: none; margin: 8px 0 18px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.plan.featured { border: 2px solid var(--accent); }
.ribbon { position: absolute; top: -13px; right: 20px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.guarantee { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.checkout-note { text-align: center; color: var(--muted); margin-top: 16px; }
.final-cta { text-align: center; }

/* Paywall modal */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(31, 26, 23, 0.55); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  background: var(--bg); border-radius: 26px 26px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  animation: up 0.35s ease-out;
}
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: var(--accent-soft); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.plan-lines { list-style: none; padding: 0; margin: 0 0 18px; }
.plan-lines li { padding: 6px 0 6px 26px; position: relative; }
.plan-lines li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.option { position: relative; display: block; text-decoration: none; border-radius: 18px; padding: 16px 18px; margin-bottom: 12px; }
.option b { display: block; font-size: 17px; }
.option small { color: inherit; opacity: 0.85; }
.option-a { background: var(--accent); color: #fff; }
.option-b { background: var(--surface); border: 2px solid var(--border); }
.option-badge { position: absolute; top: -10px; right: 14px; background: var(--text); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 32px 20px calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }

/* Larger screens */
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 64px; }
  .hero-copy .btn { width: auto; }
  .phone { width: 210px; }
  .kitten-bowl, .kitten { width: 170px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
  .options.pets { grid-template-columns: repeat(4, 1fr); }
  .share { grid-template-columns: 1.1fr 0.9fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .modal { align-items: center; }
  .modal-card { border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Family gift option under the challenge plan */
.gift-link { display: block; margin-top: 12px; text-align: center; font-weight: 700; color: var(--accent, #FF8A3D); text-decoration: none; }
.gift-link:hover { text-decoration: underline; }
.gift-link.highlight { background: #FFE9D9; border-radius: 12px; padding: 10px; }

/* Pain points */
.pains { text-align: center; }
.pain-grid { display: grid; gap: 14px; margin-bottom: 24px; text-align: left; }
.pain { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start; padding: 18px; }
.pain span { font-size: 30px; line-height: 1; grid-row: span 2; }
.pain b { font-size: 17px; }
.pain p { color: var(--muted); margin: 4px 0 0; font-size: 15px; }

/* Quiz extras */
.options.pets { grid-template-columns: repeat(2, 1fr); }
.options.pets button { justify-items: center; text-align: center; grid-template-columns: 1fr; font-size: 34px; }
.options.pets button b { grid-column: 1; font-size: 15px; }
.pet-emoji { font-size: 64px; line-height: 1; }

/* Plan modal */
.plan-routine { font-weight: 800; color: var(--accent); margin: -4px 0 12px; }
.plan-moves { background: var(--accent-soft); border-radius: 16px; padding: 10px 14px; margin: 0 0 16px; }
.plan-moves summary { font-weight: 800; cursor: pointer; }
.plan-moves ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 18px; font-size: 14px; }
.plan-start { display: block; text-align: center; margin-bottom: 14px; }
.modal-card { max-height: 92vh; overflow-y: auto; }

.pain[role="button"] { cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease; }
.pain[role="button"]:hover, .pain[role="button"]:focus-visible { transform: translateY(-2px); border-color: var(--accent); outline: none; }
.pain p::after { content: " Get my plan →"; color: var(--accent); font-weight: 700; }
