@import "tokens/fonts.css";
@import "tokens/colors.css";
@import "tokens/typography.css";
@import "tokens/shape.css";
@import "tokens/spacing.css";

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; }

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
  overflow-x: hidden;
}

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  box-sizing: border-box;
}

p, h1, h2, h3 { text-wrap: pretty; }

.kicker {
  font-family: var(--font-script);
  font-weight: 500;
  color: var(--terracotta);
}

/* ---------- Confetti dots ---------- */
.dots {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.dots--sm { gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dots--sm .dot { width: 7px; height: 7px; }
.dot--blue { background: var(--confetti-blue); }
.dot--gold { background: var(--confetti-gold); }
.dot--sage { background: var(--confetti-sage); }
.dot--rose { background: var(--confetti-rose); }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 26px var(--page-pad);
  max-width: var(--page-max);
  margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__logo { width: 40px; height: 40px; }
.nav__wordmark {
  font-family: var(--font-script);
  font-size: 27px;
  font-weight: 600;
  color: var(--terracotta);
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { color: var(--text-secondary); font-size: 16px; }
.nav__link:hover { color: var(--text-primary); }

/* Hamburger menu */
.nav__right { position: relative; }
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}
.nav__burger:hover { background: var(--surface-card); }
.nav__burger-bar {
  display: block;
  width: 22px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text-primary);
}
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 10px;
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.nav__menu-link {
  color: var(--text-secondary);
  font-size: 17px;
  padding: 10px 14px;
  border-radius: 10px;
}
.nav__menu-link:hover { background: var(--bg-sage-section); color: var(--text-primary); }

.btn-pill {
  display: inline-block;
  background: var(--sage);
  color: var(--text-on-sage) !important;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
}
.btn-pill:hover { background: var(--sage-hover); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 48px var(--page-pad) 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; min-width: 0; }
.hero__kicker { font-size: 26px; }
.hero__title { font-size: var(--text-h1); line-height: var(--leading-heading); font-weight: 500; margin: 0; }
.hero__lead { margin: 0; color: var(--text-secondary); max-width: 480px; }

.hero__art { position: relative; min-width: 0; }
.hero__photo {
  width: 100%;
  height: clamp(360px, 55vw, 480px);
  border-radius: var(--radius-arch);
  overflow: hidden;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__pram {
  position: absolute;
  left: -96px;
  bottom: -18px;
  width: 190px;
  pointer-events: none;
}

.hero__dots { padding: 28px 0 8px; }

/* ---------- Email capture ---------- */
.email-form {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid #D5CDBB;
  border-radius: var(--radius-pill);
  padding: 5px 5px 5px 22px;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}
.email-form--footer { max-width: 400px; margin-top: 0; }
.email-form__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text-primary);
}
.email-form__submit {
  background: var(--sage);
  color: var(--text-on-sage);
  font-size: 17px;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}
.email-form__submit:hover { background: var(--sage-hover); }

.email-confirm {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-sage-section);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  max-width: 480px;
}
.email-confirm--footer { margin-top: 0; max-width: none; }
.email-confirm__text { color: var(--text-primary); font-size: 16px; font-style: italic; }
.email-confirm svg { flex-shrink: 0; }

.email-form__error {
  margin-top: 8px;
  font-size: 15px;
  font-style: italic;
  color: var(--terracotta-link);
}

[hidden] { display: none !important; }

/* ---------- Section scaffolding ---------- */
.section { padding: var(--section-y) var(--page-pad); box-sizing: border-box; }
.section--sage { background: var(--bg-sage-section); }
.section__inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; align-items: center; }
.section__title { font-size: var(--text-h2); font-weight: 500; margin: 0; text-align: center; }

/* ---------- Rhythm cards ---------- */
.rhythm { padding-top: 72px; padding-bottom: 80px; }
.rhythm__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; width: 100%; }
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 30px 34px;
}
.rhythm-card { display: flex; flex-direction: column; gap: 10px; }
.rhythm-card__head { display: flex; align-items: center; gap: 12px; }
.rhythm-card__head .dot { width: 9px; height: 9px; }
.rhythm-card__title { font-size: 25px; font-weight: 500; }
.rhythm-card__body { color: var(--text-secondary); font-size: var(--text-body); }
.rhythm__note { text-align: center; max-width: 600px; display: flex; flex-direction: column; gap: 12px; }
.rhythm__note p { margin: 0; }
.rhythm__note .lead { color: var(--text-secondary); font-size: var(--text-body); }
.rhythm__note .closer { font-style: italic; color: var(--terracotta-link); font-size: 18px; }

