/* BabyLogly content pages. Shared by every language folder.
   "Warm Journal" look, matching the iOS app and home.css. */
:root {
    color-scheme: light dark;
    --bg: #FAF5EC;
    --card: #FFFDF8;
    --sand: #EFE6D6;
    --hair: #E4D8C4;
    --ink: #2B2320;
    --muted: #6E6259;
    --accent: #B4583A;
    --accent-ink: #A04C30;
    --on-accent: #FFFDF8;
    --sage-ink: #4C664A;
    --ochre-ink: #80602A;
    --radius: 18px;
    --serif: ui-serif, 'Newsreader', 'New York', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow: 0 1px 2px rgba(43,35,32,.05), 0 10px 30px rgba(43,35,32,.08);
    /* legacy names still used inline by some pages */
    --text: var(--ink);
    --text-secondary: var(--muted);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #17120F;
        --card: #221B17;
        --sand: #2A221D;
        --hair: #3A2F28;
        --ink: #EFE4D6;
        --muted: #B5A797;
        --accent-ink: #E3926F;
        --on-accent: #FFF8F0;
        --sage-ink: #9DBB9A;
        --ochre-ink: #D6AD68;
        --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--sans);
    background: var(--bg); color: var(--ink); line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 740px; margin: 0 auto; padding: 0 24px 80px; }
nav.top {
    padding: 16px 0;
    border-bottom: 1px solid var(--hair);
    margin-bottom: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo span { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-ink); }
.eyebrow {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--sand);
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 18px;
}
h1 { font-family: var(--serif); font-size: clamp(34px, 6vw, 50px); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 12px; }
.lede { color: var(--muted); font-size: 17px; margin-bottom: 36px; }
.release {
    background: var(--card);
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 14px;
}
.release .ver { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.release h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.release time { font-size: 12px; color: var(--muted); font-weight: 500; }
.release ul { list-style: none; }
.release li { padding: 3px 0; font-size: 14.5px; color: var(--ink); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-right: 8px; background: var(--sand); }
.tag-feat { color: var(--sage-ink); }
.tag-fix { color: var(--ochre-ink); }
footer {
    margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--hair);
    font-size: 13px; color: var(--muted);
    display: flex; gap: 18px; flex-wrap: wrap;
}
footer a { color: var(--accent-ink); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }

/* How-it-works cards and steps */
h2 { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 48px 0 14px; }
.card {
    background: var(--card);
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 14px;
}
.card h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.card p { font-size: 15px; color: var(--muted); }
ol.steps { list-style: none; counter-reset: step; margin-top: 4px; }
ol.steps li { position: relative; padding: 0 0 12px 42px; counter-increment: step; font-size: 15.5px; }
ol.steps li:last-child { padding-bottom: 0; }
ol.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0; width: 27px; height: 27px; border-radius: 50%;
    background: var(--sand); color: var(--accent-ink);
    font-family: ui-rounded, 'SF Pro Rounded', var(--sans);
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
ol.steps b { color: var(--ink); font-weight: 700; }

/* Shared content pages (how it works, support, privacy, comparisons, updates). */
.nav-right { display: flex; align-items: center; }
.card ul { margin: 8px 0 0 20px; font-size: 15px; }
.card li { padding: 2px 0; }
.card p + p { margin-top: 8px; }
p.body { margin-bottom: 14px; }
code, .phrase { font-family: inherit; background: var(--sand); border-radius: 6px; padding: 1px 7px; font-size: 14px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 8px; }
table.cmp th, table.cmp td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.cmp th { font-weight: 700; }
details.faq { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 15px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq summary::marker { color: var(--accent); }
details.faq p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.cta { display: inline-block; margin-top: 12px; padding: 13px 26px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; box-shadow: 0 6px 20px rgba(180,88,58,.25); }
.cta:hover { filter: brightness(1.06); }
.note { font-size: 13px; color: var(--muted); margin-top: 24px; }
main a:not(.cta):not(.appstore-badge) { color: var(--accent-ink); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 8px; }
@media (max-width: 600px) { .logo span { display: none; } .nav-links { gap: 14px; } .nav-links a { font-size: 13px; } nav.top { margin-bottom: 32px; } }
/* Language menu: <details> + real links, works without JavaScript. */
.langs { position: relative; margin-left: 16px; }
.langs > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hair); background: var(--card); }
.langs > summary::-webkit-details-marker { display: none; }
.langs > summary:hover { color: var(--accent-ink); }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; list-style: none; padding: 5px; min-width: 180px; background: var(--card); border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--shadow); }
.langs ul a, .langs ul .on { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); }
.langs ul a:hover { background: var(--sand); color: var(--accent-ink); }
.langs ul .on { color: var(--accent-ink); font-weight: 700; }
.langs .fl { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
@media (max-width: 600px) { .langs .cur { display: none; } .langs { margin-left: 10px; } }

/* Official Apple "Download on the App Store" badge (inline SVG, unmodified artwork).
   Apple: min 40px tall on screen, clear space of 1/4 badge height, no effects.
   Black badge on light pages, white badge in dark mode. */
.appstore-badge { display: inline-block; line-height: 0; margin: 16px 0 0; padding: 12px 12px 12px 0; border-radius: 8px; }
.appstore-badge svg { display: block; height: 48px; width: auto; }
.appstore-badge .badge-white { display: none; }
@media (prefers-color-scheme: dark) {
    .appstore-badge .badge-black { display: none; }
    .appstore-badge .badge-white { display: block; }
}
.appstore-badge:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }

/* Right-to-left languages (Hebrew). Everything is scoped to [dir="rtl"] or :lang(he), so left-to-right pages are untouched. */
html:lang(he) {
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Arial Hebrew', 'Noto Sans Hebrew', 'Segoe UI', Arial, sans-serif;
    --serif: 'Newsreader', 'Arial Hebrew', 'Noto Sans Hebrew', 'Segoe UI', Arial, sans-serif;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] .logo span, html[dir="rtl"] .eyebrow { letter-spacing: 0; }
html[dir="rtl"] .tag { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] ol.steps li { padding: 0 42px 12px 0; }
html[dir="rtl"] ol.steps li:last-child { padding-bottom: 0; }
html[dir="rtl"] ol.steps li::before { left: auto; right: 0; }
html[dir="rtl"] .card ul { margin: 8px 20px 0 0; }
html[dir="rtl"] table.cmp th, html[dir="rtl"] table.cmp td { text-align: right; }
html[dir="rtl"] .langs { margin-left: 0; margin-right: 16px; }
html[dir="rtl"] .langs ul { right: auto; left: 0; }
html[dir="rtl"] .appstore-badge { padding: 12px 0 12px 12px; }
@media (max-width: 600px) { html[dir="rtl"] .langs { margin-left: 0; margin-right: 10px; } }
