/* Shared styles for vaxpup.com: the launch page (index.html) and the
   support page (support.html). The pages load this file from the same
   origin, so the landing-page Content-Security-Policy (CSP) allows it
   without a hash. */

:root {
  color-scheme: light;
  --paper: #FBF7F2;
  --sand: #F3ECE3;
  --white: #FFFFFF;
  --ink: #1E1A17;
  --ink-2: #4E453F;
  --ink-3: #6B615A;
  --coral: #F0466A;
  --coral-dark: #DA3A5C;
  --coral-deep: #B72E4B;
  --coral-press: #C42F50;
  --coral-tint: #FFE3E9;
  --coral-light: #FF8FA8;
  --line: #E7DDD2;
  --line-card: #EEE5DA;
  --green: #3DB87A;
  --green-deep: #1F7A4D;
  --green-tint: #DDF3E7;
  --yellow: #F5C542;
  --yellow-deep: #9A6B00;
  --yellow-tint: #FFF3CC;
  --red: #F04444;
  --red-deep: #C62828;
  --blue-deep: #2F5A8F;
  --blue-tint: #E3ECF7;
  --dark-text: #D9CFC5;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
/* coral-deep on paper is about 5.6:1. coral-dark is too light for body text. */
a { color: var(--coral-deep); text-decoration: none; }
a:hover { color: var(--coral-deep); text-decoration: underline; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--white); font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); text-decoration: none; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Buttons. coral-press keeps white text above 4.5:1. */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--coral-press); color: var(--white); font-weight: 600; font-size: 16px; white-space: nowrap;
}
.btn-pill:hover { background: var(--coral-deep); color: var(--white); text-decoration: none; }
.btn-pill:focus-visible { border-radius: 999px; }

/* App Store call to action. This is a styled text button, not Apple's
   badge. The owner can swap in the official badge artwork later. */
.store-btn {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: 60px; padding: 8px 26px; border-radius: 14px;
  background: var(--ink); color: var(--white); line-height: 1.15; text-align: left;
}
.store-btn small { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.store-btn strong { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
a.store-btn:hover { background: #3A332E; color: var(--white); text-decoration: none; }
.store-btn:focus-visible { border-radius: 16px; }
.store-btn.is-soon { background: var(--sand); color: var(--ink-2); border: 1.5px dashed #B9AC9F; cursor: default; }
.store-note { font-size: 14px; color: var(--ink-3); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-3); font-weight: 500; font-size: 16px; }
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); }

/* Shared type */
.eyebrow {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px;
  border-radius: 999px; background: var(--coral-tint); color: var(--coral-deep);
  font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral-dark); flex: 0 0 auto; }
h1 { font-size: 60px; line-height: 1.02; font-weight: 800; }
h2 { font-size: 40px; line-height: 1.1; font-weight: 800; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 540px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 660px; }
.section-sub { font-size: 18px; color: var(--ink-2); }
.section { padding-top: 96px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 48px; }
.band { background: var(--sand); }

/* Status pills. These shades keep the pill text above 4.5:1. */
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.2; }
.pill-utd { color: var(--white); background: var(--green-deep); }
.pill-soon { color: var(--ink); background: var(--yellow); }
.pill-due { color: var(--white); background: var(--red-deep); }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }

/* Phone mockup */
.mock { position: relative; display: flex; justify-content: center; height: 640px; }
.mock-glow { position: absolute; inset: 40px 20px 0 60px; border-radius: 48px; background: radial-gradient(60% 60% at 50% 40%, #FFE3E9 0%, rgba(255,227,233,0) 100%); }
.phone { position: relative; width: 300px; height: 600px; border-radius: 46px; background: var(--ink); padding: 10px; box-shadow: 0 30px 60px -20px rgba(30,26,23,0.35); }
.screen { width: 100%; height: 100%; border-radius: 37px; background: #F2F2F7; overflow: hidden; display: flex; flex-direction: column; }
.screen-top { height: 54px; }
.screen-icons { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: var(--coral); }
.screen-icons .left { display: flex; gap: 12px; }
.screen-title { padding: 10px 20px 12px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-display); }
.list { margin: 0 16px; background: var(--white); border-radius: 12px; display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 0.5px solid #D9D9DE; }
.row:last-child, .row:nth-last-child(2) { border-bottom: 0; }
.row-extra { border-top: 0.5px solid #D9D9DE; }
.avatar { width: 56px; height: 56px; border-radius: 50%; border: 3px solid; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex: 0 0 auto; }
.av-biscuit { background: #FFE9C7; border-color: var(--green); color: #8A5A16; }
.av-luna { background: #E3E8F0; border-color: var(--yellow); color: #3A4A66; }
.av-pepper { background: #F5DCCB; border-color: var(--red); color: #8A3F1E; }
.av-maple { background: #E4EFE3; border-color: var(--green); color: #3E6B3A; }
.row-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.row-name { font-size: 16px; font-weight: 600; }
/* A long breed wraps to a second line. It does not run under the status pill. */
.row-breed { font-size: 14px; line-height: 1.25; color: #6E6E73; }
.row .pill { flex: 0 0 auto; }
.notif {
  position: absolute; right: 0; top: 516px; display: flex; gap: 12px; align-items: flex-start; width: 320px;
  padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,0.94);
  box-shadow: 0 16px 40px -12px rgba(30,26,23,0.3); backdrop-filter: blur(8px);
}
.notif img { width: 36px; height: 36px; border-radius: 9px; }
.notif-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.notif-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.notif-head b { font-weight: 600; color: var(--ink); }
.notif-title { font-size: 14px; font-weight: 600; }
.notif-sub { font-size: 13px; color: var(--ink-2); white-space: nowrap; }

/* Highlights strip */
.proof .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 28px; padding-bottom: 28px; }
.proof ul { list-style: none; }
/* Balance keeps a wrapped label from leaving one word on its own line. */
.proof-item { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-2); text-wrap: balance; }
.proof-item svg { flex: 0 0 auto; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--white); border: 1px solid var(--line-card); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 24px; height: 24px; }
.ic-coral { background: var(--coral-tint); color: var(--coral-dark); }
.ic-yellow { background: var(--yellow-tint); color: var(--yellow-deep); }
.ic-green { background: var(--green-tint); color: var(--green-deep); }
.ic-blue { background: var(--blue-tint); color: var(--blue-deep); }
.card h3 { font-size: 22px; line-height: 1.2; font-weight: 700; }
.card p { color: var(--ink-2); font-size: 16px; }
.card .note { font-size: 14px; color: var(--ink-3); }

/* Multi-dog status */
.multi { padding-top: 24px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.multi-copy { display: flex; flex-direction: column; gap: 20px; }
.legend { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 16px; }
.legend .pill { font-size: 13px; padding: 6px 12px; min-width: 84px; text-align: center; }
.panel { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px; background: var(--sand); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 6px; }
.panel-head b { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.panel-head span { font-size: 14px; color: var(--ink-3); text-align: right; }
.rec { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--white); }
.rec-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-name { font-weight: 600; }
.rec-sub { font-size: 14px; color: var(--ink-3); }
.rec .pill { font-size: 12px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line-card); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--coral-tint); color: var(--coral-deep); font-family: var(--font-display); font-weight: 800; font-size: 17px;
}
.step h3 { font-size: 20px; line-height: 1.2; font-weight: 700; }
.step p { font-size: 16px; color: var(--ink-2); }

/* Privacy (dark band) */
.privacy { background: var(--ink); color: var(--paper); }
.privacy .wrap { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.privacy h2 { color: var(--white); }
.privacy-lede { margin-top: 18px; color: var(--dark-text); font-size: 18px; }
.privacy-text { display: flex; flex-direction: column; gap: 18px; font-size: 17px; color: var(--dark-text); }
.privacy-text strong { color: var(--white); font-weight: 600; }
.privacy-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--coral-light); font-weight: 600; align-self: flex-start; }
.privacy-link:hover { color: var(--coral-light); }
.privacy :focus-visible { outline-color: var(--coral-light); }

/* FAQ. Native <details> works with no script and with a keyboard. */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item { border-radius: 16px; background: var(--white); border: 1px solid var(--line-card); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--sand); color: var(--ink-2);
  font-family: var(--font-body); font-weight: 600; font-size: 20px; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { border-radius: 16px; outline-offset: 2px; }
.faq-body { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 20px; color: var(--ink-2); font-size: 16px; }
.faq-body ol, .faq-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Final call to action */
.cta { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta h2 { font-size: 44px; line-height: 1.08; max-width: 680px; }
.cta .section-sub { max-width: 560px; }
.cta .cta-row { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-3); }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 22px; height: 22px; border-radius: 6px; }
.footer-links { display: flex; gap: 4px 24px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-3); }
.footer-links a:hover { color: var(--ink); }

/* Support page */
.page-head { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { font-size: 52px; }
.contact-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--line-card); max-width: 820px;
}
.contact-card h2, .support-block h2 { font-size: 30px; }
.contact-email { font-family: var(--font-display); font-weight: 700; font-size: 24px; overflow-wrap: anywhere; }
.support-main { display: flex; flex-direction: column; gap: 64px; padding-bottom: 96px; }
.support-block { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.support-block > p { color: var(--ink-2); }
.support-block h3 { font-size: 22px; line-height: 1.2; font-weight: 700; margin-top: 8px; }
.support-block ol, .support-block ul, .contact-card ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.path { font-weight: 600; color: var(--ink); }
.callout { padding: 16px 18px; border-radius: 14px; background: var(--yellow-tint); color: var(--ink); font-size: 16px; }

/* Privacy policy: long-form legal text */
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 96px; color: var(--ink-2); }
.prose h1 { font-size: 48px; color: var(--ink); margin-bottom: 16px; }
.prose h2 { font-size: 28px; line-height: 1.2; color: var(--ink); margin: 48px 0 14px; }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.prose a { overflow-wrap: anywhere; }
/* Wide tables scroll inside this wrapper, so the page never scrolls sideways. */
.table-wrap { max-width: 100%; overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line-card); border-radius: 14px; background: var(--white); }
.table-wrap:focus-visible { outline-offset: 2px; border-radius: 14px; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-card); }
.prose th { background: var(--sand); color: var(--ink); font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: 0; }

