/* MamasCard.com. One sans-serif family, lots of white space, one idea per screen.
   Plus Jakarta Sans (Tokotype, SIL OFL 1.1: assets/fonts/OFL-PlusJakartaSans.txt), self-hosted, variable 400-800. */
@font-face { font-family: "Plus Jakarta Sans"; src: url(/assets/fonts/plus-jakarta-sans-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
/* Logo wordmark only (header and footer): Gochi Hand, SIL OFL 1.1 (assets/fonts/OFL-GochiHand.txt) */
@font-face { font-family: "Gochi Hand"; src: url(/assets/fonts/gochi-hand.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --blue: #2b5a9e;        /* card blue: the one accent */
  --blue-deep: #1c3d6e;
  --warm: #e8765c;        /* the headscarf in the logo: small highlights only */
  --warm-ink: #a8432b;
  --ink: #16202b;
  --ink-2: #44546a;       /* quieter text */
  --line: #dfe5ee;
  --field-line: #bfd0ea;  /* used by /view/ */
  --tint: #f3f6fb;        /* the alternate section colour */
  --paper: #ffffff;
  --wrap: 76rem;
  --gutter: 1.25rem;
  --header-h: 4rem;
  --font: "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --h1: clamp(2.5rem, 5.4vw, 4.5rem);
  --h2: clamp(2.2rem, 4.5vw, 4rem);
  --h3: clamp(1.2rem, 1.6vw, 1.45rem);
  --body: clamp(1.0625rem, 1.25vw, 1.2rem);
  --lede: clamp(1.15rem, 1.5vw, 1.35rem);
  --r: 14px;
}
@media (min-width: 48rem) { :root { --gutter: 2.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); font-size: var(--body); line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-weight: 800; letter-spacing: -.015em; word-spacing: .04em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: .5rem; color: #fff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.wordmark { font-family: "Gochi Hand", var(--font); font-size: 1.55rem; line-height: 1; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav-desktop a, .nav-mobile nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600; }
.nav-desktop a { padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current] { border-bottom-color: var(--blue); color: var(--blue-deep); }
.nav-mobile summary { list-style: none; cursor: pointer; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 10px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 1.5rem; height: 2px; background: var(--ink); border-radius: 2px; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem; }
.nav-mobile nav a { display: block; padding: .8rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
.nav-mobile nav a[aria-current] { color: var(--blue); }
@media (min-width: 56rem) { .nav-desktop { display: block; } .nav-mobile { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .7rem 1.5rem; border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn.is-pending { background: transparent; border: 1.5px dashed #9aa6b4; color: var(--ink-2); cursor: default; font-weight: 600; }
a.is-pending:not(.btn) { color: var(--ink-2); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Screens: one idea each ---------- */
.screen { padding-block: clamp(4rem, 9vh, 7rem); display: grid; align-items: center; }
.screen > .wrap { min-width: 0; }
.tint { background: var(--tint); }
@media (min-width: 60rem) {
  .screen { min-height: calc(100svh - var(--header-h)); }
  .screen.short { min-height: 52svh; }
  .screen.auto { min-height: 0; }
}
.split { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.flip > .copy { order: 2; }
  .split.top { align-items: start; }
}
.copy { max-width: 34rem; }
.copy.wide { max-width: 44rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.1rem; }
.eyebrow.warm { color: var(--warm-ink); }
.lede { font-size: var(--lede); line-height: 1.5; color: var(--ink-2); margin-top: 1.4rem; }
.copy > p:not(.eyebrow):not(.lede) { margin-top: 1rem; }
.note { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.more { display: inline-block; margin-top: 1.75rem; font-weight: 700; }
.visual { display: grid; justify-items: center; min-width: 0; }
.visual figcaption, .cap { font-size: .95rem; color: var(--ink-2); text-align: center; margin-top: 1rem; }
.head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.head.center { margin-inline: auto; text-align: center; }

/* Short points: a hairline above each, nothing boxed */
.points { margin-top: 2.25rem; }
.points > li { padding: 1.05rem 0; border-top: 1px solid var(--line); }
.points > li:last-child { border-bottom: 1px solid var(--line); }
.points h3 + p, .points strong + span { color: var(--ink-2); }
.points h3 + p { margin-top: .3rem; }

/* ---------- Photographs ---------- */
.photo img { width: 100%; border-radius: var(--r); }
.photo.tall { max-width: min(26rem, 52svh); }
.photo-grid { display: grid; gap: clamp(.6rem, 1.2vw, 1rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.photo-grid figcaption { font-size: .95rem; color: var(--ink-2); margin-top: .6rem; }
@media (min-width: 52rem) { .photo-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .photo-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.people-note { font-size: .9rem; color: var(--ink-2); padding-block: 1.5rem; text-align: center; }

/* ---------- Hero: a mother and her child, the headline over the photograph ----------
   On Home the header lies over the photo (white, transparent) and turns solid when the page scrolls
   (site.js adds .hero-over to <html>, and .scrolled). The photo settles, the lines rise in, then the buttons.
   The blue tap card floats over the lower edge into the next screen. */
.hero { position: relative; z-index: 2; width: 100%; min-height: max(100svh, 34rem); display: grid; align-items: end; color: #fff; background: #1b2229; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 64% 18%; z-index: -2; }
/* a gentle fade at the bottom edge into the white page below */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.25rem; z-index: -1; background: linear-gradient(0deg, #fff, rgba(255, 255, 255, 0)); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 20, 28, .45) 0, rgba(14, 20, 28, 0) 7rem), linear-gradient(0deg, rgba(14, 20, 28, .88) 0%, rgba(14, 20, 28, .58) 38%, rgba(14, 20, 28, 0) 64%), rgba(14, 20, 28, .18); }
/* the text sits near the left edge of the screen, not the centred column, so it never reaches the faces */
.hero > .wrap, .hero-over .site-header > .wrap { max-width: none; padding-inline: max(var(--gutter), 6vw); }
.hero-copy { padding-block: calc(var(--header-h) + 2rem) 3rem; max-width: 36rem; }
.hero-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.hero-eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--warm); border-radius: 2px; flex: none; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; }
.hero .hl { display: block; }
.hero .hl-2 { color: #ffd9c9; }   /* a light tint of the headscarf in the logo */
.hero .lede { color: rgba(255, 255, 255, .86); max-width: 26rem; margin-top: 1.6rem; }
.hero .actions { margin-top: 2.25rem; }
.hero .btn-primary { background: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: var(--tint); color: var(--ink); }
.hero .btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }
.hero :focus-visible { outline-color: #fff; }
.hero-card { display: none; }
.scroll-cue { display: none; }
@media (min-width: 60rem) {
  .hero { align-items: center; }
  .hero-photo { object-position: 100% 24%; }
  .hero::before { background: linear-gradient(180deg, rgba(14, 20, 28, .3) 0, rgba(14, 20, 28, 0) 6rem), linear-gradient(90deg, rgba(14, 20, 28, .66) 0%, rgba(14, 20, 28, .44) 30%, rgba(14, 20, 28, .08) 50%, rgba(14, 20, 28, 0) 60%), rgba(14, 20, 28, .18); }
  .hero::after { height: 9rem; background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0) 100%); }
  .hero-copy { padding-block: calc(var(--header-h) + 3rem) 5rem; }
  .hero-card { display: block; position: absolute; z-index: 3; right: clamp(2rem, 9vw, 11rem); bottom: clamp(-5.5rem, -6vw, -3rem); width: clamp(12rem, 17vw, 19rem); height: auto; border-radius: 4.5% / 7%; transform: rotate(-9deg); box-shadow: 0 2px 3px rgba(16, 24, 32, .2), 0 22px 40px -12px rgba(16, 24, 32, .5); }
  .scroll-cue { display: block; position: absolute; left: 50%; bottom: 1.6rem; width: 1.6rem; height: 2.6rem; margin-left: -.8rem; border: 2px solid rgba(22, 32, 43, .45); border-radius: 1rem; }
  .scroll-cue::before { content: ""; position: absolute; left: 50%; top: .5rem; width: 4px; height: .55rem; margin-left: -2px; border-radius: 2px; background: rgba(22, 32, 43, .6); }
}
@media (min-width: 60rem) and (orientation: portrait) {
  .hero { align-items: end; }
  .hero-photo { object-position: 62% 20%; }
  .hero::before { background: linear-gradient(180deg, rgba(14, 20, 28, .4) 0, rgba(14, 20, 28, 0) 8rem), linear-gradient(0deg, rgba(14, 20, 28, .86) 0%, rgba(14, 20, 28, .55) 34%, rgba(14, 20, 28, 0) 58%), rgba(14, 20, 28, .18); }
  .hero-copy { padding-bottom: 9rem; }
}
/* The entrance plays once on load; with reduced motion everything is simply there. */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: settle 1.8s cubic-bezier(.2, .6, .2, 1) both; }
  .hero-eyebrow, .hero .hl, .hero .lede, .hero .actions { animation: rise .9s cubic-bezier(.2, .6, .2, 1) both; }
  .hero-eyebrow { animation-delay: .25s; }
  .hero .hl { animation-delay: .4s; }
  .hero .hl-2 { animation-delay: .55s; }
  .hero .lede { animation-delay: .75s; }
  .hero .actions { animation-delay: .95s; }
  .hero-card { animation: card-in 1.2s cubic-bezier(.2, .6, .2, 1) 1.1s both; }
  .scroll-cue::before { animation: cue 2s ease-in-out 2.2s infinite; }
}
@keyframes settle { from { transform: scale(1.045); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(1.1rem); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(2rem) rotate(-3deg); } to { opacity: 1; transform: rotate(-9deg); } }
@keyframes cue { 0%, 100% { transform: none; opacity: 1; } 60% { transform: translateY(.7rem); opacity: 0; } }

/* Header over the hero photo (Home only, set by site.js) */
.hero-over .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background .3s, border-color .3s; }
.hero-over:not(.scrolled) .site-header .wordmark,
.hero-over:not(.scrolled) .nav-desktop a { color: #fff; }
.hero-over:not(.scrolled) .nav-desktop a[aria-current] { border-bottom-color: #fff; }
.hero-over:not(.scrolled) .burger, .hero-over:not(.scrolled) .burger::before, .hero-over:not(.scrolled) .burger::after { background: #fff; }
.hero-over:not(.scrolled) .site-header :focus-visible { outline-color: #fff; }
.hero-over.scrolled .site-header { background: rgba(255, 255, 255, .96); border-bottom-color: var(--line); backdrop-filter: saturate(1.4) blur(10px); }

/* ---------- The phone: one shell everywhere ----------
   <div class="phone"><div class="phone-screen"> img | HTML | video </div><img class="phone-frame"></div>
   The frame picture (666 x 1400, transparent screen hole) lies on top; the screen sits behind it,
   placed by the frame's own measurements. Set the size with --pw on the phone or any parent. */
.phone { position: relative; width: var(--pw, min(19rem, 34svh, 72vw)); aspect-ratio: 666 / 1400; flex: none; }
.phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.phone-screen { position: absolute; left: 5.05%; top: 2.07%; width: 89.49%; height: 95.87%; z-index: 1; overflow: hidden; background: #fff; container-type: inline-size; border-radius: 9% / 4%; }
.phone-screen > img, .phone-screen > video { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* The chat inside the phone screen. Sizes are in cqw (1cqw = 1% of the screen's width), so it scales with the phone. */
.chat { height: 100%; display: flex; flex-direction: column; background: #efe8df; font-size: 4.15cqw; line-height: 1.36; color: #111b21; text-align: left; }
.chat-top { display: flex; align-items: center; gap: 2.5cqw; padding: 15cqw 4cqw 2.6cqw; background: #0b5c53; color: #fff; }
.chat-top img { width: 9.5cqw; height: 9.5cqw; border-radius: 50%; background: #fff; }
.chat-top b { display: block; font-size: 4.4cqw; }
.chat-top small { display: block; font-size: 3.2cqw; opacity: .85; }
.chat-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.6cqw; padding: 3cqw; }
.day-pill { align-self: center; background: #fff; color: #54656f; font-size: 3.1cqw; padding: .8cqw 3cqw; border-radius: 2cqw; }
.msg { max-width: 86%; padding: 1.8cqw 2.6cqw; border-radius: 2.6cqw; white-space: pre-line; background: #fff; align-self: flex-start; box-shadow: 0 .3cqw .2cqw rgba(0, 0, 0, .08); }
.msg.out { align-self: flex-end; background: #d9fdd3; }
.msg time { display: block; text-align: right; font-size: 2.8cqw; color: #667781; margin-top: .4cqw; }
.msg-wrap { display: flex; flex-direction: column; gap: .8cqw; align-self: flex-start; max-width: 86%; }
.msg-wrap .msg { max-width: none; align-self: stretch; }
.reply-btn { background: #fff; color: #0b6fb8; text-align: center; font-weight: 600; padding: 1.8cqw; border-radius: 2.6cqw; box-shadow: 0 .3cqw .2cqw rgba(0, 0, 0, .08); }
.chat-input { display: flex; align-items: center; gap: 2cqw; padding: 2cqw 3cqw 5cqw; }
.chat-input span { flex: 1; background: #fff; color: #8696a0; border-radius: 6cqw; padding: 2cqw 4cqw; }
.chat-input i { width: 9.5cqw; height: 9.5cqw; border-radius: 50%; background: #0b5c53; }

/* ---------- The paper card wears out ----------
   The real panels (assets/img/card/). Damage is drawn over them in CSS: creases (::before), stains (::after),
   fading (a filter on the image), torn edges (clip-path), and "lost" (the panels scatter and fade).
   The classes p-crease, p-stain, p-tear, p-lost are all set in the HTML, so at rest the worn card shows;
   site.js clears them and adds them back one by one when the card scrolls into view (and p-fold for a moment). */
.story .head { margin-bottom: clamp(2rem, 5vh, 3rem); }
@media (min-width: 60rem) { .story .head { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; } .story .head .lede { margin: 0; max-width: 30rem; } }
.paper { width: 100%; max-width: max(40rem, calc((100svh - 27rem) * 2.37)); display: grid; gap: 3px; filter: drop-shadow(0 12px 14px rgba(16, 24, 32, .16)); }
.paper-row { display: flex; gap: 3px; }
.sheet { --clip: polygon(0 0, 100% 0, 100% 100%, 0 100%); flex: var(--r) 1 0; aspect-ratio: var(--r); min-width: 0; background: #fff; overflow: hidden; position: relative;
  clip-path: var(--clip); transition: transform 1.1s cubic-bezier(.45, .05, .2, 1), opacity 1.2s ease, clip-path .9s ease; }
.sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: filter 1.6s ease; }
.sheet.short img { height: auto; }
.sheet::before, .sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
/* creases: two folds and a soft crumple */
.sheet::before { mix-blend-mode: multiply;
  background:
    linear-gradient(90deg, transparent 47%, rgba(60, 50, 30, .16) 49.6%, rgba(255, 255, 255, .7) 50.2%, transparent 53%),
    linear-gradient(180deg, transparent 31%, rgba(60, 50, 30, .14) 33.2%, rgba(255, 255, 255, .6) 33.8%, transparent 36%),
    linear-gradient(180deg, transparent 64%, rgba(60, 50, 30, .12) 66.4%, rgba(255, 255, 255, .55) 67%, transparent 69%),
    radial-gradient(120% 60% at 20% 80%, rgba(120, 100, 60, .1), transparent 60%),
    radial-gradient(90% 50% at 85% 15%, rgba(120, 100, 60, .08), transparent 60%); }
/* stains: a tea ring, a water blot, browned edges */
.sheet::after { mix-blend-mode: multiply;
  background:
    radial-gradient(circle 2.4rem at var(--sx, 60%) var(--sy, 40%), rgba(160, 110, 50, .07) 0 68%, rgba(150, 95, 35, .42) 76%, rgba(150, 95, 35, .16) 84%, rgba(150, 95, 35, 0) 100%),
    radial-gradient(ellipse 50% 18% at var(--wx, 30%) var(--wy, 75%), rgba(120, 105, 70, .2), rgba(120, 105, 70, .08) 75%, rgba(120, 105, 70, 0) 100%),
    radial-gradient(farthest-corner at 50% 45%, rgba(150, 110, 50, 0) 55%, rgba(150, 110, 50, .28) 100%); }
.s1 { --sx: 70%; --sy: 30%; --wx: 20%; --wy: 80%; --lx: -6%; --ly: 4%; --lr: -7deg; }
.s2 { --sx: 30%; --sy: 22%; --wx: 60%; --wy: 60%; --lx: -3%; --ly: 9%; --lr: 4deg;
  --torn: polygon(0 0, 100% 0, 100% 74%, 95% 78%, 97% 83%, 89% 86%, 92% 91%, 82% 94%, 84% 100%, 76% 100%, 70% 100%, 0 100%);
  --clip: polygon(0 0, 100% 0, 100% 74%, 100% 78%, 100% 83%, 100% 86%, 100% 91%, 100% 94%, 100% 100%, 84% 100%, 76% 100%, 0 100%); }
.s3 { --sx: 55%; --sy: 70%; --wx: 40%; --wy: 30%; --lx: 2%; --ly: -5%; --lr: -3deg; }
.s4 { --sx: 76%; --sy: 52%; --wx: 25%; --wy: 30%; --lx: 4%; --ly: 7%; --lr: 2deg;
  --torn: polygon(0 0, 94% 0, 97% 6%, 93% 14%, 98% 24%, 95% 33%, 99% 45%, 96% 58%, 100% 70%, 100% 100%, 0 100%);
  --clip: polygon(0 0, 100% 0, 100% 6%, 100% 14%, 100% 24%, 100% 33%, 100% 45%, 100% 58%, 100% 70%, 100% 100%, 0 100%); }
.s5 { --sx: 40%; --sy: 58%; --wx: 60%; --wy: 20%; --lx: 8%; --ly: -3%; --lr: 8deg; }
.p-crease .sheet::before { opacity: 1; }
.p-stain .sheet::after { opacity: 1; }
.p-stain .sheet img { filter: sepia(.38) saturate(.7) contrast(.86) brightness(1.03); }
.p-tear .sheet { clip-path: var(--torn, var(--clip)); }
.p-lost .sheet { opacity: .62; transform: translate(var(--lx), var(--ly)) rotate(var(--lr)); }
.p-fold .sheet:nth-child(odd) { transform: perspective(70rem) rotateY(58deg) scale(.94); }
.p-fold .sheet:nth-child(even) { transform: perspective(70rem) rotateY(-58deg) scale(.94); }
.paper.snap .sheet, .paper.snap .sheet img, .paper.snap .sheet::before, .paper.snap .sheet::after { transition: none !important; }
/* the caption: big and bold beside the card on wide screens, below it on phones; it fades in at each step */
.story-stage { display: grid; gap: clamp(1.5rem, 4vh, 2.5rem); align-items: center; }
.story-cap { margin: 0; font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; min-height: 2.3em; }
.story-cap.in { animation: cap-in .6s ease both; }
@keyframes cap-in { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }
@media (min-width: 60rem) { .story-stage { grid-template-columns: minmax(0, 1fr) clamp(11rem, 17vw, 15.5rem); gap: clamp(2rem, 3.5vw, 3.5rem); } .story-cap { min-height: 0; max-width: 9ch; font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.14; text-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .story-cap.in { animation: none; } }
@media (min-width: 60rem) {
  .paper { display: flex; }
  .paper-row { display: contents; }
}
#paper-card { overflow: hidden; }

/* ---------- Yours is always kept safe ---------- */
.kept { position: relative; padding: 0 0 2rem 3rem; }
.kept .phone { --pw: min(19rem, 60svh, 64vw); }
.kept-card { position: absolute; z-index: 4; left: 0; bottom: 3.5rem; width: 56%; border-radius: 4.5% / 7%; transform: rotate(-8deg); box-shadow: 0 2px 3px rgba(16, 24, 32, .18), 0 20px 34px -12px rgba(16, 24, 32, .45); }
.ways { margin-top: 2rem; }
.ways li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); }
.ways li:last-child { border-bottom: 1px solid var(--line); }
.ways svg { width: 1.9rem; height: 1.9rem; color: var(--blue); grid-row: span 2; }
.ways strong { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.ways span { color: var(--ink-2); font-size: .98rem; line-height: 1.35; }
.private { display: flex; align-items: center; gap: .7rem; margin-top: 1.5rem; font-weight: 600; }
.private svg { width: 1.4rem; height: 1.4rem; color: var(--warm-ink); flex: none; }

/* ---------- Reminders: the lock screen beside the chat ---------- */
.duo { display: grid; justify-items: center; gap: 2.5rem; }
.duo .phone { --pw: min(18rem, 72vw); }
@media (min-width: 44rem) {
  .duo { display: flex; align-items: flex-start; gap: clamp(1rem, 2.5vw, 2rem); }
  .duo .phone { --pw: min(16.5rem, 27svh, 40vw); }
  .duo .phone + .phone { margin-top: 3rem; }
}
.lock { height: 100%; background: var(--blue-deep); color: #fff; padding: 17cqw 4cqw 4cqw; text-align: center; }
.lock-time b { display: block; font-size: 19cqw; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.lock-time span { display: block; font-size: 4cqw; opacity: .8; margin-top: 2cqw; }
.notes { margin-top: 9cqw; display: grid; gap: 2.4cqw; text-align: left; }
.notes li { background: rgba(255, 255, 255, .94); color: #16202b; border-radius: 4.5cqw; padding: 3cqw 3.6cqw; font-size: 3.6cqw; line-height: 1.35;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1); }
.note-h { display: flex; align-items: center; gap: 1.8cqw; font-size: 2.9cqw; font-weight: 600; letter-spacing: .02em; color: #44546a; margin-bottom: 1cqw; }
.note-h img { width: 4.6cqw; height: 4.6cqw; border-radius: 1.2cqw; }
.note-h time { margin-left: auto; font-weight: 400; }
.notes p b { font-weight: 700; }
/* site.js adds .armed (all hidden) then .on to each in turn; at rest, without JS or with reduced motion, all show */
.notes.armed li:not(.on) { opacity: 0; transform: translateY(-4cqw) scale(.96); }
.notes.snap li { transition: none; }

/* ---------- Find the nearest clinic: a drawn map ---------- */
.map { position: relative; height: 100%; background: #eef1e8; text-align: left; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-svg text { font-family: var(--font); font-size: 12px; font-weight: 700; fill: #2b3a4d; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.map-svg .far text { font-weight: 600; fill: #5b6b80; }
.map-svg text.you { fill: #2b5a9e; }
.map-top { position: absolute; left: 0; right: 0; top: 0; padding: 15cqw 5cqw 3cqw; background: #fff; font-size: 5.4cqw; font-weight: 700; box-shadow: 0 1px 0 rgba(16, 24, 32, .08); }
.map-card { position: absolute; left: 4cqw; right: 4cqw; bottom: 5cqw; background: #fff; border-radius: 5cqw; padding: 4.5cqw 5cqw; box-shadow: 0 1cqw 5cqw rgba(16, 24, 32, .16); font-size: 3.6cqw; line-height: 1.35; }
.map-card small { display: block; font-size: 3cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2b5a9e; }
.map-card b { display: block; font-size: 4.6cqw; margin-top: 1.2cqw; }
.map-card span { display: block; color: #44546a; margin-top: .8cqw; }
.map-card .leg { color: #1b2545; }
.map-card .leg b { display: inline; font-size: inherit; margin: 0; }
.map-card i { display: block; font-style: normal; text-align: center; font-weight: 700; color: #fff; background: #2b5a9e; border-radius: 6cqw; padding: 2.6cqw; margin-top: 3.4cqw; }

/* ---------- Devices at their real relative sizes: laptop 100, tablet 72, phone 23 ----------
   Side by side on one baseline with clear space between, no overlap. Widths are shares of the row:
   with two 3% gaps, the laptop is 94 / 1.95 = 48.2%, the tablet 72% of that, the phone 23%. */
.lineup { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; max-width: 72rem; margin-inline: auto; }
.lineup-laptop { width: 48.2%; }
.lineup-tablet { width: 34.7%; }
.lineup .phone { width: 11.09%; }
.lineup-cap { text-align: center; font-size: .95rem; color: var(--ink-2); margin-top: 1.5rem; }
@media (max-width: 43.99rem) {   /* too small to read side by side: stack, largest first */
  .lineup { flex-direction: column; align-items: center; gap: 2rem; }
  .lineup-laptop { width: 100%; order: 1; }
  .lineup-tablet { width: 72%; order: 2; }
  .lineup .phone { width: 36%; order: 3; }
}
/* The clinic app's own icon, as on a phone's home screen */
.app-badge { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.app-badge img { width: clamp(4rem, 6vw, 5.25rem); height: auto; border-radius: 22%; box-shadow: 0 1px 2px rgba(14, 94, 102, .25), 0 10px 22px -10px rgba(14, 94, 102, .55); }
.app-badge b { display: block; font-size: 1.1rem; color: var(--ink); }
.app-badge span { font-size: .95rem; color: var(--ink-2); line-height: 1.35; }
.app-badge-mother { margin: 1.5rem 0 0; }
.app-badge-mother img { box-shadow: 0 1px 2px rgba(43, 90, 158, .25), 0 10px 22px -10px rgba(43, 90, 158, .55); }
.ussd { width: min(100%, 34rem, 70svh); }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(3.5rem, 9vh, 6.5rem) clamp(2.5rem, 6vh, 4rem); }
.page-head .lede { max-width: 40rem; }
.band { padding-block: clamp(3.5rem, 9vh, 6.5rem); }
.band h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.band .head { margin-bottom: 2rem; }

.fields { border-top: 2px solid var(--ink); }
.fields li { display: grid; gap: .2rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.fields .k { font-weight: 700; }
.fields .v { color: var(--ink); }
.fields .v-note { display: block; color: var(--ink-2); font-size: .98rem; margin-top: .25rem; }
@media (min-width: 44rem) { .fields li { grid-template-columns: 14rem 1fr; } }

.checks li, .crosses li { position: relative; padding: .55rem 0 .55rem 2.1rem; }
.checks li::before { content: ""; position: absolute; left: .15rem; top: 1.05rem; width: 1rem; height: .5rem; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: .1rem; top: 1.35rem; width: 1.1rem; height: 2.5px; background: var(--warm-ink); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.copy > .checks, .copy > .crosses { margin-top: 1.5rem; }
.copy > .fields { margin-top: 2.25rem; }

.faq { max-width: 50rem; }
.faq h2 { margin: 3.5rem 0 1rem; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 700; font-size: var(--h3); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 42rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; }
.footer-top { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600; display: inline-block; padding: .3rem 0; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.fineprint { font-size: .9rem; color: var(--ink-2); max-width: 60rem; margin-top: .6rem; }
.fineprint:first-of-type { color: var(--ink); font-weight: 600; font-size: 1rem; }
@media (min-width: 60rem) { .footer-top { grid-template-columns: auto 1fr; align-items: center; gap: 3rem; } .footer-links { justify-content: flex-end; } }

/* ---------- /view/ (the shared-card page) ----------
   That page has its own styles but takes its base from this file: the text face, sizes and margins.
   These rules give it back the base it was built on, so the redesign of the site leaves it as it was.
   :where() keeps them weaker than the page's own rules. */
@font-face { font-family: "Atkinson"; src: url(/assets/fonts/atkinson-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/assets/fonts/atkinson-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
html:has(.v-wrap) { --font: "Atkinson", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; scroll-padding-top: 1rem; }
:where(html:has(.v-wrap)) body { font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: auto; }
:where(html:has(.v-wrap)) :is(h1, h2, h3) { font-weight: bold; line-height: 1.15; letter-spacing: -.012em; margin: 0 0 .5em; }
:where(html:has(.v-wrap)) h1 { font-size: clamp(2.25rem, 1.6rem + 3.2vw, 3.6rem); }
:where(html:has(.v-wrap)) h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); }
:where(html:has(.v-wrap)) h3 { font-size: 1.25rem; }
:where(html:has(.v-wrap)) :is(h4, dl, dd, figure) { margin: revert; }
:where(html:has(.v-wrap)) :is(p, li) { max-width: 68ch; }
:where(html:has(.v-wrap)) p { margin: 0 0 1em; text-wrap: wrap; }
:where(html:has(.v-wrap)) :is(ul, ol) { margin: revert; padding-left: 1.2em; list-style: revert; }
:where(html:has(.v-wrap)) small { font-size: .85rem; }
:where(html:has(.v-wrap)) a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(html:has(.v-wrap)) :focus-visible { outline-color: var(--warm); }

/* Check a document (/verify/) */
.verify { padding-block: 0 clamp(3rem, 8vh, 5rem); }
.verify-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .verify-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .verify-result { grid-column: 1 / -1; } }
.verify-box { display: grid; gap: .75rem; align-content: start; background: var(--tint); border-radius: var(--r); padding: 1.5rem; min-width: 0; }
.verify-box label { font-weight: 700; font-size: 1.1rem; }
.verify-box input[type="text"] { font: inherit; font-size: 1.15rem; letter-spacing: .06em; padding: .8rem 1rem; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--paper); color: var(--ink); min-width: 0; }
.verify-box input[type="file"] { font: inherit; font-size: .95rem; min-width: 0; max-width: 100%; }
.verify-box input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.verify-small { font-size: .9rem; color: var(--ink-2); margin-top: 1rem; }
.verify-box .verify-small { margin: 0; }
.verify-result { border-radius: var(--r); padding: 1.25rem 1.5rem; border-left: 6px solid var(--line); background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(22, 32, 43, .07); }
.verify-result h2 { font-size: var(--h3); }
.verify-result p { margin-top: .4rem; color: var(--ink-2); }
.verify-result.ok { border-left-color: #1c7c43; }
.verify-result.warn { border-left-color: #c98a12; }
.verify-result.bad { border-left-color: var(--warm-ink); }

/* Programmes (19 Nov 2026): the app's programmes panel, drawn in HTML */
.prog-panel { max-width: 26rem; margin: 0 auto; display: grid; gap: .9rem; font-size: 1rem; line-height: 1.35; }
.prog-invite { background: #2e7d4f; color: #fff; border-radius: 1rem; padding: 1rem 1.2rem; }
.prog-invite b, .prog-invite span { display: block; }
.prog-invite b { font-size: 1.08rem; }
.prog-mine { background: #fff; border: 2px solid rgba(43, 90, 158, .3); border-radius: 1rem; padding: 1rem 1.2rem; box-shadow: 0 .4rem 1.4rem rgba(16, 24, 32, .08); }
.prog-mine small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2b5a9e; margin-bottom: .4rem; }
.prog-row { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid #e6ebf2; }
.prog-row:first-of-type { border-top: 0; }
.prog-row div { flex: 1; min-width: 0; }
.prog-row b, .prog-row span { display: block; }
.prog-row span { color: #44546a; font-size: .9rem; }
.prog-row em { font-style: normal; font-weight: 700; font-size: .85rem; color: #2e7d4f; background: #e2f2e8; border-radius: .5rem; padding: .2rem .55rem; }
.prog-chip { display: inline-block; background: #e0f2f1; color: #00796b; font-weight: 700; border-radius: 2rem; padding: .3rem .8rem; }
.prog-note { display: block; color: #44546a; font-size: .9rem; margin-top: .5rem; }
.prog-mine i { display: block; font-style: normal; text-align: center; font-weight: 700; color: #00796b; background: #cdeae7; border-radius: 2rem; padding: .7rem; margin-top: .9rem; }

/* The song button (assets/music.js): bottom right, clear of the phone's edges */
.music-btn { position: fixed; right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  z-index: 50; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .9rem/1 var(--font);
  box-shadow: 0 6px 18px rgba(22, 32, 43, .14); cursor: pointer; }
.music-btn:hover { border-color: var(--blue); }
.music-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.music-btn.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.music-btn .music-off { display: inline; }
.music-btn.is-on .music-off { display: none; }
@media (max-width: 43.99rem) { .music-btn .music-label { display: none; } .music-btn { padding: .65rem; } }
@media print { .music-btn { display: none; } }

/* footer contact line: email, phone, WhatsApp (tools/build.py contact_html) */
.footer-contact { margin-top: .9rem; font-size: 1rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.footer-contact a { color: var(--blue); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
