/* ========================================
   HOME — the official ConnectClub flyers as a page (2026-09-30).
   Scoped under .cc-home. Colours come from tokens.css only.
   Gold is a fill; text on gold is deep teal. Gold text only on deep teal.
   ======================================== */

.cc-home {
  --cc-radius-card: 22px;
  --cc-radius-panel: 32px;
  --cc-shadow-card: 0 1px 2px rgba(var(--teal-deep-rgb), 0.06), 0 14px 34px rgba(var(--teal-deep-rgb), 0.08);
  background-color: var(--mint);
  color: var(--grey);
}

/* main.css hides every <section> until it scrolls into view; this page
   renders straight away. */
.cc-home section {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color var(--duration-normal) var(--ease-default),
              color var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default);
}

.cc-btn:hover {
  transform: translateY(-1px);
}

.cc-btn--gold {
  background-color: var(--gold);
  color: var(--teal-deep);
  box-shadow: 0 10px 24px rgba(var(--black-rgb), 0.16);
}

.cc-btn--gold:hover,
.cc-btn--gold:focus-visible {
  background-color: var(--gold-hover);
  color: var(--teal-deep);
}

.cc-btn--ghost {
  color: var(--white);
  border-color: rgba(var(--white-rgb), 0.55);
}

.cc-btn--ghost:hover,
.cc-btn--ghost:focus-visible {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--teal-deep);
}

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

.cc-btn--block {
  display: flex;
  width: 100%;
}

.cc-btn-icon {
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.cc-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(5rem, 9vw, 8.5rem);
  background:
    radial-gradient(ellipse 55% 75% at 82% 35%, rgba(var(--teal-mid-rgb), 0.6) 0%, transparent 70%),
    linear-gradient(115deg, var(--teal-deep) 0%, var(--teal-deep) 38%, var(--teal) 100%);
}

/* The flyer's curved edge into the mint page */
.cc-hero::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -1px;
  height: clamp(36px, 6vw, 90px);
  background-color: var(--mint);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.cc-hero > .container {
  position: relative;
  z-index: 1;
}

.cc-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.05rem, 1.1rem + 3.4vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.cc-hero-line {
  display: block;
}

.cc-hero-line--gold {
  color: var(--gold);
  margin-top: 0.3em;
}

.cc-hero-sub {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: rgba(var(--white-rgb), 0.9);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

/* Price pill: gold fill, deep teal text */
.cc-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background-color: var(--gold);
  color: var(--teal-deep);
  border-radius: 22px;
  padding: 1rem 1.6rem;
  box-shadow: 0 18px 40px rgba(var(--black-rgb), 0.2);
}

.cc-price-main {
  display: flex;
  flex-direction: column;
}

.cc-price-label {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.cc-price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.cc-price-value {
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3.25rem);
  letter-spacing: -0.02em;
}

.cc-price-unit {
  font-size: 1.2rem;
  margin-left: 0.15rem;
}

.cc-price-note {
  border-left: 2px solid rgba(var(--teal-deep-rgb), 0.35);
  padding-left: 1.25rem;
  max-width: 14ch;
  font-weight: 600;
  line-height: 1.3;
}

.cc-price-alt {
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(var(--white-rgb), 0.85);
}

.cc-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Hero art: the logo's C ring in gold, "Saúde + Economia" at its heart and
   the four card icons riding the ring. Desktop only. */
.cc-hero-art {
  display: none;
}

.cc-orbit {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin-left: auto;
}

.cc-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 30px solid var(--gold);
  border-right-color: transparent;
}

.cc-orbit-core {
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background-color: var(--white);
  display: grid;
  place-items: center;
  padding: 12%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(var(--black-rgb), 0.25);
}

