/* Parentodo marketing — Family Noticeboard */
:root {
  --primary: #4f7fff;
  --primary-deep: #3a63e0;
  --coral: #ff6b6b;
  --sun: #ffc857;
  --mint: #3ddc97;
  --lilac: #b39ddb;
  --ink: #1c1c1e;
  --muted: #4e5d78;
  --bg: #f6f3ee;
  --surface: #fffcf8;
  --elevated: #ffffff;
  --border: #e6dfd4;
  --on-primary: #ffffff;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius-pill: 999px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow-soft: 0 18px 50px rgba(28, 28, 30, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--on-primary);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Site chrome —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(79, 127, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 107, 107, 0.16), transparent 50%),
    linear-gradient(165deg, #fff8ef 0%, var(--bg) 45%, #ebe6ff 100%);
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    calc(5.5rem + env(safe-area-inset-top))
    clamp(1.25rem, 4vw, 2.5rem)
    2.5rem;
  max-width: 36rem;
}

.hero__brand {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-wrap: balance;
  color: var(--ink);
}

.hero__headline {
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  text-wrap: balance;
  max-width: 28ch;
}

.hero__support {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 10px 28px rgba(79, 127, 255, 0.35);
}

.btn--primary:hover {
  background: var(--primary-deep);
}

.btn--primary.is-soon {
  cursor: default;
  opacity: 0.92;
}

.btn--primary.is-soon:hover {
  transform: none;
  background: var(--primary);
}

.btn--secondary {
  background: var(--elevated);
  color: var(--ink);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.hero__visual {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__visual img {
  width: min(100%, 560px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(28, 28, 30, 0.18));
  animation: hero-float 7s var(--ease-out) infinite alternate;
}

@keyframes hero-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-12px);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
  }

  .hero__copy {
    justify-content: center;
    padding-bottom: 4rem;
    padding-left: clamp(2rem, 6vw, 4rem);
  }

  .hero__visual {
    min-height: 100%;
    align-items: center;
    padding-right: clamp(1rem, 4vw, 3rem);
  }

  .hero__visual img {
    width: min(100%, 620px);
  }
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin: 0 0 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  text-wrap: balance;
  max-width: 22ch;
}

.section__lead {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
  text-wrap: pretty;
}

.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.step {
  counter-increment: step;
}

.step__media {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
}

.step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step__title {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.step__title::before {
  content: counter(step) ". ";
  color: var(--coral);
}

.step__body {
  margin: 0;
  color: var(--muted);
  max-width: 32ch;
}

.band {
  background:
    linear-gradient(120deg, rgba(79, 127, 255, 0.1), transparent 40%),
    linear-gradient(300deg, rgba(61, 220, 151, 0.12), transparent 45%),
    var(--surface);
  border-block: 1px solid var(--border);
}

.band .section {
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .trust-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
  }
}

.trust-list li {
  padding: 0;
}

.trust-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.trust-list p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
}

.household {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .household {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.household__panel {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.household__panel p {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pill {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(79, 127, 255, 0.12);
  color: var(--primary-deep);
  font-size: 0.85rem;
  font-weight: 650;
}

.pill--coral {
  background: rgba(255, 107, 107, 0.14);
  color: #c23d3d;
}

.pill--mint {
  background: rgba(61, 220, 151, 0.16);
  color: #1a8f5c;
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: #f4f1ea;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer .brand {
  color: #f4f1ea;
}

.site-footer a {
  color: #b0b8c8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-meta {
  margin: 1.5rem 0 0;
  max-width: var(--max);
  margin-inline: auto;
  font-size: 0.85rem;
  color: #8a93a6;
}

/* —— Waitlist form —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist {
  max-width: 32rem;
}

.waitlist__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.waitlist__row input[type="email"] {
  flex: 1 1 14rem;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--elevated);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

.waitlist__row input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 127, 255, 0.2);
}

.waitlist__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 40ch;
  cursor: pointer;
}

.waitlist__consent input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--primary);
}

.waitlist__consent a {
  color: var(--primary-deep);
}

.waitlist__status {
  min-height: 1.4em;
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.waitlist__status[data-kind="ok"] {
  color: #1a8f5c;
}

.waitlist__status[data-kind="error"] {
  color: #c23d3d;
}

.waitlist__status[data-kind="pending"] {
  color: var(--muted);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* Legal pages shared chrome */
.legal-body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  margin: 0;
  line-height: 1.55;
}

.legal-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.legal-top__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.legal-main header h1 {
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.legal-main header p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-main article {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
}

.legal-main h2 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  letter-spacing: -0.02em;
}

.legal-main h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.legal-main p,
.legal-main li {
  font-size: 0.95rem;
}

.legal-main a {
  color: var(--primary-deep);
}

.legal-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-main th,
.legal-main td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.35rem;
  vertical-align: top;
}

.legal-main .note {
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(79, 127, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

/* Motion: reveal when in view (content visible by default) */
.reveal {
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.js .reveal:not(.is-in) {
  opacity: 0.92;
  transform: translateY(12px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
