/* Hallmark · genre: playful · macrostructure: Split Studio · theme: custom (Famipal brand: cream paper, copper accent, Fredoka + Nunito) · enrichment: real product screenshots + the app's Pal sprites · nav: N9 edge-aligned · footer: Ft5 statement
 * pre-emit critique: P4 H4 E4 S5 R4 V4
 * tone: warm, plain-spoken, for parents · anchor hue: 49 (copper)
 */
@import url("landing-tokens.css");

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0;
  letter-spacing: -0.01em; overflow-wrap: anywhere; min-width: 0; text-wrap: balance;
}
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-md); }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-underline-offset: 0.2em; }
a:hover { color: var(--color-accent-deep); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link { position: absolute; left: var(--space-md); top: -4rem; z-index: 50; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); }
.skip-link:focus { top: var(--space-md); }

/* Sections share one column width and gutter. */
.hero, .steps, .split, .more, .trust, .pricing, .faq, .journey__inner, .foot__statement, .foot__meta, .bar__inner {
  width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  white-space: nowrap; text-decoration: none; font-family: var(--font-body); font-weight: 700; font-size: var(--text-base);
  padding: 0.8rem 1.4rem; border-radius: var(--radius-pill); border: 2px solid var(--color-accent);
  background: var(--color-accent); color: var(--color-surface);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); color: var(--color-surface); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 0.95rem 1.7rem; font-size: var(--text-md); }
.btn--sm { padding: 0.5rem 1rem; font-size: var(--text-sm); }
.btn--ghost { background: transparent; color: var(--color-accent); }
.btn--ghost:hover { background: var(--color-accent-soft); color: var(--color-accent-deep); }
.link-quiet { color: var(--color-ink); font-weight: 600; text-decoration: none; padding: var(--space-xs); }
.link-quiet:hover { color: var(--color-accent); }

/* ---------- Bar (N9: brand on one edge, actions on the other) ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--color-paper); transition: box-shadow var(--dur-base) var(--ease-out); }
.bar.is-scrolled { box-shadow: 0 1px 0 var(--color-rule); }
.bar__inner { height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.bar__actions { display: flex; align-items: center; gap: var(--space-sm); }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; }
.brand img { width: 2.6rem; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--color-ink); letter-spacing: -0.01em; }
.wordmark__pal { color: var(--color-accent); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center;
  gap: var(--space-2xl); padding-block: var(--space-2xl) var(--space-3xl);
}
.hero__headline { font-size: var(--text-display-s); line-height: 1.05; letter-spacing: -0.02em; max-width: 14ch; }
.hero__headline .mark {
  background-image: linear-gradient(var(--color-paper-3), var(--color-paper-3));
  background-repeat: no-repeat; background-size: 100% 0.32em; background-position: 0 88%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__sub { font-size: var(--text-md); color: var(--color-ink-2); max-width: 34ch; margin-top: var(--space-lg); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero__note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); }
.hero__shot { position: relative; margin: 0; justify-self: center; width: min(100%, 22rem); }
.hero__peek { position: absolute; width: 6.5rem; left: -3.2rem; bottom: 2.5rem; image-rendering: pixelated; filter: drop-shadow(0 8px 10px var(--color-drop)); }

/* A screenshot is the app's own chrome -- no fake phone frame around it. */
.shot { width: 100%; border-radius: var(--radius-shot); border: 1px solid var(--color-rule); box-shadow: var(--shadow-card); background: var(--color-paper); }

/* ---------- Steps ---------- */
.steps { padding-block: var(--space-2xl); }
.steps__list { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.step { background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-lg); display: grid; gap: var(--space-sm); align-content: start; }
.step__num {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill); display: grid; place-items: center;
  background: var(--color-accent-soft); color: var(--color-accent-deep); font-family: var(--font-display); font-weight: 600; font-size: var(--text-md);
}
.step p { color: var(--color-ink-2); }

/* ---------- Split rows (text one side, proof the other, alternating) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-2xl); padding-block: var(--space-2xl); }
.split--flip .split__text { order: 2; }
.split__text { display: grid; gap: var(--space-md); max-width: 30rem; }
.split__text > p { color: var(--color-ink-2); font-size: var(--text-md); }
.split__shot { margin: 0; justify-self: center; width: min(100%, 19rem); }
.ticks { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.ticks li { display: flex; gap: var(--space-sm); align-items: flex-start; }
.ticks .icon { color: var(--color-accent); margin-top: 0.2em; }

/* ---------- Journey (dark warm band) ---------- */
.journey { background: var(--color-night); color: var(--color-night-ink); padding-block: var(--space-3xl); margin-block: var(--space-2xl); }
.journey h2, .journey h3 { color: var(--color-night-ink); }
.journey__lead { max-width: 40rem; margin-top: var(--space-md); font-size: var(--text-md); opacity: 0.85; }
.stages { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); align-items: end; }
.stage { text-align: center; display: grid; gap: var(--space-2xs); }
.stage p { font-size: var(--text-sm); opacity: 0.8; }
.stage__art { height: 10rem; display: flex; align-items: flex-end; justify-content: center; margin-bottom: var(--space-sm); }
.stage__art img { image-rendering: pixelated; }
/* Stage sizes follow the app (PetSprite.vue): baby 0.6, teen 0.8, adult 1. */
.stage--egg .stage__art img { width: 4.5rem; }
.stage--baby .stage__art img { width: 6rem; }
.stage--teen .stage__art img { width: 8rem; }
.stage--adult .stage__art img { width: 10rem; animation: aura 3.2s var(--ease-in-out) infinite; filter: drop-shadow(0 0 6px var(--color-glow)) drop-shadow(0 0 14px var(--color-glow-2)); }
@keyframes aura { 50% { filter: drop-shadow(0 0 10px var(--color-glow)) drop-shadow(0 0 22px var(--color-glow-2-max)); } }
.collect { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--color-night-rule); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-xl); align-items: center; }
.collect__text { display: grid; gap: var(--space-xs); }
.collect__text p { opacity: 0.85; }
.collect__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-xs); }
.collect__row img { image-rendering: pixelated; width: 100%; }

