/* S30: top bar (language, Log in / Sign up, profile menu) and the counts strip */
[data-topbar] { display: inline-flex; align-items: center; gap: 6px; }
.tb-wrap { position: relative; }
.tb-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line, rgb(182 139 112 / .45)); background: var(--card); color: var(--ink); font: 600 .86rem/1 inherit; cursor: pointer; white-space: nowrap; }
.tb-auth { display: inline-flex; gap: 4px; }
.tb-login, .tb-signup { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.tb-login { border-color: transparent; background: transparent; }
.tb-signup { background: var(--accent, #6B4148); color: #fff; border-color: transparent; }
.tb-av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold, #B68B70); padding: 0; overflow: hidden; background: #E8C9C2; color: #6B4148; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.tb-av img, .tb-pic img { width: 100%; height: 100%; object-fit: cover; }
.tb-btn:focus-visible, .tb-av:focus-visible, .tb-opt:focus-visible { outline: 3px solid var(--gold, #B68B70); outline-offset: 2px; }
.tb-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 500; min-width: 250px; background: var(--card); color: var(--ink); border: 1px solid var(--line, rgb(182 139 112 / .35)); border-radius: 16px; box-shadow: 0 20px 40px -16px rgb(60 30 35 / .35); padding: 8px; display: grid; gap: 2px; }
.tb-pop[hidden] { display: none; }
@media (max-width: 600px) { .tb-pop { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + 72px); min-width: 0; max-height: calc(100dvh - 96px); overflow: auto; } }
.tb-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; text-align: left; font: 500 .94rem/1.25 inherit; color: inherit; cursor: pointer; text-decoration: none; min-height: 44px; }
.tb-opt:hover { background: rgb(232 201 194 / .35); }
.tb-opt small { display: block; color: var(--ink-2, #7A6264); font-size: .74rem; }
.tb-opt[aria-checked="true"] { background: rgb(232 201 194 / .5); font-weight: 700; }
.tb-soon { font-size: .68rem; padding: 2px 8px; border-radius: 99px; background: rgb(232 201 194 / .6); color: #6B4148; white-space: nowrap; }
.tb-me { display: flex; gap: 12px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line, rgb(182 139 112 / .3)); }
.tb-pic { position: relative; width: 54px; height: 54px; flex: none; border-radius: 50%; border: 2px solid var(--gold, #B68B70); background: #E8C9C2; display: grid; place-items: center; color: #6B4148; font-weight: 700; font-size: 1.2rem; cursor: pointer; overflow: visible; }
.tb-pic img, .tb-pic > span:first-child { border-radius: 50%; overflow: hidden; }
.tb-cam { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: #6B4148; color: #fff; display: grid; place-items: center; font-size: .7rem; border: 2px solid #fff; }
.tb-pic:focus-within { outline: 3px solid var(--gold, #B68B70); outline-offset: 2px; }
.tb-me small { display: block; color: var(--ink-2, #7A6264); }
.tb-bal { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 4px; padding: 10px 12px; border-radius: 12px; background: rgb(232 201 194 / .35); font-size: .86rem; }
.tb-bal b { display: block; font-size: 1.05rem; color: var(--ink); }
.tb-bal a { color: var(--ink); font-weight: 700; font-size: .8rem; }
.tb-out { color: #9E2B3A; border-top: 1px solid var(--line, rgb(182 139 112 / .3)); border-radius: 0; margin-top: 4px; font-family: system-ui, sans-serif; }
@media (max-width: 560px) { .tb-lbl { display: none; } .tb-lbl-s { display: inline; } .tb-btn { padding: 8px 10px; } .lv-header .lv-logo-text { display: none; } .lv-header .lv-header-inner { gap: 8px; } [data-topbar] { gap: 4px; } }
@media (max-width: 380px) { .tb-btn { padding: 8px 8px; font-size: .8rem; } .lv-header .lv-logo-mark { width: 36px; height: 36px; } }
.tb-stats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 4px max(16px, env(safe-area-inset-left, 0px)); }
.tb-stats:empty { display: none; }
.tb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--surface, #fff); border: 1px solid var(--line, rgb(182 139 112 / .35)); font-size: .86rem; color: var(--ink-2, #7A6264); }
.tb-chip b { color: #6B4148; font-variant-numeric: tabular-nums; }
.tb-new { background: linear-gradient(90deg, #6B4148, #8E5A62); color: #fff; border: 0; }
.tb-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E7D4F; box-shadow: 0 0 0 4px rgb(46 125 79 / .18); }

/* landing: free pregnancy guide */
.lguide { padding-block: var(--s8); background: linear-gradient(180deg, #FFF7EE, #F8F1E8); color: #3A2A2C; }
.lguide-in { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .lguide-in { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }
.lguide-book { position: relative; background: linear-gradient(160deg, #E8C9C2, #CDB3B8); justify-self: center; width: min(78vw, 300px); max-width: 100%; aspect-ratio: 3 / 4.25; border-radius: 4px 14px 14px 4px; overflow: hidden; box-shadow: -6px 0 0 #E9D6C2, 0 30px 50px -18px rgb(80 40 45 / .55); transform: rotate(-3deg); transition: transform .3s; text-decoration: none; }
.lguide-book:hover { transform: rotate(0) translateY(-4px); }
.lguide-book img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; max-width: none; }
.lguide-book > span { position: absolute; left: 0; right: 0; top: 0; padding: 18px; background: linear-gradient(rgb(248 241 232 / .95), rgb(248 241 232 / .4) 70%, transparent); color: #B68B70; font-family: var(--f-ethi-display, serif); font-size: 1rem; }
.lguide-book b { display: block; color: #6B4148; font-size: 1.7rem; line-height: 1.15; }
.lguide-txt { display: grid; gap: 10px; min-width: 0; }
.lguide-txt .eyebrow { color: #B68B70; }
.lguide-txt h2 { margin: 0; font-family: var(--f-ethi-display, serif); font-size: var(--fs-2xl); color: #6B4148; }
.lguide-txt p, .lguide-txt ul { margin: 0; line-height: 1.8; color: #5A4446; max-width: 56ch; }
.lguide-txt ul { padding-left: 20px; }
.lguide-txt .btn { justify-self: start; }
.lguide-note { font-size: .82rem; color: #7A6264 !important; }
@media (prefers-reduced-motion: reduce) { .lguide-book { transition: none; transform: none; } }
/* the top bar got busier: keep the text links only where they fit on one line, else the menu button */
.lv-nav a { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1359px) { .lv .lv-nav { display: none; } .lv .menu-btn { display: inline-flex; } }

/* S42: the language button says what it is — its border stands out and, on phones, it shows the language's short name */
.tb-lbl-s { display: none; }
@media (max-width: 560px) { .tb-lbl-s { display: inline; } }
.tb-lang { border: 1.5px solid var(--gold, #B68B70); }
@media (max-width: 380px) { .tb-lang svg { display: none; } }
/* S42: first-visit language chooser */
body.lp-open { overflow: hidden; }
.lp-back { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lp-card { width: 100%; max-width: 420px; display: grid; gap: 12px; text-align: center; margin: auto 0; }
.lp-brand { font-size: 1.9rem; color: var(--primary); font-weight: 700; }
.lp-card h2 { margin: 0; font-size: 1.35rem; }
.lp-sub { margin: 0 0 4px; color: var(--ink-2); font-size: .86rem; line-height: 1.5; }
.lp-list { display: grid; gap: 8px; }
.lp-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px; text-align: start;
  border: 1px solid var(--line-2, var(--line)); border-radius: 16px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
.lp-opt b { display: block; font-size: 1.08rem; } .lp-opt small { display: block; color: var(--ink-2); font-size: .82rem; margin-top: 2px; }
.lp-opt[aria-checked="true"] { border: 2px solid var(--primary); background: var(--sunk, var(--card)); }
.lp-tick { visibility: hidden; color: var(--primary); font-size: 1.2rem; } .lp-opt[aria-checked="true"] .lp-tick { visibility: visible; }
.lp-opt:focus-visible, .lp-go:focus-visible { outline: 3px solid var(--gold, #B68B70); outline-offset: 2px; }
.lp-soon { margin: 2px 0 0; color: var(--ink-2); font-size: .8rem; }
.lp-go { width: 100%; min-height: 50px; font-size: 1.02rem; margin-top: 4px; }
/* S42: the landing header on a phone keeps the logo, the named language button, Log in / Sign up, theme and menu on one line */
@media (max-width: 430px) {
  .lv-header .lv-logo { flex-shrink: 0; }
  .lv-header .lv-header-inner { gap: 6px; }
  .lv-header .tb-lang svg { display: none; }
  .lv-header .tb-btn { padding: 7px 9px; font-size: .8rem; min-height: 38px; }
  .lv-header .lv-actions { gap: 4px; min-width: 0; }
}
@media (max-width: 340px) {
  .lv-header .lv-round { width: 36px; height: 36px; min-width: 36px; }
  .lv-header .tb-btn { padding: 6px 7px; font-size: .76rem; }
  .lv-header .tb-lang > span[aria-hidden] { display: none; }
  .lv-header .lv-logo-mark { width: 30px; height: 30px; }
  .lv-header .lv-header-inner { gap: 4px; padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
}

/* S50: the second step — where she wants to go */
.wh-card { gap: 10px; }
.wh-row { display: grid; gap: 6px; padding: 14px; border-radius: 16px; text-align: start; }
.wh-row b { font-size: 1.02rem; }
.wh-row small { line-height: 1.5; }
.wh-free { background: var(--card); border: 1.5px solid #8CC2A0; color: var(--ink); }
.wh-free small { color: var(--ink-2); }
.wh-list { font-size: .88rem; font-weight: 600; line-height: 1.6; color: var(--ink); }
.wh-main { background: #6B4148; color: #FFF6F2; }
.wh-main small { color: #F3DFE2; }
.wh-row .btn { width: 100%; min-height: 46px; }
.wh-go-free { background: #2F7A4A; color: #fff; border: 0; }
.wh-go-up { background: #fff; color: #6B4148; border: 0; }
.wh-go-in { background: transparent; color: #fff; border: 1.5px solid rgb(255 255 255 / .6); }
.wh-look { justify-self: center; min-height: 44px; border: 0; background: none; color: var(--primary); text-decoration: underline; font: inherit; cursor: pointer; }
.wh-steps { margin: 4px 0 0; padding-inline-start: 1.3em; text-align: start; font-size: .86rem; line-height: 1.55; color: var(--ink-2); }
.wh-steps li + li { margin-top: 4px; }
.wh-haveacct { background: none; border: 0; color: var(--ink-2); text-decoration: underline; padding: 8px; font: inherit; font-size: .95rem; cursor: pointer; }
