@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f5f1e8;
  --paper-deep: #ebe5d9;
  --card: #fffdf8;
  --ink: #292a2f;
  --muted: #6f706f;
  --line: rgba(41, 42, 47, 0.14);
  --brass: #9c6a2b;
  --brass-light: #d8b879;
  --sage: #476d5f;
  --rust: #a14c43;
  --shadow: 0 28px 80px rgba(57, 45, 29, 0.13);
  --radius: 26px;
  --max: 1180px;
  --display-tracking: -.012em;
  --display-leading: 1.035;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(216, 184, 121, .20), transparent 28rem),
    radial-gradient(circle at 90% 30%, rgba(71, 109, 95, .10), transparent 30rem),
    var(--paper);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  z-index: 20;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: .7rem 1rem;
  border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(18px);
  background: rgba(245, 241, 232, .82);
  border-bottom: 1px solid transparent;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 74px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.04em;
}
.brand img { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 5px 14px rgba(46,37,27,.16); }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.nav-cta):hover { color: var(--brass); }
.nav-cta { background: var(--ink); color: white; padding: 10px 16px; border-radius: 999px; }

main { overflow: clip; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: clamp(30px, 6vw, 96px);
  padding-top: 64px;
  padding-bottom: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  font-weight: 800;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, .display {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}

h1 { font-size: clamp(58px, 6.6vw, 98px); margin-bottom: 28px; max-width: 790px; }
h1 em { color: var(--brass); font-weight: 400; }
.hero-copy { max-width: 620px; font-size: clamp(17px, 1.7vw, 21px); color: #55575a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }

.app-store-button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 56px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 15px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-store-button:hover, .button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(41,42,47,.18); }
.app-store-button svg { width: 25px; height: 30px; fill: currentColor; flex: none; }
.app-store-button small { display: block; font-size: 10px; line-height: 1.1; letter-spacing: .02em; font-weight: 500; }
.app-store-button strong { display: block; font-size: 17px; line-height: 1.15; }
.text-link { font-weight: 700; color: var(--brass); padding: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 25px; color: var(--muted); font-size: 13px; }
.trust-row span::before { content: '·'; color: var(--brass); margin-right: 8px; font-weight: 900; }

.hero-visual { position: relative; min-height: 680px; display: grid; place-items: center; }
.hero-orbit { position: absolute; width: 620px; aspect-ratio: 1; border: 1px solid rgba(156,106,43,.26); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(71,109,95,.18); }
.hero-orbit::before { inset: 12%; }
.hero-orbit::after { inset: 28%; }
.hero-orbit i { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--brass); left: 50%; top: -7px; box-shadow: 0 0 0 8px rgba(156,106,43,.1); }
.hero-phone {
  width: min(390px, 76vw);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 38px 35px rgba(48,40,28,.22));
  animation: arrive .9s cubic-bezier(.16,1,.3,1) both;
}
.hero-icon {
  position: absolute;
  z-index: 3;
  width: 100px;
  right: -10px;
  top: 95px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(45,36,26,.25);
  transform: rotate(5deg);
}
.floating-note {
  position: absolute;
  z-index: 4;
  left: -25px;
  bottom: 105px;
  width: 200px;
  padding: 16px 18px;
  background: rgba(255,253,248,.92);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  font-size: 13px;
}
.floating-note strong { display: block; font-family: 'Instrument Serif'; font-size: 27px; font-weight: 400; line-height: 1; margin-bottom: 5px; }

@keyframes arrive { from { opacity: 0; transform: translateY(45px) rotate(2deg); } to { opacity: 1; transform: none; } }

.section { padding: 118px 0; }
.section-rule { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; align-items: end; margin-bottom: 58px; }
.section-head h2 { font-size: clamp(46px, 5.4vw, 74px); margin-bottom: 0; }
.section-head p { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: 18px; }

