/* Nanny, nannyapp.io. Layout: a light page, a deep forest band for the app story, phones as the main imagery. */
:root {
  --paper: #f3f6f4; --surface: #ffffff; --tile: #e9efec; --ink: #0f1513; --muted: #55625d; --line: #dbe3df;
  --forest: #10322b; --forest-ink: #eef6f2; --forest-muted: #a9c8bc; --mint: #72f2b4; --lime: #c9f45e; --ok: #1a8f58;
  --grad: linear-gradient(100deg, var(--mint), var(--lime));
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 18px; --wrap: 1120px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0b1210; --surface: #111a17; --tile: #17221f; --ink: #e7efec; --muted: #9aaaa4; --line: #24332e;
  --forest: #0d2620; --forest-ink: #eef6f2; --forest-muted: #9fc1b4; --ok: #5fe3a2; color-scheme: dark } }
:root[data-theme="dark"] {
  --paper: #0b1210; --surface: #111a17; --tile: #17221f; --ink: #e7efec; --muted: #9aaaa4; --line: #24332e;
  --forest: #0d2620; --forest-ink: #eef6f2; --forest-muted: #9fc1b4; --ok: #5fe3a2; color-scheme: dark }

* { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } * { animation: none !important; transition: none !important } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased }
img { max-width: 100%; display: block }
a { color: inherit; text-underline-offset: 3px }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ok); outline-offset: 3px; border-radius: 8px }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; margin: 0 }
h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 700 }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700 }
h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2 }
p { margin: 0 }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 36em }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ok) }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper) }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.02em }
.brand svg { width: 34px; height: 34px }
.mark-ink { stroke: var(--ink) } .mark-star { fill: var(--ink) }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-weight: 550; font-size: 15px }
.nav a { text-decoration: none; color: var(--muted) } .nav a:hover { color: var(--ink) }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font: 650 16px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; background: var(--grad); color: #0b2620 }
.btn.dark { background: var(--ink); color: var(--paper) }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line) }
.btn.sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px }
@media (max-width: 760px) { .nav { display: none } .langsw { margin-inline-start: auto } }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 96px) 0; overflow: hidden }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end }
.hero-copy { display: grid; gap: 26px; padding-bottom: clamp(32px, 6vw, 90px); min-width: 0 }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .04em }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none; line-height: 1.1 }
.store small { display: block; font-size: 11px; opacity: .75 } .store b { font-size: 17px; font-weight: 650 }
.store svg { width: 24px; height: 24px; fill: currentColor }
.soon { font-size: 14px; color: var(--muted) }
.hero-art { position: relative; justify-self: center; width: min(360px, 100%) }
.day { position: absolute; inset-inline-start: -64px; top: 22%; width: 236px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; box-shadow: 0 18px 40px -18px rgba(8, 30, 24, .35); z-index: 2 }
.day-row { display: grid; grid-template-columns: 46px 18px 1fr; align-items: center; gap: 8px; font-size: 14px }
.day-row time { font: 500 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center }
.tick.done { background: var(--ok); border-color: var(--ok) } .tick.done::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) }
.day-row.next b { color: var(--ok) }
.next-tag { white-space: nowrap; font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); padding: 4px 6px; border-radius: 5px; margin-inline-start: 6px }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr } .hero-art { width: min(320px, 82%) } .day { inset-inline-start: -40px } }
@media (max-width: 460px) { .day { inset-inline-start: -14px; width: 200px; top: 16% } }

/* phone */
.phone { position: relative; border-radius: 44px; padding: 10px; background: #050b09; box-shadow: 0 40px 80px -30px rgba(5, 25, 20, .55), inset 0 0 0 2px #26352f }
.phone img { border-radius: 35px; width: 100%; height: auto; aspect-ratio: 600 / 1304; object-fit: cover; object-position: top; background: #f6f8f7 }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 12px; background: #000; z-index: 1 }
.hero .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; max-height: 620px; overflow: hidden }
.hero .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0 }

/* steps */
section { padding-block: clamp(64px, 9vw, 120px) }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: s }
.step { padding: 26px; border-top: 2px solid var(--ink); display: grid; gap: 10px; align-content: start }
.step::before { counter-increment: s; content: "0" counter(s); font: 500 14px/1 var(--mono); color: var(--muted) }
.step p { color: var(--muted) }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr } }

/* forest band */
.band { background: var(--forest); color: var(--forest-ink) }
.band .lead, .band .feat p { color: var(--forest-muted) }
.band .eyebrow { color: var(--mint) }
.feat { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 6vw, 90px); align-items: center; padding-block: 56px; border-top: 1px solid color-mix(in srgb, var(--forest-ink) 14%, transparent) }
.feat:first-of-type { border-top: 0 }
.feat.flip { grid-template-columns: 300px 1fr } .feat.flip .feat-copy { order: 2 }
.feat-copy { display: grid; gap: 16px; min-width: 0; max-width: 34em }
.feat ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px }
.feat li { padding-inline-start: 26px; position: relative; color: var(--forest-ink) }
.feat li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--grad) }
.feat .phone { width: 100%; max-width: 300px; justify-self: center }
@media (max-width: 820px) { .feat, .feat.flip { grid-template-columns: 1fr } .feat.flip .feat-copy { order: 0 } .feat .phone { max-width: 260px } }