/* ---------- Two minutes ---------- */
.two-minutes { padding: 48px var(--page-pad) var(--section-y); text-align: center; }
.two-minutes .section__inner { max-width: 620px; gap: 16px; }
.two-minutes p { margin: 0; color: var(--text-secondary); font-size: var(--text-body); }
.two-minutes .emphasis { color: var(--text-primary); }

/* ---------- Film ---------- */
.film { }
.film__grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.film__copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.film__copy h2 { font-size: var(--text-h2); font-weight: 500; margin: 0; }
.film__copy p { margin: 0; color: var(--text-secondary); font-size: var(--text-body); }
.film__copy .closer { font-style: italic; color: var(--sage-deep); font-size: 18px; }
.film__media { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.film__still { width: 100%; height: 340px; border-radius: var(--radius-photo); overflow: hidden; position: relative; }
.film__still > img { width: 100%; height: 100%; object-fit: cover; }
.film__scrim { position: absolute; inset: 0; background: var(--scrim-photo); }
.play-button {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(251,250,244,0.35);
  border: 1.5px solid rgba(251,250,244,0.8);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 3;
}
.play-button__triangle {
  width: 0; height: 0;
  border-left: 22px solid var(--text-on-sage);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}
.film__caption { display: flex; align-items: center; gap: 10px; justify-content: center; }
.film__caption span { color: var(--text-secondary); font-size: 15px; }

/* ---------- Film player (slideshow demo) ---------- */
.film-player { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.film-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
  overflow: hidden;
}
.film-slide.is-active { opacity: 1; }
.film-slide > img { width: 100%; height: 100%; object-fit: cover; }
/* Slow Ken Burns zoom while a slide is showing; alternate origin for variety */
.film-slide.is-active > img { animation: kenburns 4.6s ease-out forwards; }
.film-slide:nth-child(odd).is-active > img { transform-origin: 30% 40%; }
.film-slide:nth-child(even).is-active > img { transform-origin: 70% 60%; }
@keyframes kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .film-slide { transition: none; }
  .film-slide.is-active > img { animation: none; }
}
.film-slide__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(62,58,51,0.55), rgba(62,58,51,0) 55%);
}
.film-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.film-caption__note {
  font-family: var(--font-script);
  font-size: 27px;
  font-weight: 500;
  color: var(--text-on-sage);
  text-shadow: 0 1px 10px rgba(62,58,51,0.45);
}
.film-caption__date {
  font-style: italic;
  font-size: 14px;
  color: rgba(251,250,244,0.9);
  text-shadow: 0 1px 8px rgba(62,58,51,0.45);
}
.film-slide--card { background: var(--bg-page); }
.film-card {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 0 24px;
}
.film-card__logo { width: 52px; height: 52px; }
.film-card__title {
  font-family: var(--font-script);
  font-size: 40px;
  font-weight: 600;
  color: var(--terracotta);
}
.film-card__sub { font-style: italic; font-size: 15px; color: var(--text-secondary); }

.share-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--terracotta-link);
  transition: color 0.2s ease;
}
.share-link:hover { color: var(--terracotta-hover); }

/* ---------- Firsts ---------- */
.firsts .section__inner p { margin: 0; color: var(--text-secondary); font-size: var(--text-body); max-width: 560px; }
.firsts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; width: 100%; }
.firsts-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-photo);
  padding: 26px 20px;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.firsts-card__label { font-style: italic; font-size: var(--text-body); color: var(--text-primary); text-align: center; }

/* ---------- Baby wall ---------- */
.babywall__grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.collage-item { height: 210px; overflow: hidden; min-width: 0; border-radius: var(--radius-photo); }
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-item--down { margin-top: 36px; }
.collage-item--arch-top { border-radius: 120px 120px 14px 14px; }
.collage-item--arch-bottom { border-radius: 14px 14px 120px 120px; }
.collage-item--up { margin-top: -36px; }
.babywall__copy { display: flex; flex-direction: column; gap: 18px; }
.babywall__copy h2 { font-size: var(--text-h2); font-weight: 500; margin: 0; }
.babywall__copy p { margin: 0; color: var(--text-secondary); font-size: var(--text-body); }
.babywall__copy .emphasis { color: var(--text-primary); font-size: 18px; font-weight: 500; }
.babywall__copy .closer { font-style: italic; color: var(--sage-deep); font-size: 18px; }

