/* ============================================================
   Landing „Darmowy arkusz” — arkusz.html / arkusz-pobierz.html
   Korzysta ze zmiennych i przycisków z style.css (ładować po nim).
   ============================================================ */

.ar-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Pasek górny (bez menu — nic nie odciąga od formularza) ── */
.ar-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,245,234,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42,71,44,.1);
}
.ar-top-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ar-brand { display: flex; align-items: center; gap: 10px; color: var(--forest-deep); }
.ar-brand:hover { text-decoration: none; }
.ar-brand img { height: 32px; width: auto; }
.ar-brand span { font-family: var(--font-display); font-size: 18px; font-weight: 600; }

/* ── Hero ── */
.ar-hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.ar-hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(201,168,118,.28), transparent 65%); pointer-events: none;
}
.ar-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; position: relative; }

.ar-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--clay); background: var(--paper); border: 1px solid rgba(140,103,69,.3);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.ar-tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }

.ar-title { font-size: clamp(34px, 5.2vw, 56px); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 18px; }
.ar-title em { font-style: italic; color: var(--clay); font-weight: 500; }
.ar-sub { font-size: 18px; color: #3a4a3c; max-width: 560px; margin-bottom: 26px; }
.ar-sub strong { color: var(--forest-deep); }

/* ── Formularz zapisu ── */
.ar-form-card {
  background: var(--paper); border: 1.5px solid var(--forest-deep); border-radius: var(--radius);
  padding: 22px; box-shadow: 6px 6px 0 var(--forest-deep); max-width: 520px;
}
.ar-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--forest-deep); margin-bottom: 8px; }
.ar-form-row { display: flex; gap: 10px; }
.ar-form-row .form-input { flex: 1; min-width: 0; font-size: 16px; padding: 13px 16px; }
.ar-submit { padding: 13px 22px; font-size: 15px; justify-content: center; }
.ar-consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #3a4a3c; cursor: pointer; }
.ar-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); cursor: pointer; }
.ar-legal { font-size: 11.5px; line-height: 1.55; color: var(--text-muted); margin-top: 12px; }
.ar-legal a { text-decoration: underline; }
.ar-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ar-msg { display: none; margin-top: 12px; font-size: 14px; padding: 10px 14px; border-radius: var(--radius-s); }
.ar-msg.error { display: block; background: #f9e8e6; color: #8b2020; border: 1px solid #e3b9b4; }
.ar-form-card.is-busy .ar-submit { opacity: .7; pointer-events: none; }

.ar-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: #3a4a3c; }
.ar-perks li::before { content: '✓'; color: var(--forest); font-weight: 700; margin-right: 7px; }

/* Stan po wysłaniu */
.ar-success { display: none; text-align: left; }
.ar-form-card.is-done .ar-form-fields { display: none; }
.ar-form-card.is-done .ar-success { display: block; }
.ar-success h3 { font-size: 24px; margin-bottom: 8px; }
.ar-success p { font-size: 15px; color: #3a4a3c; margin-bottom: 10px; }
.ar-success ol { margin: 12px 0 0 20px; font-size: 14px; color: #3a4a3c; }
.ar-success li { margin-bottom: 6px; }

/* ── Makieta arkusza (czysty CSS) ── */
.ar-mock-wrap { position: relative; display: flex; justify-content: center; padding: 10px; }
.ar-mock {
  width: min(100%, 360px); background: #fff; border: 1.5px solid var(--forest-deep); border-radius: 10px;
  padding: 26px 26px 30px; transform: rotate(3deg); box-shadow: 10px 12px 0 rgba(22,38,26,.14);
  position: relative;
}
.ar-mock::after { content: ''; position: absolute; inset: 10px; border: 1px dashed rgba(42,71,44,.2); border-radius: 6px; pointer-events: none; }
.ar-mock-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid rgba(42,71,44,.2); padding-bottom: 10px; margin-bottom: 18px; }
.ar-mock h2 { font-size: 26px; line-height: 1.1; margin-bottom: 6px; }
.ar-mock-meta { font-family: var(--font-mono); font-size: 11px; color: var(--clay); margin-bottom: 20px; }
.ar-mock-line { height: 7px; border-radius: 4px; background: var(--sage); margin-bottom: 9px; }
.ar-mock-line.w80 { width: 80%; } .ar-mock-line.w60 { width: 60%; } .ar-mock-line.w90 { width: 90%; }
.ar-mock-box { margin: 18px 0; border: 1px solid rgba(42,71,44,.25); border-radius: 6px; padding: 12px; background: var(--cream); }
.ar-mock-box b { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); margin-bottom: 8px; }
.ar-stamp {
  position: absolute; right: -14px; bottom: -22px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--clay); color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transform: rotate(-10deg); border: 3px solid var(--cream); box-shadow: var(--shadow-md);
  font-family: var(--font-display);
}
.ar-stamp b { font-size: 30px; line-height: 1; }
.ar-stamp span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

