/*
 * Insurance HUB — motyw AGMER TAXI (v2).
 *
 * Redesign spójny z agmertaxi.pl:
 *   • paleta: biel #ffffff / szarość #f6f6f6 / grafit #2e2f2e–#383938 / pomarańcz #FF5E1E
 *   • typografia: nagłówki Space Grotesk 700 (jak agmertaxi.pl), body Inter
 *   • przyciski: radius 8px, weight 700, BEZ cieni — jedyny efekt to hover
 *     (przyciemnienie tła), jak na agmertaxi.pl
 *   • inputy: szare tło #f6f6f6, obwódka #e7e7e7 (jak formularz hero na agmertaxi.pl)
 *   • motyw graficzny: pomarańczowe zygzaki/szewrony na grafitowym tle (klasa .agm-zz)
 *
 * Wszystkie reguły używają selektora `.ds` jako root design-system-u.
 * Kolory partnera (--ds-accent, --ds-font-head itd.) ustawia inline `<style>`
 * generowany przez PHP per-partner — selektor `.ihp-{slug}-root`.
 */

.ds {
  --bg: #ffffff;
  --bg-2: #f6f6f6;
  --ink: #232423;
  --ink-2: #565755;
  --ink-3: #8f908f;
  --line: #e7e7e7;
  --accent: var(--ds-accent, #ff5e1e);
  --accent-soft: color-mix(in oklab, var(--accent) 11%, white);
  --accent-deep: color-mix(in oklab, var(--accent) 82%, black);
  --accent-hover: color-mix(in oklab, var(--accent) 88%, black);
  /* Grafit AGMER — stałe brandu (top bar / hero agmertaxi.pl) */
  --dark: #2e2f2e;
  --dark-2: #383938;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --on-dark-3: rgba(255, 255, 255, 0.5);
  --font-head: var(--ds-font-head, 'Space Grotesk'), system-ui, sans-serif;
  --font-body: var(--ds-font-body, 'Inter'), system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}
.ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds h1, .ds h2, .ds h3, .ds h4 { font-family: var(--font-head); margin: 0; line-height: 1.12; }
.ds a { color: inherit; text-decoration: none; }

.ds .container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.ds section { padding: 80px 0; }

/* Buttons — jak agmertaxi.pl: pełny pomarańcz, radius 8px, weight 700,
   bez cieni i transformów — jedyny efekt to przyciemnienie na hover */
.ds .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; background: var(--accent); color: white; border-radius: 8px; font-weight: 700; font-size: 16px; border: none; cursor: pointer; font-family: var(--font-body); transition: background .15s; text-decoration: none; line-height: 1; }
.ds .btn:hover { background: var(--accent-hover); }
.ds .btn:disabled { opacity: 0.6; cursor: wait; }
.ds .btn-ghost { background: white; color: var(--accent); border: 2px solid var(--accent); }
.ds .btn-ghost:hover { background: var(--accent-soft); }
.ds .btn-dark { background: var(--dark); color: white; }
.ds .btn-dark:hover { background: #1f201f; }
.ds .btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 8px; }

/* Pills */
.ds .pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--ink-2); }
.ds .pill-accent { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 35%, white); color: var(--accent); }
.ds .pill-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* Image placeholder */
.ds .img-ph { background: var(--bg-2); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-family: ui-monospace, monospace; font-size: 11px; text-align: center; padding: 12px; position: relative; overflow: hidden; }
.ds .img-ph::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.03) 14px 15px); pointer-events: none; }
.ds .img-ph img { position: relative; z-index: 1; }

