/*
Theme Name: Yappigo
Theme URI: https://yappigo.com
Author: Yappigo
Author URI: https://yappigo.com
Description: The private digital home for your pet's life. A warm, playful theme for the Yappigo app website.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: yappigo
*/

/* ─── Design Tokens ─── */
:root {
  --bg: #f5fbff;
  --panel: #fff;
  --ink: #17223b;
  --muted: #5e687a;
  --line: #d9e9f8;
  --brand: #3d8bff;
  --brand-dark: #1968d8;
  --accent: #ff7a99;
  --cream: #eaf5ff;
  --shadow: 0 18px 45px rgba(23,34,59,.12);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 12%, rgba(61,139,255,.18), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(255,122,153,.18), transparent 26%),
    linear-gradient(180deg, #f5fbff, #fff7fb);
  min-height: 100vh;
}
body::before {
  content: "🐾 🐾 🐾";
  position: fixed;
  right: 28px;
  bottom: 24px;
  font-size: 34px;
  opacity: .12;
  letter-spacing: 14px;
  pointer-events: none;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ─── Typography ─── */
h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -.065em;
  margin: 18px 0;
}
h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 0 0 16px;
}
h3 { font-size: 22px; margin: 0 0 10px; letter-spacing: -.025em; }
p { color: var(--muted); line-height: 1.7; font-size: 17px; }
.lead { font-size: 22px; color: var(--muted); max-width: 700px; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
}
.logo-mark {
  width: 45px;
  height: 45px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 25px color-mix(in srgb, var(--brand) 35%, transparent);
  font-size: 23px;
  font-weight: 900;
}
.logo-name { font-size: 24px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 750;
  padding: 10px 13px;
  border-radius: 999px;
  transition: all .18s ease;
  font-size: 15px;
  display: block;
}
.site-nav a:hover {
  background: color-mix(in srgb, var(--cream) 80%, white);
  transform: translateY(-1px);
}
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
  background: var(--ink);
  color: var(--panel);
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}

/* ─── Main ─── */
main, .site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px 80px;
}

/* ─── Buttons ─── */
.button, .wp-block-button__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .18s ease;
  font-family: inherit;
  cursor: pointer;
}
.button.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 16px 30px color-mix(in srgb, var(--brand) 32%, transparent);
}
.button.primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.button.secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ─── Eyebrow ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--brand-dark);
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  font-size: 15px;
}

/* ─── Hero ─── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 46px;
  align-items: center;
  min-height: 620px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin: 30px 0 18px;
  flex-wrap: wrap;
}
.note { color: var(--muted); font-size: 14px; }

/* ─── Phone mockup ─── */
.phone-wrap { display: grid; place-items: center; }
.phone {
  width: min(370px, 92vw);
  min-height: 610px;
  border-radius: 44px;
  padding: 14px;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  transform: rotate(2deg);
  background: linear-gradient(180deg, #f7fbff, #fff0f5);
}
.phone-screen {
  min-height: 582px;
  border-radius: 34px;
  overflow: hidden;
  padding: 22px;
  background: linear-gradient(180deg, #f7fbff, #fff0f5);
}
.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-weight: 900;
}
.pet-card {
  background: var(--panel);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,.08);
  margin-bottom: 14px;
}
.pet-photo {
  height: 165px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 72px;
  background: linear-gradient(135deg, #bde3ff, #ffbdd0);
}
.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-card {
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  font-weight: 800;
  font-size: 14px;
}

/* ─── Sections ─── */
.section { margin: 74px 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }

/* ─── Grid ─── */
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

/* ─── Cards ─── */
.card {
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--brand-dark);
  font-size: 24px;
  margin-bottom: 16px;
}

/* ─── CTA Band ─── */
.band {
  background: var(--ink);
  color: var(--panel);
  border-radius: 34px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}
.band h2, .band h3 { color: var(--panel); }
.band p { color: color-mix(in srgb, var(--panel) 76%, transparent); }

/* ─── Waitlist Form ─── */
.form { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="email"], input[type="text"], textarea, select {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 250px;
  font: inherit;
  font-size: 16px;
}

/* ─── Page Title ─── */
.page-title { padding: 54px 0 22px; max-width: 840px; }
.content-page { max-width: 900px; }
.content-page .card { margin-bottom: 22px; }

/* ─── Checklist ─── */
.checklist { padding-left: 20px; color: var(--muted); line-height: 1.8; }

/* ─── Badges ─── */
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.badge {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
  color: var(--muted);
  font-size: 14px;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 15px;
}
.footer-inner a {
  color: var(--muted);
  margin-left: 14px;
  text-decoration: none;
  font-weight: 700;
}
.footer-inner a:hover { color: var(--ink); }

/* ─── WordPress Core Overrides ─── */
.wp-block-group { margin: 0; }
#wpadminbar { position: fixed !important; }

/* ─── Responsive ─── */
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .phone { transform: none; }
  .header-inner { align-items: flex-start; flex-direction: column; }
  .site-nav { justify-content: flex-start; }
}
