@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --text-main: #111111;
  --text-soft: #4b5563;
  --accent-blue: #111827;
  --accent-cyan: #00e0ff;
  --accent-magenta: #ff2fa8;
  --border-soft: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: var(--text-main);
  line-height: 1.6;
}

@page {
  size: A4;
  margin: 20mm;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 48px 56px 64px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.page.cover-page {
  background: linear-gradient(135deg, #0f172a 0%, #111827 60%, #1f2937 100%);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
  page-break-after: always;
}

.page.cover-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 45%);
  opacity: 0.9;
}

.page.cover-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255, 47, 168, 0.18), transparent 40%);
  opacity: 0.9;
}

.page.cover-page > * {
  position: relative;
  z-index: 1;
}

.page.content-page {
  page-break-after: always;
}

.page.instruction-page {
  page-break-after: always;
}

.page.summary-page {
  page-break-before: always;
}

.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 18px;
}

.cover-badge::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
}

.cover-page .cover-badge {
  color: #f8fafc;
}

.cover-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
}

.cover-title {
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.cover-lead {
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 18px;
  max-width: 56ch;
}

.cover-meta {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.75);
}

.cover-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.cover-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.4);
  background: rgba(248, 250, 252, 0.08);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.cover-photo {
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(248, 250, 252, 0.25);
  border-radius: 22px;
  padding: 16px;
  align-self: start;
}

.cover-photo img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.cover-highlight {
  margin-top: 28px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(248, 250, 252, 0.2);
  border-radius: 18px;
  padding: 20px 24px;
}

.cover-highlight h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.highlight-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.highlight-list li {
  display: flex;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.85);
}

.highlight-list li::before {
  content: "•";
  color: var(--accent-cyan);
}

.intro {
  margin-bottom: 24px;
}

.intro .cover-badge {
  margin-bottom: 10px;
}

.intro-title {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 10px;
}

.intro-text {
  color: var(--text-soft);
  max-width: 70ch;
}

.steps {
  display: grid;
  gap: 20px;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.instruction-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 20px 24px;
  background: #f8fafc;
}

.instruction-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.instruction-card p {
  color: var(--text-soft);
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.instruction-list {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.instruction-list strong {
  color: var(--text-main);
}

.instruction-panel {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 18px 22px;
  background: #ffffff;
}

.instruction-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.instruction-panel p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.step-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  background: #f8fafc;
}

.step-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.step-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-text {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.cta-box {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  display: grid;
  gap: 12px;
}

.cta-title {
  font-size: 1.1rem;
}

.cta-text {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.cta-link {
  font-weight: 600;
  color: var(--text-main);
}

.summary-header {
  text-align: center;
  margin-bottom: 24px;
}

.summary-header h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 8px;
}

.summary-header p {
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0 auto;
}

.summary-list {
  list-style: none;
  counter-reset: summary;
  columns: 2;
  column-gap: 18px;
}

.summary-list li {
  counter-increment: summary;
  break-inside: avoid;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 14px 16px 14px 50px;
  margin-bottom: 12px;
  position: relative;
}

.summary-list li::before {
  content: counter(summary);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.summary-title {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.summary-text {
  color: var(--text-soft);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .page {
    padding: 36px 32px 48px;
  }

  .cover-hero {
    grid-template-columns: 1fr;
  }

  .instruction-grid {
    grid-template-columns: 1fr;
  }

  .cover-strip {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 28px 24px 40px;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .step-mark {
    flex-direction: row;
    justify-content: flex-start;
  }

  .summary-list {
    columns: 1;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .page {
    box-shadow: none;
    padding: 0;
  }
}
