/* =========================================================
   PetnotePlus — marketing site styles
   Covers BOTH index.html and guide-article pages.
   Mobile-first: base = 375px, then 768px, then 1024px+.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #FDF4ED;
  --bg-alt: #FBE9DC;
  --card: #FFFFFF;
  --ink: #26211D;
  --muted: #8A7C72;
  --coral: #F26D6D;
  --coral-dark: #e05a5a;
  --orange: #F0913F;
  --green: #58C29A;
  --line: #F0E2D6;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 8px 30px rgba(38, 33, 29, .08);
  --shadow-lg: 0 16px 44px rgba(38, 33, 29, .14);
  --maxw: 1120px;
  --header-h: 64px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: .3em 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

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

/* Sections under sticky header */
section[id], article[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 18px rgba(242, 109, 109, .38);
}
.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(242, 109, 109, .45);
}

.btn-compact { min-height: 42px; padding: 8px 18px; font-size: .95rem; }

/* App Store badge link */
.badge-link {
  display: inline-block;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.badge-link:hover { transform: translateY(-2px); }
.badge-link { vertical-align: middle; }
/* Height-based sizing so mixed-width localized badges stay aligned */
.badge-link img { height: 50px; width: auto; display: block; }
/* Google Play badge has ~10% built-in padding — oversize + negative margin
   so its visible box matches the App Store badge height */
.badge-link img.play-badge { height: 62px; margin: -6px; }
.badge-link + .badge-link { margin-left: 10px; }
.hero-cta-row .badge-link + .badge-link { margin-left: 0; } /* flex gap handles it */

@media (min-width: 768px) {
  .badge-link img { height: 56px; }
  .badge-link img.play-badge { height: 70px; margin: -7px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(253, 244, 237, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 34px; height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.main-nav { display: none; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0; padding: 0;
}
.main-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: .98rem;
}
.main-nav a:hover { color: var(--coral); text-decoration: none; }
.header-cta { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 80% -10%, #FCDCC7 0%, rgba(252,220,199,0) 55%),
    linear-gradient(180deg, #FDF4ED 0%, #FBE9DC 100%);
  padding: 40px 0 48px;
}
.hero-inner { display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-size: 2.15rem; margin-bottom: .35em; }
.hero .lead {
  font-size: 1.12rem;
  color: #4d443c;
  margin-bottom: 1.2em;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* Trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  margin: 0; padding: 0;
  font-weight: 700;
  font-size: .95rem;
  color: #5c5148;
}
.trust-row li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }

/* Phone frame */
.phone-frame {
  position: relative;
  width: 250px;
  max-width: 72vw;
  margin: 0 auto;
}
.phone-frame img {
  width: 100%;
  border-radius: 24px;
  display: block;
  box-shadow: var(--shadow-lg);
}

/* ---------- Generic sections ---------- */
.section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}

/* ---------- Download strip ---------- */
.download-strip {
  background: linear-gradient(135deg, #F26D6D 0%, #F0913F 100%);
  color: #fff;
  padding: 34px 0;
  text-align: center;
}
.download-strip h2 { color: #fff; }
.download-strip p { color: rgba(255,255,255,.92); margin-bottom: 18px; }
.download-strip .fineprint { font-size: .9rem; margin-top: 14px; margin-bottom: 0; color: rgba(255,255,255,.9); }
.download-strip .badge-link { box-shadow: 0 8px 22px rgba(0,0,0,.18); }

/* ---------- Screenshots carousel ---------- */
.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 20px;
  margin-inline: -20px;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 220px;
  text-align: center;
}
.shot figure { margin: 0; }
.shot img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #fff;
}
.shot figcaption {
  margin-top: 12px;
  font-weight: 700;
  font-size: .92rem;
  color: #5c5148;
}

/* ---------- How it works ---------- */
.steps { display: grid; gap: 22px; }
.step {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-num {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}
.step h3 { margin: 0 0 .3em; }
.step p { margin: 0; color: #574d45; }
.step-thumb {
  width: 120px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  align-self: flex-start;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid var(--line);
}
.feature-card .fi {
  font-size: 1.7rem;
  line-height: 1;
  display: inline-block;
  margin-bottom: 10px;
}
.feature-card h3 { font-size: 1.12rem; margin: 0 0 .35em; }
.feature-card p { margin: 0; color: #574d45; font-size: .98rem; }

/* ---------- Guides grid ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.guide-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.guide-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.guide-card .gi { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.guide-card h3 { font-size: 1.06rem; margin: 0 0 .3em; }
.guide-card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  font-weight: 800;
  font-size: 1.06rem;
  position: relative;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coral);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding: 0 20px 18px; color: #574d45; }
.faq-answer p { margin: 0 0 .5em; }
.learn-more { font-weight: 800; color: var(--coral-dark); white-space: nowrap; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% 0%, #FCDCC7 0%, rgba(252,220,199,0) 60%),
    var(--bg-alt);
  padding: 56px 0;
}
.final-cta h2 { font-size: 1.9rem; }
.final-cta p { color: #574d45; max-width: 540px; margin: 0 auto 22px; }
.final-cta .trust-row { justify-content: center; margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2c2621;
  color: #d8ccc2;
  padding: 44px 0 26px;
  font-size: .95rem;
}
.site-footer a { color: #e7d9cd; }
.site-footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; margin-bottom: 10px; }
.footer-brand .brand img { box-shadow: none; }
.footer-brand p { color: #b7a99d; margin: 0; }
.footer-col h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 8px 0; }
.footer-bottom {
  border-top: 1px solid #443c34;
  padding-top: 20px;
  color: #a99c90;
  font-size: .85rem;
}
.footer-bottom p { margin: 0 0 6px; }

/* =========================================================
   GUIDE ARTICLE PAGES
   ========================================================= */
.breadcrumb {
  font-size: .9rem;
  color: var(--muted);
  padding: 16px 0 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0; padding: 0;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "\203A"; color: var(--muted); margin-left: 6px; }
.breadcrumb a { color: var(--muted); font-weight: 700; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}
.article h1 { font-size: 2rem; margin-bottom: .25em; }
.article .updated {
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 24px;
}
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article h3 { font-size: 1.18rem; margin-top: 1.3em; }
.article p, .article li { color: #3f372f; }
.article img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Lead answer box (featured-snippet bait) */
.answer-box {
  background: var(--card);
  border-left: 5px solid var(--coral);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin: 8px 0 28px;
}
.answer-box p { margin: 0 0 .6em; font-size: 1.06rem; }
.answer-box p:last-child { margin-bottom: 0; }
.answer-box strong { color: var(--ink); }

/* Callout / tip */
.callout {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Ordered "app steps" list */
.app-steps { counter-reset: step; list-style: none; padding: 0; }
.app-steps li {
  position: relative;
  padding-left: 44px;
  margin: 16px 0;
}
.app-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  font-size: .95rem;
}

/* In-article data tables (weight charts, color charts) */
.article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 22px 0;
  font-size: .95rem;
}
.article th, .article td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: #3f372f;
}
.article thead th {
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 800;
}
.article tbody tr:last-child td { border-bottom: none; }

.article figure { margin: 26px 0; text-align: center; }
.article figure img { margin: 0 auto; max-width: 300px; }
.article figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* In-article CTA band */
.cta-band {
  background: linear-gradient(135deg, #F26D6D 0%, #F0913F 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin: 36px 0;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin-top: 0; font-size: 1.4rem; }
.cta-band p { color: rgba(255,255,255,.94); margin-bottom: 18px; }
.cta-band .badge-link { box-shadow: 0 8px 22px rgba(0,0,0,.18); }

/* Related guides */
.related-guides { margin: 36px 0 10px; }
.related-guides h2 { font-size: 1.3rem; }
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Disclaimer */
.disclaimer {
  font-size: .88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 30px;
}

/* =========================================================
   RESPONSIVE — 768px (tablet)
   ========================================================= */
@media (min-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }

  .main-nav { display: block; }

  .hero { padding: 60px 0 64px; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  .hero-copy { flex: 1 1 55%; }
  .hero-media { flex: 1 1 45%; }
  .hero h1 { font-size: 2.9rem; }
  .phone-frame { width: 280px; max-width: none; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .footer-top {
    grid-template-columns: 1.4fr 1.1fr 1fr .9fr;
    gap: 36px;
  }

  .download-strip .strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
  }
  .download-strip .strip-text { text-align: left; }
  .download-strip h2 { margin-bottom: .2em; }
}

/* =========================================================
   RESPONSIVE — 1024px (desktop)
   ========================================================= */
@media (min-width: 1024px) {
  .section { padding: 68px 0; }

  .hero h1 { font-size: 3.2rem; }

  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(3, 1fr); }

  /* Screenshots become a wrapped grid instead of scroll carousel */
  .shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }
  .shot { width: auto; }

  .phone-frame { width: 300px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
