:root {
  --bg: #f5f7ff;
  --surface: rgba(255,255,255,.86);
  --surface-solid: #ffffff;
  --ink: #10131f;
  --muted: #656b7c;
  --line: rgba(16,19,31,.09);
  --brand: #4d6bff;
  --brand-2: #7a5cff;
  --brand-soft: #e9edff;
  --green: #168a61;
  --yellow: #a56800;
  --red: #b93d45;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(38, 49, 104, .14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -5%, rgba(122,92,255,.16), transparent 30%),
    radial-gradient(circle at 95% 4%, rgba(77,107,255,.14), transparent 28%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.shell { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0;
  background: rgba(245,247,255,.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16,19,31,.04);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; letter-spacing: -.035em; font-size: 1.15rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 8px 24px rgba(77,107,255,.28); }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 10px 12px; border-radius: 13px; font-size: .92rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,.78); }
.nav-cta { background: var(--ink) !important; color: white !important; }

.hero { min-height: 760px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding: 78px 0 76px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.68); color: #4d5877; font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(77,107,255,.12); }
h1 { margin: 20px 0 22px; font-size: clamp(3.25rem, 7vw, 6.8rem); line-height: .94; letter-spacing: -.07em; max-width: 860px; }
.hero h1 span { background: linear-gradient(115deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 0; max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 18px; border-radius: 16px; border: 1px solid transparent; text-decoration: none; font-weight: 720; font-size: .95rem; }
.btn-primary { background: var(--ink); color: white; box-shadow: 0 12px 30px rgba(16,19,31,.18); }
.btn-secondary { background: rgba(255,255,255,.76); border-color: var(--line); }
.microcopy { color: #858b9b; font-size: .82rem; margin-top: 14px; }

.phone-stage { position: relative; min-height: 610px; display: grid; place-items: center; }
.glow { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(77,107,255,.28), rgba(122,92,255,.08) 48%, transparent 69%); filter: blur(10px); }
.phone { position: relative; width: min(340px, 82vw); border: 10px solid #181a21; border-radius: 54px; background: #17191f; padding: 7px; box-shadow: 0 42px 90px rgba(28,34,73,.30); transform: rotate(2deg); }
.phone-screen { min-height: 640px; overflow: hidden; border-radius: 39px; background: linear-gradient(180deg, #e8edff 0%, #f8f9ff 38%, white 100%); position: relative; padding: 22px 18px; }
.dynamic-island { width: 92px; height: 25px; border-radius: 99px; background: #0e0f12; margin: 1px auto 28px; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pet-chip, .day-chip { padding: 9px 11px; border-radius: 13px; background: rgba(255,255,255,.72); box-shadow: 0 8px 22px rgba(43,52,102,.08); font-size: .72rem; font-weight: 750; }
.pet-area { margin: 42px auto 28px; width: 220px; height: 220px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #dfe6ff, #f0e9ff); box-shadow: inset 0 0 0 1px rgba(77,107,255,.09), 0 18px 50px rgba(77,107,255,.12); }
.pet-face { font-size: 6.3rem; filter: saturate(.9); }
.scan-title { text-align: center; font-size: 1.38rem; font-weight: 790; letter-spacing: -.035em; }
.scan-sub { text-align: center; margin: 8px auto 0; color: var(--muted); font-size: .82rem; max-width: 220px; line-height: 1.5; }
.triage { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 26px; }
.triage div { padding: 11px 8px; border-radius: 14px; text-align: center; font-size: .67rem; font-weight: 760; background: white; border: 1px solid var(--line); }
.triage .g { color: var(--green); } .triage .y { color: var(--yellow); } .triage .r { color: var(--red); }
.capture { width: 70px; height: 70px; border-radius: 50%; border: 6px solid white; background: var(--brand); box-shadow: 0 0 0 2px rgba(77,107,255,.25), 0 14px 30px rgba(77,107,255,.28); margin: 34px auto 0; }

.section { padding: 92px 0; }
.section-tight { padding: 44px 0 78px; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section h2 { font-size: clamp(2.2rem, 4.6vw, 4.15rem); line-height: 1.02; letter-spacing: -.055em; margin: 0 0 16px; }
.section p { color: var(--muted); line-height: 1.7; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 14px 40px rgba(37,46,91,.06); }
.card-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 24px; }
.card h3 { margin: 0 0 10px; font-size: 1.14rem; letter-spacing: -.025em; }
.card p { margin: 0; font-size: .94rem; }

.callout { padding: 36px; background: linear-gradient(135deg, #161925, #242845); color: white; border-radius: 34px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; box-shadow: var(--shadow); }
.callout h3 { margin: 0 0 9px; font-size: clamp(1.7rem, 3vw, 2.65rem); letter-spacing: -.045em; }
.callout p { margin: 0; color: #c8cce0; max-width: 700px; line-height: 1.6; }
.callout .btn { background: white; color: #151824; white-space: nowrap; }

.legal-hero { padding: 74px 0 36px; }
.legal-hero h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); margin-bottom: 14px; }
.legal-meta { color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 42px; align-items: start; padding-bottom: 94px; }
.toc { position: sticky; top: 94px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 9px 10px; border-radius: 10px; font-size: .86rem; }
.toc a:hover { background: var(--brand-soft); color: var(--ink); }
.prose { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 5vw, 56px); box-shadow: 0 18px 56px rgba(37,46,91,.07); }
.prose h2 { scroll-margin-top: 110px; font-size: 1.55rem; letter-spacing: -.03em; margin: 42px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 9px; font-size: 1.02rem; }
.prose p, .prose li { color: #4f5669; line-height: 1.75; font-size: .97rem; }
.prose ul { padding-left: 21px; }
.prose strong { color: var(--ink); }
.notice { border-left: 4px solid var(--brand); padding: 15px 18px; background: #f3f5ff; border-radius: 0 14px 14px 0; margin: 22px 0; color: #444c67; line-height: 1.65; }
.contact-card { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px; border-radius: 18px; background: #f7f8fc; border: 1px solid var(--line); margin-top: 18px; }
.contact-card a { color: var(--brand); font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }

.support-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; padding-bottom: 90px; }
.support-panel { background: white; border: 1px solid var(--line); border-radius: 30px; padding: 30px; }
.support-panel h2 { margin-top: 0; font-size: 2rem; letter-spacing: -.04em; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 0; padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 720; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.email-box { background: #f6f7ff; border: 1px solid #e4e7fa; border-radius: 20px; padding: 20px; margin-top: 18px; }
.email-box a { color: var(--brand); font-weight: 760; text-decoration: none; overflow-wrap: anywhere; }
.steps { counter-reset: item; display: grid; gap: 13px; margin: 24px 0; }
.step { position: relative; padding: 18px 18px 18px 58px; background: #f8f9fc; border: 1px solid var(--line); border-radius: 18px; color: #555d70; line-height: 1.6; }
.step::before { counter-increment: item; content: counter(item); position: absolute; left: 17px; top: 17px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: white; font-size: .78rem; font-weight: 800; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 46px; background: rgba(255,255,255,.44); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: start; }
.footer-copy { color: var(--muted); font-size: .84rem; line-height: 1.6; max-width: 600px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .84rem; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero .eyebrow { margin-inline: auto; }
  .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .phone-stage { min-height: 650px; }
  .grid-3 { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .toc a { white-space: nowrap; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { position: static; }
  .nav { align-items: flex-start; }
  .nav-links { display: none; }
  .shell { width: min(calc(100% - 26px), var(--max)); }
  .hero { min-height: auto; padding: 48px 0 58px; }
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .phone-stage { min-height: 580px; }
  .phone { width: 300px; }
  .phone-screen { min-height: 560px; }
  .pet-area { width: 190px; height: 190px; margin-top: 30px; }
  .pet-face { font-size: 5.4rem; }
  .section { padding: 68px 0; }
  .legal-hero { padding-top: 50px; }
  .legal-layout { gap: 20px; }
  .prose { border-radius: 24px; }
  .contact-card { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .phone { animation: float 6s ease-in-out infinite; }
  @keyframes float { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-12px); } }
}
