/* Shared by the landing page (index.html) and the nannies page (nannies.html). */
body { overflow-x: hidden; }
.page { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
nav.site { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
nav.site .links { display: flex; gap: 8px; align-items: center; }
nav.site .links a.signin { color: var(--ink); font-weight: 600; text-decoration: none; padding: 10px 12px; }
nav.site .btn { min-height: 44px; padding: 0 16px; font-size: 16px; }
nav.site .wordmark, nav.site .links a { white-space: nowrap; }
.mk-mock { background: #fff; border-radius: 16px; padding: 14px; display: grid; gap: 8px; font-size: 14px; }
.mk-mock .top { display: flex; align-items: center; gap: 10px; }
.mk-mock .av { width: 40px; height: 40px; border-radius: 50%; background: #E9E1F5; color: var(--plum); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; flex: none; }
.mk-mock .stars { color: var(--marigold); letter-spacing: 1px; }
.mk-mock .pill { display: inline-block; background: #E3EFE5; color: #3E6B4A; border-radius: 99px; padding: 2px 9px; font-weight: 700; font-size: 12px; margin: 0 4px 4px 0; }
.final .cta-row { justify-content: center; }
.role .mk-mock { margin-top: auto; background: var(--bg); }
@media (max-width: 400px) { nav.site .wordmark { font-size: 22px; gap: 8px; } nav.site .links { gap: 2px; } nav.site .links a.signin { padding: 10px 8px; } nav.site .btn { padding: 0 12px; font-size: 15px; } }

.hero { display: grid; gap: 36px; align-items: center; padding: 24px 0 56px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; padding: 48px 0 80px; } }
.hero h1 { font: clamp(40px, 7.5vw, 68px)/1.04 var(--serif); letter-spacing: -0.02em; margin: 0 0 18px; font-weight: normal; max-width: 13ch; }
.hero p.sub { font-size: 19px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 26px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-row .btn { min-height: 56px; padding: 0 24px; }
.fine { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }

/* Phone mock built from the real app's parts */
.stage { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.phone { width: 300px; background: var(--bg); border-radius: 44px; padding: 16px 14px 18px; box-shadow: 0 0 0 10px #fff, 0 0 0 11px var(--line), 0 30px 60px -20px rgba(42,33,64,.35); position: relative; z-index: 1; }
.phone .bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; font: 20px/1 var(--serif); }
.phone .bar span { font: 13px var(--sans); color: var(--ink-soft); }
.m-ticket { position: relative; background: var(--marigold); border-radius: 18px; padding: 14px 14px 12px; }
.m-ticket::before, .m-ticket::after { content: ""; position: absolute; top: 74px; width: 16px; height: 16px; background: var(--bg); border-radius: 50%; }
.m-ticket::before { left: -8px; } .m-ticket::after { right: -8px; }
.m-ticket .lead { font-size: 13px; font-weight: 700; color: var(--marigold-deep); }
.m-ticket .big { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 4px; }
.m-ticket .amount { font: 42px/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.m-ticket .amount small { font-size: 20px; }
.m-ticket .when { text-align: right; font-size: 12px; } .m-ticket .when b { display: block; font: 18px var(--serif); font-weight: normal; }
.m-ticket .detail { border-top: 2px dashed rgba(42,33,64,.28); margin-top: 10px; padding-top: 8px; font-size: 12.5px; }
.m-totals { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 14px; margin: 10px 0; }
.m-totals div { padding: 9px 10px; font-size: 11px; color: var(--ink-soft); }
.m-totals div + div { border-left: 1px solid var(--line); }
.m-totals b { display: block; font: 16px var(--serif); color: var(--ink); font-weight: normal; }
.m-cal { background: #fff; border-radius: 14px; padding: 8px 6px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.m-cal i { font-style: normal; text-align: center; font-size: 10px; color: var(--ink-soft); }
.m-cal span { height: 34px; border-radius: 8px; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 3px; }
.m-cal span.has { background: #F8F5FC; }
.m-cal span.has::after { content: attr(data-s); font-size: 8.5px; font-weight: 700; color: var(--plum); background: var(--plum-tint); border-radius: 4px; padding: 1px 3px; }
.m-cal span.today { font-weight: 700; }
.float { position: absolute; z-index: 2; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 30px -12px rgba(42,33,64,.35); font-size: 14px; white-space: nowrap; }
.float b { display: block; font-size: 15px; }
.float.f1 { left: max(0px, calc(50% - 250px)); top: -4px; }
.float.f2 { right: max(0px, calc(50% - 250px)); top: 210px; }
.float.f3 { left: max(0px, calc(50% - 235px)); bottom: 60px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
@media (max-width: 560px) { .float.f1 { left: -6px; top: -14px; } .float.f2 { right: -6px; top: 190px; } .float.f3 { left: -6px; bottom: 30px; } .float { font-size: 12.5px; padding: 8px 11px; } }

section.band { padding: 64px 0; }
section.band h2 { font: clamp(30px, 5vw, 44px)/1.1 var(--serif); letter-spacing: -0.01em; margin: 0 0 12px; max-width: 18ch; }
section.band p.intro { color: var(--ink-soft); font-size: 18px; max-width: 36em; margin: 0 0 32px; }

.roles { display: grid; gap: 14px; }
@media (min-width: 820px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.role { background: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.role h3 { font: 23px/1.2 var(--serif); margin: 0; font-weight: normal; }
.role p { margin: 0; color: var(--ink-soft); }
.role h3 a { color: inherit; text-decoration: none; }
.role h3 a:hover, .role h3 a:focus-visible { text-decoration: underline; }
.role .frag { margin-top: auto; background: var(--bg); border-radius: 14px; padding: 12px; font-size: 14px; }
.frag .chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.frag .c { border: 1.5px solid var(--plum); color: var(--plum); border-radius: 99px; padding: 4px 10px; font-weight: 700; font-size: 13px; }
.frag .c.on { background: var(--plum); color: #fff; }
.frag .paybtn { background: var(--ink); color: #fff; border-radius: 10px; padding: 10px; text-align: center; font-weight: 700; }
.frag .line { display: flex; justify-content: space-between; padding: 6px 2px; }
.frag .line + .line { border-top: 1px solid var(--line); }

.steps { display: grid; gap: 14px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--marigold); border-radius: 22px; padding: 22px; position: relative; }
.steps li:nth-child(2) { background: #F7C96B; } .steps li:nth-child(3) { background: #F9D98F; }
.steps li::before { counter-increment: s; content: counter(s); font: 44px/1 var(--serif); display: block; margin-bottom: 10px; color: var(--ink); }
.steps h3, .steps h4 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; }

.privacy { background: var(--ink); color: #fff; border-radius: 28px; padding: 40px 26px; display: grid; gap: 24px; }
@media (min-width: 820px) { .privacy { grid-template-columns: 1fr 1.2fr; padding: 56px; } }
.privacy h2 { color: #fff; }
.privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy li { padding-left: 30px; position: relative; color: #E6E1EE; }
.privacy li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--marigold) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2140' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12l4 4 8-9'/></svg>") center/12px no-repeat; }
.privacy li b { color: #fff; }
.privacy .policy-links { margin: 16px 0 0; }
.privacy .policy-links a { color: var(--marigold); font-weight: 600; }

.faq { max-width: 760px; }
.faq details { background: #fff; border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font: 24px/1 var(--serif); color: var(--plum); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

.final { text-align: center; padding: 72px 0 40px; }
.final h2 { margin: 0 auto 18px; font: clamp(30px, 5vw, 44px)/1.1 var(--serif); max-width: 18ch; }
.final .btn { padding: 0 28px; }
.sub-h { font: 26px/1.2 var(--serif); font-weight: normal; margin: 40px 0 14px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 calc(28px + var(--safe-b)); color: var(--ink-soft); font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.js .reveal { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Three ways in, right under the hero: families hiring, families with a nanny, nannies getting hired */
.doors { display: grid; gap: 14px; margin: -24px 0 8px; }
@media (min-width: 820px) { .doors { grid-template-columns: repeat(3, 1fr); margin-top: -40px; } }
.door { display: flex; flex-direction: column; gap: 10px; border-radius: 24px; padding: 24px; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.door:hover, .door:focus-visible { border-color: var(--plum); transform: translateY(-2px); }
.door.nanny { background: var(--plum-tint); }
.door.have { background: #FFF6DF; }
.have-link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--plum); text-decoration: none; }
.have-link:hover, .have-link:focus-visible { text-decoration: underline; }
.door .kicker { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--plum); }
.door h2 { font: 28px/1.15 var(--serif); margin: 0; font-weight: normal; }
.door p { margin: 0; color: var(--ink-soft); }
.door .go { margin-top: auto; font-weight: 700; color: var(--plum); }

/* Four hiring steps */
@media (min-width: 820px) { .steps.four { grid-template-columns: repeat(4, 1fr); } }
.steps li:nth-child(4) { background: #FBE6B5; }
.free-badge { display: inline-block; background: #E3EFE5; color: #3E6B4A; border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }

/* The nannies page's phone mock is taller at the top, so its floating cards sit clear of the text */
@media (min-width: 561px) {
  .stage.alt .float.f2 { top: 120px; }
  .stage.alt .float.f3 { bottom: -6px; }
}
/* The language button in the top bar */
nav.site .lang-pick { margin-right: 4px; }
/* The top bar on smaller screens (translations run longer than English): below 760px the main button and
   the link to the other page go (both are repeated in the hero and the footer) and the language button
   shows its short code ("PT"); on the narrowest phones "Sign in" may take two short lines. The guide links
   (Guides, Pay calculator) need room for Portuguese, so they show from 1060px and are in the footer always. */
@media (max-width: 1060px) { nav.site .links a.more { display: none; } }
@media (max-width: 760px) { nav.site .links .btn, nav.site .links a.cross { display: none; } nav.site .lang-btn { padding: 0 10px; gap: 5px; } nav.site .lang-cur { display: none; } nav.site .lang-code { display: inline; } }
@media (max-width: 420px) { nav.site .links a.signin { white-space: normal; max-width: 92px; text-align: center; line-height: 1.15; font-size: 15px; } }
@media (max-width: 340px) { nav.site .wordmark { font-size: 20px; gap: 6px; } nav.site .wordmark img { width: 26px; height: 26px; } nav.site .lang-btn { padding: 0 8px; gap: 4px; } .float.f1, .float.f3 { left: 0; } .float.f2 { right: 0; } }
/* Public area pages (/nannies-near, src/public.js) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pub-hero { padding-bottom: 28px; }
.pub-hero h1 { font: 40px/1.1 var(--serif); font-weight: normal; margin: 0 0 14px; }
.pub-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 4px; }
.pub-stats > div { background: #fff; border-radius: 16px; padding: 14px 16px; }
.pub-stats b { display: block; font: 26px/1.2 var(--serif); font-weight: normal; }
.pub-stats span { font-size: 14px; color: var(--ink-soft); }
.pub-zip { display: flex; gap: 8px; max-width: 420px; margin-top: 6px; }
.pub-zip input { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 17px; background: #fff; }
.pub-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pub-grid { grid-template-columns: repeat(3, 1fr); } }
.pub-card { background: #fff; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pub-head { display: flex; gap: 12px; align-items: center; }
.pub-av { width: 48px; height: 48px; border-radius: 50%; background: var(--plum-tint); color: var(--plum); display: grid; place-items: center; font: 22px var(--serif); flex: none; }
.pub-card h3 { margin: 0; font-size: 19px; }
.pub-meta { font-size: 14px; color: var(--ink-soft); }
.pub-headline { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pub-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; color: var(--ink-soft); }
.pub-facts b { color: var(--ink); }
.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-tags span { background: var(--bg); border-radius: 99px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.pub-card .btn { margin-top: auto; justify-content: center; }
.pub-empty { background: #fff; border-radius: 22px; padding: 26px; text-align: center; }
.pub-empty h2, .pub-band h2, .pub-again h2 { font: 26px/1.2 var(--serif); font-weight: normal; margin: 0 0 10px; }
.pub-empty p { color: var(--ink-soft); margin: 0 0 16px; }
.pub-list { padding-bottom: 24px; }
.pub-band { background: var(--marigold); border-radius: 26px; padding: 28px 24px; margin: 20px 0; }
.pub-band p { margin: 0 0 16px; }
.pub-again { padding: 20px 0 40px; }
.pub-card .btn.soft { background: var(--bg); }
