/* Tiptoe Baby website. Colours are the app's (docs/design/tiptoe.css), set in the system rounded font.
   No web fonts, no third-party requests. The drawn phones are styled by phone.css; class names here
   are kept different from the ones in that file (so no .btn, .card, .row, .nav, .list, .wrap, .in). */

:root {
  --bg: #F3F1FA;
  --surface: #FFFFFF;
  --surface2: #ECE9F7;
  --ink: #1E1B3A;
  --ink2: #5A5777;
  --line: #E3DFF0;
  --accent: #5546D6;
  --accent-ink: #5546D6;
  --accent-hover: #3B2FA3;
  --on-accent: #FFFFFF;
  --accent-soft: #E9E6FF;
  --warm: #F2A25C;
  --warm-soft: #FCEBD8;
  --rose-soft: #FCE6F0;
  --shadow: 0 12px 30px -16px rgba(40, 32, 110, .30);
  --shadow-lg: 0 2px 4px rgba(40, 32, 110, .06), 0 34px 70px -24px rgba(40, 32, 110, .45);
  --night-bg: #17122F;
  --night-ink: #F2F0FB;
  --night-ink2: #BDB8DC;
  --night-line: rgba(255, 255, 255, .12);
  --night-accent: #B5ABFF;
  --bezel: #1E1B3A;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100E1C;
    --surface: #1B182C;
    --surface2: #262240;
    --ink: #F2F0FB;
    --ink2: #ABA7C6;
    --line: #2E2A47;
    --accent: #6A5AE0;
    --accent-ink: #B5ABFF;
    --accent-hover: #D6D0FF;
    --accent-soft: rgba(169, 157, 255, .16);
    --warm-soft: rgba(242, 166, 94, .15);
    --rose-soft: rgba(245, 141, 184, .15);
    --shadow: 0 14px 30px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 34px 70px -24px rgba(0, 0, 0, .8);
    --night-bg: #1B182C;
    --bezel: #000000;
  }
}
:root[data-theme="dark"] {
  --bg: #100E1C;
  --surface: #1B182C;
  --surface2: #262240;
  --ink: #F2F0FB;
  --ink2: #ABA7C6;
  --line: #2E2A47;
  --accent: #6A5AE0;
  --accent-ink: #B5ABFF;
  --accent-hover: #D6D0FF;
  --accent-soft: rgba(169, 157, 255, .16);
  --warm-soft: rgba(242, 166, 94, .15);
  --rose-soft: rgba(245, 141, 184, .15);
  --shadow: 0 14px 30px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 34px 70px -24px rgba(0, 0, 0, .8);
  --night-bg: #1B182C;
  --bezel: #000000;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 600 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; overflow-wrap: break-word; font-weight: 800; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

.shell { max-width: 1128px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; color: var(--bg); }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-head .shell { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 10px; display: block; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 14px; color: var(--ink2); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); background: var(--surface2); }
.site-nav a[aria-current="page"] { color: var(--ink); }

.lang-menu { position: relative; margin-left: 2px; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 14px; cursor: pointer; list-style: none; color: var(--ink2); font-size: 15px; font-weight: 700; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); background: var(--surface2); }
.lang-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 11; min-width: 160px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.lang-menu li { margin: 0; }
.lang-menu ul a { display: flex; color: var(--ink); border-radius: 12px; }
.lang-menu ul a[aria-current] { color: var(--accent-ink); background: var(--accent-soft); }

.theme-menu[hidden] { display: none; }
.theme-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 11; min-width: 160px; display: flex; flex-direction: column; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.theme-menu button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.theme-menu button:hover { background: var(--surface2); }
.theme-menu button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-soft); }

/* ---------- pills ---------- */

.soon { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 24px; border-radius: 19px; background: var(--ink); color: var(--bg); font-weight: 800; }
.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px rgba(242, 162, 92, .3); }

.eyebrow { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }

