/*
 * Petpet · marketing site stylesheet
 *
 * No framework. System typography stack, prefers-color-scheme aware,
 * mobile-first. Palette mirrors the app's brand tokens.
 *
 * Positioning (locked 2026-11-16): "The lifetime book for your pet.
 * Private, forever yours."
 *
 * The site is one page + two linked legal pages (privacy, support).
 * It is intentionally quiet, like the product.
 */

:root {
  --bg-primary: #f2f2f7;
  --bg-elevated: #ffffff;
  --bg-tinted: #e9e9f0;
  --bg-warm: #faf7f2;
  --label-primary: #1c1c1e;
  --label-secondary: #3c3c43;
  --label-tertiary: #6a6a70;
  --accent: #0a84ff;
  --accent-ink: #003c88;
  --brand-pink: #ff375f;
  --brand-teal: #40c8e0;
  --border: rgba(60, 60, 67, 0.15);
  --border-strong: rgba(60, 60, 67, 0.3);
  --radius-lg: 20px;
  --radius-md: 12px;
  --max-width: 980px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #000000;
    --bg-elevated: #1c1c1e;
    --bg-tinted: #2c2c2e;
    --bg-warm: #1a1816;
    --label-primary: #ffffff;
    --label-secondary: #ebebf5cc;
    --label-tertiary: #ebebf599;
    --border: rgba(84, 84, 88, 0.6);
    --border-strong: rgba(120, 120, 128, 0.7);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--label-primary);
  background: var(--bg-primary);
  line-height: 1.5;
  font-size: 17px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ──────────────────────────────── Navigation ───────────────────── */

nav.top {
  padding: 24px 0 8px;
}

nav.top .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

nav.top .brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--label-primary);
}

nav.top .brand a {
  color: inherit;
}

nav.top .links a {
  margin-left: 20px;
  font-size: 15px;
  color: var(--label-secondary);
}

/* ─────────────────────────────────── Hero ──────────────────────── */

.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--label-primary);
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 22px;
  font-weight: 500;
  color: var(--label-primary);
  max-width: 580px;
  margin: 0 auto 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero .sub-tagline {
  font-size: 17px;
  color: var(--label-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

/* Waitlist form (Buttondown embed) */

.waitlist-form {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 18px;
  font-size: 16px;
  font-family: inherit;
  color: var(--label-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.18);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--label-tertiary);
}

.waitlist-form button {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.waitlist-form button:hover {
  transform: translateY(-1px);
  background: var(--accent-ink);
}

.waitlist-form.large {
  max-width: 540px;
}

.waitlist-form.large input[type="email"] {
  padding: 16px 20px;
  font-size: 17px;
}

.waitlist-form.large button {
  padding: 16px 26px;
  font-size: 17px;
}

.waitlist-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--label-tertiary);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Legacy .btn-* kept for any external links */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tinted);
  color: var(--label-primary);
}

.btn-secondary:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* ────────────────────────────── Screenshots ────────────────────── */

.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 48px 0;
  max-width: 900px;
  margin: 0 auto;
}

.screens img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  .screens img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
      0 2px 10px rgba(0, 0, 0, 0.3);
  }
}

/* ───────────────────────────────── Sections ────────────────────── */

section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--label-primary);
  line-height: 1.2;
}

section > p {
  color: var(--label-secondary);
  max-width: 720px;
  margin-bottom: 16px;
}

/* ─────────────────────────────── Why / founder ─────────────────── */

#why .founder-note {
  font-size: 18px;
  line-height: 1.65;
  color: var(--label-secondary);
  max-width: 680px;
  margin-bottom: 20px;
}

#why .founder-note:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────── Three pillars ─────────────────── */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.pillar {
  padding: 28px 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.pillar h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--label-primary);
  letter-spacing: -0.01em;
}

.pillar p {
  color: var(--label-tertiary);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* ─────────────────────────────── vs Instagram ──────────────────── */

#vs-instagram h2 {
  text-align: center;
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 36px;
}

.comparison {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.comparison thead th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--label-primary);
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.comparison thead th:first-child {
  width: 30%;
}

.comparison tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--label-secondary);
  vertical-align: top;
  line-height: 1.45;
}

.comparison tbody tr:last-child td {
  border-bottom: none;
}

.comparison tbody td:first-child {
  font-weight: 500;
  color: var(--label-primary);
}

.comparison tbody td:nth-child(2) {
  color: var(--label-tertiary);
}

.comparison tbody td:last-child {
  color: var(--label-primary);
  font-weight: 500;
}

