:root {
  --bg: #fff9f2;
  --surface: #ffffff;
  --ink: #2a211b;
  --muted: #7a6a5e;
  --line: #f0e2d5;
  --accent: #f07b3f;
  --accent-dark: #d9652b;
  --accent-soft: #ffe9db;
  --green: #4c9a6a;
  --shadow: 0 18px 50px rgba(74, 45, 20, 0.12);
  --radius: 20px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 750;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 242, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-paw {
  width: 30px;
  height: 30px;
  fill: var(--accent);
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.badge-soon {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #f7cdb4;
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero .accent {
  color: var(--accent);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 30em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(240, 123, 63, 0.32);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: #dfc7b3;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Phone */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone {
  width: min(340px, 100%);
  background: linear-gradient(165deg, #fffdfa, #fff4e8);
  border: 1px solid #f2ddca;
  border-radius: 36px;
  padding: 26px 22px 22px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  animation: float 7s ease-in-out infinite;
}

.phone-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.phone-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.phone-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.pet-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}

.pet-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--accent-soft);
  border-radius: 14px;
}

.pet-name {
  font-weight: 700;
}

.pet-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.mini-label {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.mini-value {
  font-size: 1.2rem;
  font-weight: 750;
}

.todo-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}

.todo-card.soft {
  opacity: 0.85;
}

.dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.dot.green {
  background: var(--green);
}

.todo-title {
  font-size: 0.9rem;
  font-weight: 650;
}

.todo-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 84px 0;
}

.section.alt {
  background: #fff3e7;
  border-block: 1px solid #f7e2d2;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(74, 45, 20, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--accent-soft);
  border-radius: 13px;
  margin-bottom: 16px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-list li {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #f3dcc8;
  border-radius: var(--radius);
  padding: 26px;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.about p {
  color: var(--muted);
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.about-card .muted {
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.muted {
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-weight: 750;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--ink);
}

.footer-legal {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Legal pages */
.legal-page {
  padding: 56px 0 80px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 10px 30px rgba(74, 45, 20, 0.05);
}

.legal-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.legal-scope {
  background: var(--accent-soft);
  border: 1px solid #f7cdb4;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 28px;
  max-width: 46em;
}

.legal-scope p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #6b4a33;
}

.legal-scope p + p {
  margin-top: 6px;
}

.legal-content p {
  margin: 0 0 0.9em;
  white-space: pre-wrap;
  color: #4a3d34;
}

.legal-content {
  max-width: 46em;
}

.legal-loading,
.legal-error {
  color: var(--muted);
  padding: 12px 0;
}

.legal-error a {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Animation */
@keyframes float {
  0%,
  100% {
    transform: rotate(1.5deg) translateY(0);
  }
  50% {
    transform: rotate(1.5deg) translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .phone {
    animation: none;
  }
  .btn,
  .feature {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner,
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-visual {
    order: 2;
  }

  .feature-grid,
  .step-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-legal {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .site-nav {
    display: none;
  }

  .header-inner {
    gap: 16px;
  }

  .badge-soon {
    margin-left: auto;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .feature-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
