/* ===================================================
   TorT – apptort.pl
   Lightweight static landing page
   No external fonts / CDN / libraries
   =================================================== */

:root {
  /* Surfaces */
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --surface-alt: #F1EFE8;
  --surface-dark: #0E1F22;
  --border: #E2DED2;
  --border-strong: #D4D1CA;

  /* Text */
  --text: #14231F;
  --text-muted: #5C6A66;
  --text-faint: #8E9794;
  --text-on-dark: #EFEEE8;
  --text-on-dark-muted: #A9B2AE;

  /* Brand */
  --accent: #0E5C5F;        /* deep teal */
  --accent-hover: #0A4749;
  --accent-soft: #E3F0F0;
  --accent-2: #1E8A8E;       /* lighter teal */
  --accent-3: #6BB9BC;       /* light teal */
  --gold: #C28A1B;           /* premia / value */
  --warn: #964219;
  --error: #A12C7B;
  --success: #437A22;

  /* Layout */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 31, 0.04), 0 1px 3px rgba(20, 35, 31, 0.06);
  --shadow: 0 4px 14px rgba(14, 92, 95, 0.08), 0 1px 3px rgba(20, 35, 31, 0.05);
  --shadow-lg: 0 16px 40px rgba(14, 92, 95, 0.12), 0 4px 10px rgba(20, 35, 31, 0.06);

  /* Type scale */
  --fs-hero: clamp(2.25rem, 4.2vw + 1rem, 4.25rem);
  --fs-h2: clamp(1.6rem, 1.6vw + 1rem, 2.4rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.78rem;

  --container: 1180px;
  --container-narrow: 820px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  width: 100%;
  padding: 0 24px;
  margin: 0 auto;
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin-top: 12px; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--accent-3); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.btn-outline { background: var(--surface); color: var(--accent); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; padding: 16px 22px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(212, 209, 202, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); }
.brand-mark { width: 32px; height: 32px; flex: 0 0 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { color: var(--text); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-sub { color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 9px; right: 9px;
  height: 2px; background: var(--text);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(900px 500px at 88% 10%, rgba(14, 92, 95, 0.10), transparent 60%),
    radial-gradient(700px 480px at 10% 90%, rgba(194, 138, 27, 0.07), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero h1 { margin-bottom: 20px; }
.lead { font-size: 1.2rem; color: var(--text); margin-bottom: 16px; max-width: 56ch; }
.hero-desc { color: var(--text-muted); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; color: var(--text-muted); font-size: 0.92rem; }

.hero-visual {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-chart {
  width: min(100%, 460px);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(14, 92, 95, 0.18));
}
.hero-chart .lbl { font-family: var(--font-sans); font-size: 13px; font-weight: 600; fill: var(--text); }
.hero-chart .lbl-sm { font-family: var(--font-sans); font-size: 11px; fill: var(--text-muted); }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
  justify-content: center;
}
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}
.tag-gold {
  color: var(--gold);
  border-color: rgba(194, 138, 27, 0.3);
  background: rgba(194, 138, 27, 0.08);
}

/* ---------- Two columns ---------- */
.two-col, .two-col-flip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col-flip { grid-template-columns: 1fr 1.05fr; gap: 64px; }

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px;
  box-shadow: var(--shadow-sm);
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: linear-gradient(45deg, transparent 47%, var(--accent) 47%, var(--accent) 53%, transparent 53%),
                    linear-gradient(-45deg, transparent 47%, var(--accent) 47%, var(--accent) 53%, transparent 53%);
}
.check-list li::after {
  content: "✓";
  position: absolute;
  left: 4px; top: 1px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  background: var(--accent-soft);
  border-radius: 50%;
}

/* ---------- Cards grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-soft { background: var(--surface); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Features list ---------- */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0;
}
.features-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .2s, transform .2s;
}
.features-list li:hover { border-color: var(--accent); transform: translateY(-1px); }
.features-list li span {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.features-list li p { margin: 0; font-size: 0.97rem; color: var(--text); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
  counter-reset: step;
  position: relative;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1rem;
}
.steps h3 { margin-bottom: 8px; font-size: 1.08rem; }
.steps p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* ---------- Presentation video ---------- */
.video-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: stretch;
  background: linear-gradient(135deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}
.presentation-video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  border-radius: calc(var(--radius-lg) - 8px);
  background: #0f172a;
  object-fit: contain;
}
.video-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
.video-copy h3 { margin: 0; font-size: 1.4rem; }
.video-copy p { color: var(--text-muted); margin: 0; }
.video-copy .btn { align-self: flex-start; }