.proof-strip {
  background: var(--ink);
  color: white;
  padding: 18px 0;
  overflow: hidden;
}
.proof-track { width: max-content; display: flex; gap: 24px; align-items: center; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.proof-track span::after { content: '✦'; color: var(--brass-light); margin-left: 24px; }

.calculator-shell { display: grid; grid-template-columns: .86fr 1.14fr; gap: 28px; align-items: stretch; }
.calculator-copy { background: var(--sage); color: white; padding: clamp(32px, 5vw, 70px); border-radius: var(--radius); position: relative; overflow: hidden; }
.calculator-copy::after { content: '30'; position: absolute; right: -10px; bottom: -70px; font-family: 'Instrument Serif'; font-size: 260px; line-height: 1; color: rgba(255,255,255,.06); }
.calculator-copy h2 { font-size: clamp(46px,4.6vw,64px); margin-bottom: 22px; }
.calculator-card { background: var(--card); border: 1px solid var(--line); padding: clamp(28px, 4vw, 58px); border-radius: var(--radius); box-shadow: var(--shadow); }
.field-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin-bottom: 9px; color: var(--muted); }
input[type='date'] { width: 100%; min-height: 57px; border: 1px solid var(--line); background: var(--paper); border-radius: 13px; padding: 0 16px; color: var(--ink); }
.age-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 25px; }
.age-unit { padding: 22px 14px; border: 1px solid var(--line); border-radius: 15px; text-align: center; background: white; }
.age-unit strong { display: block; font-family: 'Instrument Serif'; color: var(--brass); font-size: 52px; font-weight: 400; line-height: 1; }
.age-unit span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.calculator-meta { margin: 18px 0 0; color: var(--muted); font-size: 13px; min-height: 24px; }

.download-panel { display: grid; grid-template-columns: 1fr 1fr; min-height: 570px; background: var(--ink); color: white; border-radius: 34px; overflow: hidden; }
.download-copy { padding: clamp(40px, 7vw, 90px); align-self: center; }
.download-copy h2 { font-size: clamp(48px,5.4vw,74px); }
.download-copy p { color: rgba(255,255,255,.7); max-width: 520px; }
.download-image { position: relative; overflow: hidden; background: var(--paper-deep); }
.download-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rating { display: flex; gap: 10px; align-items: center; margin: 24px 0; color: var(--brass-light); }
.rating small { color: rgba(255,255,255,.65); }

.screens-stage { position: relative; padding-inline: 24px; }
.screens-row {
  width: 100%;
  max-width: 1900px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 10px 0 48px;
  scrollbar-width: thin;
}
.screen-card { scroll-snap-align: start; border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: 0 20px 50px rgba(56,47,34,.12); border: 1px solid rgba(41,42,47,.08); }
.screen-card img { width: 100%; height: auto; }
.screen-card:nth-child(2n) { transform: translateY(12px); }

.pets-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(216,184,121,.28), transparent 25rem),
    radial-gradient(circle at 92% 82%, rgba(71,109,95,.17), transparent 28rem),
    #e8e9df;
  border-block: 1px solid rgba(41,42,47,.09);
}
.pets-section::before {
  content: '';
  position: absolute;
  width: 680px;
  aspect-ratio: 1;
  right: -250px;
  top: -290px;
  border: 1px solid rgba(156,106,43,.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 74px rgba(255,255,255,.08), inset 0 0 0 75px rgba(156,106,43,.13);
}
.pets-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 7vw, 105px); align-items: center; }
.pets-copy { position: relative; z-index: 2; }
.pets-copy h2 { font-size: clamp(48px, 5.1vw, 70px); margin-bottom: 28px; }
.pets-lede { color: #575c59; font-size: 18px; max-width: 560px; }
.pet-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 34px 0; border: 1px solid rgba(41,42,47,.14); border-radius: 19px; overflow: hidden; background: rgba(41,42,47,.13); }
.pet-facts div { padding: 18px; background: rgba(255,253,248,.62); }
.pet-facts strong { display: block; color: var(--ink); font-size: 14px; }
.pet-facts span { color: var(--muted); font-size: 11px; }
.pet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pet-download { min-height: 50px; padding: 10px 17px; }
.pet-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; max-width: 510px; }
.pets-visual { position: relative; min-height: 700px; z-index: 1; }
.pet-photo { margin: 0; overflow: hidden; background: var(--paper-deep); box-shadow: var(--shadow); }
.pet-photo img { width: 100%; height: 100%; object-fit: cover; }
.pet-photo-main { position: absolute; inset: 20px 15px 125px 0; border-radius: 34px; }
.pet-photo-main img { object-position: 55% center; }
.pet-photo-cat { position: absolute; left: -40px; bottom: 0; width: 42%; aspect-ratio: 1.3; border: 8px solid var(--paper); border-radius: 24px; transform: rotate(-3deg); }
.pet-profile-preview { position: absolute; width: 185px; right: -18px; bottom: -15px; margin: 0; border: 7px solid rgba(255,253,248,.94); border-radius: 31px; overflow: hidden; box-shadow: 0 24px 60px rgba(35,39,34,.25); transform: rotate(3deg); }
.pet-profile-preview img { width: 100%; }
.pet-age-stamp { position: absolute; right: -20px; top: -10px; width: 120px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; color: white; background: var(--sage); border: 7px solid rgba(255,253,248,.88); box-shadow: 0 15px 35px rgba(41,42,47,.18); transform: rotate(7deg); }
.pet-age-stamp strong { font-family: 'Instrument Serif'; font-size: 52px; font-weight: 400; line-height: .75; }
.pet-age-stamp span { margin-top: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { counter-increment: step; min-height: 310px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.58); position: relative; }
.step::before { content: '0' counter(step); display: block; color: var(--brass); font-family: 'Instrument Serif'; font-size: 50px; line-height: 1; margin-bottom: 70px; }
.step::after { content: ''; position: absolute; top: 57px; left: 86px; right: -19px; border-top: 1px dashed rgba(156,106,43,.35); }
.step:last-child::after { display: none; }
.step h3 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.step p { color: var(--muted); margin-bottom: 0; font-size: 14px; }

