/* The Quiet Play Kit (UK Edition) — British Montessori Editorial Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #FAF7F2;
  --bg-soft: #F2ECE1;
  --surface: #FFFFFF;
  --ink: #263238;
  --ink-muted: #4F5D64;
  --sage: #4E7A66;
  --sage-hover: #3D6352;
  --sage-tint: #E8F0EC;
  --terracotta: #C96F4B;
  --terracotta-hover: #B25B38;
  --terracotta-tint: #F9EAE3;
  --mustard: #D9A441;
  --mustard-tint: #FBF3DF;
  --sky: #5B8FA8;
  --sky-tint: #E7F1F6;
  --border: #DDD4C7;
  --border-strong: #C2B6A6;
  --shadow-sm: 0 2px 8px rgba(38, 50, 56, 0.06);
  --shadow-md: 0 10px 28px rgba(38, 50, 56, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background-color: var(--sage-tint);
  color: var(--ink);
}

:focus-visible {
  outline: 2.5px solid var(--sage);
  outline-offset: 3px;
}

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

a {
  color: var(--sage);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--sage-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

p {
  margin: 0;
  max-width: 65ch;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.hero__grid > *,
.grid-2 > *,
.grid-3 > *,
.preview-stage > *,
.offer-grid > *,
.mockup-strip > * {
  min-width: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header & Funnel Progress */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark svg {
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.header-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

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

.header-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out), transform 120ms var(--ease-out);
}

.header-cta:hover {
  background: var(--terracotta-hover);
}

.header-cta:active {
  transform: scale(0.97);
}

/* Funnel Step Strip (Upsell / Downsell / Thank You) */
.funnel-steps {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}

.funnel-steps__list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.funnel-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
}

.funnel-step--done {
  color: var(--sage);
}

.funnel-step--active {
  color: var(--terracotta);
}

.funnel-step__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
}

.funnel-step--done .funnel-step__dot {
  background: var(--sage);
  border-color: var(--sage);
  color: #FFFFFF;
}

.funnel-step--active .funnel-step__dot {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFFFFF;
}

.funnel-step__sep {
  width: 24px;
  height: 1px;
  background: var(--border-strong);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), transform 140ms var(--ease-out), box-shadow 200ms var(--ease-out);
  font-variant-numeric: tabular-nums;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--terracotta);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(201, 111, 75, 0.25);
}

.btn--primary:hover {
  background: var(--terracotta-hover);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(178, 91, 56, 0.3);
}

.btn--sage {
  background: var(--sage);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(78, 122, 102, 0.22);
}

.btn--sage:hover {
  background: var(--sage-hover);
  color: #FFFFFF;
}

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

.btn--secondary:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.decline-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-decoration: underline;
}

.decline-link:hover {
  color: var(--ink);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--sage {
  background: var(--sage-tint);
  border-top: 1px solid #C8DAD0;
  border-bottom: 1px solid #C8DAD0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

/* Hero */
.hero {
  padding: 52px 0 68px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sage);
  background: var(--sage-tint);
  border: 1px solid #C6D9CF;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.15rem, 4.1vw, 3.35rem);
  margin-bottom: 18px;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.hero__checks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}

.hero__checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink);
}

.hero__checks svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--sage);
}

.hero__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__media {
  position: relative;
}

.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-frame--43 img {
  aspect-ratio: 4 / 3;
}

.hero__float-note {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

/* Grids & Cards (no border-left bars, no nested cards) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card--cream {
  background: var(--bg);
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--sage-tint);
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card__icon--terracotta {
  background: var(--terracotta-tint);
  color: var(--terracotta);
}

.card__icon--sky {
  background: var(--sky-tint);
  color: var(--sky);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.96rem;
  color: var(--ink-muted);
}

/* Step Sequence */
.loop-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.loop-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}

.loop-step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.loop-step p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Interactive Peek Inside Viewer */
.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.preview-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.preview-tab:hover {
  border-color: var(--sage);
  color: var(--ink);
}

.preview-tab[aria-selected="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: #FFFFFF;
}

.preview-stage {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.preview-sheet {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.preview-sheet img {
  width: 100%;
  display: block;
}

.preview-details h3 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.preview-details p {
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.clean-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.clean-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--sage);
}

/* Mockup Trio Strip */
.mockup-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mockup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
}

.mockup-card__img {
  aspect-ratio: 2 / 3;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg);
}

.mockup-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mockup-card h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.mockup-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Offer Box */
.offer-box {
  background: var(--surface);
  border: 2px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.offer-box__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

.price-was {
  font-size: 1.25rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.price-now {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.guarantee-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.guarantee-box h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.guarantee-box p {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  flex-shrink: 0;
  color: var(--sage);
  transition: transform 200ms var(--ease-out);
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item__body {
  padding: 0 22px 20px;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

/* Legal Prose */
.legal-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  gap: 20px;
}

.legal-article h1 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}

.legal-article h2 {
  font-size: 1.3rem;
  margin-top: 8px;
}

.legal-article p, .legal-article li {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.legal-article ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 88px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--sage);
  text-decoration: underline;
  cursor: pointer;
}

/* Sticky Mobile Bar */
.mobile-sticky-cta {
  display: none;
}

/* UK GDPR Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: auto;
  right: 20px;
  bottom: 20px;
  max-width: 440px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.cookie-banner__text strong {
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid,
  .grid-2,
  .grid-3,
  .preview-stage,
  .offer-grid,
  .mockup-strip {
    grid-template-columns: 1fr;
  }

  .header-nav {
    display: none;
  }

  .hero {
    padding: 32px 0 48px;
  }

  .section {
    padding: 48px 0;
  }

  .offer-box {
    padding: 24px;
  }

  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 220ms var(--ease-out);
  }

  .mobile-sticky-cta.is-visible {
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .btn {
    padding: 14px 18px;
    font-size: 0.98rem;
    white-space: normal;
    text-align: center;
  }

  .preview-stage {
    padding: 18px;
    gap: 20px;
  }

  .offer-box {
    padding: 20px 18px;
  }

  .legal-article {
    padding: 22px 18px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