/* ---------- Icon list ---------- */
.icon-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.icon-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.icon-list svg { width: 24px; height: 24px; color: var(--accent); flex: 0 0 24px; }
.icon-list span { color: var(--text); font-weight: 500; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.plan header { margin-bottom: 22px; }
.plan h3 { margin-bottom: 4px; font-size: 1.35rem; }
.plan-desc { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.amount { font-size: 2.6rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1; }
.amount-text { font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.currency { font-weight: 600; color: var(--text-muted); }
.period { color: var(--text-muted); font-size: 0.95rem; margin-left: 4px; }
.price-year { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.plan-scope {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.plan-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 24px;
}
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.plan ul li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 0.96rem;
}
.plan ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 20px 50px -20px rgba(14, 92, 95, 0.35), 0 4px 14px rgba(14, 92, 95, 0.08);
  background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--accent-soft) 100%);
  transform: translateY(-4px);
}
.plan-featured:hover { transform: translateY(-6px); }
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan .plan-buy { width: 100%; text-align: center; }
.plan .plan-test {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}
.plan-actions { display: flex; flex-direction: column; gap: 10px; }
.plan-actions .plan-buy { margin: 0; }
.plan-actions .plan-test { margin: 0; }
.plan-trial-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.4;
}

/* ---------- Buy panel / cart (zakup.html) ---------- */
.buy-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: start;
}
.buy-cart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.buy-cart-head { margin-bottom: 16px; }
.buy-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.buy-table { width: 100%; border-collapse: collapse; }
.buy-table th, .buy-table td {
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.buy-table th { color: var(--text-muted); font-weight: 500; }
.buy-table td { text-align: right; color: var(--text); font-weight: 600; }
.buy-table .buy-total th, .buy-table .buy-total td {
  font-size: 1.12rem;
  color: var(--accent);
  font-weight: 800;
}
.buy-year-note {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.buy-alt {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.buy-alt a { color: var(--accent); font-weight: 600; }

.buy-picker {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.buy-plan-list { display: grid; gap: 10px; }
.buy-plan-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.buy-plan-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.buy-plan-item.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.buy-plan-name {
  display: block;
  font-weight: 700;
  color: var(--text);
  font-size: 1.02rem;
}
.buy-plan-tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.buy-plan-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 3px;
}
.buy-plan-price {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 6px;
}
.buy-plan-trial {
  display: block;
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-top: 2px;
}

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(14, 92, 95, 0.06), transparent 60%),
    var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy p { color: var(--text-muted); }
.contact-direct {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-direct p { margin: 0 0 6px; color: var(--text-muted); font-size: 0.92rem; }
.email-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.email-link:hover { border-bottom-color: var(--accent); }
.contact-bullets {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-bullets li { position: relative; padding-left: 22px; }
.contact-bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.97rem;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(14, 92, 95, 0.12);
}
.field-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text-muted);
  cursor: pointer;
}
.field-check input { margin-top: 4px; }
.form-note {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.field-opt { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.78rem; }
.field-hint { color: var(--text-muted); font-size: 0.78rem; line-height: 1.4; }
.form-status { font-size: 0.9rem; min-height: 1.2em; margin: 0; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }
.form-status.loading { color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; }
.form-status.loading::before {
  content: "";
  width: 14px; height: 14px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: tort-spin .7s linear infinite;
}
@keyframes tort-spin { to { transform: rotate(360deg); } }
.btn.is-loading, .btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-after { color: var(--text-muted); font-size: 0.9rem; margin: 0; text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 6px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 50px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: 64px 0 24px;
  margin-top: 0;
}
.site-footer .brand { color: var(--accent-3); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--text-on-dark-muted); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-note { color: var(--text-on-dark-muted); margin-top: 18px; font-size: 0.92rem; max-width: 36ch; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-nav h4 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
  font-weight: 600;
}
.footer-nav a {
  display: block;
  color: var(--text-on-dark);
  padding: 5px 0;
  font-size: 0.95rem;
  transition: color .15s ease;
}
.footer-nav a:hover { color: var(--accent-3); }
.footer-bottom {
  padding-top: 22px;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}
.footer-bottom p { margin: 0; }

/* ---------- Legal pages (regulamin / polityka) ---------- */
.legal-hero {
  padding: 64px 0 32px;
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(14, 92, 95, 0.08), transparent 60%),
    var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 {
  font-size: clamp(1.9rem, 2.4vw + 1rem, 2.8rem);
  margin-bottom: 14px;
}
.legal-hero .lead { max-width: 64ch; color: var(--text-muted); font-size: 1.08rem; }
.legal-meta {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-faint);
}
.legal-body { padding: 56px 0 88px; }
.legal-content { max-width: var(--container-narrow); }
.legal-note {
  background: var(--accent-soft);
  border: 1px solid rgba(14, 92, 95, 0.18);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 40px;
  color: var(--text);
  font-size: 0.95rem;
}
.legal-note strong { color: var(--accent); }
.legal-content h2 {
  font-size: 1.35rem;
  margin: 40px 0 14px;
  scroll-margin-top: 90px;
}
.legal-content h2:first-of-type { margin-top: 8px; }
.legal-content h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.legal-content p { color: var(--text); margin: 0 0 14px; }
.legal-content ul, .legal-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.legal-content li { color: var(--text); }
.legal-content a { color: var(--accent); border-bottom: 1px solid transparent; }
.legal-content a:hover { border-bottom-color: var(--accent); }
.legal-placeholder {
  background: rgba(194, 138, 27, 0.08);
  border-left: 3px solid var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-style: italic;
  color: var(--warn);
}
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 40px;
}
.legal-toc h2 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-toc a { color: var(--accent); font-size: 0.95rem; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}
.legal-back:hover { text-decoration: underline; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 0.93rem;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-table th { background: var(--surface-alt); font-weight: 600; }
.legal-bizinfo {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 40px;
}
.legal-bizinfo h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  scroll-margin-top: 90px;
}
.legal-bizinfo p { margin: 0; color: var(--text); font-size: 0.95rem; line-height: 1.7; }
.legal-bizinfo a { color: var(--accent); }
/* B2B note above contact consent */
.form-b2b-note {
  background: var(--accent-soft);
  border: 1px solid rgba(14, 92, 95, 0.18);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 4px 0 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}
.form-b2b-note strong { color: var(--accent); }
.form-b2b-note a { color: var(--accent); text-decoration: underline; }

/* ---------- Homepage safety banner ---------- */
.safety-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.safety-note svg { width: 26px; height: 26px; color: var(--accent); flex: 0 0 26px; margin-top: 2px; }
.safety-note p { margin: 0; color: var(--text); font-size: 0.95rem; }
.safety-note strong { color: var(--accent); }
.safety-wrap { padding: 0 0 8px; margin-top: -24px; }

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .features-list { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-chart { width: min(100%, 360px); }
  .two-col, .two-col-flip, .contact-grid, .video-card { grid-template-columns: 1fr; gap: 36px; }
  .buy-grid { grid-template-columns: 1fr; gap: 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .presentation-video { min-height: 240px; }
  .video-copy { padding: 4px 8px 10px; }

  .site-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-nav a:last-child { border-bottom: none; margin-top: 10px; }
  .site-nav .btn { justify-content: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .features-list { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .presentation-video { min-height: 190px; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-2px); }
  .contact-form { padding: 24px; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection { background: var(--accent); color: #fff; }
