:root {
  --bg: #f2f7f4;
  --ink: #0f241c;
  --muted: #5a7267;
  --line: rgba(15, 36, 28, 0.12);
  --em: #059669;
  --em-deep: #047857;
  --mint: #a7f3d0;
  --amber: #d97706;
  --paper: #fff;
  --display: "Archivo", sans-serif;
  --sans: "Public Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--em-deep); }

.utility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  justify-content: center;
  align-items: center;
  padding: 0.45rem 1rem;
  background: var(--em-deep);
  color: #ecfdf5;
  font-size: 0.8rem;
  font-weight: 600;
}

.utility a { color: var(--mint); }

.utility .sep { opacity: 0.5; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7b7;
  animation: blink 1.6s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}

.logo strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.logo small {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--em);
  font-weight: 700;
}

.header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.95rem;
}

.header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.header nav a:hover { color: var(--em-deep); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
}

.burger::before { top: 16px; }
.burger::after { top: 24px; }

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(3.5rem, 10vh, 6rem) 1.25rem;
  overflow: hidden;
  background: linear-gradient(160deg, #ecfdf5 0%, #fff 45%, #d1fae5 100%);
}

.hero-diagonal {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(135deg, transparent 48%, rgba(5, 150, 105, 0.12) 48%, rgba(5, 150, 105, 0.18) 52%, transparent 52%),
    linear-gradient(-135deg, transparent 46%, rgba(4, 120, 87, 0.1) 46%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  color: var(--em);
  margin: 0 0 1rem;
  line-height: 1;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 auto 1rem;
  max-width: 18ch;
}

.lead {
  margin: 0 auto 1.5rem;
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn.solid {
  background: var(--em);
  color: #fff;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.25);
}

.btn.soft {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

section {
  padding: clamp(3.5rem, 8vh, 5.5rem) clamp(1.1rem, 4vw, 3rem);
}

.block-head {
  margin-bottom: 1.8rem;
  max-width: 640px;
}

.block-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.block-head p:last-child {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--em);
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.75rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.plan.featured {
  background: linear-gradient(180deg, #047857, #059669);
  color: #ecfdf5;
  border-color: transparent;
  transform: scale(1.03);
  box-shadow: 0 24px 50px rgba(4, 120, 87, 0.28);
}

.plan-tag {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--em);
}

.plan.featured .plan-tag { color: var(--mint); }

.plan h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
}

.plan-sum {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan.featured .plan-sum { color: rgba(236, 253, 245, 0.8); }

.plan ul {
  margin: 0;
  padding-left: 1.05rem;
  flex: 1;
}

.plan li { margin-bottom: 0.35rem; }

.plan a {
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.4rem;
}

.plan.featured a { color: #fff; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--muted);
}

.chip.active {
  background: var(--em);
  border-color: var(--em);
  color: #fff;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.cat-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cat-grid article.hide {
  display: none;
}

.cat-grid h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.cat-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.sla {
  background: #0f241c;
  color: #ecfdf5;
}

.sla .eyebrow { color: var(--mint); }
.sla h2 { color: #fff; }

.sla-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sla table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: rgba(255, 255, 255, 0.03);
}

.sla th,
.sla td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sla th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}

.sla-note {
  margin: 1rem 0 0;
  color: rgba(236, 253, 245, 0.65);
  font-size: 0.9rem;
  text-align: center;
}

.p1, .p2, .p3, .p4 {
  display: inline-block;
  font-weight: 800;
  font-family: var(--display);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.p1 { background: #fee2e2; color: #991b1b; }
.p2 { background: #ffedd5; color: #9a3412; }
.p3 { background: #fef9c3; color: #854d0e; }
.p4 { background: #d1fae5; color: #065f46; }

.clock-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
}

.clock-face {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 8px solid var(--em);
  margin: 0 auto;
  position: relative;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(from 0deg, #d1fae5, #059669, #d1fae5);
}

.clock-face .hand {
  position: absolute;
  width: 3px;
  height: 70px;
  background: var(--ink);
  left: calc(50% - 1.5px);
  top: 30px;
  transform-origin: bottom center;
  border-radius: 2px;
  transition: transform 0.5s ease;
  transform: rotate(-60deg);
}

.clock-face span {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--em-deep);
}

.clock-face span:nth-of-type(1) { top: 18px; left: calc(50% - 8px); }
.clock-face span:nth-of-type(2) { right: 14px; top: calc(50% - 8px); }
.clock-face span:nth-of-type(3) { bottom: 16px; left: calc(50% - 8px); }
.clock-face span:nth-of-type(4) { left: 12px; top: calc(50% - 8px); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.timeline li {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.timeline li strong {
  display: inline-block;
  min-width: 3.5rem;
  color: var(--em-deep);
  font-family: var(--display);
}

.timeline li.active {
  border-color: var(--em);
  background: #ecfdf5;
  color: var(--ink);
}

.cov-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.cov-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--muted);
}

.cov-tabs button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.cov-panel {
  display: none;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  text-align: center;
}

.cov-panel.show { display: block; }

.cov-panel h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.4rem;
}

.cov-panel p {
  margin: 0;
  color: var(--muted);
}

.wizard {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 0.75rem;
  overflow: hidden;
}

.wizard-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  opacity: 0.4;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.wizard-step.active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--em);
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.12);
}

.wizard-step span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--em);
}

