/* JustAgent, landing. Czcionki systemowe, zero zasobów z zewnątrz. */
:root {
  --bg: #FBF8F2;
  --bg-2: #F3EDE2;
  --surface: #FFFFFF;
  --line: #E4DCCD;
  --ink: #1A1814;
  --muted: #5E584D;
  --accent: #A8461F;       /* tekst i przyciski na jasnym: kontrast z białym > 5:1 */
  --accent-ink: #FFFFFF;
  --accent-soft: #F8E3D6;
  --ok: #2B7A51;
  --warn: #9A5B00;
  --mock-bg: #F6F1E7;
  --mock-dark: #131313;
  --shadow: 0 18px 50px rgba(60, 40, 10, .14);
  --f: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --bg-2: #17191C;
    --surface: #1D2024;
    --line: #2E3238;
    --ink: #EEECE8;
    --muted: #A7A29A;
    --accent: #F08A5D;     /* na ciemnym tle: kontrast > 6:1 */
    --accent-ink: #1A1008;
    --accent-soft: #3A2217;
    --ok: #6BBE8C;
    --warn: #E8B45A;
    --mock-bg: #1A1C20;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f); font-size: 17px; line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 750; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; margin-bottom: 28px; }
h3 { font-size: 19px; font-weight: 650; margin-bottom: 8px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
section { padding-block: 72px; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 600;
}
.note { font-size: 14px; color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none;
  border: 2px solid var(--accent); transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 18px; margin-block: 8px 14px; }

/* Nagłówek */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand.small { font-size: 15px; gap: 8px; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .top nav { display: none; }
  .top .btn-sm { margin-left: auto; }
}

/* Hero */
.hero { padding-block: 64px 80px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 14px; }

/* Makieta okna (HTML/CSS, dane przykładowe) */
.mock { margin: 0; min-width: 0; }
.mock figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.win { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-size: 12px; line-height: 1.35; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win-bar i:first-child { background: #EC6A5E; } .win-bar i:nth-child(2) { background: #F4BF4F; } .win-bar i:nth-child(3) { background: #61C554; }
.win-bar span { margin-left: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { display: grid; grid-template-columns: 110px minmax(0, 1fr) 170px; min-height: 300px; }
.m-side { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-right: 1px solid var(--line); background: var(--bg-2); }
.m-side span { padding: 5px 8px; border-radius: 6px; color: var(--muted); display: flex; justify-content: space-between; }
.m-side span.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.m-side em { font-style: normal; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 6px; font-size: 10px; }
.m-ws { font-size: 12px; padding: 4px 8px 8px; overflow-wrap: normal; }
.m-canvas { padding: 12px; background: var(--mock-bg); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.m-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.m-head b { font-size: 14px; }
.m-head small, .m-tiles small, .m-rows small, .m-card small { color: var(--muted); font-size: 10px; }
.m-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.m-tiles div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; min-width: 0; }
.m-tiles b { font-size: 20px; }
.m-tiles em { font-style: normal; font-size: 10px; color: var(--muted); }
.m-tiles em.up { color: var(--ok); } .m-tiles em.warn { color: var(--warn); }
.m-bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.m-bars i { flex: 1; background: var(--accent); opacity: .75; border-radius: 3px 3px 0 0; }
.m-bars i:nth-child(1) { height: 40%; } .m-bars i:nth-child(2) { height: 55%; } .m-bars i:nth-child(3) { height: 35%; }
.m-bars i:nth-child(4) { height: 62%; } .m-bars i:nth-child(5) { height: 70%; } .m-bars i:nth-child(6) { height: 48%; }
.m-bars i:nth-child(7) { height: 58%; } .m-bars i:nth-child(8) { height: 75%; } .m-bars i:nth-child(9) { height: 66%; }
.m-bars i:nth-child(10) { height: 82%; } .m-bars i:nth-child(11) { height: 72%; } .m-bars i:nth-child(12) { height: 90%; opacity: 1; }
.m-rows { display: flex; flex-direction: column; gap: 6px; }
.m-rows span { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; display: flex; flex-direction: column; }
.m-chat { border-left: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; min-width: 0; }
.m-me { background: var(--bg-2); border-radius: 10px 10px 2px 10px; padding: 8px; margin: 0; align-self: flex-end; }
.m-card { border: 1.5px solid var(--accent); border-radius: 10px; padding: 9px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); }
.m-card b { font-size: 11px; overflow-wrap: anywhere; }
.m-card p { margin: 0; color: var(--muted); font-size: 11px; }
.m-btns { display: flex; gap: 6px; margin-top: 4px; }
.m-btns span { flex: 1; text-align: center; padding: 5px 4px; border-radius: 6px; border: 1px solid var(--line); font-weight: 600; font-size: 11px; }
.m-btns span.ok { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 620px) {
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .m-side { flex-direction: row; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .m-ws { width: 100%; padding-bottom: 4px; }
  .m-side span:nth-child(n+6) { display: none; }
  .m-chat { border-left: 0; border-top: 1px solid var(--line); }
  .m-me { max-width: 85%; }
}

/* Karty */
.grid3, .grid2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card p { color: var(--muted); }

/* Kroki */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.steps .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 750; font-size: 20px; background: var(--accent-soft); color: var(--accent); }
.steps p { color: var(--muted); max-width: 75ch; }
@media (max-width: 480px) {
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
  .card { padding: 20px; }
}

/* Dla kogo */
.who { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .who { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.who li { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); }
.who b { color: var(--ink); }
.soon { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; display: inline-block; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding-block: 16px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin-top: 10px; }

/* Finał */
.final img { margin: 0 auto 20px; }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding-block: 24px; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
