/* =====================================================
   Teranima — Website Stylesheet
   Fonts: Nunito (headings) + Inter (body)
   Primary: #00796B  Accent: #8D6E63
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #00796B;
  --primary-dark:  #004D40;
  --primary-mid:   #00897B;
  --primary-light: #E0F2F1;
  --primary-pale:  #F2FAF9;

  --accent:        #8D6E63;
  --accent-light:  #FFEDE9;

  --healthy:       #1B6B35;
  --healthy-bg:    #DCF5E6;
  --warning:       #AD5700;
  --warning-bg:    #FFEDD0;
  --info:          #0062A4;
  --info-bg:       #D4E4FF;

  --bg:            #F7F9F9;
  --surface:       #FFFFFF;
  --surface-2:     #F3F7F7;
  --text:          #111827;
  --text-2:        #374151;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --border-light:  #F3F4F6;

  --r-sm:  12px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;

  --sh-sm: 0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-md: 0 4px 16px rgba(0,121,107,.09), 0 2px 6px rgba(0,0,0,.05);
  --sh-lg: 0 20px 56px rgba(0,121,107,.13), 0 6px 16px rgba(0,0,0,.07);

  --font-h: 'Nunito', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --nav-h: 70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.logo-paw { font-size: 1.45rem; line-height: 1; }

.logo-name {
  font-family: var(--font-h);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -.025em;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  transition: color .18s, background .18s;
}

.nav-links a:hover { color: var(--primary); background: var(--primary-light); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(155deg, var(--primary-light) 0%, rgba(224,242,241,.28) 45%, var(--bg) 72%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(0,137,123,.07) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(0,121,107,.18);
  letter-spacing: .01em;
}

.hero h1 {
  font-family: var(--font-h);
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--text);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.btn-store:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-store-icon { font-size: 1.4rem; line-height: 1; }

.btn-store-text { display: flex; flex-direction: column; text-align: left; }

.btn-store-sub { font-size: .68rem; font-weight: 500; opacity: .8; line-height: 1; }

.btn-store-main { font-size: .95rem; font-weight: 700; line-height: 1.3; }

.btn-google { background: var(--primary); color: white; }
.btn-apple  { background: #1C1C1E; color: white; }

.btn-soon { opacity: .65; cursor: default; pointer-events: none; }
.btn-soon:hover { transform: none; box-shadow: none; }

/* ---- App Screenshot ---- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 24px;
}

.app-screenshot {
  width: 256px;
  border-radius: 36px;
  box-shadow: var(--sh-lg), 0 0 0 10px rgba(0,0,0,.04);
  display: block;
}

/* Floating badges */
.float-badge {
  position: absolute;
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  box-shadow: var(--sh-md);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 1px solid var(--border-light);
  animation: float 3s ease-in-out infinite;
}

.float-badge:nth-child(2) { animation-delay: 1.5s; }

.badge-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}

.badge-left  { left: -18px; top: 72px; }
.badge-right { right: -16px; bottom: 88px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* =====================================================
   STATS
   ===================================================== */
.stats {
  background: var(--primary);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-divider {
  border-left: 1px solid rgba(255,255,255,.2);
  padding-left: 16px;
}

.stat-num {
  font-family: var(--font-h);
  font-size: 3.2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  letter-spacing: -.05em;
  margin-bottom: 8px;
}

.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.72);
  font-weight: 500;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about {
  padding: 100px 0;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.section-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 14px;
}

.about-text h2 {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 26px;
}

.about-text p {
  color: var(--text-2);
  line-height: 1.82;
  font-size: .975rem;
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-quote {
  margin-top: 28px;
  background: var(--primary-pale);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  font-family: var(--font-h);
  font-style: italic;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.55;
}

/* About visual stack */
.about-cards { display: flex; flex-direction: column; gap: 14px; }

.about-mini-card {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 22px 24px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow .2s, transform .2s;
}

.about-mini-card:hover { box-shadow: var(--sh-sm); transform: translateY(-1px); }

.mini-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mini-card-body {}

.mini-card-title {
  font-family: var(--font-h);
  font-size: .925rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.2;
}

.mini-card-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =====================================================
   PRINCIPLES
   ===================================================== */
.principles {
  padding: 100px 0;
  background: var(--bg);
}

.principles-header {
  text-align: center;
  margin-bottom: 60px;
}

.principles-header h2 {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -.025em;
  color: var(--text);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.principle-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: box-shadow .22s, transform .22s;
}

.principle-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }

.principle-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.principle-card h3 {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.principle-card p {
  font-size: .895rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--primary-dark);
  padding: 52px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
  letter-spacing: -.02em;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
}

.footer-links a:hover { color: white; }

.footer-copy { color: rgba(255,255,255,.38); font-size: .78rem; }

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-hero {
  padding: 72px 0 52px;
  background: linear-gradient(155deg, var(--primary-light) 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border-light);
}

.legal-hero h1 {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 10px;
}

.legal-hero .updated {
  font-size: .875rem;
  color: var(--text-muted);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.legal-body h2 {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 48px 0 12px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.82;
  margin-bottom: 12px;
}

.legal-body ul {
  margin: 8px 0 16px 22px;
}

.legal-body li {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 5px;
}

.legal-body strong { color: var(--text); font-weight: 600; }

.legal-note {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 15px 20px;
  margin: 24px 0;
  font-size: .9rem;
  color: var(--primary-dark);
  font-weight: 500;
  line-height: 1.6;
}

.legal-warning {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 15px 20px;
  margin: 24px 0;
  font-size: .9rem;
  color: #78350F;
  font-weight: 500;
  line-height: 1.6;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-visual { display: none; }
  .hero-sub { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 680px) {
  .hero { padding: 64px 0 56px; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-divider { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding-top: 32px; }
  .principles-grid { grid-template-columns: 1fr; }
  .about, .principles { padding: 72px 0; }
  .nav-links a:not(:last-child) { display: none; }
}