/* trust */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 44px }
.trust div { background: var(--surface); padding: 28px; display: grid; gap: 8px; align-content: start }
.trust p { color: var(--muted) }
@media (max-width: 720px) { .trust { grid-template-columns: 1fr } }

/* pricing */
.price-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; justify-content: space-between }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--tile); gap: 4px }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 15px/1 var(--body); padding: 11px 16px; border-radius: 9px; cursor: pointer }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12) }
.seg .save { font: 600 11px/1 var(--mono); color: var(--ok); margin-inline-start: 6px }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 18px; align-content: start }
.plan.pop { border: 2px solid var(--ok) }
.plan .tag { justify-self: start; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--grad); color: #0b2620; padding: 6px 8px; border-radius: 6px }
.amount { font: 700 44px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums }
.amount span { font: 500 15px/1 var(--body); color: var(--muted); letter-spacing: 0; margin-left: 4px }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px }
.plan li { padding-inline-start: 24px; position: relative } .plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 700 }
.fine { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 60em }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr } }

/* languages */
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px }
.langs span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 550 }

/* faq */
.faq { margin-top: 36px; border-top: 1px solid var(--line) }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0 }
.faq summary { cursor: pointer; font: 650 19px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; font: 400 26px/1 var(--body); color: var(--muted) }
.faq details[open] summary::after { content: "–" }
.faq p { margin-top: 12px; color: var(--muted); max-width: 44em }

/* cta + footer */
.cta { text-align: left; display: grid; gap: 22px; justify-items: start }
footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 15px; color: var(--muted) }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between }
footer nav { display: flex; flex-wrap: wrap; gap: 20px }
footer a { text-decoration: none } footer a:hover { color: var(--ink) }

/* legal pages */
.legal { padding-block: 56px 96px }
.legal .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); align-self: start; display: grid; gap: 8px; font-size: 14px }
.toc a { color: var(--muted); text-decoration: none } .toc a:hover { color: var(--ink) }
.doc { max-width: 720px; min-width: 0 }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 14px }
.doc .meta { font: 500 14px/1.5 var(--mono); color: var(--muted); margin-bottom: 36px }
.doc h2 { font-size: 26px; margin: 44px 0 14px; scroll-margin-top: 96px }
.doc h3 { font-size: 18px; margin: 26px 0 8px }
.doc p, .doc li { color: var(--ink) } .doc p + p { margin-top: 12px }
.doc ul { padding-left: 22px; display: grid; gap: 6px; margin: 12px 0 }
.doc .note { background: var(--tile); border-radius: 14px; padding: 18px 20px; margin: 18px 0 }
.tbl { overflow-x: auto; margin: 16px 0 } .tbl table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top }
.tbl th { font-weight: 650; background: var(--tile) }
@media (max-width: 860px) { .legal .wrap { grid-template-columns: 1fr } .toc { position: static } }

/* invite page */
.invite { min-height: 70vh; display: grid; place-items: center; padding-block: 56px }
.invite .card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px; max-width: 520px; width: 100%; display: grid; gap: 18px }
.code { font: 600 40px/1 var(--mono); letter-spacing: .12em; font-variant-numeric: tabular-nums }
.invite ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--muted) }

/* language switcher */
.langsw { position: relative }
.langsw summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); font: 600 14px/1 var(--body); color: var(--ink) }
.langsw summary::-webkit-details-marker { display: none }
.langsw summary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6 }
.langsw ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 36px -16px rgba(8, 30, 24, .35); min-width: 160px; display: grid; gap: 2px; z-index: 20 }
.langsw a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; font-weight: 550 }
.langsw a:hover { background: var(--tile) }
.langsw a[aria-current="true"] { color: var(--ok) }
@media (max-width: 460px) { .top .btn.sm { display: none } }

/* Arabic */
:root[lang="ar"] { --display: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif; --body: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.25 }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-family: var(--body) }

/* sadržaj pravne strane: padajući meni na telefonu, bočna lista na računaru */
details.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); align-self: start }
details.toc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 650 15px/1 var(--body); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface) }
details.toc summary::-webkit-details-marker { display: none }
details.toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s }
details.toc[open] summary::after { transform: rotate(-135deg) translateY(-2px) }
details.toc nav { display: grid; gap: 8px; font-size: 14px; padding: 14px 4px 4px }
details.toc nav a { color: var(--muted); text-decoration: none } details.toc nav a:hover { color: var(--ink) }
@media (min-width: 861px) { details.toc summary { display: none } details.toc nav { padding: 0 } }
@media (max-width: 860px) { details.toc { position: static } details.toc nav { padding: 12px 16px; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface) } }
.doc .note a { color: inherit }
.doc h1 { overflow-wrap: anywhere; hyphens: auto }