/* ── Liczby ── */
.ar-numbers { background: var(--forest-deep); color: var(--cream); padding: 34px 0; }
.ar-numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.ar-num { font-family: var(--font-display); font-size: clamp(34px, 5vw, 48px); font-weight: 600; color: var(--clay-light); line-height: 1; }
.ar-num-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(250,245,234,.8); margin-top: 8px; }

/* ── Sekcje ── */
.ar-section { padding: 84px 0; }
.ar-section.alt { background: var(--sage); }
.ar-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); margin-bottom: 12px; font-weight: 500; }
.ar-h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 600; letter-spacing: -.015em; margin-bottom: 16px; max-width: 760px; }
.ar-lead { font-size: 18px; color: #3a4a3c; max-width: 700px; margin-bottom: 40px; }

.ar-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ar-card { background: var(--paper); border: 1px solid rgba(42,71,44,.15); border-radius: var(--radius); padding: 26px; }
.ar-card-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sage); color: var(--forest); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.ar-card h3 { font-size: 20px; margin-bottom: 8px; }
.ar-card p { font-size: 15px; color: #3a4a3c; }

/* ── Podgląd zadania ── */
.ar-preview-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: start; }
.ar-task { background: #fff; border: 1.5px solid var(--forest-deep); border-radius: var(--radius); padding: 28px; box-shadow: 6px 6px 0 var(--forest-deep); position: relative; overflow: hidden; }
.ar-task-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin-bottom: 6px; }
.ar-task h3 { font-size: 22px; margin-bottom: 14px; }
.ar-source { background: var(--cream); border-left: 4px solid var(--clay); padding: 14px 16px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 14.5px; margin-bottom: 16px; }
.ar-source b { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin-bottom: 6px; }
.ar-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 18px; }
.ar-table th, .ar-table td { border: 1px solid rgba(42,71,44,.3); padding: 8px 10px; text-align: center; }
.ar-table th { background: var(--sage); font-weight: 600; }
.ar-table td:first-child, .ar-table th:first-child { text-align: left; }
.ar-cmd { font-size: 14.5px; margin-bottom: 12px; }
.ar-cmd b { font-family: var(--font-mono); color: var(--forest); margin-right: 6px; }
.ar-cmd-locked { position: relative; user-select: none; }
.ar-cmd-locked p { filter: blur(5px); }
.ar-lock {
  margin-top: 20px; position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--forest-deep);
}
.ar-lock span { background: var(--paper); border: 1px solid var(--forest-deep); padding: 6px 14px; border-radius: 999px; }
.ar-preview-side h3 { font-size: 24px; margin-bottom: 12px; }
.ar-preview-side p { color: #3a4a3c; margin-bottom: 14px; }
.ar-preview-side ul { list-style: none; margin-bottom: 24px; }
.ar-preview-side li { padding-left: 26px; position: relative; margin-bottom: 10px; font-size: 15px; color: #3a4a3c; }
.ar-preview-side li::before { content: '→'; position: absolute; left: 0; color: var(--clay); font-weight: 700; }

/* ── Kroki ── */
.ar-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.ar-step { position: relative; padding: 26px; background: var(--paper); border-radius: var(--radius); border: 1px solid rgba(42,71,44,.15); }
.ar-step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--forest-deep); color: var(--cream); font-family: var(--font-display); font-size: 18px; margin-bottom: 14px; }
.ar-step h3 { font-size: 19px; margin-bottom: 6px; }
.ar-step p { font-size: 15px; color: #3a4a3c; }

/* ── Autor ── */
.ar-author { display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: center; max-width: 780px; }
.ar-author img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); box-shadow: var(--shadow-md); }
.ar-author p { color: #3a4a3c; margin-bottom: 10px; }
.ar-soft-link { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── FAQ ── */
.ar-faq { max-width: 760px; }
.ar-faq details { border-bottom: 1px solid rgba(42,71,44,.2); padding: 16px 0; }
.ar-faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; color: var(--forest-deep); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ar-faq summary::-webkit-details-marker { display: none; }
.ar-faq summary::after { content: '+'; font-family: var(--font-mono); font-size: 20px; color: var(--clay); flex: none; }
.ar-faq details[open] summary::after { content: '−'; }
.ar-faq details p { margin-top: 10px; font-size: 15px; color: #3a4a3c; }

/* ── Końcowe CTA ── */
.ar-final { background: var(--forest-deep); padding: 84px 0; }
.ar-final-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ar-final h2 { color: var(--cream); font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.ar-final p.lead { color: rgba(250,245,234,.85); font-size: 17px; }
.ar-final .ar-form-card { box-shadow: 6px 6px 0 var(--clay); border-color: var(--clay-light); }

.ar-disclaimer { font-size: 12px; color: var(--text-muted); margin-top: 10px; max-width: 760px; }

/* ── Sticky CTA (mobile) ── */
.ar-sticky {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(250,245,234,.96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(42,71,44,.2); transform: translateY(110%); transition: transform .3s var(--ease);
}
.ar-sticky.show { transform: translateY(0); }
.ar-sticky .btn { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }

/* ── Strona „pobierz” ── */
.dl-card { max-width: 640px; margin: 56px auto 24px; background: var(--paper); border: 1.5px solid var(--forest-deep); border-radius: var(--radius); padding: 40px 32px; text-align: center; box-shadow: 6px 6px 0 var(--forest-deep); }
.dl-check { width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: var(--cream); font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.dl-card h1 { font-size: clamp(28px, 4.5vw, 38px); margin-bottom: 12px; }
.dl-card p { color: #3a4a3c; margin-bottom: 16px; }
.dl-btn { padding: 16px 32px; font-size: 17px; }
.dl-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-top: 14px; }
.dl-tips { max-width: 640px; margin: 0 auto; text-align: left; font-size: 15px; color: #3a4a3c; padding: 0 8px; }
.dl-tips li { margin: 0 0 8px 20px; }
.dl-next { max-width: 900px; margin: 56px auto 72px; padding: 0 24px; }
.dl-next h2 { font-size: 26px; text-align: center; margin-bottom: 24px; }
.dl-next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-next-card { background: var(--paper); border: 1px solid rgba(42,71,44,.15); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.dl-next-card:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); transition: .3s var(--ease); }
.dl-next-card b { font-family: var(--font-display); font-size: 18px; color: var(--forest-deep); }
.dl-next-card span { font-size: 14px; color: #3a4a3c; }
.dl-next-card em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--clay); margin-top: auto; }

/* ── Responsywność ── */
@media (max-width: 900px) {
  .ar-hero { padding: 36px 0 56px; }
  .ar-hero-grid, .ar-preview-grid, .ar-final-inner { grid-template-columns: 1fr; gap: 40px; }
  .ar-cards, .ar-steps, .dl-next-grid { grid-template-columns: 1fr; }
  .ar-numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .ar-mock { transform: rotate(2deg); width: min(100%, 320px); }
  .ar-section, .ar-final { padding: 60px 0; }
  .ar-sticky { display: block; }
  .ar-top .btn { display: none; }
}
@media (max-width: 520px) {
  .ar-form-row { flex-direction: column; }
  .ar-submit { width: 100%; }
  .ar-form-card { padding: 18px; box-shadow: 4px 4px 0 var(--forest-deep); }
  .ar-author { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .ar-task { padding: 20px; }
  .dl-card { padding: 30px 20px; margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-sticky, .dl-next-card { transition: none; }
}

/* Strona „dziękujemy” — wskazówki, gdy brak maila */
.dl-trouble { margin-top: 22px; padding: 16px 18px; background: var(--cream); border: 1px dashed rgba(42,71,44,.4); border-radius: var(--radius-s); text-align: left; font-size: 14.5px; color: #3a4a3c; }
.dl-trouble ol { margin: 8px 0 0 20px; }
.dl-trouble li { margin-bottom: 6px; }
.dl-trouble a { text-decoration: underline; font-weight: 600; }