.wizard-step h3 {
  margin: 0.4rem 0;
  font-family: var(--display);
}

.wizard-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.wizard-nav button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.wizard-nav button:hover {
  border-color: var(--em);
  color: var(--em-deep);
}

#wizLabel {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  min-width: 7rem;
  text-align: center;
}

.bulletin {
  background: #fefce8;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.note {
  background: #fff;
  padding: 1.2rem;
  box-shadow: 3px 4px 0 rgba(15, 36, 28, 0.08);
  transform: rotate(-1deg);
  border: 1px solid rgba(15, 36, 28, 0.08);
}

.note:nth-child(even) { transform: rotate(1.2deg); }
.note.n3 { transform: rotate(-2deg); background: #ecfdf5; }
.note.n5 { transform: rotate(1.5deg); background: #fff7ed; }

.note h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.story-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.story-rail article {
  scroll-snap-align: start;
  background: var(--em-deep);
  color: #ecfdf5;
  border-radius: 18px;
  padding: 1.3rem;
  min-height: 200px;
}

.story-rail h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  color: var(--mint);
}

.story-rail p {
  margin: 0;
  color: rgba(236, 253, 245, 0.8);
}

.faq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-cols h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.2rem;
}

.faq-cols p {
  margin: 0 0 1.3rem;
  color: var(--muted);
}

.contact {
  background: #fff;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info address {
  font-style: normal;
  margin: 1.3rem 0 0.8rem;
  line-height: 1.8;
}

.mail { font-weight: 700; }

.slots-label {
  margin: 1.2rem 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.slot {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  margin: 0 0.35rem 0.35rem 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.slot.active {
  background: var(--em);
  border-color: var(--em);
  color: #fff;
}

.contact form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
}

.contact label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.contact .full { grid-column: 1 / -1; }

.contact input,
.contact select,
.contact textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
  font: inherit;
  background: #fff;
}

.contact button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--em);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.9rem 1.3rem;
  cursor: pointer;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--em-deep);
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 2.2rem clamp(1.1rem, 4vw, 3rem) 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer strong {
  font-family: var(--display);
  color: var(--ink);
}

.footer p:last-child { grid-column: 1 / -1; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .plan-grid,
  .cat-grid,
  .clock-layout,
  .board,
  .faq-cols,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .plan.featured { transform: none; }

  .burger { display: block; }

  .header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.2rem;
    background: rgba(242, 247, 244, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .header nav.open { display: flex; }

  .wizard {
    grid-auto-columns: minmax(80%, 1fr);
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .contact form { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .utility { justify-content: flex-start; }
}