/* Tablet: stack the two-column sections. */
@media (max-width: 1023px) {
  h1 { font-size: 48px; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .mock { width: 100%; max-width: 480px; margin: 0 auto; }
  .multi, .privacy .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .proof .wrap { grid-template-columns: 1fr; gap: 12px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .nav-link.hide-narrow { display: none; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .nav-links { gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 28px; height: 28px; border-radius: 7px; }
  .brand span { font-size: 20px; }
  .nav-link.hide-phone { display: none; }
  .btn-pill { padding: 0 16px; font-size: 15px; }

  .hero { padding-top: 24px; padding-bottom: 40px; gap: 20px; }
  .hero-copy { gap: 20px; }
  .eyebrow { font-size: 12px; padding: 4px 12px; }
  h1 { font-size: 40px; line-height: 1.04; }
  h2 { font-size: 30px; }
  .lede { font-size: 17px; max-width: none; }
  .section-sub { font-size: 16px; }
  .section { padding-top: 56px; padding-bottom: 48px; gap: 28px; }
  .section-head { gap: 10px; }
  .store-btn { width: 100%; align-items: center; text-align: center; }
  .cta-row { gap: 8px 18px; }

  .mock { height: 400px; max-width: none; margin: 8px 0 0; overflow: hidden; border-radius: 28px; background: radial-gradient(70% 70% at 50% 60%, #FFE3E9 0%, #F8EEE6 100%); }
  .mock-glow, .notif, .screen-icons, .row-extra { display: none; }
  .phone { position: absolute; top: 36px; width: 272px; height: 480px; border-radius: 42px; padding: 9px; }
  .screen { border-radius: 34px; }
  .screen-top { height: 50px; }
  .screen-title { padding: 8px 18px 12px; font-size: 28px; }
  .list { margin: 0 12px; }
  .row { padding: 12px; }
  .avatar { width: 46px; height: 46px; font-size: 18px; }
  .row-text { gap: 2px; }
  .row-name { font-size: 15px; }
  .row-breed { font-size: 13px; }

  .proof .wrap { padding-top: 20px; padding-bottom: 20px; }
  .proof-item { font-size: 15px; }
  .proof-item svg { width: 20px; height: 20px; }

  .card { gap: 12px; padding: 22px; border-radius: 18px; }
  .card-icon { width: 44px; height: 44px; border-radius: 12px; }
  .card-icon svg { width: 22px; height: 22px; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 15px; }

  .multi { padding-top: 8px; padding-bottom: 56px; gap: 24px; }
  .panel { gap: 10px; padding: 16px; border-radius: 20px; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 2px 4px; }
  .panel-head b { font-size: 18px; }
  .panel-head span { font-size: 13px; text-align: left; }
  .rec { padding: 12px; border-radius: 12px; }
  .rec-name { font-size: 15px; }
  .rec-sub { font-size: 13px; }
  .hide-mobile { display: none !important; }

  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 20px; }

  .privacy .wrap { padding-top: 56px; padding-bottom: 56px; gap: 18px; }
  .privacy-text { font-size: 16px; }

  .faq-item summary { font-size: 17px; padding: 12px 16px; }
  .faq-body { padding: 0 16px 16px; font-size: 15px; }

  .cta { padding-top: 56px; padding-bottom: 56px; align-items: stretch; text-align: left; gap: 16px; }
  .cta h2 { font-size: 32px; max-width: none; }
  .cta .section-sub { max-width: none; }

  .page-head { padding-top: 24px; padding-bottom: 32px; gap: 16px; }
  .page-head h1 { font-size: 40px; }
  .contact-card { padding: 20px; }
  .contact-card h2, .support-block h2 { font-size: 26px; }
  .contact-email { font-size: 20px; }
  .support-main { gap: 44px; padding-bottom: 56px; }
  .prose { padding-top: 16px; padding-bottom: 56px; }
  .prose h1 { font-size: 36px; }
  .prose h2 { font-size: 24px; margin-top: 40px; }

  .footer .wrap { padding-top: 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links { gap: 0 20px; }
}

/* Smallest phones: keep the nav on one line. Support stays in the footer. */
@media (max-width: 400px) {
  .nav-link.hide-xs { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn-pill, a.store-btn { transition: background-color 120ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
