/* naszAsystent - wspólny system wyglądu: ciepłe kolory domu, miękkie zaokrąglenia, tryb ciemny. */
:root {
  --bg: #FBF6EE;
  --bg-2: #F6EEE3;
  --surface: #FFFFFF;
  --surface-2: #FBF7F1;
  --ink: #2B2622;
  --ink-2: #4A413A;
  --muted: #7A6E64;
  --line: #ECE1D4;
  --line-2: #E2D5C5;
  --primary: #C8553D;
  --primary-2: #B2462F;
  --primary-ink: #FFFFFF;
  --primary-soft: #F8E2D9;
  --sage: #5E8F69;
  --sage-soft: #E1EEE2;
  --honey: #D9962A;
  --honey-soft: #FBEBCB;
  --plum: #7C6FB0;
  --plum-soft: #E9E5F5;
  --sky: #4F8FB3;
  --sky-soft: #E0EEF6;
  --danger: #C0392B;
  --danger-soft: #F8DEDA;
  --shadow-sm: 0 1px 2px rgba(80, 50, 20, .06), 0 2px 8px rgba(80, 50, 20, .05);
  --shadow: 0 2px 6px rgba(80, 50, 20, .06), 0 10px 30px rgba(80, 50, 20, .08);
  --shadow-lg: 0 20px 60px rgba(80, 50, 20, .16);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --wa: #25D366;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1714;
    --bg-2: #211C18;
    --surface: #27211D;
    --surface-2: #2E2722;
    --ink: #F4EDE5;
    --ink-2: #DCD1C6;
    --muted: #AFA295;
    --line: #3A322C;
    --line-2: #463C35;
    --primary: #E37A5E;
    --primary-2: #EE8C71;
    --primary-ink: #1B1714;
    --primary-soft: #44291F;
    --sage: #86B591;
    --sage-soft: #233328;
    --honey: #E8B04F;
    --honey-soft: #41331A;
    --plum: #A79BDB;
    --plum-soft: #2E2A40;
    --sky: #7DB4D6;
    --sky-soft: #1F3140;
    --danger: #EC7B6E;
    --danger-soft: #45231F;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .25);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1B1714;
  --bg-2: #211C18;
  --surface: #27211D;
  --surface-2: #2E2722;
  --ink: #F4EDE5;
  --ink-2: #DCD1C6;
  --muted: #AFA295;
  --line: #3A322C;
  --line-2: #463C35;
  --primary: #E37A5E;
  --primary-2: #EE8C71;
  --primary-ink: #1B1714;
  --primary-soft: #44291F;
  --sage: #86B591;
  --sage-soft: #233328;
  --honey: #E8B04F;
  --honey-soft: #41331A;
  --plum: #A79BDB;
  --plum-soft: #2E2A40;
  --sky: #7DB4D6;
  --sky-soft: #1F3140;
  --danger: #EC7B6E;
  --danger-soft: #45231F;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--primary-soft); }

/* ------------------------------------------------------------------ przyciski i pola */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--surface); color: var(--ink); font: 700 15px/1.2 var(--font); cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s;
  text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-sm); border-color: var(--line);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--line-2); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-primary:hover { background: var(--primary-2); border-color: transparent; }
