/* Puffy marketing site — shared chrome
 * Sits on top of ../colors_and_type.css — import that FIRST.
 * Layout + nav + footer + section scaffolding only. Component
 * styles live inline in _site.jsx or per page.
 */

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--puffy-bg);
  color: var(--puffy-text-primary);
  font-family: var(--puffy-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

/* ─── Container ─────────────────────────────── */
.p-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.p-wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) {
  .p-wrap, .p-wrap-wide { padding: 0 20px; }
}

/* ─── Sections ──────────────────────────────── */
section { padding: 96px 0; position: relative; }
@media (max-width: 640px) { section { padding: 64px 0; } }

.p-eyebrow {
  font-size: 13px; font-weight: 590;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--puffy-teal-deep);
  margin: 0 0 16px;
}
.p-h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700; line-height: 1.02;
  letter-spacing: -0.03em; margin: 0;
  color: #000;
  text-wrap: balance;
}
.p-h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 16px;
  color: var(--puffy-text-primary);
  text-wrap: balance;
}
.p-h3 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.015em; margin: 0 0 8px;
  color: var(--puffy-text-primary);
}
.p-lede {
  font-size: 19px; line-height: 1.5;
  color: var(--puffy-text-primary); opacity: 0.75;
  margin: 0; max-width: 640px;
  text-wrap: pretty;
}

/* ─── Buttons (web variants) ────────────────── */
.p-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 54px; padding: 0 24px;
  border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 590;
  letter-spacing: -0.2px;
  transition: transform 200ms var(--puffy-ease), background 200ms;
}
.p-btn:active { transform: scale(0.97); }
.p-btn--primary {
  background: var(--puffy-mint);
  border: 3px solid var(--puffy-mint-stroke);
  color: #000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0 28px;
}
.p-btn--primary:hover { background: #8FF3E7; }
.p-btn--secondary {
  background: var(--puffy-btn-secondary);
  color: #000;
}
.p-btn--ghost {
  background: transparent; color: var(--puffy-text-primary);
  padding: 0 12px; height: 40px;
}
.p-btn--ghost:hover { color: var(--puffy-teal-deep); }

/* ─── Nav ───────────────────────────────────── */
.p-nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.p-nav-inner {
  display: flex; align-items: center; gap: 8px;
}
.p-nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  color: #000;
}
.p-nav-links {
  display: flex; gap: 8px; margin-left: 8px;
  align-items: center; flex: 1;
}
.p-nav-link {
  font-size: 15px; font-weight: 510;
  color: var(--puffy-text-primary);
  padding: 8px 14px; border-radius: 999px;
  transition: background 150ms;
}
.p-nav-link:hover { background: rgba(0,0,0,0.04); }
.p-nav-link.is-active { color: #000; font-weight: 590; }
@media (max-width: 720px) {
  .p-nav-link:not(.p-nav-link--cta) { display: none; }
}

/* ─── Footer ────────────────────────────────── */
.p-footer {
  background: #F7F7F5;
  border-top: 1px solid rgba(0,0,0,0.04);
  padding: 80px 0 48px;
  color: var(--puffy-text-primary);
}
.p-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.p-footer-grid--wide {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}
@media (max-width: 960px) {
  .p-footer-grid--wide { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .p-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .p-footer-grid--wide { grid-template-columns: 1fr 1fr; }
}
.p-footer-col h4 {
  font-size: 12px; font-weight: 590;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--puffy-text-secondary);
  margin: 0 0 20px;
}
.p-footer-col ul { list-style: none; padding: 0; margin: 0; }
.p-footer-col li { margin-bottom: 10px; }
.p-footer-col a { font-size: 15px; color: var(--puffy-text-primary); opacity: 0.75; }
.p-footer-col a:hover { opacity: 1; color: var(--puffy-teal-deep); }
.p-footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--puffy-text-secondary);
}

/* ─── Cards ─────────────────────────────────── */
.p-card {
  background: #fff; border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.04);
  padding: 32px;
}

