/* New Puppy, What Now — shared funnel stylesheet.
   Palette read off Frank's own artwork, approved for /sleep and /start
   on Systeme August 27, 2026 (see Funnel Page Copy - DRAFT.md). Carried
   forward unchanged into the self-hosted build so the brand doesn't shift
   mid-funnel. Type scale, spacing, motion and focus treatment follow the
   banked reference in the vault's Web Design folder (visual-direction,
   typography, ui, animation, accessibility notes). */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --navy: #1c3157;
  --rust: #b45a28;
  --rust-shadow: #8c4420;
  --teal: #2f8f8a;
  --cream: #faf7f1;
  --ink: #23262b;
  --hairline: #ded7ca;
  --white: #ffffff;

  --content-width: 680px;
  --radius: 10px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.5rem;
  --space-6: 5rem;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); }
a:hover { color: var(--navy); }

::selection { background: var(--teal); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 var(--space-3); }
p strong { color: var(--navy); }

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-6);
}

.wrap--narrow { max-width: 560px; }

/* Brand mark — the one signature element every page carries, per the
   visual-direction note: spend the boldness once, keep it recognizable. */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.brand img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 4px solid var(--navy);
  object-fit: cover;
}

.brand span {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--teal);
}

.eyebrow {
  display: inline-block;
  font-size: 1.3em;
  margin-right: 0.35em;
  line-height: 1;
}

.rule {
  width: 56px;
  height: 3px;
  background: var(--teal);
  border: none;
  margin: var(--space-4) auto;
  border-radius: 2px;
}

/* Buttons and the checkout CTA */
.btn {
  display: inline-block;
  background: var(--rust);
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--rust-shadow);
  cursor: pointer;
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}

.btn:hover { color: var(--white); filter: brightness(1.04); }

.btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 0 var(--rust-shadow);
}

.btn-row { text-align: center; margin: var(--space-4) 0; }
.btn-row + p.fine { text-align: center; margin-top: var(--space-2); }

.fine { font-size: 0.9rem; color: #565b63; }

/* Table for the five debunked claims — approved as the one exception to
   "no bullet points," because a table reads as evidence, not opinion. */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: var(--space-2);
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th {
  background: var(--navy);
  color: var(--white);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
}

/* Feature image — used sparingly, one per page at most, to break up long
   copy on /guide rather than decorate every section. */
.feature-img {
  border-radius: var(--radius);
  margin: var(--space-4) 0;
  box-shadow: 0 8px 24px rgba(28, 49, 87, 0.12);
}

.footer {
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: #6b7078;
}

.footer a { color: #6b7078; text-decoration: underline; margin: 0 0.5em; }
.footer a:hover { color: var(--navy); }

/* Squeeze-page form */
.optin { display: flex; flex-direction: column; gap: var(--space-2); align-items: center; }

.optin input[type="email"],
.optin input[type="text"] {
  width: 100%;
  max-width: 380px;
  padding: 0.85em 1em;
  font-size: 1.05rem;
  border: 2px solid var(--hairline);
  border-radius: var(--radius);
  font-family: inherit;
  transition: border-color 120ms var(--ease-out);
}

.optin input[type="email"]:focus,
.optin input[type="text"]:focus { border-color: var(--teal); }

.optin .btn { width: 100%; max-width: 380px; }

.optin-status {
  min-height: 1.2em;
  font-size: 0.95rem;
}

.optin-status[data-state="error"] { color: var(--rust-shadow); }
.optin-status[data-state="ok"] { color: var(--teal); }

/* Entrance motion — fade plus a near-scale, never from zero, under 300ms
   per the banked animation note. Respects reduced motion below. */
.enter {
  animation: enter 320ms var(--ease-out) both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .enter { animation: none; }
  .btn { transition: none; }
  .btn:active { transform: none; }
}

@media (max-width: 480px) {
  .wrap { padding: var(--space-4) var(--space-2) var(--space-5); }
  table { font-size: 0.85rem; }
}
