/* Shared by every page (home, legal pages, 404 and the tool landings), prepended to the page's
   own stylesheet at build time: fonts, brand tokens, reset, the header with its language menu,
   the footer and the blocks of components/blocks.mjs. Pages set the colours through the custom
   properties below and add their own design on top (src/styles.css, src/landings/<tool>/styles.css). */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand (design/README.md) */
  --bg: #FFF5E4;
  --surface: #FFFFFF;
  --border: #F1E3CB;
  --text: #2B2240;
  --muted: #6B6280;
  --accent: #5B3FD0;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --r-card: 34px;
  --r-btn: 30px;
  --r-chip: 23px;
  --shadow: 0 10px 0 var(--border);
  --gutter: 16px;
  --max: 1080px;
  /* Header and footer */
  --chrome-bg: var(--bg);
  --chrome-fg: var(--text);
  --chrome-muted: var(--muted);
  --chrome-line: var(--border);
  --chrome-panel: var(--surface);
  --chrome-current: var(--accent);
  /* Buttons and focus */
  --btn-bg: var(--text);
  --btn-fg: #fff;
  --btn-hover: #3a2f57;
  --btn-shadow: none;
  --focus: var(--accent);
  /* Chips and bullets */
  --chip-bg: rgba(91, 63, 208, .1);
  --chip-fg: var(--accent);
  --chip-ring: rgba(91, 63, 208, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.55 var(--font); overflow-wrap: anywhere; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, figure { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 24px; height: 24px; flex: none; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 12px 20px; border-radius: var(--r-btn); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header (templates/layout.html) */
.site-header { background: var(--chrome-bg); color: var(--chrome-fg); border-bottom: 1px solid var(--chrome-line); }
.bar {
  max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--chrome-fg);
  font-weight: 900; font-size: 21px; letter-spacing: -0.02em; text-decoration: none;
}
.brand img { border-radius: 9px; }

/* Language menu: a <details> drop-down, no JavaScript (build.mjs langLinks). */
.lang { position: relative; }
.lang-menu > summary {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px 0 16px;
  border: 1.5px solid var(--chrome-line); border-radius: var(--r-chip); background: var(--chrome-panel);
  color: var(--chrome-fg); font-weight: 800; font-size: 14px; cursor: pointer; list-style: none;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary .icon { width: 18px; height: 18px; transition: transform .2s; }
.lang-menu[open] > summary .icon { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px;
  list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 20px;
  box-shadow: 0 14px 32px rgba(43, 34, 64, .16);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px;
  padding: 0 14px; border-radius: 14px; color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.lang-menu a b { flex: none; font-size: 12px; font-weight: 800; color: var(--muted); }
.lang-menu a:hover { background: var(--bg); }
.lang-menu a[aria-current="page"], .lang-menu a[aria-current="page"] b { background: var(--text); color: #fff; }

/* Footer (templates/layout.html) */
.site-footer {
  background: var(--chrome-bg); color: var(--chrome-muted); border-top: 1px solid var(--chrome-line);
  padding: 36px 0 44px; font-size: 15px;
}
.footer-tools { margin-bottom: 10px; }
.footer-title { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chrome-muted); }
.footer-links { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { display: inline-block; padding: 8px 0; color: var(--chrome-fg); font-weight: 700; }
.footer-links a[aria-current] { color: var(--chrome-current); }
.rights { margin: 0; }

/* Blocks (components/blocks.mjs) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  padding: 12px 28px; border-radius: var(--r-btn); background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: var(--btn-shadow); font: 900 18px/1.2 var(--font); text-decoration: none; text-align: center;
}
.btn:hover { background: var(--btn-hover); }
.btn .icon { width: 20px; height: 20px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.store { font-size: 14px; font-weight: 700; color: var(--muted); }

.crumbs { font-size: 13px; padding-block: 0 4px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; }

.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sec-head { display: grid; gap: 12px; max-width: 40em; }

.faq { display: grid; gap: 12px; margin-top: 26px; max-width: 760px; }
.faq details { border-radius: 24px; background: var(--surface); border: 1.5px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 20px; min-height: 56px; font-weight: 900; font-size: 17px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--accent); font-size: 20px; font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

.ai-line { font-size: 13px; color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 6px 14px; border-radius: var(--r-chip); background: var(--chip-bg);
  color: var(--chip-fg); font-weight: 800; font-size: 14px;
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--chip-fg); box-shadow: 0 0 0 4px var(--chip-ring); }

.perks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.perks li { display: inline-flex; align-items: center; gap: 7px; }
.perks li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--chip-fg); }

/* Closing band of a landing (closing); its colours come from the page. */
.close { text-align: center; padding-block: 64px 48px; }
.close .inner { display: grid; justify-items: center; gap: 18px; }
.close h2 { font-weight: 900; font-size: clamp(30px, 7vw, 44px); line-height: 1.08; }
.close p { max-width: 30em; }
.close .ai-line { margin-top: 10px; }

/* Link cards in a row of continuations (linkCard): a list on the phone, three columns from 720 px. */
.more { display: grid; gap: 16px; margin-top: 28px; }
.card {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 12px;
  border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--text);
}
.card .ph { position: relative; }
.card .ph > img, .card video, .card .still { width: 112px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: var(--border); }
.card .still { display: none; }
@media (prefers-reduced-motion: reduce) { .card video { display: none; } .card .still { display: block; } }
.card h3 { font-weight: 900; font-size: 19px; line-height: 1.2; }
.card p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 900; color: var(--accent); font-size: 15px; }
.card .go .icon { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .go .icon { transform: translateX(3px); }
@media (min-width: 720px) {
  .more { grid-template-columns: repeat(3, 1fr); }
  .card { grid-template-columns: 1fr; align-content: start; padding: 14px 14px 20px; }
  .card .ph > img, .card video, .card .still { width: 100%; }
}
/* Landing "AI newborn photoshoot": the studio. Linen and dusty pink under a soft key light, the
   phone photo as a polaroid over the contact sheet, and the six sets as a film strip (dark frames
   on the white light table). One look by design: every colour is set explicitly. */

:root {
  --bg: #F6EFE6;          /* studio linen */
  --linen-2: #EFE4D6;
  --border: #E6D8C6;
  --muted: #625A75;       /* on linen 5.4:1 */
  --rose: #E7C3BE;        /* dusty pink */
  --rose-tint: #F8E8E4;
  --rose-ink: #94404F;    /* pink text on linen and white (6.4:1) */
  --meme: #FFEAF1;
  --meme-ink: #A3305F;
  --film: #2B2240;        /* the film strip: the brand ink */
  --on-film: #FFF5E4;
  --on-film-2: #D6CBE3;
  --chrome-bg: var(--bg);
  color-scheme: light;
}

/* The key light falls from the top right over the header and the hero alike (no seam). */
body {
  background:
    radial-gradient(120% 900px at 88% 0%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 60%) no-repeat,
    var(--bg);
}
.site-header { background: transparent; border-bottom-color: transparent; }
.crumbs { color: var(--muted); }
.crumbs a { color: var(--muted); }
.sec { padding-block: 56px; }
.sec-head h2 { font-weight: 900; font-size: clamp(28px, 6.4vw, 40px); line-height: 1.12; letter-spacing: -0.01em; }
.sec-head h2 em, .hero h1 em, .close h2 em { font-style: normal; color: var(--rose-ink); }
.sec-head p { color: var(--muted); }
.sec > .cta-row, .sec .wrap > .cta-row { margin-top: 30px; }
.table { background: var(--surface); }

/* ---------- Hero: the polaroid over the contact sheet ---------- */
.studio-light { padding-top: 8px; }
.hero { display: grid; gap: 40px; padding-block: 10px 60px; }
.hero-copy { display: grid; }
.hero h1 { margin-top: 16px; font-weight: 900; font-size: clamp(32px, 8.4vw, 54px); line-height: 1.07; letter-spacing: -0.02em; }
.lede { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 34em; }
.hero .cta-row { margin-top: 24px; }
.scene-chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scene-chips li {
  padding: 6px 12px; border-radius: var(--r-chip); background: var(--surface); border: 1.5px solid var(--border);
  font-weight: 800; font-size: 14px;
}
.hero-visual { position: relative; padding: 36px 0 0 22%; max-width: 560px; }
.contact {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px;
  border-radius: 23px; background: var(--surface); box-shadow: 0 10px 0 var(--border);
}
.contact img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--border); }
.polaroid {
  position: absolute; left: 0; top: 0; width: 40%; padding: 8px 8px 32px; background: #fff; border-radius: 6px;
  transform: rotate(-4deg); box-shadow: 0 12px 24px rgba(43, 34, 64, .18);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { position: absolute; inset: auto 0 7px; text-align: center; font-weight: 900; font-size: 14px; color: var(--rose-ink); }
.wand {
  position: absolute; left: 36%; top: -2px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 6px 0 rgba(91, 63, 208, .25);
}
.wand .icon { width: 22px; height: 22px; }

/* ---------- The six sets: picker + film strip ---------- */
.sheets { margin-top: 26px; }
.picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.picker legend { padding: 0; margin-bottom: 12px; font-weight: 900; font-size: 15px; }
.babies { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 8px; }
.baby { flex: none; position: relative; display: grid; justify-items: center; gap: 6px; min-width: 60px; font-weight: 800; font-size: 13px; cursor: pointer; }
.baby input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.baby img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--border); }
.baby:has(input:checked) { color: var(--accent); }
.baby:has(input:checked) img { box-shadow: 0 0 0 3px var(--accent); }
.baby:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 12px; }