/* ─── Waitlist input ────────────────────────── */
.p-waitlist {
  display: flex; gap: 8px;
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px; padding: 6px 6px 6px 20px;
  max-width: 440px;
  transition: border-color 150ms, box-shadow 150ms;
}
.p-waitlist:focus-within {
  border-color: var(--puffy-mint-stroke);
  box-shadow: 0 0 0 4px rgba(127,239,227,0.25);
}
.p-waitlist input {
  flex: 1; border: none; outline: none;
  font-family: inherit; font-size: 16px;
  color: var(--puffy-text-primary); background: transparent;
}
.p-waitlist input::placeholder { color: var(--puffy-text-secondary); }
.p-waitlist button {
  height: 44px; padding: 0 20px;
  background: var(--puffy-mint);
  border: 2px solid var(--puffy-mint-stroke);
  border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 590;
  color: #000; cursor: pointer;
  transition: background 150ms, transform 150ms;
}
.p-waitlist button:hover { background: #8FF3E7; }
.p-waitlist button:active { transform: scale(0.96); }
.p-waitlist--ok button { background: rgba(118,118,128,0.12); border-color: transparent; }

/* ─── Scroll-reveal ─────────────────────────── */
.p-reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--puffy-ease), transform 700ms var(--puffy-ease);
}
.p-reveal.is-in { opacity: 1; transform: none; }

/* ─── Paw pattern bg (removed — kept class as no-op to avoid breaking refs) ─ */
.p-paw-bg { display: none; }

/* ─── Article typography ────────────────────── */
.p-article-lede {
  font-size: 22px; line-height: 1.5; font-weight: 400;
  color: var(--puffy-text-primary); opacity: 0.82;
  margin: 0 0 32px; text-wrap: pretty;
}
.p-article-p {
  font-size: 18px; line-height: 1.65;
  color: var(--puffy-text-primary); opacity: 0.86;
  margin: 0 0 22px; text-wrap: pretty;
}
.p-article-h2 {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--puffy-text-primary);
  margin: 44px 0 18px;
}
.p-article-pull {
  margin: 40px -24px;
  padding: 28px 32px 32px;
  background: rgba(127,239,227,0.18);
  border-left: 3px solid var(--puffy-mint-stroke);
  border-radius: 0 20px 20px 0;
}
.p-article-pull blockquote {
  font-size: 24px; font-weight: 510;
  line-height: 1.35; letter-spacing: -0.015em;
  margin: 12px 0 0; color: var(--puffy-text-primary);
  text-wrap: balance;
}

/* ─── FAQ accordion ─────────────────────────── */
.p-faq-item {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 22px 0;
}
.p-faq-item:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.p-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; width: 100%;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 20px; font-weight: 510;
  letter-spacing: -0.01em; color: var(--puffy-text-primary);
  text-align: left;
}
.p-faq-q-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--puffy-mint); border: 2px solid var(--puffy-mint-stroke);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 260ms var(--puffy-ease);
}
.p-faq-item.is-open .p-faq-q-icon { transform: rotate(45deg); }
.p-faq-a {
  overflow: hidden; max-height: 0;
  transition: max-height 360ms var(--puffy-ease), margin 360ms var(--puffy-ease);
}
.p-faq-item.is-open .p-faq-a { max-height: 400px; margin-top: 14px; }
.p-faq-a p {
  font-size: 16px; line-height: 1.6;
  color: var(--puffy-text-primary); opacity: 0.8;
  margin: 0 0 10px; max-width: 640px;
}

/* ─── Legal/docs page ───────────────────────── */
.p-doc { max-width: 720px; }
.p-doc h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em; margin: 36px 0 12px;
  color: var(--puffy-text-primary);
}
.p-doc p {
  font-size: 16px; line-height: 1.6;
  color: var(--puffy-text-primary); opacity: 0.82;
  margin: 0 0 14px;
}
.p-doc ul { margin: 0 0 16px; padding-left: 22px; }
.p-doc li { font-size: 16px; line-height: 1.6; color: var(--puffy-text-primary); opacity: 0.82; margin-bottom: 6px; }

/* ─── Utils ─────────────────────────────────── */
.p-muted { color: var(--puffy-text-secondary); }
.p-center { text-align: center; }