/* Card — biała, miękki cień jak karta formularza na agmertaxi.pl */
.ds .card { background: white; border: 1px solid #ececec; border-radius: 14px; padding: 24px; box-shadow: 0 10px 30px -18px rgba(35, 36, 35, 0.18); }

/* Form — pola jak na agmertaxi.pl: szare tło, delikatna obwódka */
.ds .field { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.ds .field::placeholder { color: var(--ink-3); }
.ds .field:focus { border-color: var(--accent); background: white; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.ds .field[aria-invalid="true"] { border-color: #d33; }
.ds .label { font-size: 14px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 7px; }
.ds .label .req { color: var(--accent); }

/* Eyebrow — pomarańczowy uppercase jak „PARTNER FLOTOWY AGMER TAXI" */
.ds .eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.09em; text-transform: uppercase; }

/* Headlines — Space Grotesk 700, naturalny letter-spacing jak na agmertaxi.pl.
   font-family także tu, bo klasy bywają na <div>-ach (tytuły kart). */
.ds .h-display { font-size: 56px; font-weight: 700; line-height: 1.06; font-family: var(--font-head); }
.ds .h-1 { font-size: 40px; font-weight: 700; font-family: var(--font-head); }
.ds .h-2 { font-size: 30px; font-weight: 700; font-family: var(--font-head); }
.ds .h-3 { font-size: 21px; font-weight: 700; font-family: var(--font-head); }
.ds .lead { font-size: 18px; color: var(--ink-2); line-height: 1.55; }

/* Grids */
.ds .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ds .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ds .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Marquee logos */
.ds .marquee { padding: 20px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ds .marquee-row { display: flex; align-items: center; gap: 48px; opacity: 0.75; }
.ds .marquee-logo { font-weight: 700; font-size: 18px; letter-spacing: 1px; color: var(--ink-3); white-space: nowrap; font-family: var(--font-head); }

/* Icons */
.ds .ico-circle { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }

/* ── Sekcje grafitowe + zygzak AGMER ─────────────────────────────── */
.ds .agm-dark { background: linear-gradient(155deg, var(--dark-2) 0%, var(--dark) 55%, #262726 100%); color: var(--on-dark); position: relative; overflow: hidden; }
.ds .agm-dark .lead { color: var(--on-dark-2); }
/* Szewrony w prawym dolnym rogu — motyw „V" z agmertaxi.pl */
.ds .agm-zz { position: absolute; right: -40px; bottom: -60px; width: 420px; height: 320px; pointer-events: none; z-index: 0; }
.ds .agm-zz::before, .ds .agm-zz::after { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, 50% 62%, 100% 0, 100% 34%, 50% 100%, 0 34%); }
.ds .agm-zz::before { background: var(--accent); }
.ds .agm-zz::after { background: color-mix(in oklab, var(--accent) 72%, black); transform: translate(60px, -84px) scale(0.62); }
.ds .agm-dark > .container { position: relative; z-index: 1; }
/* Ciemna szklana karta (mini-pakiet w hero) */
.ds .agm-glass { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; backdrop-filter: blur(4px); }
/* Lista z pomarańczowymi checkami (jak „Elastyczny grafik / Zero kosztów na start") */
.ds .agm-check { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 16px; }
.ds .agm-check .agm-check-ico { color: var(--accent); flex-shrink: 0; display: inline-flex; }

/* Siatka hero — proporcje jak hero agmertaxi.pl (treść | karta formularza) */
.ds .agm-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.ds .agm-hero-title { font-size: 42px; }

/* ── Karta formularza w stylu agmertaxi.pl („Zacznij zarabiać już dziś!") ── */
.ds .agm-form-card { background: white; border-radius: 16px; padding: 26px 24px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.35); color: var(--ink); }
.ds .agm-form-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.ds .agm-form-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--bg-2); }
.ds .agm-form-title { font-size: 20px; font-weight: 700; font-family: var(--font-head); line-height: 1.2; margin-bottom: 5px; }
.ds .agm-form-sub { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* Grafitowa karta sekcji kontaktu (FinalCta) */
.ds .agm-cta-box { border-radius: 24px; padding: 44px 40px; }

/* Lewa kolumna FAQ — sticky tylko na desktopie */
.ds .faq-side { position: sticky; top: 100px; }

/* FAQ accordion (uses native <details>/<summary>) */
.ds .faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.ds .faq-item > .faq-q { list-style: none; cursor: pointer; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.ds .faq-item > .faq-q::-webkit-details-marker { display: none; }
.ds .faq-item .faq-toggle { font-size: 22px; color: var(--accent); font-weight: 300; transition: transform .2s; }
.ds .faq-item[open] .faq-toggle { transform: rotate(45deg); }
.ds .faq-a { font-size: 15px; color: var(--ink-2); padding-top: 12px; max-width: 720px; line-height: 1.65; }

/* Star row */
.ds .stars { color: var(--accent); letter-spacing: 3px; font-size: 16px; }

/* Form messages */
.ds .ihp-form-msg.is-success { color: #166534; padding: 10px 12px; background: #dcfce7; border-radius: 8px; }
.ds .ihp-form-msg.is-error   { color: #991b1b; padding: 10px 12px; background: #fee2e2; border-radius: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .ds .container { padding: 0 20px; }
  .ds section { padding: 56px 0; }
  .ds .grid-2, .ds .grid-3, .ds .grid-4, .ds .agm-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ds .h-display { font-size: 38px; }
  .ds .agm-hero-title { font-size: 32px; }
  .ds .h-1 { font-size: 30px; }
  .ds .h-2 { font-size: 24px; }
  .ds .marquee-row { gap: 28px; }
  .ds .marquee-logo { font-size: 14px; }
  .ds .agm-zz { width: 260px; height: 200px; right: -60px; bottom: -50px; opacity: 0.5; }
  /* Karta formularza szersza niż padding sekcji — wychodzi na marginesy */
  .ds .agm-form-card { padding: 24px 16px; margin-left: -8px; margin-right: -8px; }
  .ds .agm-cta-box { padding: 28px 16px; }
  .ds .faq-side { position: static; }
}