.guides-section { background: var(--ink); color: white; }
.guides-section .section-head p { color: rgba(255,255,255,.6); }
.guide-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.guide-card { grid-column: span 4; padding: 28px; min-height: 300px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; color: white; text-decoration: none; display: flex; flex-direction: column; background: rgba(255,255,255,.035); transition: background .2s, transform .2s; }
.guide-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.guide-card.featured { grid-column: span 8; background: var(--brass); }
.guide-tag { color: var(--brass-light); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 800; }
.guide-card.featured .guide-tag { color: rgba(255,255,255,.72); }
.guide-card h3 { font-family: 'Instrument Serif'; font-size: 36px; line-height: 1.08; letter-spacing: var(--display-tracking); font-weight: 400; margin: auto 0 18px; }
.guide-card span:last-child { font-size: 13px; opacity: .7; }

.faq-list { max-width: 900px; margin-left: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 20px; align-items: center; padding: 25px 0; font-size: 18px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: 'Instrument Serif'; font-size: 30px; font-weight: 400; color: var(--brass); }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { max-width: 720px; padding: 0 0 27px; color: var(--muted); }
.learn-more { display: inline-block; margin-top: 8px; color: var(--brass); font-weight: 700; font-size: 13px; }

.final-cta { padding: 60px 0 80px; }
.cta-card { min-height: 460px; border-radius: 34px; padding: clamp(40px, 8vw, 100px); display: grid; place-items: center; text-align: center; color: white; background:
    radial-gradient(circle at 16% 20%, rgba(216,184,121,.24), transparent 24rem),
    radial-gradient(circle at 84% 80%, rgba(71,109,95,.34), transparent 28rem),
    var(--ink); position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; width: 620px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.cta-inner { position: relative; z-index: 1; max-width: 750px; }
.cta-card h2 { font-size: clamp(50px,6.2vw,82px); margin-bottom: 22px; }
.cta-card p { color: rgba(255,255,255,.68); font-size: 18px; }

.site-footer { border-top: 1px solid var(--line); padding: 45px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-copy { max-width: 400px; color: var(--muted); font-size: 13px; }
.footer-col strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; text-decoration: none; }
.footer-col a:hover { color: var(--brass); }
.copyright { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; }

/* Guides */
.guide-hero { padding: 90px 0 55px; border-bottom: 1px solid var(--line); }
.breadcrumbs { color: var(--muted); font-size: 12px; margin-bottom: 38px; }
.breadcrumbs a { text-decoration: none; }
.guide-hero h1 { font-size: clamp(54px, 6.3vw, 86px); max-width: 950px; }
.guide-lede { font-size: clamp(18px,2vw,22px); max-width: 750px; color: var(--muted); }
.guide-meta { display: flex; gap: 20px; margin-top: 30px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: clamp(45px,8vw,110px); justify-content: center; align-items: start; padding-top: 70px; padding-bottom: 100px; }
.article-aside { position: sticky; top: 100px; font-size: 12px; }
.article-aside strong { text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.article-aside a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; }
.article-aside a:hover { color: var(--brass); }
.article h2 { font-size: 44px; line-height: 1.07; margin: 65px 0 22px; scroll-margin-top: 100px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 35px 0 12px; font-size: 21px; line-height: 1.3; }
.article p, .article li { color: #55565a; }
.article li { margin-bottom: 8px; }
.article-callout { margin: 40px 0; padding: 28px; border-left: 3px solid var(--brass); background: var(--card); border-radius: 0 18px 18px 0; box-shadow: 0 10px 30px rgba(47,39,28,.06); }
.article-callout strong { display: block; color: var(--ink); margin-bottom: 5px; }
.article-image { margin: 42px 0; border-radius: 26px; overflow: hidden; background: var(--paper-deep); max-width: 470px; box-shadow: var(--shadow); }
.article-image img { width: 100%; }
.related-guides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.related-guides a { background: var(--ink); color: white; border-radius: 16px; padding: 20px; text-decoration: none; font-family: 'Instrument Serif'; font-size: 24px; line-height: 1.1; letter-spacing: var(--display-tracking); }
.guide-cta { margin-top: 70px; padding: 34px; background: var(--sage); color: white; border-radius: 22px; }
.guide-cta h2 { margin: 0 0 15px; color: white; }
.guide-cta p { color: rgba(255,255,255,.72); }
.guide-cta .app-store-button { background: white; color: var(--ink); border-color: white; }

.interactive-tool { margin: 38px 0 50px; padding: clamp(24px, 5vw, 40px); border: 1px solid var(--line); border-radius: 25px; background: var(--card); box-shadow: 0 18px 50px rgba(57,45,29,.09); }
.interactive-tool h2 { margin: 0 0 10px; font-size: clamp(38px, 5vw, 52px); }
.interactive-tool > p { margin: 0 0 24px; }
.tool-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tool-field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.tool-field input, .tool-field select { width: 100%; min-height: 54px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.tool-submit { width: 100%; min-height: 54px; margin-top: 16px; border: 0; border-radius: 12px; background: var(--ink); color: white; font: inherit; font-weight: 800; cursor: pointer; }
.tool-submit:hover { background: var(--sage); }
.tool-output { display: grid; gap: 5px; margin-top: 18px; padding: 20px; border-radius: 14px; background: rgba(71,109,95,.1); }
.tool-output strong { color: var(--sage); font-family: 'Instrument Serif'; font-size: 31px; font-weight: 400; line-height: 1.1; }
.tool-output span { color: var(--muted); font-size: 13px; }
.tool-output .tool-kicker { color: var(--sage); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.tool-output.is-error { background: rgba(161,76,67,.1); }
.tool-output.is-error strong { color: var(--rust); }
.tool-disclaimer { margin: 14px 0 0 !important; font-size: 11px; color: var(--muted) !important; }
.guide-hub { padding-block: 80px 110px; }
.guide-hub-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.hub-card { grid-column: span 4; min-height: 250px; display: flex; flex-direction: column; padding: 27px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.65); color: var(--ink); text-decoration: none; transition: transform .2s, background .2s; }
.hub-card:hover { transform: translateY(-4px); background: var(--card); }
.hub-card.wide { grid-column: span 8; background: var(--sage); color: white; }
.hub-card .guide-tag { color: var(--brass); }
.hub-card.wide .guide-tag { color: var(--brass-light); }
.hub-card h2 { margin: auto 0 12px; font-size: 35px; }
.hub-card p { margin: 0; color: var(--muted); font-size: 13px; }
.hub-card.wide p { color: rgba(255,255,255,.72); }
.age-chart { width: 100%; margin: 26px 0; border-collapse: collapse; border-radius: 15px; overflow: hidden; font-size: 14px; }
.age-chart th, .age-chart td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; }
.age-chart th { background: var(--ink); color: white; }
.age-chart td { background: var(--card); }

/* Legal pages */
.legal-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(76px, 10vw, 132px) clamp(58px, 7vw, 88px);
  background:
    radial-gradient(circle at 78% 22%, rgba(71,109,95,.13), transparent 25rem),
    linear-gradient(112deg, rgba(216,184,121,.18), transparent 42%);
}
.legal-hero::after {
  content: '';
  position: absolute;
  width: 470px;
  aspect-ratio: 1;
  right: -85px;
  top: -265px;
  border: 1px solid rgba(156,106,43,.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 56px rgba(255,255,255,.08), inset 0 0 0 57px rgba(156,106,43,.1);
  pointer-events: none;
}
.terms-hero { background: radial-gradient(circle at 82% 30%, rgba(156,106,43,.16), transparent 28rem), linear-gradient(112deg, rgba(71,109,95,.12), transparent 42%); }
.legal-hero h1 { margin-bottom: 25px; max-width: 980px; }
.guide-intro { max-width: 730px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.legal-updated { margin: 32px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.legal-layout { grid-template-columns: 220px minmax(0, 760px); padding-top: 82px; }
.legal-layout .article-aside { max-height: calc(100vh - 125px); overflow-y: auto; padding-right: 16px; scrollbar-width: thin; }
.legal-layout .article-aside a { padding-block: 5px; }
.legal-article { min-width: 0; }
.legal-article > h2 { font-size: clamp(39px, 5vw, 52px); padding-top: 4px; }
.legal-article p, .legal-article li { line-height: 1.75; }
.legal-article a { color: #79501f; }
.legal-article strong { color: var(--ink); }
.legal-summary {
  margin: 0 0 76px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,253,248,.72);
  box-shadow: 0 22px 60px rgba(57,45,29,.08);
}
.legal-summary .eyebrow { margin-bottom: 24px; }
.legal-summary h2 { margin: 0 0 30px; font-size: clamp(50px, 6vw, 72px); }
.legal-summary > p:last-child { margin-bottom: 0; }
.legal-summary-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.legal-summary-grid div { min-height: 145px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-summary-grid div:nth-child(2n) { border-right: 0; }
.legal-summary-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.legal-summary-grid strong, .legal-summary-grid span { display: block; }
.legal-summary-grid strong { margin-bottom: 8px; font-size: 14px; }
.legal-summary-grid span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.legal-contact { display: flex; flex-direction: column; gap: 2px; margin: 26px 0 70px; padding: 28px; border-left: 3px solid var(--sage); border-radius: 0 18px 18px 0; background: rgba(71,109,95,.08); color: #55565a; font-style: normal; }
.legal-contact a { margin-top: 11px; font-weight: 700; }
.legal-next { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px 0; border-block: 1px solid var(--line); }
.legal-next > span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.legal-next a { font-family: 'Instrument Serif'; font-size: 29px; line-height: 1; text-decoration: none; }
.legal-next a:hover { color: var(--brass); }
.site-footer .copyright a { text-decoration: none; }
.site-footer .copyright a:hover { color: var(--brass); }

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { min-height: 650px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .calculator-shell, .download-panel { grid-template-columns: 1fr; }
  .download-image { min-height: 520px; }
  .pets-grid { grid-template-columns: 1fr; }
  .pets-copy { max-width: 720px; }
  .pets-visual { min-height: 680px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 230px; }
  .step::before { margin-bottom: 35px; }
  .step::after { display: none; }
  .guide-card, .guide-card.featured { grid-column: span 6; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { display: none; }
  .screens-stage { padding-inline: 0; }
  .screens-row { display: flex; padding-inline: 24px; }
  .screen-card { flex: 0 0 clamp(250px, 38vw, 330px); }
  .hub-card, .hub-card.wide { grid-column: span 6; }
  .legal-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav { min-height: 66px; padding-inline: 18px; }
  .nav-cta { padding: 8px 12px; }
  .wrap { padding-inline: 18px; }
  .hero { min-height: auto; padding-top: 35px; }
  h1 { font-size: 54px; }
  .hero-visual { min-height: 540px; }
  .hero-orbit { width: 480px; }
  .hero-phone { width: 295px; }
  .hero-icon { width: 74px; right: 2px; top: 82px; border-radius: 18px; }
  .floating-note { left: 0; bottom: 70px; width: 165px; padding: 13px; }
  .section { padding: 82px 0; }
  .age-result { gap: 7px; }
  .age-unit { padding: 16px 5px; }
  .age-unit strong { font-size: 40px; }
  .screens-row { padding-inline: 18px; }
  .screen-card { flex-basis: min(76vw, 320px); }
  .pets-copy h2 { font-size: 48px; }
  .pet-facts { grid-template-columns: 1fr; }
  .pets-visual { min-height: 540px; }
  .pet-photo-main { inset: 0 0 105px 0; border-radius: 25px; }
  .pet-photo-cat { left: -6px; width: 52%; border-width: 6px; border-radius: 18px; }
  .pet-profile-preview { width: 135px; right: -5px; bottom: -4px; border-width: 5px; border-radius: 23px; }
  .pet-age-stamp { width: 92px; right: -4px; top: -33px; border-width: 5px; }
  .pet-age-stamp strong { font-size: 40px; }
  .guide-card, .guide-card.featured { grid-column: 1 / -1; min-height: 250px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1/-1; }
  .copyright { display: block; }
  .related-guides { grid-template-columns: 1fr; }
  .guide-meta { flex-direction: column; gap: 5px; }
  .tool-fields { grid-template-columns: 1fr; }
  .hub-card, .hub-card.wide { grid-column: 1 / -1; }
  .legal-hero { padding-top: 58px; }
  .legal-hero h1 { font-size: 54px; }
  .legal-layout { padding-top: 50px; padding-bottom: 75px; }
  .legal-summary { margin-bottom: 56px; padding: 24px; border-radius: 22px; }
  .legal-summary-grid { grid-template-columns: 1fr; }
  .legal-summary-grid div, .legal-summary-grid div:nth-child(2n), .legal-summary-grid div:nth-last-child(-n+2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .legal-summary-grid div:last-child { border-bottom: 0; }
  .legal-article > h2 { font-size: 39px; }
  .legal-next { align-items: flex-start; flex-direction: column; }
}

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