/* ─────────────────────────────── Feature grid ──────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature {
  padding: 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--label-primary);
}

.feature p {
  color: var(--label-tertiary);
  font-size: 15px;
  margin-bottom: 0;
}

.feature.featured {
  border: 1px solid var(--accent);
  background: linear-gradient(
    135deg,
    var(--bg-elevated) 0%,
    rgba(10, 132, 255, 0.06) 100%
  );
}

.feature.featured h3::after {
  content: " · centerpiece";
  color: var(--accent);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────── Privacy stance ────────────────── */

.stance {
  margin-top: 32px;
  padding: 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.stance ul {
  padding-left: 20px;
  color: var(--label-secondary);
  list-style: none;
}

.stance li {
  margin-bottom: 10px;
  line-height: 1.55;
  position: relative;
  padding-left: 22px;
}

.stance li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

.stance li:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────── Pricing ───────────────────────── */

.pricing-primary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.price-card {
  position: relative;
  padding: 36px 28px 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.price-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-pink);
  color: white;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-card .plan-label {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label-tertiary);
  font-weight: 600;
  margin-bottom: 14px;
}

.price-card .amount {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--label-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.price-card .amount .currency {
  font-size: 32px;
  font-weight: 600;
  vertical-align: top;
  color: var(--label-secondary);
  margin-right: 2px;
}

.price-card .amount .cents {
  font-size: 24px;
  font-weight: 600;
  vertical-align: top;
  color: var(--label-secondary);
}

.price-card .period {
  font-size: 14px;
  color: var(--label-tertiary);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}

.price-card .note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--label-secondary);
}

.price-card.primary {
  border: 2px solid var(--label-primary);
  background: var(--bg-warm);
}

.price-card.early-supporter {
  border: 2px solid var(--brand-pink);
  background: var(--bg-elevated);
}

.price-card.early-supporter .es-cta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.price-card.early-supporter .es-cta a {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-pink);
}

.pricing-secondary {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--bg-tinted);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 32px;
}

.pricing-secondary-label {
  font-size: 14px;
  color: var(--label-tertiary);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.pricing-secondary-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  flex: 1 1 auto;
}

.pricing-secondary-rows .row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
}

.pricing-secondary-rows .name {
  color: var(--label-secondary);
  font-weight: 500;
}

.pricing-secondary-rows .price {
  color: var(--label-primary);
  font-weight: 600;
}

.pricing-secondary-rows .meta {
  color: var(--label-tertiary);
  font-size: 13px;
}

/* ─────────────────────────────── Final waitlist ────────────────── */

.waitlist-final {
  text-align: center;
  padding: 72px 0 64px;
}

.waitlist-final h2 {
  font-size: 36px;
  letter-spacing: -0.02em;
}

.waitlist-final > p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--label-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.waitlist-final .waitlist-note {
  margin-top: 16px;
  color: var(--label-tertiary);
}

/* ─────────────────────────────────── Footer ────────────────────── */

footer {
  padding: 40px 0 60px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  color: var(--label-tertiary);
  font-size: 14px;
}

footer .links {
  margin-bottom: 12px;
}

footer .links a {
  margin: 0 12px;
  color: var(--label-secondary);
}

/* ──────────────────────────── Responsive ───────────────────────── */

@media (max-width: 720px) {
  .hero h1 { font-size: 42px; }
  .hero .tagline { font-size: 19px; }
  .hero .sub-tagline { font-size: 16px; }
  .hero { padding: 48px 0 36px; }
  section { padding: 44px 0; }
  section h2 { font-size: 26px; }
  #vs-instagram h2 { font-size: 22px; }
  .waitlist-final { padding: 56px 0 48px; }
  .waitlist-final h2 { font-size: 28px; }
  .price-card .amount { font-size: 44px; }
  .price-card .amount .currency { font-size: 26px; }
  .price-card { padding: 32px 22px 26px; }
  .pricing-secondary { padding: 20px 22px; }
  .comparison table { font-size: 14px; }
  .comparison thead th,
  .comparison tbody td { padding: 12px 14px; }
}

@media (max-width: 440px) {
  .waitlist-form {
    flex-direction: column;
  }
  .waitlist-form input[type="email"],
  .waitlist-form button {
    width: 100%;
  }
}

/* ──────────────────────────── Legal pages ──────────────────────── */

.legal {
  padding: 48px 0;
}

.legal h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--label-primary);
}

.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--label-primary);
}

.legal p,
.legal li {
  color: var(--label-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.legal ul,
.legal ol {
  padding-left: 24px;
}

.legal .date {
  color: var(--label-tertiary);
  font-size: 14px;
  margin-bottom: 32px;
}
