/*
 * Lulladay website: home, privacy policy, terms, support and account deletion.
 * Colours follow the app (src/theme/tokens.ts); the night gradient follows the
 * icon. System fonts only, so the site loads nothing from other websites.
 */
:root {
  color-scheme: light dark;
  --bg: #F7FAF9;
  --surface: #FFFFFF;
  --surface-muted: #ECF3F2;
  --border: #DBE7E5;
  --text: #10282C;
  --text-2: #48646A;
  --primary: #087F8C;
  --primary-pressed: #066974;
  --on-primary: #FFFFFF;
  --primary-soft: #DCEFF0;
  --on-primary-soft: #075E68;
  --link: #066974;
  --warning-soft: #FBEFD7;
  --on-warning-soft: #6E4200;
  --danger-soft: #FADDDA;
  --on-danger-soft: #8C1D17;
  --night-top: #087380;
  --night-bottom: #04404A;
  --cream: #FFF7EA;
  --cream-2: #E6F2F0;
  --shadow: 0 1px 2px rgba(16, 40, 44, .05), 0 10px 30px rgba(16, 40, 44, .06);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111B1E;
    --surface: #17262A;
    --surface-muted: #1D3035;
    --border: #2A444B;
    --text: #E4F0F1;
    --text-2: #A9C1C4;
    --primary: #4FB3BF;
    --primary-pressed: #6BC2CC;
    --on-primary: #04343A;
    --primary-soft: #123E44;
    --on-primary-soft: #9ADAE0;
    --link: #6BC2CC;
    --warning-soft: #42320F;
    --on-warning-soft: #F5C169;
    --danger-soft: #4A1B18;
    --on-danger-soft: #FFB4AB;
    --night-top: #0A4C55;
    --night-bottom: #062A30;
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .2);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px;
  border: 2px solid var(--primary); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 46rem; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 7px 11px; border-radius: 999px; }
.site-nav a:hover { background: var(--surface-muted); color: var(--text); }
.site-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--on-primary-soft); }
@media (max-width: 479px) {
  .site-nav a { padding: 7px 9px; }
  .site-nav .wide { display: none; }
}

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--text-2); font-size: .95rem; }
.site-footer .brand { font-size: 1.05rem; }
.site-footer .brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 12px; padding: 0; list-style: none; }
.footer-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer p { margin: 4px 0; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
}
.button.primary { background: var(--primary); color: var(--on-primary); }
.button.primary:hover { background: var(--primary-pressed); }
.button.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button.secondary:hover { background: var(--surface-muted); }
.button svg { width: 20px; height: 20px; flex: none; }

/* Pages with long text */
.doc { padding-top: 40px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 6px; }
.doc .updated { color: var(--text-2); margin: 0 0 24px; }
.doc h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 44px 0 10px; scroll-margin-top: 20px; }
.doc h3 { font-size: 1.08rem; margin: 26px 0 6px; }
.doc p, .doc li { font-size: 1.0625rem; }
.doc ul, .doc ol { padding-inline-start: 1.35rem; }
.doc li { margin: 7px 0; }
.doc li > ul { margin-top: 4px; }
.lead { font-size: 1.15rem; color: var(--text-2); }
.ui { font-weight: 650; color: var(--text); }

.callout { background: var(--primary-soft); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout h2 { font-size: 1.15rem; margin: 0 0 8px; }
.callout ul { margin: 0; }
.callout.warning { background: var(--warning-soft); }
.callout.warning h2 { color: var(--on-warning-soft); }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px 12px; margin: 28px 0 8px; }
.toc h2 { font-size: 1rem; margin: 0 0 6px; }
.toc ol { columns: 2 15rem; column-gap: 32px; margin: 0; padding-inline-start: 1.4rem; }
.toc li { margin: 4px 0; font-size: 1rem; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.table-wrap { margin: 16px 0 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 1rem; }
thead th { background: var(--surface-muted); font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; }
@media (max-width: 599px) {
  .stack thead { display: none; }
  .stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack td { display: block; padding: 2px 0; border: 0; }
  .stack td::before { content: attr(data-label); display: block; color: var(--text-2); font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
}

ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 16px 0; }
ol.steps > li { counter-increment: step; position: relative; padding-inline-start: 46px; margin: 14px 0; min-height: 32px; }
ol.steps > li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 750; font-size: .95rem;
}