.cc-orbit-tagline {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
  font-size: clamp(1.3rem, 0.6rem + 1.1vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.cc-orbit-chip {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px var(--teal-deep), 0 12px 24px rgba(var(--black-rgb), 0.25);
}

/* Points on the ring's centre line: 1 and 4 cap the two ends of the C
   (45 degrees above and below its opening), 2 and 3 sit on the left */
.cc-orbit-chip--1 { left: 83%; top: 17%; }
.cc-orbit-chip--2 { left: 10%; top: 27%; }
.cc-orbit-chip--3 { left: 10%; top: 73%; }
.cc-orbit-chip--4 { left: 83%; top: 83%; }

/* ---------- Sections ---------- */
.cc-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.cc-club {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.cc-section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.cc-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
  font-size: clamp(1.55rem, 1rem + 2.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.cc-lead {
  color: var(--grey);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  margin: 0.85rem auto 0;
  max-width: 60ch;
}

/* ---------- The 4 cards ---------- */
.cc-card {
  background-color: var(--white);
  border-radius: var(--cc-radius-card);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  height: 100%;
  box-shadow: var(--cc-shadow-card);
}

.cc-chip {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.cc-chip--teal {
  background-color: var(--teal-tint);
  color: var(--teal);
}

.cc-chip--gold {
  background-color: var(--gold-tint);
  color: var(--teal-deep);
}

.cc-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.02rem, 0.9rem + 0.4vw, 1.2rem);
  line-height: 1.2;
  color: var(--teal);
  margin-bottom: 0.65rem;
}

.cc-card-kicker {
  display: block;
  font-size: 0.85em;
  font-weight: 700;
  color: var(--teal-mid);
}

.cc-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--grey);
}

/* ---------- Telemedicine + benefits panels ---------- */
.cc-detail {
  padding-top: 0;
}

.cc-panel {
  border-radius: var(--cc-radius-panel);
  padding: clamp(1.4rem, 3vw, 2.5rem);
  height: 100%;
}

.cc-panel--teal {
  background-color: var(--teal-tint);
}

.cc-panel--gold {
  background-color: var(--gold-tint);
}

.cc-panel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cc-panel-badge {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cc-panel--teal .cc-panel-badge,
.cc-panel--teal .cc-list-icon {
  background-color: var(--teal-deep);
  color: var(--white);
}

.cc-panel--gold .cc-panel-badge,
.cc-panel--gold .cc-list-icon {
  background-color: var(--gold);
  color: var(--teal-deep);
}

.cc-panel-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem);
  line-height: 1.05;
  color: var(--teal);
  margin: 0;
}

.cc-panel-kicker {
  display: block;
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-mid);
  margin-top: 0.4rem;
}

.cc-panel-intro {
  color: var(--teal-deep);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.cc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.cc-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.cc-list-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.cc-list strong {
  display: block;
  color: var(--teal-deep);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0.1rem;
}

.cc-list-text {
  display: block;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--grey);
  margin-top: 0.15rem;
}

/* Hand-lettered lines of the flyer as a gold highlighter stroke */
.cc-note {
  margin: 1.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--teal-deep);
}

.cc-note span {
  background: linear-gradient(transparent 60%, rgba(var(--gold-rgb), 0.6) 60%);
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Join band ---------- */
.cc-join {
  padding-top: 0;
}

.cc-join-panel {
  border-radius: var(--cc-radius-panel);
  padding: clamp(1.75rem, 4.5vw, 3.75rem);
  color: var(--white);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(var(--teal-mid-rgb), 0.55) 0%, transparent 70%),
    var(--teal-deep);
}

.cc-eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.95rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.cc-join-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.75rem);
  line-height: 1.07;
  margin-bottom: 1.75rem;
}

.cc-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
  counter-reset: cc-step;
}

.cc-steps li {
  counter-increment: cc-step;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.05rem;
  color: rgba(var(--white-rgb), 0.95);
}

.cc-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--teal-deep);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Numbered by a counter so a hidden step renumbers the rest */
.cc-step-num::before {
  content: counter(cc-step);
}

.cc-join-card {
  background-color: var(--white);
  border-radius: 26px;
  padding: 1.75rem;
  text-align: center;
  max-width: 330px;
  margin: 0 auto;
  box-shadow: 0 24px 48px rgba(var(--black-rgb), 0.25);
}

.cc-join-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--teal-deep);
  margin-bottom: 0.9rem;
}

.cc-qr {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 1.4rem;
}

.cc-join-card-url {
  margin: 0.8rem 0 0;
  font-weight: 700;
  color: var(--teal);
}

/* ---------- Closer + disclaimer ---------- */
.cc-closer-section {
  padding: 0 0 clamp(3rem, 5vw, 4.5rem);
}

.cc-closer {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal);
  text-align: center;
  font-size: clamp(1.2rem, 0.95rem + 1vw, 1.75rem);
  line-height: 1.3;
  max-width: 34ch;
  margin: 0 auto;
}

.cc-disclaimer {
  border-top: 1px solid var(--teal-line);
  padding: 1.5rem 0 2.25rem;
  text-align: center;
}

.cc-disclaimer p {
  margin: 0 auto;
  max-width: 90ch;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--grey);
}

/* ---------- Responsive ---------- */
@media (min-width: 992px) {
  .cc-hero-art {
    display: flex;
    justify-content: flex-end;
  }

  .cc-join-card {
    margin-right: 0;
  }
}

@media (max-width: 991.98px) {
  /* A phone cannot scan its own screen: the button carries the join card,
     and the "point the camera at the QR" step goes with the QR */
  .cc-join-qr,
  .cc-steps .cc-step--qr {
    display: none;
  }

  .cc-join-card {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .cc-price-pill {
    display: flex;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
  }

  .cc-price-note {
    padding-left: 1rem;
    font-size: 0.92rem;
  }

  .cc-hero-cta .cc-btn {
    flex: 1 1 100%;
  }

  .cc-card-title {
    font-size: 1rem;
  }

  .cc-chip {
    width: 46px;
    height: 46px;
    margin-bottom: 0.85rem;
  }

  .cc-card p {
    font-size: 0.88rem;
  }
}
