
    :root {
      --bg: #f3f7f7;
      --ink: #122127;
      --muted: #5d6b70;
      --brand: #0e8f83;
      --brand-strong: #096b62;
      --accent: #ee7f3b;
      --line: rgba(18, 33, 39, 0.1);
      --shadow: 0 20px 45px rgba(9, 41, 49, 0.12);
      --card: #ffffff;
    }

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

    body {
      font-family: 'Manrope', sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 8% 5%, rgba(14, 143, 131, 0.18), transparent 28%),
        radial-gradient(circle at 95% 10%, rgba(238, 127, 59, 0.16), transparent 24%),
        linear-gradient(180deg, #f8fbfb 0%, var(--bg) 75%);
      min-height: 100vh;
      overflow-x: hidden;
    }

    .shell {
      width: min(1140px, 94%);
      margin: 0 auto;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(8px);
      background: rgba(248, 251, 251, 0.78);
      border-bottom: 1px solid var(--line);
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 0;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--ink);
      font-family: 'Sora', sans-serif;
      font-weight: 700;
      letter-spacing: 0.2px;
    }

    .brand-badge {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: linear-gradient(145deg, var(--brand), #0fb8a9);
      color: #fff;
      font-weight: 800;
    }

    nav {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
    }

    nav a {
      text-decoration: none;
      color: var(--ink);
      padding: 9px 13px;
      border-radius: 999px;
      font-size: 0.95rem;
      font-weight: 600;
      transition: background 0.2s ease, color 0.2s ease;
    }

    nav a:hover,
    nav a.active {
      background: rgba(14, 143, 131, 0.13);
      color: var(--brand-strong);
    }

    main {
      padding: 54px 0 68px;
    }

    .hero {
      margin-bottom: 18px;
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 24px;
      background: linear-gradient(180deg, #ffffff, #f7fbfb);
      box-shadow: var(--shadow);
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid rgba(14, 143, 131, 0.26);
      color: var(--brand-strong);
      background: rgba(14, 143, 131, 0.08);
      font-weight: 700;
      font-size: 0.84rem;
      margin-bottom: 12px;
    }

    h1,
    h2,
    h3 {
      font-family: 'Sora', sans-serif;
    }

    h1 {
      font-size: clamp(1.8rem, 3vw, 2.35rem);
      margin-bottom: 8px;
    }

    .hero p {
      color: var(--muted);
      line-height: 1.7;
      max-width: 67ch;
    }

    .plans {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin: 18px 0 20px;
      align-items: stretch;
    }

    .plan-card {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--card);
      padding: 18px;
      box-shadow: 0 8px 20px rgba(8, 37, 44, 0.06);
      display: flex;
      flex-direction: column;
      gap: 10px;
      height: 100%;
    }

    .plan-card.featured {
      border: 2px solid rgba(14, 143, 131, 0.45);
      position: relative;
      transform: translateY(-6px);
      box-shadow: 0 16px 36px rgba(8, 37, 44, 0.12);
    }

    .plan-card-test {
      border-color: rgba(238, 127, 59, 0.35);
      background: linear-gradient(180deg, #fffdf8, #ffffff);
    }

    .tag {
      font-size: 0.75rem;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(130deg, var(--accent), #f6a060);
      width: fit-content;
      padding: 5px 8px;
      border-radius: 999px;
      letter-spacing: 0.2px;
    }

    .tag-popular {
      background: linear-gradient(130deg, var(--brand), #0fb8a9);
    }

    .plan-name {
      font-size: 1.12rem;
      margin-bottom: 2px;
    }

    .price {
      display: flex;
      align-items: baseline;
      gap: 6px;
    }

    .price strong {
      font-family: 'Sora', sans-serif;
      font-size: 1.75rem;
      line-height: 1;
    }

    .price span {
      color: var(--muted);
      font-size: 0.92rem;
      font-weight: 700;
    }

    .plan-note {
      color: var(--muted);
      line-height: 1.55;
      font-size: 0.92rem;
      min-height: 45px;
    }

    .features {
      list-style: none;
      display: grid;
      gap: 8px;
      margin: 4px 0 6px;
      align-content: start;
    }

    .features li {
      font-size: 0.9rem;
      color: #234047;
      line-height: 1.45;
      padding-left: 18px;
      position: relative;
    }

    .features li::before {
      content: "✓";
      position: absolute;
      left: 0;
      top: 0;
      color: var(--brand);
      font-weight: 800;
    }

    .equivalent {
      font-size: 0.88rem;
      color: var(--brand-strong);
      border: 1px dashed rgba(9, 107, 98, 0.3);
      background: rgba(14, 143, 131, 0.06);
      padding: 8px 10px;
      border-radius: 10px;
      font-weight: 700;
      margin-top: auto;
    }

    .btn {
      border: 0;
      width: 100%;
      text-decoration: none;
      padding: 12px 18px;
      border-radius: 11px;
      font-weight: 800;
      font-size: 0.92rem;
      letter-spacing: 0.2px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .btn-main {
      color: #fff;
      background: linear-gradient(135deg, var(--brand), #0cac9c);
      box-shadow: 0 12px 26px rgba(14, 143, 131, 0.25);
    }

    .btn-soft {
      color: var(--brand-strong);
      background: rgba(14, 143, 131, 0.1);
      border: 1px solid rgba(14, 143, 131, 0.25);
    }

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

    .compare {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: linear-gradient(180deg, #ffffff, #f7fbfb);
      box-shadow: var(--shadow);
      padding: 18px;
      margin-bottom: 18px;
    }

    .compare h2 {
      font-size: 1.2rem;
      margin-bottom: 8px;
    }

    .compare-intro {
      color: var(--muted);
      margin-bottom: 14px;
      line-height: 1.6;
      max-width: 74ch;
    }

    .compare-metrics {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }

    .metric {
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      padding: 12px;
    }

    .metric strong {
      font-family: 'Sora', sans-serif;
      font-size: 1.25rem;
      display: block;
      margin-bottom: 2px;
      color: #17343c;
    }

    .metric span {
      color: var(--muted);
      font-size: 0.88rem;
    }

    .compare table {
      width: 100%;
      border-collapse: collapse;
      overflow: hidden;
      border-radius: 12px;
      background: #fff;
      border: 1px solid var(--line);
    }

    .compare th,
    .compare td {
      text-align: left;
      padding: 11px 12px;
      border-bottom: 1px solid var(--line);
      font-size: 0.93rem;
      vertical-align: middle;
    }

    .compare th {
      background: rgba(14, 143, 131, 0.1);
      font-weight: 800;
    }

    .compare tr:last-child td {
      border-bottom: 0;
    }

    .compare tr.annual-highlight td {
      background: rgba(238, 127, 59, 0.06);
      border-top: 1px solid rgba(238, 127, 59, 0.38);
      border-bottom: 1px solid rgba(238, 127, 59, 0.38);
    }

    .compare tr.annual-highlight td:first-child {
      border-left: 2px solid rgba(238, 127, 59, 0.55);
      border-top-left-radius: 12px;
      border-bottom-left-radius: 12px;
    }

    .compare tr.annual-highlight td:last-child {
      border-right: 2px solid rgba(238, 127, 59, 0.55);
      border-top-right-radius: 12px;
      border-bottom-right-radius: 12px;
    }

    .plan-chip {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 4px 10px;
      font-weight: 800;
      font-size: 0.78rem;
      letter-spacing: 0.2px;
    }

    .chip-base {
      color: #33525a;
      background: rgba(51, 82, 90, 0.12);
    }

    .chip-popular {
      color: #0f5f55;
      background: rgba(14, 143, 131, 0.16);
    }

    .chip-best {
      color: #8a3f10;
      background: rgba(238, 127, 59, 0.2);
    }

    .saving-wrap {
      min-width: 180px;
    }

    .saving-text {
      display: block;
      font-weight: 700;
      color: #1f3f47;
      margin-bottom: 4px;
      font-size: 0.86rem;
    }

    .saving-track {
      height: 8px;
      border-radius: 999px;
      background: rgba(18, 33, 39, 0.1);
      overflow: hidden;
    }

    .saving-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(130deg, var(--brand), #0fb8a9);
    }

    .saving-fill.monthly {
      width: 24%;
    }

    .saving-fill.test {
      width: 12%;
      background: linear-gradient(130deg, #33525a, #5d6b70);
    }

    .saving-fill.annual {
      width: 40%;
      background: linear-gradient(130deg, var(--accent), #f6a060);
    }

    .summary {
      margin-top: 12px;
      color: var(--muted);
      line-height: 1.65;
    }

    .summary strong {
      color: var(--brand-strong);
    }

    .actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .actions .btn {
      width: auto;
    }

    @media (max-width: 980px) {
      .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
      }

      nav {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 4px;
      }

      nav a {
        font-size: 0.9rem;
        padding: 8px 11px;
        white-space: nowrap;
        flex: 0 0 auto;
        scroll-snap-align: start;
      }

      .plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .plan-card.featured {
        grid-column: 1 / -1;
        transform: none;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
      }

      #userArea {
        width: 100%;
        justify-content: space-between;
      }
    }

    @media (max-width: 620px) {
      main {
        padding: 36px 0 52px;
      }

      .hero,
      .compare {
        padding: 16px;
      }

      .compare {
        overflow-x: hidden;
      }

      .compare-metrics {
        grid-template-columns: 1fr;
      }

      /* Tabela responsiva: transforma linhas em cards */
      .compare table {
        border: none;
        background: transparent;
      }

      .compare thead {
        display: none;
      }

      .compare tbody,
      .compare tr,
      .compare td {
        display: block;
        width: 100%;
      }

      .compare tr {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        margin-bottom: 12px;
        overflow: hidden;
      }

      .compare tr.annual-highlight {
        border: 2px solid rgba(238, 127, 59, 0.55);
        background: rgba(238, 127, 59, 0.04);
      }

      .compare tr.annual-highlight td {
        background: transparent;
        border-top: none;
        border-bottom: 1px solid rgba(238, 127, 59, 0.15);
        border-left: none;
        border-right: none;
        border-radius: 0;
      }

      .compare tr.annual-highlight td:first-child,
      .compare tr.annual-highlight td:last-child {
        border: none;
        border-bottom: 1px solid rgba(238, 127, 59, 0.15);
        border-radius: 0;
      }

      .compare tr.annual-highlight td:last-child {
        border-bottom: none;
      }

      .compare tr:last-child td {
        border-bottom: 1px solid var(--line);
      }

      .compare tr:last-child td:last-child {
        border-bottom: none;
      }

      .compare td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
      }

      .compare td:last-child {
        border-bottom: none;
      }

      .compare td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        flex-shrink: 0;
        margin-right: 12px;
      }

      .compare td .saving-wrap {
        text-align: right;
      }

      .saving-wrap {
        min-width: 0;
      }

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

      .plan-card.featured {
        grid-column: auto;
        max-width: 100%;
      }

      .actions {
        flex-direction: column;
      }

      .actions .btn {
        width: 100%;
        justify-content: center;
      }

      .user-pill span {
        display: none;
      }
    }

    @media (max-width: 420px) {
      main {
        padding: 24px 0 36px;
      }

      .hero,
      .compare {
        padding: 12px;
      }

      .shell {
        width: min(100%, calc(100% - 20px));
      }

      #userArea {
        align-items: stretch;
        flex-direction: column;
      }

      .user-pill,
      #btnLogout {
        width: 100%;
        justify-content: center;
      }

      h1 {
        font-size: 1.45rem;
      }

      .plan-card {
        padding: 14px;
      }

      .price strong {
        font-size: 1.65rem;
      }

      .compare th,
      .compare td {
        font-size: 0.76rem;
      }
    }

    .reveal-section {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .reveal-section.visible {
      opacity: 1;
      transform: translateY(0);
    }
  
.is-hidden {
  display: none !important;
}

#userArea {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(18, 33, 39, 0.1);
  border-radius: 999px;
  padding: 7px 13px 7px 9px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f3840;
}

#avatarInitial {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0e8f83, #0fb8a9);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

#btnLogout {
  border: 1px solid rgba(192, 57, 43, 0.3);
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.saving-fill {
  width: 0%;
}