/* ---------- Pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; width: 100%; }
.price-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
}
.price-card--premium { border-color: var(--border-coupon); }
.price-card__head { display: flex; flex-direction: column; gap: 2px; }
.price-card__head-row { display: flex; align-items: baseline; gap: 12px; }
.price-card__name { font-size: 28px; font-weight: 500; }
.price-card__price { font-size: 20px; font-style: italic; color: var(--terracotta-link); }
.price-card__tagline { font-size: 16px; font-style: italic; }
.price-card--free .price-card__tagline { color: var(--sage); }
.price-card--premium .price-card__tagline { color: var(--terracotta-link); }
.price-card__features { display: flex; flex-direction: column; gap: 10px; color: var(--text-secondary); font-size: var(--text-body); }
.price-card__feature { display: flex; gap: 12px; align-items: baseline; }
.price-card__feature .bullet { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; position: relative; top: -3px; }
.price-card--free .bullet { background: var(--sage-soft); }
.price-card--premium .bullet { background: #DBAA82; }

.btn-outline {
  margin-top: auto;
  text-align: center;
  border: 1px solid var(--sage);
  color: var(--sage-deep);
  background: transparent;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.btn-outline:hover { background: var(--sage); color: var(--text-on-sage) !important; }
.btn-fill {
  margin-top: auto;
  text-align: center;
  background: var(--sage);
  color: var(--text-on-sage) !important;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
}
.btn-fill:hover { background: var(--sage-hover); }


/* ---------- Books ---------- */
.books .section__inner { max-width: 980px; gap: 26px; text-align: center; }
.books .section__inner > p { margin: 0; color: var(--text-secondary); font-size: var(--text-body); max-width: 560px; }
.book-covers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 26px;
  width: 100%;
  padding: 16px 0 8px;
}
.book { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.book-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px 14px 14px 6px;
  box-shadow: var(--shadow-book);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  overflow: hidden;
}
.book-cover::before {
  content: "";
  position: absolute; right: 4px; top: 8px; bottom: 8px; width: 5px;
  background: repeating-linear-gradient(0deg, #FFFFFF 0px, #FFFFFF 2px, #E2DECB 2px, #E2DECB 3px);
  border-radius: 2px;
}
.book-cover::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 16px;
  background: linear-gradient(90deg, rgba(62,58,51,0.16), rgba(62,58,51,0));
}
.book-cover--spring { background: #EFF3E4; }
.book-cover--summer { background: #FBF2DA; }
.book-cover--autumn { background: #F5E9D9; }
.book-cover--winter { background: #E8EEF4; }
.book-cover__label { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; }
.book-cover--spring .book-cover__label { color: var(--sage-deep); }
.book-cover--summer .book-cover__label { color: #B08A3E; }
.book-cover--autumn .book-cover__label { color: var(--terracotta-link); }
.book-cover--winter .book-cover__label { color: #7B93A8; }
.book-cover img { object-fit: contain; }
.book-cover__motif--branch { height: 38%; }
.book-cover__motif--mobile { height: 32%; }
.book-cover__motif--oak { height: 40%; }
.book-cover__motif--pacifier { height: 32%; }
.book-cover__title { font-family: var(--font-script); font-size: 38px; font-weight: 600; }
.book-cover--spring .book-cover__title { color: #5F6B47; }
.book-cover--summer .book-cover__title { color: #B08A3E; }
.book-cover--autumn .book-cover__title { color: var(--terracotta-link); }
.book-cover--winter .book-cover__title { color: #7B93A8; }
.book-cover__weeks { font-size: 14px; font-style: italic; color: var(--text-secondary); }
.book__price { font-size: 15px; font-style: italic; color: var(--text-secondary); }

/* Carousel controls exist only on mobile */
.book-arrow, .book-dots { display: none; }

@media (max-width: 640px) {
  .book-covers {
    display: block;
    position: relative;
    height: 372px;
    padding: 16px 0 8px;
  }
  .book-covers .book {
    position: absolute;
    left: 50%;
    top: 16px;
    width: 200px;
    margin-left: -100px;
    transform: translateX(calc(var(--dx, 0) * 1px)) scale(var(--sc, 1));
    opacity: var(--op, 1);
    z-index: var(--z, 1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
  }
  .book-covers .book.is-active { pointer-events: auto; }
  @media (prefers-reduced-motion: reduce) {
    .book-covers .book { transition: none; }
  }

  .book-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 46%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FDFBF6;
    border: 1px solid #C9BEA4;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    padding: 0;
  }
  .book-arrow--prev { left: 4px; }
  .book-arrow--next { right: 4px; }

  .book-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding-top: 2px;
  }
  .book-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D8D1C0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s;
  }
  /* 44px tap target without growing the dot visually */
  .book-dot::before { content: ""; position: absolute; inset: -18px; }
  .book-dot.is-active { background: var(--sage); }
}

.price-list {
  width: 100%;
  max-width: 720px;
  background: var(--surface-card);
  border: 1px solid #E2DECB;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  text-align: left;
}
.price-list__row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 32px;
  border-bottom: 1px solid #ECE8D8;
}
.price-list__row:last-child { border-bottom: none; }
.price-list__title { font-size: 19px; font-weight: 500; color: var(--text-primary); }
.price-list__desc { color: var(--text-secondary); font-size: 16px; }
.price-list__price { font-size: 24px; font-style: italic; color: var(--terracotta-link); white-space: nowrap; }
.books__note { margin: 0; color: var(--text-secondary); font-size: 16px; max-width: 560px; }

/* ---------- Gift + privacy ---------- */
.gift-privacy {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.gift-privacy .card { padding: 34px 36px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius-card-lg); }
.gift-privacy h3 { font-size: 25px; font-weight: 500; margin: 0; }
.gift-privacy p { margin: 0; color: var(--text-secondary); font-size: 16px; }

/* ---------- Om + FAQ (answer-first sections, also used by AI assistants) ---------- */
.about__inner { gap: 24px; }
.about__lead { margin: 0; max-width: 720px; text-align: center; color: var(--text-secondary); font-size: var(--text-body); }
.about__facts {
  margin: 0; width: 100%; max-width: 720px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
}
.about__facts > div { background: var(--surface-card); border: 1px solid var(--border-card); border-radius: 14px; padding: 14px 18px; }
.about__facts dt { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.about__facts dd { margin: 4px 0 0; font-size: 16px; }
.faq__inner { gap: 28px; }
.faq__list { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--surface-card); border: 1px solid var(--border-card); border-radius: 14px; padding: 0 22px; }
.faq__q { cursor: pointer; list-style: none; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q h3 { margin: 0; font-size: 19px; font-weight: 500; }
.faq__q::after { content: "+"; color: var(--sage-deep); font-size: 22px; line-height: 1; flex-shrink: 0; }
.faq__item[open] .faq__q::after { content: "\2013"; }
.faq__a { margin: 0; padding: 0 0 20px; color: var(--text-secondary); font-size: 16px; line-height: 1.65; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid #E7E1D2; padding: 64px var(--page-pad) 72px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer__logo { width: 56px; height: 56px; }
.footer__wordmark { font-family: var(--font-script); font-size: 34px; font-weight: 600; color: var(--terracotta); }
.footer__tagline { color: var(--text-secondary); font-style: italic; font-size: var(--text-body); }
.footer__dots { padding: 14px 0; }
.footer__links { display: flex; gap: 24px; justify-content: center; padding-top: 18px; font-size: 15px; }
.footer__links a { font-style: italic; }

/* ---------- Legal pages ---------- */
.legal-page { min-height: 100vh; }
.legal-page__inner { max-width: 760px; margin: 0 auto; padding: 56px var(--page-pad) 88px; }
.legal-back { font-style: italic; font-size: 16px; text-decoration: none; }
.legal-head { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; }
.legal-head__kicker { font-family: var(--font-script); font-size: 26px; font-weight: 500; color: var(--terracotta); }
.legal-head h1 { font-size: clamp(34px, 6vw, 46px); font-weight: 500; margin: 0; line-height: 1.15; }
.legal-head__date { color: var(--text-muted); font-style: italic; font-size: 15px; }
.legal-intro { margin: 28px 0 0; color: var(--text-secondary); font-style: italic; }
.legal-page h2 { font-size: 26px; font-weight: 500; margin: 44px 0 10px; }
.legal-page p { margin: 0; color: var(--text-secondary); }
.legal-page .sub { margin: 0 0 4px; color: var(--text-primary); font-style: italic; }
.legal-page .sub ~ p { margin-top: 0; }
.legal-page ul { margin: 0; padding-left: 24px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 6px; }
.legal-contact {
  margin-top: 56px;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-lg);
  padding: 28px 32px;
  color: var(--text-secondary);
}
.legal-contact__label { font-style: italic; color: var(--text-primary); margin-bottom: 6px; }

/* ---------- Hero (phone demo variant) ---------- */
.hero--demo { padding: 40px var(--page-pad) 32px; gap: clamp(28px, 4vw, 64px); }
.hero--demo .hero__copy { gap: 20px; align-items: center; text-align: center; }
.hero--demo .hero__kicker { color: var(--sage); }
.hero--demo .hero__lead { max-width: 520px; }
.hero__title--demo { font-size: clamp(38px, 7vw, 52px); }

/* Centered as a block, rows keep their left-aligned internals */
.feature-list { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; width: auto; max-width: 100%; text-align: left; }
.feature-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}
.feature-row.is-active { opacity: 1; }
.feature-row__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D8D1C0;
  margin-top: 9px;
  flex-shrink: 0;
  transition: background 0.5s ease;
}
.feature-row.is-active .feature-row__dot { background: var(--sage); }
.feature-row__text { display: flex; flex-direction: column; gap: 1px; }
.feature-row__title { font-size: 20px; font-weight: 500; }
.feature-row__desc { font-size: 16px; color: var(--text-secondary); line-height: 1.45; max-width: 420px; }

@media (max-width: 899px) {
  .feature-list { display: none; }
}

/* ---------- Phone mockup ---------- */
.hero__phone { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.phone-wrap { width: 100%; max-width: 380px; margin: 0 auto; }
.phone-box { position: relative; }
.phone {
  width: 440px;
  height: 900px;
  position: absolute;
  left: 50%;
  top: 0;
  transform-origin: top left;
}
.phone__frame {
  width: 440px;
  height: 900px;
  background: var(--bg-dark);
  border-radius: 64px;
  padding: 12px;
  box-shadow: var(--shadow-float);
  box-sizing: border-box;
}
.phone__screen {
  width: 100%;
  height: 100%;
  background: var(--bg-page);
  border-radius: 52px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}
.phone__statusbar {
  position: absolute;
  top: 18px;
  left: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.phone__clock { font-size: 17px; font-weight: 600; }
.phone__island { width: 96px; height: 28px; background: var(--bg-dark); border-radius: 999px; }
.phone__page {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 64px 28px 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  transition: opacity 0.7s ease;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.phone__page.is-active { opacity: 1; z-index: 2; pointer-events: auto; }

/* ---------- Phone screen: "I dag" with swipe carousel ---------- */
/* Full-bleed so the neighbouring day cards can peek at the edges. */
.phone__page--today { padding: 54px 0 0; }

.today-head { padding: 0 30px; text-align: center; }
.today-name {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  font-style: italic; font-size: 30px; font-weight: 500;
}
.today-chevron { font-size: 15px; color: var(--text-muted); font-style: normal; }
.today-age { font-style: italic; font-size: 16px; color: var(--text-secondary); }

.today-letter {
  margin: 14px 30px 0;
  background: var(--surface-card-tinted);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.today-letter svg { flex-shrink: 0; }
.today-letter__text { flex: 1; min-width: 0; }
.today-letter__title { font-style: italic; font-size: 16px; }
.today-letter__sub { font-style: italic; font-size: 13px; color: var(--text-muted); }
.today-letter__cta { font-size: 15px; color: var(--sage); white-space: nowrap; }

.today-carousel { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.today-viewport { position: relative; overflow: hidden; }
.today-track {
  display: flex;
  gap: 12px;
  cursor: grab;
  touch-action: pan-y;
  will-change: transform;
}
.today-track.is-dragging { cursor: grabbing; }

.today-card {
  width: 318px;
  flex-shrink: 0;
  background: var(--surface-polaroid);
  border-radius: 8px;
  padding: 12px 12px 18px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 14px;
  user-select: none;
}
.today-card img {
  /* spec says 300px on a 780px screen; scaled for this 876px canvas */
  width: 100%; height: 336px;
  border-radius: 4px;
  object-fit: cover;
  pointer-events: none;
}
.today-card__caption { font-family: var(--font-script); font-size: 25px; text-align: center; }
.today-card__meta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding-top: 4px;
}
.today-card__date { font-style: italic; font-size: 14px; color: var(--text-muted); }
.today-card__badge {
  font-size: 12px;
  color: var(--sage-deep);
  background: var(--bg-sage-section);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
}

.today-arrow {
  position: absolute;
  top: 150px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface-polaroid);
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 14px rgba(62,58,51,0.14);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.today-arrow--prev { left: 4px; }
.today-arrow--next { right: 4px; }

.today-dots { display: flex; gap: 7px; justify-content: center; }
.today-dot {
  width: 7px; height: 7px;
  border-radius: var(--radius-pill);
  background: #D5CDBB;
  border: none; padding: 0;
  cursor: pointer;
  transition: all 0.25s;
}
.today-dot.is-active { width: 20px; background: var(--sage); }

.today-rel { text-align: center; font-style: italic; font-size: 13px; color: var(--text-muted); }

.today-bottom { display: flex; justify-content: center; padding-bottom: 20px; }
.today-fab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage);
  color: var(--text-on-sage);
  font-size: 16px;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  border: 3px solid var(--surface-card);
  box-shadow: var(--shadow-float);
}
.phone__page p, .phone__page div { text-wrap: pretty; }

/* ---------- Mobile caption + dots (shown <900px only) ---------- */
.mobile-caption { display: none; }
@media (max-width: 899px) {
  .mobile-caption {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding: 0 12px;
  }
}
.mobile-dots { display: flex; gap: 8px; justify-content: center; }
.mobile-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #D5CDBB;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
/* Expands the tappable area to ~44px without affecting visual size */
.mobile-dot::before { content: ""; position: absolute; inset: -18px; }
.mobile-dot.is-active { width: 22px; background: var(--sage); }
.mobile-caption__title { font-size: 20px; font-weight: 500; }
.mobile-caption__desc { font-size: 16px; color: var(--text-secondary); line-height: 1.5; max-width: 340px; }

/* ---------- Family photo (moved below hero) ---------- */
.family-photo { max-width: 880px; margin: 0 auto; padding: 40px var(--page-pad) 8px; box-sizing: border-box; }
.family-photo__frame { position: relative; }
.family-photo__image {
  width: 100%;
  height: clamp(320px, 45vw, 440px);
  border-radius: var(--radius-arch);
  overflow: hidden;
}
.family-photo__image img { width: 100%; height: 100%; object-fit: cover; }
.family-photo__pram { position: absolute; left: -96px; bottom: -18px; width: 190px; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero__pram, .family-photo__pram { display: none; }
}

/* ---------- Kontakt ---------- */
.kontakt { padding-top: 56px; }
.kontakt__inner {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kontakt__kicker { font-size: 23px; color: var(--sage); }
.kontakt__title { font-size: var(--text-h2); font-weight: 500; margin: 0; }
.kontakt__lead { margin: 0 0 10px; color: var(--text-secondary); font-size: var(--text-body); }

.kontakt-form { display: flex; flex-direction: column; gap: 18px; }
.kontakt-felt { display: flex; flex-direction: column; gap: 7px; }
.kontakt-felt__navn { font-size: 16px; font-style: italic; color: var(--text-secondary); }
.kontakt-felt__input {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface-card);
  border: 1px solid #D5CDBB;
  border-radius: 14px;
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}
.kontakt-felt__input:focus { border-color: var(--sage); }
.kontakt-felt__tekstomrade { resize: vertical; min-height: 150px; line-height: 1.6; }

/* Honningkrukke: skjult for mennesker, synlig for roboter */
.kontakt-felle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kontakt-form__bunn { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kontakt-form__send { font-size: 17px; padding: 12px 28px; }
.kontakt-form__send:disabled { opacity: 0.6; cursor: default; }
.kontakt-form__feil { font-size: 15px; font-style: italic; color: var(--terracotta-link); }

.kontakt-kvittering { margin-top: 0; max-width: none; }
.kontakt__alternativ { margin: 6px 0 0; color: var(--text-muted); font-size: 15px; font-style: italic; }

@media (max-width: 560px) {
  .kontakt-form__send { width: 100%; }
}
