/* ============================================================
   PawSOS Design System
   ============================================================ */

:root {
  /* Palette */
  --bg:           #ffffff;
  --bg-soft:      #F7FAFD;
  --text:         #1a1a1a;
  --muted:        #5a6370;
  --primary:      #1E6FB8;
  --primary-dark: #175d9a;
  --primary-weak: #F3F8FF;
  --border:       #D7E7FF;
  --card:         #ffffff;
  --shadow:       rgba(30, 111, 184, 0.07);
  --shadow-hover: rgba(30, 111, 184, 0.13);
  --red:          #c62828;
  --red-bg:       #fef3f3;

  /* Spacing (8px rhythm) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 80px;

  /* Type scale */
  --text-xs:  0.8125rem;  /* 13px */
  --text-sm:  0.875rem;   /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:  1.0625rem;  /* 17px */
  --text-lg:  1.125rem;   /* 18px */
  --text-xl:  1.25rem;    /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.375rem;   /* 38px */

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 50px;

  /* Layout */
  --max-w: 1100px;
  --max-w-narrow: 640px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--primary); }
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s4);
  background: var(--text);
  color: #fff;
  padding: var(--s2) var(--s4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
}
.skip-link:focus { top: 0; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--s5);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}

.header-logo { height: 38px; width: auto; }

.site-nav { display: flex; gap: var(--s5); align-items: center; }

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--s1) 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.site-nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s2);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  border-radius: 1px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--text);
  left: 0;
  border-radius: 1px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* === HERO === */
.hero {
  text-align: center;
  padding: var(--s9) var(--s5) var(--s8);
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--s5);
  color: var(--text);
}

.hero .subtitle {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--s7);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero .trust-line {
  display: block;
  margin-top: var(--s5);
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}

/* === STORE BADGES === */
.store-badges {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s, transform 0.2s;
}
.store-badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.store-badge:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}
.store-badge img {
  display: block;
  height: 44px;
  width: auto;
}

/* === SECTION UTILITY === */
.section {
  padding: var(--s9) var(--s5);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section--wide {
  max-width: 100%;
}
.section--tinted {
  background: var(--primary-weak);
}

.section-heading {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s7);
  color: var(--text);
}

/* === VALUES === */
.values {
  background: var(--primary-weak);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--s8) var(--s5);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  max-width: var(--max-w);
  margin: 0 auto;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s6) var(--s5);
  text-align: center;
  box-shadow: 0 1px 3px var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.value-card:hover {
  box-shadow: 0 4px 16px var(--shadow-hover);
  transform: translateY(-2px);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto var(--s4);
  background: var(--primary-weak);
  border-radius: var(--radius-md);
  color: var(--primary);
}
.value-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}

.value-card h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--s2);
  color: var(--text);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* === FEATURE CARDS === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s5);
  max-width: var(--max-w);
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s6) var(--s5);
  box-shadow: 0 1px 3px var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 4px 16px var(--shadow-hover);
  transform: translateY(-1px);
}

.feature-card h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--s2);
  color: var(--text);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* === SAFETY STRIP === */
.safety-strip {
  background: var(--red-bg);
  border-top: 3px solid var(--red);
  text-align: center;
  padding: var(--s7) var(--s5);
}

.safety-strip .urgent {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--red);
  margin-bottom: var(--s2);
}

.safety-strip p {
  font-size: var(--text-sm);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

/* === CREATED BY === */
.created-by {
  text-align: center;
  padding: var(--s9) var(--s5);
  background: var(--primary-weak);
  border-top: 3px solid var(--primary);
}

.created-by-inner {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.created-by h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
  color: var(--text);
}

.created-by p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--s4);
}

.created-by .vet-link {
  font-weight: 600;
  display: inline-block;
  margin-top: var(--s2);
  transition: color 0.2s;
}
.created-by .vet-link:hover { color: var(--primary-dark); }

/* === FIRST AID KIT === */
.first-aid-kit {
  text-align: center;
  padding: var(--s9) var(--s5);
}

.first-aid-kit h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--s3);
  color: var(--text);
}

.first-aid-kit p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--s6);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-base);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px var(--shadow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--shadow-hover);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 11px 28px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow-hover);
}
.btn-secondary:active { transform: translateY(0); }
.btn-secondary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* === FOOTER === */
.site-footer {
  background: #111;
  color: #aaa;
  padding: var(--s7) var(--s5) var(--s6);
  text-align: center;
}

.site-footer .store-badges { margin-bottom: var(--s5); }

.footer-links {
  display: flex;
  gap: var(--s5);
  justify-content: center;
  margin-bottom: var(--s4);
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-footer .copyright {
  font-size: var(--text-xs);
  color: #666;
}

/* === COMING SOON === */
.coming-soon {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s7) var(--s5);
  background: linear-gradient(180deg, var(--primary-weak) 0%, var(--bg) 50%);
}

.coming-soon .logo { height: 72px; margin-bottom: var(--s6); }

.coming-soon h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
  max-width: 480px;
  color: var(--text);
}

.coming-soon p {
  font-size: var(--text-base);
  color: var(--muted);
  margin-bottom: var(--s5);
  max-width: 480px;
  line-height: 1.7;
}

.coming-soon .highlights {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s6);
  font-size: var(--text-sm);
  color: var(--primary);
  font-weight: 600;
}

.coming-soon .store-badges { margin-bottom: var(--s6); }

.coming-soon .btn-secondary { margin-top: var(--s4); }

/* === LEGAL === */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--s7) var(--s5);
}

.legal h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
}

.legal .updated {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-bottom: var(--s6);
}

.legal h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: var(--s6);
  margin-bottom: var(--s3);
}

.legal p, .legal li {
  font-size: var(--text-sm);
  color: #333;
  margin-bottom: var(--s3);
  line-height: 1.7;
}

.legal ul {
  padding-left: var(--s5);
  margin-bottom: var(--s3);
}

.legal a { font-weight: 500; }

.back-link {
  display: inline-block;
  margin-top: var(--s6);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .site-header { padding: 0 var(--s4); }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: var(--s4) var(--s5);
    gap: var(--s3);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }

  .hero { padding: var(--s8) var(--s4) var(--s7); }
  .hero h1 { font-size: var(--text-3xl); }
  .hero .subtitle { font-size: var(--text-base); margin-bottom: var(--s6); }

  .store-badges { flex-direction: column; align-items: center; }

  .section { padding: var(--s8) var(--s4); }

  .values { padding: var(--s7) var(--s4); }
  .values-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .value-card {
    display: flex;
    gap: var(--s4);
    text-align: left;
    padding: var(--s5) var(--s4);
  }
  .value-card:hover { transform: none; }
  .value-icon { margin: 0; flex-shrink: 0; width: 44px; height: 44px; }
  .value-icon svg { width: 22px; height: 22px; }
  .value-card p { max-width: none; }

  .section-heading { font-size: var(--text-2xl); margin-bottom: var(--s6); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: var(--s5) var(--s4); }
  .feature-card:hover { transform: none; }

  .created-by { padding: var(--s8) var(--s4); }
  .created-by h2 { font-size: var(--text-2xl); }

  .first-aid-kit { padding: var(--s8) var(--s4); }
}

@media (max-width: 480px) {
  .hero { padding: var(--s7) var(--s4) var(--s6); }
  .hero h1 { font-size: var(--text-2xl); }

  .footer-links { flex-direction: column; gap: var(--s3); }
}