.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 12px; margin-left: 8px; vertical-align: middle; background: var(--warm-soft); color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .02em; white-space: nowrap; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 64px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 420px at 84% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(440px 360px at 62% 86%, var(--warm-soft), transparent 70%),
    radial-gradient(380px 320px at 4% 6%, var(--rose-soft), transparent 70%);
}
.hero .shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); letter-spacing: -.035em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lead { margin: 24px 0 32px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--ink2); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink2); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.preview-note { margin: 22px 0 0; font-size: 14px; color: var(--ink2); max-width: 36em; }

/* ---------- phones ---------- */

.phone { --k: .72; position: relative; flex: none; width: calc(390px * var(--k) + 18px); height: calc(844px * var(--k) + 18px); padding: 9px; border-radius: calc(50px * var(--k) + 9px); background: var(--bezel); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.phone .screen { position: relative; width: calc(390px * var(--k)); height: calc(844px * var(--k)); border-radius: calc(50px * var(--k)); overflow: hidden; }
.phone .screen::after { content: ""; position: absolute; top: calc(13px * var(--k)); left: 50%; width: calc(112px * var(--k)); height: calc(32px * var(--k)); border-radius: 99px; background: #000; transform: translateX(-50%); }
.phone .tb { position: absolute; left: 0; top: 0; transform: scale(var(--k)); transform-origin: 0 0; text-align: left; }
/* the app's entrance animation would leave a screen half empty in the first second */
.phone .tb .in { animation: none; }

.duo { display: flex; justify-content: center; align-items: flex-start; padding: 8px 0 44px; }
.duo .rear { --k: .64; margin-right: -92px; transform: translateY(54px) rotate(-5deg); }
.duo .fore { z-index: 1; transform: rotate(2deg); }

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section.tint { background: var(--surface2); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2, .split h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.03em; }
.section-head p { margin: 18px 0 0; font-size: 19px; color: var(--ink2); max-width: 36em; }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split .phone { margin: 0 auto; }
.split .intro { margin: 18px 0 36px; font-size: 19px; color: var(--ink2); max-width: 34em; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.feature-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink2); }
.feature .icon { margin-bottom: 14px; }

.icon { --a: var(--al, var(--accent-ink)); --at: var(--atl, var(--accent-soft)); width: 46px; height: 46px; border-radius: 15px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--at); color: var(--a); }
.icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* tracker accents, the app's: light pair and dark pair */
.k-sleep { --al: #5546D6; --atl: #E9E6FF; --ad: #A99DFF; --atd: rgba(169, 157, 255, .16); }
.k-feed { --al: #B93A72; --atl: #FCE6F0; --ad: #F58DB8; --atd: rgba(245, 141, 184, .15); }
.k-bottle { --al: #1A70A6; --atl: #E1F1FB; --ad: #6CC0F0; --atd: rgba(108, 192, 240, .15); }
.k-solids { --al: #A2540F; --atl: #FCEBD8; --ad: #F2A65E; --atd: rgba(242, 166, 94, .15); }
.k-diaper { --al: #0E7A73; --atl: #DAF3F0; --ad: #4FD1C5; --atd: rgba(79, 209, 197, .14); }
.k-potty { --al: #5C6B0C; --atl: #EDF2D3; --ad: #BFD04A; --atd: rgba(191, 208, 74, .13); }
.k-pump { --al: #8E38A8; --atl: #F4E4FA; --ad: #D48CEB; --atd: rgba(212, 140, 235, .15); }
.k-mood { --al: #8A6500; --atl: #FAEFC8; --ad: #EDC84A; --atd: rgba(237, 200, 74, .13); }
.k-health { --al: #BC3535; --atl: #FCE4E4; --ad: #F58080; --atd: rgba(245, 128, 128, .15); }
.k-grow { --al: #27753F; --atl: #DDF2E3; --ad: #6FD08C; --atd: rgba(111, 208, 140, .14); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon { --a: var(--ad, var(--accent-ink)); --at: var(--atd, var(--accent-soft)); }
}
:root[data-theme="dark"] .icon { --a: var(--ad, var(--accent-ink)); --at: var(--atd, var(--accent-soft)); }

/* trackers */
.kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0 0 56px; }
.kinds > div { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); font-weight: 800; line-height: 1.25; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.tile .icon { margin-bottom: 18px; }
.tile h3 { font-size: 21px; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--ink2); }

/* free and premium */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.plan.premium { border-color: var(--accent-ink); }
.plan h3 { font-size: 24px; margin-bottom: 6px; }
.plan .sub { margin: 0 0 20px; color: var(--ink2); }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { position: relative; margin: 0; padding: 9px 0 9px 32px; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg); }
.pledge { margin: 28px 0 0; color: var(--ink2); max-width: 46em; }

/* privacy: the night sky of the welcome screen */
.night { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 18% 0%, #3A2F86 0%, #17122F 55%, #0B0918 100%); color: var(--night-ink); border-radius: 40px; padding: 64px 56px; }
.night i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7; }
.night .eyebrow { color: var(--night-accent); }
.night h2 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -.03em; max-width: 14em; }
.night .lead { margin: 20px 0 0; font-size: 19px; color: var(--night-ink2); max-width: 34em; }
.night-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin: 44px 0 36px; padding-top: 40px; border-top: 1px solid var(--night-line); }
.night-grid h3 { font-size: 18px; margin-bottom: 8px; }
.night-grid p { margin: 0; font-size: 15px; color: var(--night-ink2); }
.night .know { margin: 0 0 8px; font-size: 15px; color: var(--night-ink2); max-width: 52em; }
.night a { color: var(--night-accent); font-weight: 800; }
.night a:hover { color: #fff; }

/* questions */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2.5px solid var(--ink2); border-bottom: 2.5px solid var(--ink2); transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { margin: 0 0 20px; color: var(--ink2); max-width: 44em; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-weight: 800; }

.closing { padding: 96px 0 104px; text-align: center; }
.closing img { width: 96px; height: 96px; border-radius: 26px; box-shadow: var(--shadow-lg); margin-bottom: 28px; }
.closing h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.03em; }
.closing p { margin: 16px auto 28px; font-size: 19px; color: var(--ink2); max-width: 30em; }
.closing .cta { justify-content: center; }

.fine { font-size: 14px; color: var(--ink2); max-width: 52em; }

/* ---------- text pages ---------- */

.page { padding: 56px 0 96px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -.03em; margin-bottom: 14px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink2); }
.prose .stamp { color: var(--ink2); font-size: 15px; }
.notice { margin: 24px 0; padding: 16px 20px; border-radius: 20px; background: var(--warm-soft); color: var(--ink); }
.prose .notice { color: var(--ink); }
.prose .faq { margin-top: 12px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 8px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.contact p { margin: 0; }
.contact a { font-size: 19px; font-weight: 800; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 15px; color: var(--ink2); }
.site-foot .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.site-foot p { margin: 10px 0 0; max-width: 34em; }
.foot-links { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.foot-links li { margin: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink2); font-weight: 700; text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- smaller screens ---------- */

@media (max-width: 1000px) {
  .site-nav .wide { display: none; }
  .hero .shell { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split.flip .phone { order: 2; }
  .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .night-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .night { padding: 48px 36px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { padding: 0 16px; }
  .site-nav .mid { display: none; }
  .site-nav a, .lang-menu summary { padding: 0 9px; }
  .brand { font-size: 18px; }
  .hero { padding: 40px 0 64px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 44px; }
  .kinds > div { padding: 14px; border-radius: 20px; }
  .tiles, .plans, .feature-grid, .feature-grid.three, .night-grid { grid-template-columns: minmax(0, 1fr); }
  .tile, .plan { padding: 24px; }
  .night { padding: 40px 22px; border-radius: 30px; }
  .phone { --k: .66; }
  .duo .rear { --k: .5; margin-right: -84px; transform: translateY(40px) rotate(-5deg); }
  .duo .fore { --k: .56; }
  .closing { padding: 64px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