/* ---------- More ---------- */
.more { padding-block: var(--space-2xl); }
.more__list { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
.more__list li { display: grid; gap: var(--space-xs); align-content: start; }
.more__list p { color: var(--color-ink-2); }
.more__icon { width: 2.75rem; height: 2.75rem; border-radius: 14px; display: grid; place-items: center; background: var(--color-accent-soft); color: var(--color-accent-deep); margin-bottom: var(--space-2xs); }

/* ---------- Trust ---------- */
.trust { padding-block: var(--space-2xl); }
.trust h2 { font-size: var(--text-xl); }
.trust__list { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.trust__list li {
  display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-surface); font-weight: 600;
}
.trust__list .icon { color: var(--color-nest); }

/* ---------- Pricing (two plans) ---------- */
.pricing { padding-block: var(--space-2xl); text-align: center; }
.plans { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); align-items: stretch; }
.plan {
  background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card);
  padding: var(--space-xl); display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--space-sm); justify-items: start;
}
.plan--family { background: var(--color-paper-2); border-color: var(--color-paper-3); }
.plans--single { grid-template-columns: minmax(0, 34rem); justify-content: center; }
.plans--single .plan { justify-items: center; text-align: center; grid-template-rows: none; }
.plans--single .plan__price { justify-content: center; }
.plan__yearly { color: var(--color-accent-deep); font-weight: 700; margin-top: calc(var(--space-xs) * -1); }
.plan__price { display: flex; align-items: baseline; gap: var(--space-xs); flex-wrap: wrap; }
.price { font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); font-variant-numeric: tabular-nums; color: var(--color-ink); line-height: 1.1; }
.price__unit { color: var(--color-ink-2); font-weight: 600; }
.plan__details { color: var(--color-ink-2); }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--space-2xl); max-width: 50rem; }
.faq__list { margin-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.faq__item { border-bottom: 1px solid var(--color-rule); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: var(--space-md) 2.5rem var(--space-md) 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-md);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; position: absolute; right: 0.5rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.4rem;
  border-right: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: rotate(45deg);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.faq__item summary:hover { color: var(--color-accent); }
.faq__item p { padding-bottom: var(--space-md); color: var(--color-ink-2); max-width: 42rem; }

/* ---------- Footer (Ft5 statement) ---------- */
.foot { margin-top: var(--space-2xl); background: var(--color-paper-2); }
.foot__statement { padding-block: var(--space-3xl) var(--space-2xl); display: grid; justify-items: center; text-align: center; gap: var(--space-md); }
.foot__pal { width: 7rem; image-rendering: pixelated; }
.foot__title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.15; overflow-wrap: anywhere; }
.foot__body { color: var(--color-ink-2); margin-bottom: var(--space-xs); }
.foot__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); font-size: var(--text-sm);
}
.foot__meta ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }
.foot__meta ul a { color: var(--color-ink-2); white-space: nowrap; }
.foot__meta ul a:hover { color: var(--color-accent); }
.brand--small img { width: 1.9rem; }
.brand--small .wordmark { font-size: var(--text-md); }
.foot__copy { color: var(--color-ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding-top: var(--space-xl); }
  .hero__shot { width: min(78%, 19rem); }
  .hero__peek { width: 5rem; left: -2.4rem; }
  .steps__list, .more__list, .plans { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .split--flip .split__text { order: 0; }
  .split__shot { width: min(72%, 17rem); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .collect { grid-template-columns: minmax(0, 1fr); }
  .collect__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 36rem) and (max-width: 56rem) {
  .more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 26rem) {
  .bar__actions .link-quiet { display: none; }
  .plan { padding: var(--space-lg); }
  .plan .btn { width: 100%; padding-inline: var(--space-md); font-size: var(--text-base); }
  .hero__ctas .btn { width: 100%; }
  .stage__art { height: 8rem; }
  .stage--adult .stage__art img { width: 8rem; }
  .stage--teen .stage__art img { width: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage--adult .stage__art img { animation: none; }
  .btn, .bar, .faq__item summary::after { transition-duration: 1ms; }
}
