/* ============================================================
   THE CIRCLE — WELCOME PAGE (v2)
   Scoped entirely under .tcw-page. Safe to paste into ETCH.
   Brand variables are referenced with fallback hex values.
   ============================================================ */

.tcw-page {
  --tcw-accent: var(--accent-color, #FF9999);
  --tcw-accent-light: var(--accent-light-color, #FFDDDD);
  --tcw-primary: var(--primary-color, #0F7C95);
  --tcw-secondary: var(--secondary-color, #B9E1EA);
  --tcw-light: var(--light-color, #E2F3F7);
  --tcw-heading: var(--heading-color, #0A4D5C);
  --tcw-dark: var(--dark-color, #0f323a);
  --tcw-alt: var(--alternate-color, #A3BBBF);
  --tcw-text: var(--text-color, #4b5f63);

  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--tcw-text);
  background: #ffffff;
  line-height: 1.65;
  font-size: 17px;
  margin: 0;
  padding: 0;
}

.tcw-page *, .tcw-page *::before, .tcw-page *::after { box-sizing: border-box; }

.tcw-page h1, .tcw-page h2, .tcw-page h3 {
  font-family: 'Manrope', sans-serif;
  color: var(--tcw-heading);
  line-height: 1.2;
  margin: 0 0 0.5em 0;
}

.tcw-page p { margin: 0 0 1.1em 0; }
.tcw-page p:last-child { margin-bottom: 0; }

.tcw-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.tcw-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tcw-primary);
  margin-bottom: 14px;
}

.tcw-display {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

/* ---------- HERO ---------- */

.tcw-hero {
  background: var(--tcw-dark);
  color: #ffffff;
  text-align: center;
  padding: 96px 24px 88px;
  position: relative;
  overflow: hidden;
}

.tcw-hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  opacity: 0.07;
  pointer-events: none;
}

.tcw-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  animation: tcw-rise 0.9s ease-out both;
}

@keyframes tcw-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tcw-hero-inner { animation: none; }
}

.tcw-hero .tcw-eyebrow { color: var(--tcw-secondary); }

.tcw-hero h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.tcw-hero .tcw-display {
  color: var(--tcw-accent);
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 22px;
}

.tcw-hero p.tcw-hero-body {
  color: var(--tcw-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- SECTIONS ---------- */

.tcw-section { padding: 72px 0; }
.tcw-section-tint { background: var(--tcw-light); }

/* ---------- FILIPE'S NOTE ---------- */

.tcw-note {
  border-left: 4px solid var(--tcw-accent);
  background: #ffffff;
  padding: 34px 38px;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 18px rgba(15, 50, 58, 0.06);
}

.tcw-note .tcw-display {
  font-size: 21px;
  color: var(--tcw-heading);
}

.tcw-note-sig {
  margin-top: 18px;
  font-weight: 700;
  color: var(--tcw-heading);
  font-size: 15px;
}

/* ---------- BALLOT (FIRST ACT) ---------- */

.tcw-ballot {
  background: var(--tcw-dark);
  color: #ffffff;
  border-radius: 18px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tcw-ballot::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(185, 225, 234, 0.25);
  border-radius: 12px;
  pointer-events: none;
}

.tcw-ballot .tcw-eyebrow { color: var(--tcw-accent); }

.tcw-ballot h2 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
}

.tcw-ballot p {
  color: var(--tcw-secondary);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.tcw-ballot-deadline {
  display: inline-block;
  margin-top: 4px;
  margin-bottom: 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tcw-accent-light);
}

.tcw-btn {
  display: inline-block;
  background: var(--tcw-accent);
  color: var(--tcw-dark);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  padding: 17px 40px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  z-index: 1;
}

.tcw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 153, 153, 0.35);
}

.tcw-btn:focus-visible {
  outline: 3px solid var(--tcw-secondary);
  outline-offset: 3px;
}

/* ---------- STEPS ---------- */

.tcw-steps { list-style: none; margin: 40px 0 0; padding: 0; }

.tcw-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--tcw-secondary);
}

.tcw-step:last-child { border-bottom: none; }

.tcw-step-num {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tcw-accent);
  color: var(--tcw-dark);
  font-weight: 800;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tcw-step h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.tcw-step p { font-size: 16.5px; }

.tcw-step a { color: var(--tcw-primary); font-weight: 700; }

/* ---------- TIMELINE ---------- */

.tcw-timeline { margin: 44px 0 0; padding: 0; list-style: none; position: relative; }

.tcw-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--tcw-secondary);
}

.tcw-tl-item {
  position: relative;
  padding: 0 0 34px 48px;
}

.tcw-tl-item:last-child { padding-bottom: 0; }

.tcw-tl-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--tcw-primary);
}

.tcw-tl-item.tcw-tl-accent::before {
  background: var(--tcw-accent);
  border-color: var(--tcw-accent);
}

.tcw-tl-when {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tcw-primary);
  margin-bottom: 2px;
}

.tcw-tl-item h3 { font-size: 20px; margin-bottom: 4px; }
.tcw-tl-item p { font-size: 16px; margin: 0; }

/* ---------- HOUSEKEEPING CARDS ---------- */

.tcw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.tcw-card {
  background: var(--tcw-light);
  border-radius: 14px;
  padding: 30px 26px;
}

.tcw-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.tcw-card p { font-size: 15.5px; margin: 0; }
.tcw-card a { color: var(--tcw-primary); font-weight: 700; }

/* ---------- CLOSING ---------- */

.tcw-close {
  background: var(--tcw-dark);
  color: #ffffff;
  text-align: center;
  padding: 84px 24px;
}

.tcw-close .tcw-display {
  color: var(--tcw-accent);
  font-size: clamp(22px, 3.4vw, 30px);
  max-width: 620px;
  margin: 0 auto 10px;
}

.tcw-close p.tcw-close-line {
  color: var(--tcw-secondary);
  margin-bottom: 30px;
}

.tcw-close .tcw-btn { background: var(--tcw-accent); }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 720px) {
  .tcw-section { padding: 56px 0; }
  .tcw-hero { padding: 72px 20px 64px; }
  .tcw-ballot { padding: 44px 26px; }
  .tcw-cards { grid-template-columns: 1fr; }
  .tcw-note { padding: 26px 24px; }
  .tcw-step { gap: 16px; }
}