.strip {
  list-style: none; margin: 18px 0 0; padding: 0 0 10px; display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.frame {
  flex: 0 0 78%; scroll-snap-align: center; display: grid; align-content: start;
  padding: 16px 10px 18px; border-radius: 18px; background: var(--film); color: var(--on-film);
}
.perf {
  display: block; height: 8px; margin-inline: 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 245, 228, .75) 0 9px, transparent 9px 18px);
}
.frame .perf:last-child { margin-top: 16px; }
.shot { margin: 10px 0 12px; }
.shot img { display: none; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: #3A2F4C; }
/* The page's own baby comes first and shows by default; the picker swaps it (needs :has()). */
.shot img:first-child { display: block; }
.sheets:has(.baby:not(:first-child) input:checked) .shot img:first-child { display: none; }
.sheets:has(input[value="lucia"]:checked) .shot .b-lucia,
.sheets:has(input[value="amara"]:checked) .shot .b-amara,
.sheets:has(input[value="kenji"]:checked) .shot .b-kenji,
.sheets:has(input[value="freya"]:checked) .shot .b-freya,
.sheets:has(input[value="aarav"]:checked) .shot .b-aarav,
.sheets:has(input[value="oliver"]:checked) .shot .b-oliver { display: block; }
.fno { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.frame h3 { margin-top: 6px; font-weight: 900; font-size: 19px; line-height: 1.2; }
.frame p { margin-top: 6px; font-size: 15px; color: var(--on-film-2); }

/* ---------- How it works: a clock ---------- */
.clock { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.clock li {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; padding: 18px 20px;
  border-radius: 24px; background: var(--surface); border: 1.5px solid var(--border);
}
.clock b { font-size: 34px; font-weight: 900; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.clock h3 { font-weight: 900; font-size: 18px; }
.clock p { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* ---------- At home: the viewfinder ---------- */
.home-band { background: var(--linen-2); }
.home-grid { display: grid; gap: 30px; }
.finder { position: relative; margin: 0 auto; width: 100%; max-width: 320px; padding: 18px; }
.finder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.c { position: absolute; width: 34px; height: 34px; border: 0 solid var(--text); }
.c1 { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 12px; }
.c2 { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 12px; }
.c3 { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 12px; }
.c4 { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 12px; }
.rec {
  position: absolute; top: 30px; left: 30px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px;
  background: rgba(43, 34, 64, .74); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF6B6B; }
.tips { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.tips li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #fff; font-weight: 900; }
.tips h3 { font-weight: 900; font-size: 17px; line-height: 1.3; padding-top: 6px; }
.tips p { margin-top: 2px; font-size: 15px; color: var(--muted); }
.safe { margin-top: 22px; padding: 16px 18px; border-radius: 20px; background: var(--surface); font-weight: 900; font-size: 17px; }

/* ---------- No studio, no rush, no prompts ---------- */
.vs { margin-top: 26px; display: grid; gap: 14px; }
.vs article { padding: 20px; border-radius: 28px; background: var(--surface); box-shadow: 0 8px 0 var(--border); }
.vs .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-tint); color: var(--rose-ink); }
.vs .ico .icon { width: 24px; height: 24px; }
.vs h3 { margin-top: 12px; font-weight: 900; font-size: 19px; }
.vs p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Bonus: dad in the basket ---------- */
.meme { background: var(--meme); }
.stickers { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; max-width: 720px; }
.sticker { position: relative; padding: 6px 6px 10px; border-radius: 14px; background: #fff; box-shadow: 0 8px 0 rgba(163, 48, 95, .16); }
.sticker:nth-child(1) { transform: rotate(-3deg); }
.sticker:nth-child(2) { transform: rotate(2deg); margin-top: 14px; }
.sticker:nth-child(3) { transform: rotate(-2deg); }
.sticker > img:first-child { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 9px; }
.selfie { position: absolute; top: -12px; right: -8px; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(43, 34, 64, .25); }
.sticker figcaption { margin-top: 8px; text-align: center; font-weight: 900; font-size: 13px; line-height: 1.25; color: var(--meme-ink); }
.meme .btn { margin-top: 32px; }

/* ---------- Not born yet / and after ---------- */
.after-title { margin-top: 36px; font-weight: 900; font-size: 21px; }
.more.two { margin-top: 18px; }

/* ---------- Closing band ---------- */
.close {
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 65%),
    var(--rose-tint);
}
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 560px; }
.thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 3px solid #fff; }

@media (min-width: 720px) {
  .more.two { grid-template-columns: repeat(2, 1fr); }
  .more.two .card { grid-template-columns: 112px 1fr; align-content: center; padding: 12px; }
  .more.two .card .ph > img, .more.two .card video, .more.two .card .still { width: 112px; }
  .sticker figcaption { font-size: 15px; }
  .stickers { gap: 24px; }
}

@media (min-width: 860px) {
  .sec { padding-block: 84px; }
  .hero { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; padding-block: 24px 84px; }
  .strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; overflow: visible; }
  .clock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clock li { grid-template-columns: 1fr; align-content: start; }
  .home-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
  .finder { max-width: 400px; }
  .vs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