.btn-sage { background: var(--sage); color: #fff; border-color: transparent; }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-danger { color: var(--danger); }
.btn-sm { min-height: 34px; padding: 6px 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
.btn-wa { background: var(--wa); color: #0B3B1E; border-color: transparent; }

label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.field small { display: block; margin-top: 5px; font-size: 13px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date],
input[type=time], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 500 16px/1.3 var(--font); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line-2); font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; color: var(--ink-2);
}
.chip.on, .chip[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-2); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--bg-2); color: var(--ink-2); }
.badge.ok { background: var(--sage-soft); color: var(--sage); }
.badge.warn { background: var(--honey-soft); color: var(--honey); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.wa { background: color-mix(in srgb, var(--wa) 18%, transparent); color: #128C4B; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 20px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--honey-soft); color: var(--ink); font-weight: 600; margin-bottom: 16px; }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.ok { background: var(--sage-soft); color: var(--sage); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--primary); font-weight: 700; }
.logo-mark { width: 38px; height: 38px; flex: none; }

/* ------------------------------------------------------------------ strona główna */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.nav { display: flex; align-items: center; gap: 22px; height: 70px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-weight: 700; }
.nav-burger { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 10px; }
  .nav-burger { display: inline-flex; }
}

.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-note { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-weight: 700; font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; }
.blob.a { width: 420px; height: 420px; background: var(--primary-soft); top: -120px; right: -80px; }
.blob.b { width: 360px; height: 360px; background: var(--sage-soft); bottom: -160px; left: -120px; }
.blob.c { width: 260px; height: 260px; background: var(--honey-soft); top: 40%; right: 30%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

.phone {
  width: min(360px, 100%); margin: 0 auto; border-radius: 42px; padding: 12px; background: #2B2622;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #4a403a; position: relative; transform: rotate(-2deg);
}
.phone-screen { border-radius: 32px; overflow: hidden; background: #ECE5DD; }
.wa-top { background: #075E54; color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.wa-top .av { width: 34px; height: 34px; border-radius: 50%; background: #FBF6EE; display: grid; place-items: center; }
.wa-top small { display: block; color: #cfe9e4; font-weight: 600; font-size: 12px; }
.wa-body { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 420px;
  background-color: #ECE5DD; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.bubble { max-width: 84%; padding: 8px 11px 6px; border-radius: 10px; font-size: 14px; line-height: 1.4; color: #1f1f1f; box-shadow: 0 1px 1px rgba(0,0,0,.08); position: relative; }
.bubble.me { align-self: flex-end; background: #DCF8C6; border-top-right-radius: 3px; }
.bubble.bot { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.bubble time { display: block; text-align: right; font-size: 10.5px; color: #8a8a8a; margin-top: 2px; }
.bubble .voice { display: flex; align-items: center; gap: 8px; }
.bubble .wave { flex: 1; height: 18px; background: repeating-linear-gradient(90deg, #6aa86b 0 3px, transparent 3px 6px); mask: linear-gradient(90deg, #000 60%, rgba(0,0,0,.35)); border-radius: 3px; min-width: 110px; }
.bubble .btns { display: flex; gap: 6px; margin-top: 6px; }
.bubble .btns span { flex: 1; text-align: center; color: #128C7E; font-weight: 700; font-size: 12.5px; padding: 6px 4px; border-top: 1px solid #eee; }
.reveal { opacity: 0; transform: translateY(8px); animation: reveal .5s ease forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin: 0 0 36px; }
.section-head.center { margin: 0 auto 40px; text-align: center; }
.eyebrow { display: inline-block; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; margin-bottom: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--surface); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 800; font-family: var(--font-head); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 12px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 15px; margin: 0; }
.say { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); font-style: italic; }

.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.voice-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color .15s, transform .15s; }
.voice-card:hover { transform: translateY(-2px); }
.voice-card.on { border-color: var(--primary); background: var(--primary-soft); }
.voice-card .play { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); border: 0; cursor: pointer; }
.voice-card .play.loading { opacity: .6; }
.voice-card b { display: block; font-size: 16px; }
.voice-card small { font-size: 13px; }

.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.person .face { font-size: 34px; }
.person h3 { margin: 6px 0; }
.person ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

.cta-band { background: linear-gradient(135deg, var(--primary), #D9773A); color: #fff; border-radius: 28px; padding: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band .btn { background: #fff; color: var(--primary-2); }

.site-footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--ink-2); font-weight: 700; margin-right: 16px; }

/* ------------------------------------------------------------------ strony logowania */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(160deg, var(--primary) 0%, #D9773A 55%, var(--honey) 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side .logo, .auth-side .logo b { color: #fff; }
.auth-side h2 { color: #fff; font-size: 2.2rem; max-width: 16ch; }
.auth-side p { opacity: .92; max-width: 40ch; }
.auth-side .house { position: absolute; right: -40px; bottom: -30px; width: 360px; opacity: .2; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-box { width: min(440px, 100%); }
.auth-box h1 { font-size: 2rem; }
.tabs { display: flex; gap: 6px; background: var(--bg-2); padding: 5px; border-radius: 999px; margin-bottom: 22px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 999px; font: 800 14px var(--font); color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.code-input { letter-spacing: .5em; font-size: 26px !important; text-align: center; font-weight: 800 !important; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

.legal { max-width: 760px; padding: 40px 0 80px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