.option { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 22px 10px; margin: 18px 0; box-shadow: var(--shadow); }
.option h2 { margin-top: 18px; }

/* Support */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0 8px; box-shadow: var(--shadow); }
.contact p { margin: 0; }
.contact .address { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.faq-group { margin-top: 36px; }
.faq-group h2 { margin: 0 0 12px; }
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin: 10px 0; }
details.faq summary { position: relative; cursor: pointer; list-style: none; padding: 15px 52px 15px 18px; font-weight: 650; font-size: 1.05rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
details.faq[open] summary::after { transform: translateY(-25%) rotate(225deg); }
details.faq summary:hover { color: var(--link); }
details.faq .answer { padding: 0 18px 14px; }
details.faq .answer > :first-child { margin-top: 0; }

/* Home */
.hero {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(40rem 24rem at 50% 28%, rgba(127, 224, 223, .2), transparent 70%),
    linear-gradient(180deg, var(--night-top), var(--night-bottom));
}
.hero-inner { position: relative; padding: 56px 16px 72px; text-align: center; }
.hero-icon { width: 112px; height: 112px; margin: 0 auto 26px; border-radius: 26px; box-shadow: 0 18px 44px rgba(1, 26, 30, .45); }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; max-width: 22ch; margin: 0 auto 18px; }
.hero .lead { color: var(--cream); font-size: clamp(1.08rem, 2.6vw, 1.3rem); max-width: 34rem; margin: 0 auto 30px; }
.hero .note { color: var(--cream-2); margin: 18px 0 0; font-size: .98rem; }
.eyebrow { margin: 0 0 10px; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-2); }
.store { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button.cream { background: var(--cream); color: #063E46; }
.button.cream:hover { background: #FFFFFF; }
.button.outline { border-color: rgba(255, 247, 234, .55); color: var(--cream); }
.button.outline:hover { background: rgba(255, 247, 234, .1); }
.soon { display: inline-flex; align-items: center; min-height: 48px; margin: 0; padding: 12px 22px; border-radius: 999px; border: 1px dashed rgba(255, 247, 234, .6); color: var(--cream); font-weight: 700; }
.sparkle { position: absolute; color: #FFF3DC; }
.sparkle svg { width: 100%; height: 100%; }
.s1 { width: 22px; height: 22px; top: 12%; left: 14%; opacity: .9; }
.s2 { width: 34px; height: 34px; top: 9%; right: 16%; }
.s3 { width: 14px; height: 14px; top: 46%; left: 8%; opacity: .65; }
.s4 { width: 16px; height: 16px; top: 58%; right: 9%; opacity: .7; }
.s5 { width: 11px; height: 11px; top: 30%; right: 30%; opacity: .55; }
@media (max-width: 599px) { .s3, .s5 { display: none; } .s1 { top: 6%; left: 8%; } .s2 { top: 5%; right: 8%; } }

.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section > .wrap > h2 { text-align: center; font-size: clamp(1.6rem, 4vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 10px; }
.section-lead { text-align: center; color: var(--text-2); font-size: 1.1rem; max-width: 38rem; margin: 0 auto 32px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 54rem; margin: 0 auto; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-fg); font-weight: 650; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.c-breast { --chip-fg: #7A47B8; --chip-bg: #F0E8FB; }
.c-bottle { --chip-fg: #2A63AD; --chip-bg: #E4EDFA; }
.c-pump { --chip-fg: #0A6580; --chip-bg: #D9F1F6; }
.c-stash { --chip-fg: #35607D; --chip-bg: #E3EEF5; }
.c-solid { --chip-fg: #A2541C; --chip-bg: #FBE8D8; }
.c-sleep { --chip-fg: #4456A8; --chip-bg: #E8EBFA; }
.c-diaper { --chip-fg: #8F5608; --chip-bg: #FBEDD7; }
.c-temp { --chip-fg: #B13F33; --chip-bg: #FBE4E1; }
.c-med { --chip-fg: #276C60; --chip-bg: #DFF3EE; }
.c-growth { --chip-fg: #1D7A5F; --chip-bg: #DFF3EC; }
.c-milestone { --chip-fg: #B0436F; --chip-bg: #FBE5EE; }
@media (prefers-color-scheme: dark) {
  .c-breast { --chip-fg: #C9A8F2; --chip-bg: #33224E; }
  .c-bottle { --chip-fg: #8FBAF0; --chip-bg: #1B3350; }
  .c-pump { --chip-fg: #8FD4E4; --chip-bg: #123844; }
  .c-stash { --chip-fg: #A9C7E0; --chip-bg: #1B3344; }
  .c-solid { --chip-fg: #F0B27A; --chip-bg: #4A2E16; }
  .c-sleep { --chip-fg: #A9B6F0; --chip-bg: #232B52; }
  .c-diaper { --chip-fg: #F0BE7A; --chip-bg: #4A3313; }
  .c-temp { --chip-fg: #F0A49C; --chip-bg: #4A221E; }
  .c-med { --chip-fg: #8ED9C8; --chip-bg: #14382F; }
  .c-growth { --chip-fg: #82D9BD; --chip-bg: #14392F; }
  .c-milestone { --chip-fg: #F2A5C4; --chip-bg: #482032; }
}

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--on-primary-soft); margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; margin: 0 0 6px; }
.card p { margin: 0; color: var(--text-2); }
.card p + p { margin-top: 10px; }
.card .small { font-size: .93rem; }
.badge { display: inline-block; vertical-align: 2px; margin-inline-start: 6px; padding: 1px 9px; border-radius: 999px; background: var(--warning-soft); color: var(--on-warning-soft); font-size: .75rem; font-weight: 750; letter-spacing: .02em; }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); max-width: 58rem; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.plan.premium { border: 2px solid var(--primary); }
.plan h3 { font-size: 1.4rem; margin: 0; }
.plan .tagline { margin: 4px 0 0; color: var(--text-2); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { position: relative; padding-inline-start: 30px; margin: 10px 0; }
.plan li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft);
}
.plan li::after {
  content: ""; position: absolute; inset-inline-start: 8px; top: calc(.3em + 4px); width: 5px; height: 9px;
  border: solid var(--on-primary-soft); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.plans-note { text-align: center; color: var(--text-2); max-width: 40rem; margin: 24px auto 0; }

.maker { display: flex; gap: 22px; align-items: flex-start; max-width: 46rem; margin: 0 auto; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.maker-mark {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--night-top), var(--night-bottom)); color: var(--cream);
  font-weight: 750; font-size: 1.3rem; letter-spacing: .03em;
}
.maker-text p { margin: 0 0 12px; font-size: 1.05rem; }
.maker-text .signature { margin: 18px 0 0; font-weight: 700; color: var(--text-2); }
@media (max-width: 559px) { .maker { flex-direction: column; gap: 14px; padding: 22px; } }

.promises { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin: 0 0 28px; }
.promise { border-inline-start: 3px solid var(--primary); padding: 4px 0 4px 16px; }
.promise h3 { margin: 0 0 4px; font-size: 1.1rem; }
.promise p { margin: 0; color: var(--text-2); }
.center { text-align: center; }

.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 54rem; margin: 0 auto; padding: 0; list-style: none; }
.langs li { padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }

.closing { text-align: center; }
.closing p { color: var(--text-2); font-size: 1.1rem; margin: 0 auto 22px; max-width: 34rem; }
.closing .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.not-found { padding-top: 80px; padding-bottom: 96px; text-align: center; }
.not-found img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 20px; }

@media print {
  .site-header, .site-footer, .skip, .toc { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .callout, .option, .table-wrap, details.faq { border: 1px solid #999; background: #fff; box-shadow: none; }
}
