/* Home page (badava.app). Design: the „βadava web — početna" canvas. Colours mirror
   design/design-system/tokens.json (Dan); the home page is light only, like the canvas. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8f5f0;
  --surface: #ffffff;
  --sunk: #eee9e1;
  --line: #e5ded3;
  --ink: #16181b;
  --ink-2: #3a3d42;
  --ink-muted: #686c73;
  --accent: #0f766e;
  --accent-deep: #0a4f4a;
  --accent-bright: #13897f;
  --accent-tint: rgba(15, 118, 110, 0.1);
  --mint: #9fe3d6;
  --apricot: #ffb27a;
  --apricot-ink: #1a0f06;
  --apricot-tint: #f9ede2;
  --rust: #b4530e;
  --phone: #16181b;
  --shadow: rgba(90, 58, 30, 0.08);
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

/* Wordmark: β drawn as one stroke, then „adava". */
.wordmark { display: inline-flex; align-items: center; gap: 1px; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.wordmark svg { margin-bottom: -0.3em; }

/* ---------- Hero ---------- */
.hero {
  margin: 12px;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, var(--accent-bright) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  color: #fff;
}
.hero .pattern { position: absolute; inset: 0; color: rgba(255, 255, 255, 0.1); pointer-events: none; }
.hero .pattern svg { position: absolute; }
.nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.nav .wordmark { color: #fff; font-size: 28px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 16px; font-weight: 500; }
.nav-links a { color: rgba(255, 255, 255, 0.88); text-decoration: none; padding: 10px 0; }
.nav-links a:hover { color: #fff; }
.nav-links .pill { color: var(--accent-deep); background: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; }
.nav-links .pill:hover { color: var(--accent-deep); background: var(--mint); }
@media (max-width: 720px) { .nav-links a:not(.pill) { display: none; } }

.hero-body { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: clamp(16px, 4vw, 56px); }
.hero-copy { flex: 1 1 440px; min-width: 0; padding-bottom: clamp(8px, 4vw, 72px); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: var(--mint); font-size: 15px; font-weight: 500; }
.badge .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--apricot); box-shadow: 0 0 0 4px rgba(255, 178, 122, 0.25); margin: 0 4px; }
.hero h1 { margin-top: 24px; font-size: clamp(48px, 7.4vw, 104px); line-height: 0.96; font-weight: 600; letter-spacing: -0.045em; }
.hero h1 span, .final h2 span { color: var(--apricot); }
.lead { margin-top: 28px; max-width: 520px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.stores { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 22px 10px 18px;
  border: 0; border-radius: 18px; background: var(--ink); color: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store:hover { transform: translateY(-2px); background: #000; color: #fff; }
.store > span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.store b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.store.soon { background: rgba(0, 0, 0, 0.22); }
.store.soon:hover { background: rgba(0, 0, 0, 0.32); }
.light .store { background: #fff; color: var(--ink); }
.light .store:hover { background: var(--bg); color: var(--ink); }
.light .store small { color: var(--ink-muted); }
.light .store.soon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.light .store.soon small { color: rgba(255, 255, 255, 0.75); }
.fineprint { margin-top: 18px; font-size: 15px; color: var(--mint); }

/* Phones: real screenshots (1080×2400) in a frame. */
.phone { width: 300px; padding: 8px; border-radius: 50px; background: var(--phone); box-shadow: 0 30px 60px var(--shadow); flex: none; }
.phone img { width: 100%; height: auto; aspect-ratio: 1080 / 2400; object-fit: cover; border-radius: 42px; background: var(--bg); }
.hero-phones { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; align-self: flex-end; }
.hero-phones .stage { position: relative; width: 300px; height: 600px; }
.hero-phones .phone { position: absolute; top: 0; left: 0; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3); }
.hero-phones .phone.back { top: 70px; left: -170px; transform: rotate(-8deg); background: #0b2e2b; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25); }
.sticker { position: absolute; top: -18px; right: -34px; width: 104px; height: 104px; border-radius: 999px; background: var(--apricot); color: var(--apricot-ink); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 16px; font-weight: 700; line-height: 1.05; transform: rotate(12deg); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.chip-float { position: absolute; top: 300px; right: -26px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; transform: rotate(-4deg); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2); white-space: nowrap; }
.chip-float i { width: 32px; height: 32px; border-radius: 999px; background: #fce7f0; color: #9d174d; display: flex; align-items: center; justify-content: center; }
.chip-float em { font-style: normal; color: var(--ink-muted); font-weight: 500; }
@media (max-width: 760px) {
  .hero-phones .phone.back { display: none; }
  .hero-phones .stage { width: 260px; height: 470px; }
  .hero-phones .phone { width: 260px; }
  .sticker { right: -12px; width: 88px; height: 88px; font-size: 14px; }
  .chip-float { right: -8px; top: 250px; }
}

/* ---------- Sections ---------- */
.section { padding-top: var(--section); }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.section h2 { margin-top: 12px; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; }
.section .intro { margin-top: 20px; font-size: 19px; line-height: 1.6; color: var(--ink-muted); }
.narrow { max-width: 760px; }
.grid3 { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 26px; padding: 32px 28px; box-shadow: 0 4px 14px var(--shadow); }
.card h3 { margin-top: 28px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin-top: 10px; color: var(--ink-muted); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.icon { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.num { font-size: 44px; font-weight: 600; color: var(--line); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.split.rev { flex-wrap: wrap-reverse; }
.split > * { flex: 1 1 420px; min-width: 0; }
.stage-box { display: flex; justify-content: center; padding: 48px 0; border-radius: 36px; background: var(--sunk); }
.stage-box.teal { background: var(--accent-tint); }
.ticks { margin-top: 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.ticks svg { flex: none; margin-top: 2px; color: var(--accent); }
.chips { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 500; }
.chips span { padding: 9px 16px; border-radius: 999px; }

/* Javi mi: two notifications instead of a phone. */
.notes { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 5vw, 56px); border-radius: 36px; background: var(--accent-tint); }
.notif { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 22px; background: var(--surface); box-shadow: 0 10px 30px rgba(90, 58, 30, 0.1); }
.notif:nth-child(2) { margin-left: clamp(0px, 4vw, 48px); opacity: 0.92; }
.notif:nth-child(3) { margin-left: clamp(0px, 8vw, 96px); opacity: 0.8; }
.notif .app { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.notif .body { min-width: 0; flex: 1; }
.notif .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.notif .meta b { color: var(--ink); font-weight: 600; }
.notif .text { margin-top: 4px; font-size: 16px; line-height: 1.45; }

.rescue { border-radius: 36px; background: var(--apricot-tint); padding: clamp(28px, 5vw, 72px); }
.rescue .tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--apricot); color: var(--apricot-ink); font-size: 14px; font-weight: 600; }
.rescue h2 { margin-top: 18px; }
.rescue .intro { color: var(--ink-2); max-width: 640px; }
.rescue .grid3 { margin-top: 32px; }
.rescue .mini { background: var(--surface); border-radius: 22px; padding: 20px; }
.rescue .mini b { display: block; font-size: 15px; font-weight: 600; color: var(--rust); }
.rescue .mini span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

.privacy .shot { height: 190px; overflow: hidden; background: var(--sunk); }
/* The listing screen's map strip: the item's approximate area, not the address. */
.privacy .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.privacy .card.media { padding: 0; overflow: hidden; }
.privacy .card.media .pad { padding: 24px 28px 30px; }
.privacy .card.media h3 { margin-top: 0; }

/* ---------- Final call ---------- */
.final { position: relative; overflow: hidden; border-radius: 36px; background: linear-gradient(160deg, var(--accent-bright) 0%, var(--accent) 50%, var(--accent-deep) 100%); color: #fff; padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 88px); text-align: center; }
.final .bg-beta { position: absolute; right: -40px; bottom: -70px; opacity: 0.1; }
.final h2 { position: relative; margin: 0 auto; max-width: 820px; font-size: clamp(38px, 5.6vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.final p { position: relative; margin: 24px auto 0; max-width: 580px; font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.final .stores { position: relative; justify-content: center; }
.final .fineprint { position: relative; }

.footer { margin-top: clamp(56px, 6vw, 96px); border-top: 1px solid var(--line); }
.footer .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 15px; color: var(--ink-muted); }
.footer .wordmark { color: var(--ink); font-size: 22px; }
.footer .left, .footer .links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.footer .left { gap: 12px 20px; }
.footer .links a { color: var(--ink-muted); padding: 10px 0; }
.footer .links a:hover { color: var(--ink); }

/* ---------- iPhone dialog ---------- */
dialog.install {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog.install:focus-visible { outline: none; }
dialog.install::backdrop { background: rgba(10, 30, 28, 0.55); backdrop-filter: blur(4px); }
dialog.install[open] { animation: rise 0.22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { dialog.install[open] { animation: none; } }
.dlg-head { position: relative; padding: 28px 28px 24px; background: linear-gradient(160deg, var(--accent-bright), var(--accent-deep)); color: #fff; }
.dlg-head .badge { font-size: 14px; }
.dlg-head h2 { margin-top: 14px; font-size: 28px; line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; padding-right: 40px; }
.dlg-head p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.dlg-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dlg-close:hover { background: rgba(255, 255, 255, 0.24); }
.dlg-body { padding: 20px 20px 24px; }
.dlg-foot { margin-top: 16px; padding: 0 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-muted); text-align: center; }
.dlg-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 14px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); color: #fff; }
.btn.quiet { background: var(--sunk); color: var(--ink); }
.btn.quiet:hover { background: var(--line); color: var(--ink); }
.ios-art { display: flex; justify-content: center; padding: 8px 0 4px; }
body.locked { overflow: hidden; }
@media (max-width: 520px) {
  .dlg-head { padding: 24px 20px 20px; }
  .dlg-head h2 { font-size: 25px; }
  .dlg-body { padding: 14px 12px 20px; }
}
