/* PetCare — Landing styles
   Palette mirrors the app: sage #4A7C59, cream #F5F1E8, amber #D4A574, terracotta #C67B5C
*/

:root {
  --sage: #4A7C59;
  --sage-dark: #2D5C3F;
  --sage-light: #6FA87D;
  --cream: #F5F1E8;
  --cream-deep: #EFE9DA;
  --amber: #D4A574;
  --amber-dark: #B8874A;
  --terracotta: #C67B5C;
  --sky: #7FA5C4;
  --ink: #1F2A24;
  --ink-soft: #4B5A52;
  --ink-mute: #7E8B83;
  --line: rgba(47, 66, 56, 0.10);
  --shadow-sm: 0 2px 8px rgba(45, 92, 63, 0.06);
  --shadow-md: 0 10px 30px rgba(45, 92, 63, 0.10);
  --shadow-lg: 0 24px 60px rgba(45, 92, 63, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

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

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAV ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-logo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--sage) 0%, var(--sage-dark) 100%);
  border-radius: 12px;
  color: white;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--sage-dark); }
.nav-cta {
  background: var(--sage);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff !important;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 72px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(55% 60% at 20% 30%, rgba(74, 124, 89, 0.18) 0%, transparent 60%),
    radial-gradient(50% 55% at 80% 20%, rgba(212, 165, 116, 0.22) 0%, transparent 60%),
    radial-gradient(45% 50% at 60% 70%, rgba(198, 123, 92, 0.14) 0%, transparent 60%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 124, 89, 0.10);
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.18);
}
.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--sage) 0%, var(--sage-dark) 60%, var(--amber-dark) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 32px;
}
.store-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.store-btn .store-icon { font-size: 26px; }
.store-btn .small { display: block; font-size: 11px; font-weight: 500; opacity: .7; margin-bottom: 2px; }
.store-btn .big { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.store-btn.coming-soon {
  background: rgba(47, 66, 56, 0.08);
  color: var(--ink-soft);
  box-shadow: none;
}
.store-btn.coming-soon:hover { transform: none; color: var(--ink-soft); }

.trust-row {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-mute);
  font-size: 13px;
}
.trust-row .stars { color: var(--amber-dark); letter-spacing: 2px; }

/* Phone mockup on the right */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.phone-wrap::before {
  content: '';
  position: absolute;
  inset: 8%;
  background: linear-gradient(160deg, rgba(74, 124, 89, 0.22), rgba(212, 165, 116, 0.22));
  filter: blur(60px);
  border-radius: 50%;
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 610px;
  background: var(--ink);
  border-radius: 48px;
  padding: 14px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.04);
  transform: rotate(-3deg);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.phone:hover { transform: rotate(0deg) translateY(-6px); }
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(170deg, #F5F1E8 0%, #EFE9DA 100%);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 3;
}
.app-header {
  padding: 48px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--sage-dark);
  letter-spacing: -0.02em;
}
.app-header .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--terracotta));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
.card {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  margin: 12px 18px;
  box-shadow: 0 6px 20px rgba(45, 92, 63, 0.06);
  display: flex;
  align-items: center;
  gap: 14px;
}
.card .ic {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
}
.card.care .ic { background: rgba(74, 124, 89, 0.14); }
.card.med  .ic { background: rgba(127, 165, 196, 0.18); }
.card.rem  .ic { background: rgba(212, 165, 116, 0.22); }
.card h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.card p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-mute);
}
.card .pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 124, 89, 0.12);
  color: var(--sage-dark);
}

/* ========== SECTIONS ========== */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .kicker {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sage);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

/* Feature grid */
.features {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid var(--line);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature .f-ic {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 18px;
}
.feature.c1 .f-ic { background: rgba(74, 124, 89, 0.14); }
.feature.c2 .f-ic { background: rgba(127, 165, 196, 0.18); }
.feature.c3 .f-ic { background: rgba(212, 165, 116, 0.22); }
.feature.c4 .f-ic { background: rgba(198, 123, 92, 0.18); }
.feature.c5 .f-ic { background: rgba(74, 124, 89, 0.18); }
.feature.c6 .f-ic { background: rgba(127, 165, 196, 0.14); }
.feature h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.01em; }
.feature p  { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.step {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.step-num {
  position: absolute;
  top: -22px; left: 28px;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--sage), var(--sage-dark));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin: 8px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 60%, var(--sage-light) 120%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-xl);
  margin: 0 24px;
  padding: 72px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 14px; letter-spacing: -.02em; }
.cta p { margin: 0 auto 28px; max-width: 520px; color: rgba(255,255,255,0.9); font-size: 17px; }
.cta .store-row { justify-content: center; }
.cta .store-btn { background: #fff; color: var(--ink); }
.cta .store-btn:hover { color: var(--ink); }
.cta .store-btn.coming-soon { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.78); }

/* Footer */
.footer {
  padding: 48px 0 40px;
  color: var(--ink-mute);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer a { color: var(--ink-soft); margin-left: 20px; }
.footer a:first-child { margin-left: 0; }

/* ========== LEGAL pages ========== */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.legal .meta {
  color: var(--ink-mute);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  letter-spacing: -.01em;
  color: var(--sage-dark);
}
.legal h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--ink);
}
.legal p, .legal li {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--sage); border-bottom: 1px solid rgba(74,124,89,.3); }

/* ========== responsive ========== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .store-row { justify-content: center; }
  .trust-row { justify-content: center; }
  .phone-wrap { min-height: 560px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta { margin: 0 12px; padding: 56px 20px; }
  .phone { width: 260px; height: 540px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer a { margin: 0 10px; }
}

/* entrance fade-up */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }
