*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink:       #0f1117;
  --ink-2:     #3a3d4a;
  --ink-3:     #7a7f8e;
  --paper:     #f5f4f0;
  --paper-2:   #eceae3;
  --accent:    #c8472a;
  --accent-2:  #e8603f;
  --green:     #2a7a4f;
  --blue:      #1a4f8a;
  --yellow:    #e8a020;
  --border:    rgba(15,17,23,.10);
  --radius:    12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

/* ── UTILITIES ───────────────────────────── */
.mt-16 {
  margin-top: 1rem;
}

.mt-24 {
  margin-top: 1.5rem;
}

.card-gap {
  margin-bottom: 1.25rem;
}

.section-sub-tight {
  margin-bottom: 1.25rem;
}

/* ── TOPBAR ─────────────────────────────── */
.topbar {
  background: var(--ink);
  color: #fff;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.topbar-logo {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: .65rem;
  color: #fff;
  letter-spacing: .02em;
}

.topbar-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  color: #fff;
}

.topbar-sub {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-left: .25rem;
}

.topbar-admin {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
  padding: .3rem .9rem;
  border-radius: 20px;
  transition: all .2s;
}

.topbar-admin:hover {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* ── WRAPPER ────────────────────────────── */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 4rem;
}

/* ── HERO ───────────────────────────────── */
.hero {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 110% 50%, rgba(200,71,42,.35) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at -10% 80%, rgba(26,79,138,.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: 1.38rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.25rem;
}

.hero-tag-dot {
  width: 20px;
  height: 10px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .5;
    transform: scale(.85);
  }
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 680px;
}

.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  max-width: 580px;
  line-height: 1.65;
}

.hero-meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

.hero-meta-item svg {
  opacity: .6;
}

/* ── CTA CARDS ──────────────────────────── */
.cta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
  cursor: pointer;
}

.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15,17,23,.1);
  border-color: rgba(15,17,23,.2);
}

.cta-card.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cta-card.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.cta-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cta-card.primary .cta-icon {
  background: rgba(255,255,255,.2);
}

.cta-card:not(.primary) .cta-icon {
  background: var(--paper-2);
}

.cta-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .95rem;
}

.cta-desc {
  font-size: .78rem;
  color: var(--ink-3);
  margin-top: .15rem;
}

.cta-card.primary .cta-desc {
  color: rgba(255,255,255,.7);
}

.cta-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  opacity: .35;
}

/* ── MAIN GRID ──────────────────────────── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

/* ── CARD ───────────────────────────────── */
.card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-pad {
  padding: 2rem;
}

.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .5rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: .2rem;
}

.section-sub {
  font-size: .85rem;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}

/* ── STEPS ──────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--paper-2);
  position: relative;
}

.step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step:first-child {
  padding-top: 0;
}

.step-line {
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: -12px;
  width: 2px;
  background: var(--paper-2);
  z-index: 0;
}

.step:last-child .step-line {
  display: none;
}

.step-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  position: relative;
  z-index: 1;
}

.step-body {
  flex: 1;
}

.step-title {
  font-weight: 500;
  font-size: .93rem;
  margin-bottom: .2rem;
}

.step-desc {
  font-size: .82rem;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ── ACCORDION ──────────────────────────── */
.acc-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: .75rem;
}

.acc-item:last-child {
  margin-bottom: 0;
}

.acc-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink);
  text-align: left;
  transition: background .15s;
}

.acc-btn:hover {
  background: var(--paper);
}

.acc-btn[aria-expanded="true"] {
  background: var(--paper);
}

.acc-icon {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  transition: transform .25s, background .2s, color .2s, border-color .2s;
}

.acc-btn[aria-expanded="true"] .acc-icon {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.acc-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
}

.acc-body.open {
  display: block;
}

/* ── REQUISITES ─────────────────────────── */
.req-group {
  margin-bottom: 1rem;
}

.req-group:last-child {
  margin-bottom: 0;
}

.req-group-title {
  font-weight: 500;
  font-size: .83rem;
  color: var(--ink-2);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.req-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--paper-2);
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.req-list li {
  font-size: .83rem;
  color: var(--ink-3);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  line-height: 1.5;
}

.req-list li::before {
  content: '·';
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1.1;
  flex-shrink: 0;
}

.req-list b {
  color: var(--ink);
  font-weight: 500;
}

/* ── ALERT ──────────────────────────────── */
.alert {
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  font-size: .83rem;
  line-height: 1.55;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.alert-warn {
  background: #fff8e6;
  border: 1.5px solid #f0d080;
  color: #7a5c00;
}

.alert-info {
  background: #e8f1fb;
  border: 1.5px solid #b0cef0;
  color: #1a4070;
}

.alert-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* ── SIDEBAR ────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.side-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 500;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.side-link:hover {
  border-color: rgba(15,17,23,.2);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15,17,23,.06);
}

.side-link-icon {
  font-size: 1.1rem;
}

/* Folio helper */
.folio-box {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  font-size: .82rem;
}

.folio-box strong {
  color: var(--ink);
}

.folio-box .folio-hint {
  color: var(--ink-3);
  margin-top: .2rem;
}

/* Status badge row */
.status-row {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.25rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .82rem;
  color: var(--ink-3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-green {
  background: var(--green);
}

.status-yellow {
  background: var(--yellow);
}

.status-blue {
  background: var(--blue);
}

/* Format chips */
.chip-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.chip {
  background: var(--paper-2);
  border-radius: 20px;
  padding: .2rem .7rem;
  font-size: .73rem;
  color: var(--ink-2);
  font-weight: 500;
}

.chip-green {
  background: #d4f0e2;
  color: #1a5c34;
}

.chip-yellow {
  background: #fdf0d0;
  color: #7a5000;
}

.chip-blue {
  background: #dce8f8;
  color: #1a3870;
}

/* ── STAGE TIMELINE ─────────────────────── */
.stage-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.stage-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .7rem .9rem;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--border);
}

.stage-num {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--paper-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  color: var(--ink-3);
}

.stage-title {
  font-size: .83rem;
  font-weight: 500;
  color: var(--ink);
}

.stage-sub {
  font-size: .75rem;
  color: var(--ink-3);
  margin-top: .1rem;
}

/* ── FOOTER ─────────────────────────────── */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  font-size: .78rem;
  color: var(--ink-3);
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 860px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cta-row {
    grid-template-columns: 1fr;
  }

  .cta-arrow {
    display: none;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .topbar {
    gap: 1rem;
  }

  .topbar-sub {
    display: none;
  }

  .card-pad {
    padding: 1.35rem;
  }
}