/* aego.pl — "Jak to działa" (Bento Light) */

.aego-howto {
  padding: 0 0 100px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.aego-howto__hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 42px;
  border-bottom: 1px solid #e2e6ed;
  background:
    radial-gradient(circle at 82% 25%, rgba(181, 122, 34, .11), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f7f8fb 100%);
}

.aego-howto__hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -220px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(181, 122, 34, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(181, 122, 34, .025), 0 0 0 144px rgba(181, 122, 34, .018);
}

.aego-howto__header {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}

.aego-howto__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #9b6718;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.aego-howto__header h1 {
  max-width: none;
  margin: 0;
  color: #091631;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.5vw, 2.55rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.aego-howto__hero .aego-page-hero__lead {
  max-width: none;
  margin: 22px 0 0;
  color: var(--aego-ink-2);
  font-size: 1.08rem;
  line-height: 1.7;
}

.aego-howto__body {
  padding-top: 72px;
}

/* ── Zanim zaczniesz: konto w AI dla laików ─────────────────────────── */
.aego-howto__prep {
  width: 100%;
  margin: 0 0 64px;
  padding: 40px 36px;
  background: var(--aego-surface-2);
  border-radius: var(--aego-r-lg);
}

.aego-howto__prep-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.aego-howto__prep-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #9b6718;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.aego-howto__prep-head h2 {
  margin: 0 0 10px;
  color: #101c34;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.25;
}

.aego-howto__prep-head p {
  margin: 0;
  color: #536075;
  font-size: .95rem;
  line-height: 1.6;
}

.aego-howto__prep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.aego-howto__prep-card {
  background: #fff;
  border: 1px solid #dfe4ec;
  border-radius: var(--aego-r-lg);
  padding: 24px 22px;
}

.aego-howto__prep-card h3 {
  margin: 0 0 14px;
  color: #101c34;
  font-size: 1.05rem;
}

.aego-howto__prep-card ol {
  margin: 0;
  padding-left: 20px;
  color: #536075;
  font-size: .87rem;
  line-height: 1.65;
}

.aego-howto__prep-card a {
  color: #0b1f43;
  font-weight: 700;
  text-decoration: underline;
}

.aego-howto__prep-toggle {
  margin-top: 14px;
  padding: 8px 14px;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  background: #fff;
  color: #0b1f43;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.aego-howto__prep-toggle:hover {
  border-color: #c69b55;
  background: #faf7f0;
}

.aego-howto__prep-shot {
  margin-top: 14px;
}

.aego-howto__prep-shot img {
  display: block;
  width: 100%;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
}

.aego-howto__prep-note {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e4d8bd;
  border-radius: var(--aego-r-lg);
  color: #536075;
  font-size: .9rem;
  line-height: 1.6;
}

.aego-howto__prep-note strong {
  color: #101c34;
}

@media (max-width: 860px) {
  .aego-howto__prep {
    padding: 28px 20px;
  }

  .aego-howto__prep-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .aego-howto__hero h1 {
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .aego-howto__hero {
    padding: 30px 0 32px;
  }

  .aego-howto__header h1 {
    font-size: 1.58rem;
  }

  .aego-howto__hero .aego-page-hero__lead {
    font-size: .98rem;
  }

  .aego-howto__body {
    padding-top: 64px;
  }
}

.aego-howto__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  margin-bottom: 56px;
  z-index: 2;
}

.aego-howto__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Linia łącząca kroki na desktopie */
.aego-howto__grid::before {
  content: "";
  position: absolute;
  top: 48px; /* Środek okręgów z numerami */
  left: 16%; right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cfd6e2, transparent);
  z-index: -1;
}

.aego-howto__grid--4::before {
  left: 12%; right: 12%;
}

.aego-howto__card {
  background: #fff;
  border: 1px solid #dfe4ec;
  border-radius: var(--aego-r-lg);
  padding: 48px 32px 40px;
  position: relative;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 40px rgba(10, 25, 60, 0.05);
}

.aego-howto__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(15, 36, 56, 0.1);
  border-color: #c9a366; /* aego-cta */
}

/* Numer nad kartą */
.aego-howto__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--aego-navy);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(10, 29, 64, 0.15);
  border: 4px solid #fff;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.aego-howto__card:hover .aego-howto__num {
  background: var(--aego-cta);
  box-shadow: 0 6px 18px rgba(181, 122, 34, 0.3);
}

.aego-howto__card h2 {
  font-size: 1.25rem;
  color: #101c34;
  margin: 16px 0 12px;
  line-height: 1.35;
}

.aego-howto__card p {
  color: #536075;
  font-size: .92rem;
  line-height: 1.55;
  margin: 0;
}

.aego-howto__card-link {
  display: inline-block;
  margin-top: 14px;
  color: #0b1f43;
  font-size: .85rem;
  font-weight: 750;
}

.aego-howto__card-link span {
  display: inline-block;
  margin-left: 5px;
  color: #b77817;
  transition: transform .18s ease;
}

.aego-howto__card-link:hover span {
  transform: translateY(3px);
}

.aego-howto__card-link--lg {
  font-size: 1rem;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .aego-howto__grid {
    grid-template-columns: 1fr;
    gap: 56px;
    margin-bottom: 48px;
  }
  
  .aego-howto__grid::before {
    top: 0; bottom: 0;
    left: 50%; right: auto;
    width: 2px; height: 100%;
    background: linear-gradient(180deg, transparent, #cfd6e2, transparent);
    transform: translateX(-50%);
  }
}

