@font-face {
  font-family: "Pepper Neo";
  src: url("../assets/fonts/PepperNeo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pepper Neo";
  src: url("../assets/fonts/PepperNeo-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Pepper Neo";
  src: url("../assets/fonts/PepperNeo-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Pepper Neo";
  src: url("../assets/fonts/PepperNeo-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Pepper Neo";
  src: url("../assets/fonts/PepperNeo-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Pepper Neo";
  src: url("../assets/fonts/PepperNeo-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --pink: #fb48c4;
  --pink-light: #ffe7f7;
  --pink-soft: #ffd3f1;
  --lime: #dbfe03;
  --ink: #303030;
  --gray: #989898;
  --faq-bg: #f4f8f7;
  --gutter: 16px;
  --white: #fff;
  --black: #000;
  --focus: var(--lime);
  --mobile-max: 480px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Pepper Neo", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  /* clip, e não hidden: hidden transformaria o body num container de scroll e quebraria o header sticky */
  overflow-x: clip;
}

h1,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

/* Os ícones do sprite são de traço; fill herda para dentro do <use> */
svg:has(> use) {
  fill: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Header (logo à esquerda, ações à direita, como no Figma) */

.site-header {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-end;
  padding: 40px 16px 16px;
  background: var(--ink);
}

/* "חזרה" (componente Back button 8688:2257): no header no mobile, no hero no desktop.
   Borda como box-shadow inset: o padding já inclui os 1.2px da borda. */
.back-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 7.2px 13.2px 7.2px 15.2px;
  border-radius: 160px;
  box-shadow: inset 0 0 0 1.2px var(--white);
  color: var(--white);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.back-btn > span {
  padding-bottom: 1.5px;
}

/* Seta apontando para a direita (voltar, em RTL) */
.back-btn svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.back-btn--hero {
  display: none;
}

.site-header__actions {
  display: none;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand__wordmark {
  display: block;
  color: var(--pink);
  width: 165px;
  height: 30px;
}

.brand__by {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  font-feature-settings: "ss01" 1;
}

.brand__leumi {
  display: block;
  width: 22px;
  height: 22px;
}

/* Buttons and tags */

.tag {
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.16px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  border: 0;
  border-radius: 160px;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
}

.btn > span {
  padding-bottom: 2px;
}

.btn--primary {
  background: var(--pink);
  color: var(--white);
}

.btn--secondary {
  background: var(--pink-light);
  color: var(--ink);
}

.btn__icon {
  flex: none;
  width: 14px;
  height: 14px;
}

/* Lobby */

.lobby {
  /* Conteúdo ancorado no fundo da tela (Figma 812px: topo em 338px), sem descer além disso em telas altas. */
  --content-top: clamp(24px, 100vh - 474px, 338px);
  --content-top: clamp(24px, 100svh - 474px, 338px);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--content-top) 20px 96px;
}

/* A imagem termina 132px abaixo do topo do conteúdo (470px no Figma), para o gradiente ficar sob o título. */
.lobby__media {
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--content-top) + 132px);
}

.lobby__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0) 35%, var(--black));
}

.lobby__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lobby__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.lobby__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.lobby__title {
  width: 100%;
  color: var(--pink);
  font-weight: 900;
  font-size: 40px;
  line-height: 44px;
  text-align: center;
  font-feature-settings: "ss01" 1;
}

.lobby__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Páginas internas */

.page {
  flex: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

.hero__media {
  order: -1;
  position: relative;
  display: block;
  height: 290px;
  margin-bottom: -72px;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0) 40%, var(--black));
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* z-index explícito: a foto (.hero__media) sobe 72px por cima do título e vem depois na ordem do DOM.
   Com o order:-1 o Chrome já pinta a foto primeiro, mas o Safari do iPhone pintava a foto por cima e
   engolia a linha branca do título. */
.hero__body {
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 900;
  font-feature-settings: "ss01" 1;
}

.hero__eyebrow {
  font-size: 24px;
  line-height: 32px;
}

.hero__headline {
  color: var(--pink);
  font-size: 40px;
  line-height: 44px;
}

.hero__scroll {
  display: none;
}

/* Hero da view "לא סטודנטים" (Figma 8753:2999): carteirinha, título novo e CTA */
.hero__txt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.hero__title--card {
  display: block;
  font-size: 40px;
  line-height: 44px;
}

.hero__title--card span {
  color: var(--pink);
}

.hero__lead {
  font-size: 23px;
  line-height: 34px;
  font-feature-settings: "ss01" 1;
}

.pill-btn.hero__cta {
  gap: 8px;
  width: 100%;
  text-decoration: none;
}

/* A seta fica à esquerda do texto e aponta para o lado, como nos botões da lobby (sem girar) */

body[data-view="non-students"] .hero {
  align-items: center;
  padding: 4px 16px 24px;
}

body[data-view="non-students"] .hero__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 0;
}

/* Seções das páginas internas */

.page {
  background: var(--white);
  color: var(--ink);
}

.hero {
  background: var(--black);
  color: var(--white);
}

.desktop-only {
  display: none;
}

.section-title {
  margin: 0;
  font-weight: 900;
  font-size: 24px;
  line-height: 32px;
  font-feature-settings: "ss01" 1;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  padding: 16px 32px;
  border: 0;
  border-radius: 100px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
}

.pill-btn svg {
  flex: none;
  width: 16px;
  height: 16px;
}

/* Cartões de adesão */

.join {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px var(--gutter);
}

.join__title {
  margin: 0;
  font-weight: 900;
  font-size: 32px;
  line-height: 40px;
  font-feature-settings: "ss01" 1;
}

.join__title-text {
  display: block;
}

.join__title .join__title-accent {
  color: var(--pink);
}

/* Subtítulo só da view "לא סטודנטים" (Figma 8749:18064) */
.join__subtitle {
  margin-top: 8px;
  font-size: 18px;
  line-height: 28px;
  font-feature-settings: "ss01" 1;
}

.join__cards {
  display: flex;
  flex-direction: column;
}

.join-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px 40px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--black);
  color: var(--white);
}

.join-card--loan {
  padding-top: 28px;
}

.join-card__image {
  display: block;
  flex: none;
  width: 200px;
  height: 171.552px;
}

.join-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.join-card--voucher .join-card__image img {
  object-fit: cover;
}

.join-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.join-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.join-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 28px;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
}

.join-card__list svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--pink);
}

/* Divisor "או": ocupa o espaço entre os cartões e fica por cima deles */
.join__or {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
}

.join__or span {
  padding: 8px 24px;
  border-radius: 8px;
  background: var(--pink);
  color: var(--white);
  font-weight: 900;
  font-size: 24px;
  line-height: 32px;
  font-feature-settings: "ss01" 1;
}

/* Benefícios extras */

.extras {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 var(--gutter);
}

.extras ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.extras__accordions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.extras__grid {
  display: none;
}

.extra-acc {
  border-radius: 8px;
  background: var(--pink-light);
}

.extra-acc__heading {
  margin: 0;
  font: inherit;
}

.extra-acc__trigger {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 118px;
  padding: 20px;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
}

.extra-acc__title {
  flex: 1;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
}

.extra-acc__chevron {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--pink);
  border-radius: 100px;
  color: var(--pink);
}

.extra-acc__chevron svg {
  width: 24px;
  height: 24px;
}

.extra-acc__trigger[aria-expanded="true"] .extra-acc__chevron svg {
  transform: rotate(180deg);
}

/* Figma: 16px entre o head e o texto; o trigger já tem 20px de padding embaixo */
.extra-acc__panel {
  margin-top: -4px;
  padding: 0 20px 20px;
}

/* Texto expandido dos benefícios (accordion mobile e popup desktop), vindo de js/content.js */
.extra-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 24px;
  font-feature-settings: "ss01" 1;
}

.extra-details p,
.extra-details ul {
  margin: 0;
}

.extra-details ul {
  padding-inline-start: 24px;
  list-style: disc;
}

.extra-details .extra-details__heading {
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
}

/* Aviso legal do empréstimo: bloco separado e um pouco maior que o texto corrido (referência do Leumi) */
.extra-details .extra-details__warning {
  font-size: 18px;
  line-height: 26px;
}

.extra-details a {
  color: inherit;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

.extra-details .extra-details__more {
  margin-top: 24px;
}

/* --icon-box fica no elemento com [data-extra], onde --icon-size é calculado */
.extra-acc {
  --icon-box: 68px;
}

.extra-acc__icon,
.extra-card__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--icon-box);
  height: var(--icon-box);
}

.extra-acc__icon img,
.extra-card__icon img {
  display: block;
  flex: none;
  width: var(--icon-size, 100%);
  height: var(--icon-size, 100%);
  object-fit: cover;
}

/* Tamanhos do ícone 3D por benefício, como no Figma (relativos à caixa de 68px / 96px) */
[data-extra="checkbook"] {
  --icon-size: calc(var(--icon-box) * 1.1165);
}
[data-extra="shlomo"] {
  --icon-size: calc(var(--icon-box) * 0.7636);
}
[data-extra="mortgage"] {
  --icon-size: calc(var(--icon-box) * 1.1455);
}

/* Vantagens */

.perks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px var(--gutter);
}

.perks__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.perk {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  line-height: 24px;
}

.perk p {
  margin: 0;
}

.perk__title {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
}

.perk__icon {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--pink);
}

.perk__icon--clock {
  height: 24px;
}
.perk__icon--savings {
  height: 32px;
}

/* FAQ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px var(--gutter) 40px;
  background: var(--faq-bg);
}

/* Bordas internas (como o stroke do Figma), sem somar altura */
.faq__item {
  box-shadow: inset 0 1px 0 var(--ink);
}

.faq__item:last-child {
  box-shadow:
    inset 0 1px 0 var(--ink),
    inset 0 -1px 0 var(--ink);
}

.faq__heading {
  margin: 0;
  font: inherit;
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  text-align: start;
  font-feature-settings: "ss01" 1;
  cursor: pointer;
}

.faq__icon {
  flex: none;
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

[aria-expanded="true"] > .faq__icon--plus,
[aria-expanded="false"] > .faq__icon--close {
  display: none;
}

.faq__panel {
  padding: 0 16px 16px;
  font-size: 16px;
  line-height: 24px;
  font-feature-settings: "ss01" 1;
}

.faq__panel > * {
  margin: 0;
}

.faq__panel > * + * {
  margin-top: 24px;
}

.faq__panel ul {
  padding-inline-start: 24px;
}

/* Disclaimers */

.disclaimers {
  padding: 32px var(--gutter);
  font-size: 14px;
  line-height: 22px;
  font-feature-settings: "ss01" 1;
}

.disclaimers p {
  margin: 0;
}

/* Formulário da carteirinha (visual; lógica nas issues 08 e 09) */

.card-form-section {
  padding: 32px var(--gutter);
}

.card-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--black);
  color: var(--white);
}

.card-form__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.card-form__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.card-form__text {
  text-align: start;
  font-feature-settings: "ss01" 1;
}

.card-form__title {
  margin: 0;
  font-weight: 900;
  font-size: 32px;
  line-height: 40px;
}

.card-form__title span {
  color: var(--pink);
}

.card-form__subtitle {
  font-size: 16px;
  line-height: 24px;
}

.card-visual {
  position: relative;
  order: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.card-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--glow-w, 340px);
  height: var(--glow-h, 260px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    closest-side,
    rgb(251 72 196 / 0.95),
    rgb(251 72 196 / 0.5) 35%,
    rgb(251 72 196 / 0.15) 70%,
    rgb(251 72 196 / 0)
  );
}

.card-visual__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190.519px;
  height: 128.277px;
}

.card-visual__card {
  display: block;
  width: 180px;
  height: auto;
  transform: rotate(6deg);
  /* A exportação do Figma vem sem cantos. A instância é o Student Card (1054×621, raio 36) reduzido em escala. */
  border-radius: 3.42% / 5.68%;
  box-shadow: 0 6px 24px rgb(251 72 196 / 0.45);
}

/* A carteirinha é a arte do hero da view "לא סטודנטים" (Figma 8753:3000) */
.card-visual--hero {
  --glow-w: 433.333px;
  --glow-h: 294.667px;
  order: -1;
  padding: 40px 0;
}

.card-visual--hero .card-visual__frame {
  width: 274px;
  height: 180px;
}

.card-visual--hero .card-visual__card {
  width: 260px;
  box-shadow: 0 8.667px 34.667px rgb(251 72 196 / 0.45);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  font-feature-settings: "ss01" 1;
}

.field__input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 2px solid var(--white);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  font-feature-settings: "ss01" 1;
}

.field__input::placeholder {
  color: #8d8d8d;
  opacity: 1;
}

/* Erros: não existem no Figma. Rosa da marca sobre o preto do formulário (6.8:1). */
.field__input[aria-invalid="true"] {
  border-color: var(--pink);
}

.field__error {
  color: var(--pink);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  font-feature-settings: "ss01" 1;
}

/* Vazio, o aviso sai do fluxo (sem somar gap), mas continua no DOM como região aria-live */
.field__error:empty {
  position: absolute;
}

.study-fields.is-invalid .study-option:not(:has(:checked)) {
  box-shadow: inset 0 0 0 1.5px var(--pink);
}

/* Um div role="group", e não <fieldset>: no WebKit a altura de fieldset + legend com conteúdo injetado
   por JS varia de 16 a 32px a mais conforme a ordem de relayout. */
.study-fields {
  margin-top: 12px;
}

.study-fields__options {
  display: grid;
  gap: 8px;
}

/* Recolhido: 3 opções, como no Figma */
.study-fields__options:not(.is-expanded) .study-option:nth-child(n + 4) {
  display: none;
}

.study-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  /* Traço de 1.5px como no Figma: border de 1.5px vira 1px no Chrome em DPR 1 */
  padding: 15.5px 17.5px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-size: 16px;
  line-height: 24px;
  font-feature-settings: "ss01" 1;
  cursor: pointer;
}

/* O radio nativo cobre a opção inteira (clicável e focável) mas fica invisível */
.study-option__input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.study-option:has(:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.study-option__radio {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #8d8d8d;
  border-radius: 50%;
}

/* Estado selecionado: não existe no Figma, derivado das cores da marca */
.study-option:has(:checked) {
  box-shadow: inset 0 0 0 1.5px var(--lime);
}

.study-option:has(:checked) .study-option__radio {
  border-color: var(--lime);
  background: radial-gradient(circle, var(--lime) 45%, transparent 50%);
}

.study-option__text {
  flex: 1;
}

/* O espaço até as opções vem do gap do .field (8px; 10px + 6px no desktop) */
.study-fields__toggle-row {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.study-fields__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11.5px 21.5px;
  border: 0;
  border-radius: 160px;
  box-shadow: inset 0 0 0 1.5px var(--lime);
  background: none;
  color: var(--lime);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
}

.study-fields__toggle svg {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

/* Expandido ("פחות תחומים"): seta para cima, como no Figma */
.study-fields__toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.card-form__required {
  align-self: flex-start;
  margin-top: 12px;
  color: #cdcdcd;
  font-size: 14px;
  line-height: 22px;
  font-feature-settings: "ss01" 1;
}

.card-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 16px 32px;
  border: 0;
  border-radius: 160px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
}

.card-form__submit svg {
  flex: none;
  width: 16px;
  height: 16px;
}

/* Banner QR: só desktop */

.qr {
  display: none;
}

/* Carteirinha pronta (Figma mobile 8417:1567, desktop 8497:2037). Página branca, header só com o logo. */

body[data-view="card"] {
  background: var(--white);
}

body[data-view="card"] .site-header {
  background: var(--white);
  color: var(--ink);
}

.card-ready {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 40px var(--gutter);
  background: var(--white);
  color: var(--ink);
}

/* Mobile: texto, card e botões em sequência (o card fica entre o texto e os botões) */
.card-ready__info {
  display: contents;
}

.card-ready__text {
  order: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
  font-feature-settings: "ss01" 1;
}

.card-ready__title {
  font-weight: 900;
  font-size: 40px;
  line-height: 44px;
}

/* O rosa muda de palavra entre os frames do Figma: no mobile é "מוכנה" */
.card-ready__title-end {
  color: var(--pink);
}

.card-ready__subtitle {
  font-size: 18px;
  line-height: 28px;
}

.card-ready__card {
  order: 2;
  display: block;
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 3.42% / 5.68%;
}

.card-ready__actions {
  order: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 56px;
}

.card-ready__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: 0;
  border-radius: 160px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
}

.card-ready__btn svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.card-ready__btn--save {
  background: var(--pink);
  color: var(--white);
}

.card-ready__btn--again {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
}

/* Barra fixa do mobile (Figma 8437:10717 / 8200:2714). Quando aparece é decidido no js/sticky-cta.js.
   O padding-bottom do footer mobile (104px) reserva o espaço dela. */

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  max-width: var(--mobile-max);
  margin-inline: auto;
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(2px);
  transform: translateY(100%);
  visibility: hidden;
  transition:
    transform 0.3s ease,
    visibility 0.3s;
}

.sticky-cta.is-visible {
  transform: none;
  visibility: visible;
}

/* Sem nenhum botão visível (view "לא סטודנטים" fora do horário de atendimento, enquanto o
   "להשארת פרטים" está fora do ar) a barra viraria uma faixa branca vazia. */
.sticky-cta:not(:has(.sticky-cta__btn:not([hidden]))) {
  display: none;
}

/* Com o teclado aberto o iOS encolhe a visual viewport mas mantém o fixed preso à layout viewport:
   a barra ficava parada no meio da tela, por cima do formulário. Enquanto digita, ela sai. */
.sticky-cta.is-typing {
  transform: translateY(100%);
  visibility: hidden;
}

.sticky-cta__btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 24px 32px;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.16px;
  white-space: nowrap;
  text-decoration: none;
}

.sticky-cta__btn svg {
  flex: none;
  width: 16px;
  height: 16px;
}

/* Os dois botões convivem no horário de atendimento, então cada um tem a sua cor. */
.sticky-cta__btn--call {
  background: var(--pink-light);
  color: var(--ink);
}

.sticky-cta__btn--primary {
  background: var(--pink);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta {
    transition: none;
  }
}

/* Popup (dialog). Tamanhos fixos em px também no desktop: o modal desktop é derivado do mobile. */

html.is-popup-open,
html.is-popup-open body {
  overflow: hidden;
}

.popup {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 48px 16px;
  border: 0;
  background: rgb(48 48 48 / 0.6);
  color: var(--ink);
}

.popup[open] {
  display: flex;
  flex-direction: column;
}

.popup::backdrop {
  background: transparent;
}

.popup__panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
  padding: 16px 16px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 16px;
  background: var(--white);
}

.popup__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
}

.popup__logo {
  display: block;
  width: 132px;
  height: 24px;
  color: var(--ink);
}

.popup__close {
  display: flex;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.popup__close svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.popup__offer {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  background: var(--black);
  color: var(--white);
}

.popup__offer--loan {
  padding-inline: 16px;
}

.popup__image {
  display: block;
  width: 186px;
  height: 160px;
}

.popup__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popup .join-card__list {
  gap: 8px;
}

/* min-height: o benefício do שובר quebra linha em 375 (não existe frame mobile dele no Figma) */
.popup .join-card__list li {
  gap: 12px;
  height: auto;
  min-height: 28px;
  font-size: 20px;
  line-height: 28px;
}

.popup .join-card__list svg {
  width: 22px;
  height: 22px;
}

.popup__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popup__intro {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
}

.qa {
  box-shadow: inset 0 -1px 0 var(--ink);
}

.qa__item {
  box-shadow: inset 0 1px 0 var(--ink);
}

.qa__heading {
  margin: 0;
  font: inherit;
}

.qa__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-align: start;
  font-feature-settings: "ss01" 1;
  cursor: pointer;
}

.popup .faq__icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

.qa__panel {
  padding: 0 16px 16px;
  font-size: 16px;
  line-height: 24px;
  font-feature-settings: "ss01" 1;
}

.qa__panel p,
.qa__panel ul {
  margin: 0;
}

.qa__panel ul {
  padding-inline-start: 24px;
}

/* Especificidade dupla: precisa vencer o margin: 0 de `.qa__panel p` */
.qa__panel.qa__panel--spaced > * + *,
.qa__panel .qa__gap {
  margin-top: 24px;
}

.popup__disclaimer {
  flex: none;
  font-size: 14px;
  line-height: 22px;
  font-feature-settings: "ss01" 1;
}

.popup .popup__cta {
  flex: none;
  width: 100%;
  padding: 16px 32px;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.16px;
  text-decoration: none;
}

/* Footer */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 24px 16px 104px;
  background: var(--pink);
}

.site-footer__links {
  display: flex;
  gap: 48px;
}

.site-footer__links a {
  font-size: 16px;
  line-height: 24px;
  font-feature-settings: "ss01" 1;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.site-footer__wordmark {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 264.578 / 48;
}

.site-footer__by {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
}

/* No Figma o "By" usa SimplerPro Leumi (não disponível); a largura fixa mantém o logo no lugar. */
.site-footer__by > span {
  width: 24px;
}

.site-footer__leumi {
  display: block;
  width: 149px;
  height: 29px;
}

/* Popup de benefício extra (só abre no desktop). Figma 8531:2226, frames de 1124px. */

.popup--extra .popup__logo {
  width: 176px;
  height: 32px;
  color: var(--pink);
}

.extra-popup__head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 24px;
}

.extra-popup__icon-box {
  --icon-box: 110px;
  flex: none;
}

.extra-popup__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-box);
  height: var(--icon-box);
}

.extra-popup__icon img {
  display: block;
  flex: none;
  width: var(--icon-size, 100%);
  height: var(--icon-size, 100%);
  object-fit: cover;
}

.extra-popup__title {
  flex: 1;
  margin: 0;
  white-space: pre-line;
  font-weight: 900;
  font-size: 32px;
  line-height: 40px;
  font-feature-settings: "ss01" 1;
}

.extra-popup__body {
  display: flex;
  flex: none;
  align-items: flex-start;
  gap: 64px;
}

.extra-popup__details {
  flex: 1;
  gap: 24px;
}

/* No popup desktop as listas não têm marcador (linhas simples) */
.extra-popup__details ul {
  padding: 0;
  list-style: none;
}

/* Exceção pedida pela PM (12/10): só o popup dos talões de cheques leva marcadores, para facilitar a leitura */
.extra-popup__details[data-extra="checkbook"] ul {
  padding-inline-start: 24px;
  list-style: disc;
}

.popup-qr {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 284px;
  padding: 32px;
  border-radius: 36px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-feature-settings: "ss01" 1;
}

.popup-qr__title {
  margin: 0;
  font-weight: 900;
  font-size: 32px;
  line-height: 40px;
}

.popup-qr__subtitle {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

.popup-qr__code {
  display: block;
  width: 150px;
  height: 150px;
}

/* Mobile/tablet: o QR dos popups de adesão só aparece no desktop (no mobile o CTA faz esse papel) */
.popup__body {
  display: contents;
}

.popup__body .popup-qr {
  display: none;
}

/* Tablet: modal centralizado de 640px, com o layout mobile */

@media (min-width: 768px) {
  .popup[open] {
    align-items: center;
    justify-content: center;
  }

  .popup__panel {
    flex: 0 1 auto;
    width: min(640px, 100%);
    max-height: 100%;
    padding: 24px 32px 32px;
    border-radius: 24px;
  }

  .popup--extra .popup__panel {
    width: min(1124px, 100%);
    gap: 32px;
    padding: 16px 64px 64px;
    border-radius: 36px;
  }
}

/* Desktop: popups de adesão (Figma מענק 8491:2531, הלוואה 8491:2716, שובר 8623:2942), painel de 1124px:
   bloco preto com imagem à esquerda e benefícios à direita; Q&A + coluna de QR; disclaimer com linha; sem CTA */

@media (min-width: 1024px) {
  .popup__panel {
    width: min(1124px, 100%);
    gap: 16px;
    padding: 16px 64px 64px;
    border-radius: 36px;
  }

  .popup__logo {
    width: 176px;
    height: 32px;
  }

  .popup__offer,
  .popup__offer--loan {
    position: relative;
    align-items: flex-start;
    justify-content: center;
    height: 294px;
    padding: 64px;
    overflow: hidden;
    border-radius: 32px;
  }

  /* Imagem própria do desktop, na posição de cada frame do Figma (relativa ao bloco de 996×294) */
  .popup__image {
    position: absolute;
    top: 0;
    left: 9.93%;
    width: 29.52%;
    height: 100%;
  }

  .popup__offer--grant .popup__image {
    top: 5.23%;
    left: 15.06%;
    width: 30.82%;
    height: 89.54%;
  }

  .popup__offer--loan .popup__image {
    top: 8.41%;
    left: 9.22%;
    width: 28.67%;
    height: 83.18%;
  }

  .popup .join-card__list {
    gap: 16px;
    width: 460px;
  }

  .popup .join-card__list li {
    gap: 12px;
    font-size: 24px;
    line-height: 28px;
  }

  .popup .join-card__list svg {
    width: 24px;
    height: 24px;
  }

  .popup__body {
    display: flex;
    align-items: flex-start;
    gap: 64px;
  }

  .popup__body .popup-qr {
    display: flex;
  }

  .popup__content {
    flex: 1;
    min-width: 0;
    gap: 24px;
  }

  .popup__intro {
    font-weight: 900;
    font-size: 32px;
    line-height: 40px;
    font-feature-settings: 'ss01' 1;
  }

  .popup__disclaimer {
    padding-top: 16px;
    box-shadow: inset 0 1px 0 var(--ink);
  }

  .popup .popup__cta {
    display: none;
  }
}

/* Tablet: layout mobile centralizado */

@media (min-width: 768px) and (max-width: 1023.98px) {
  :root {
    /* % resolve no elemento que usa o padding: a coluna de conteúdo fica com 480px */
    --gutter: max(16px, calc((100% - var(--mobile-max)) / 2 + 16px));
  }

  .site-header,
  .site-footer,
  .card-ready {
    padding-inline: var(--gutter);
  }

  .lobby,
  .hero {
    width: 100%;
    max-width: var(--mobile-max);
    margin-inline: auto;
  }
}

/* Desktop: Figma 1920, escala proporcional até 1920px */

@media (min-width: 1024px) {
  :root {
    --u: calc(min(100vw, 1920px) / 1920);
    /* Texto pequeno nunca abaixo de 75% do Figma (em 1024px, 16px viraria ~8.5px). */
    --ut: max(var(--u), 0.75px);
  }

  .site-header {
    align-items: center;
    padding: calc(32 * var(--u)) calc(128 * var(--u));
  }

  /* Nas views internas o header acompanha a rolagem; âncoras param abaixo dele */
  body:not([data-view="lobby"]) .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  html {
    scroll-padding-top: calc(140 * var(--u));
  }

  .sticky-cta {
    display: none;
  }

  /* Carteirinha pronta: card à esquerda (620), texto + botões à direita (589), gap 160, centralizados */
  .card-ready {
    flex-direction: row;
    justify-content: center;
    gap: calc(160 * var(--u));
    height: calc(940 * var(--u));
    padding: 0 0 calc(64 * var(--u));
  }

  .card-ready__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(48 * var(--u));
    width: calc(589 * var(--u));
  }

  .card-ready__text {
    gap: calc(12 * var(--u));
  }

  .card-ready__title {
    font-size: calc(76 * var(--u));
    line-height: calc(76 * var(--u));
  }

  /* Desktop: o rosa é "התעודה שלך" */
  .card-ready__title-start {
    color: var(--pink);
  }

  .card-ready__title-end {
    color: var(--ink);
  }

  .card-ready__subtitle {
    font-size: calc(20 * var(--ut));
    line-height: calc(28 * var(--ut));
  }

  .card-ready__card {
    width: calc(620 * var(--u));
    margin: 0;
    box-shadow: 0 calc(24 * var(--u)) calc(48 * var(--u)) calc(-8 * var(--u))
      rgb(48 48 48 / 0.28);
  }

  .card-ready__actions {
    flex-direction: row;
    gap: calc(16 * var(--u));
    width: auto;
    margin: 0;
  }

  .card-ready__btn {
    width: calc(280 * var(--u));
    gap: calc(8 * var(--u));
    padding: calc(20 * var(--u)) calc(40 * var(--u));
    font-weight: 700;
    font-size: calc(18 * var(--ut));
    line-height: calc(26 * var(--ut));
  }

  .card-ready__btn svg {
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
  }

  .back-btn--header {
    display: none;
  }

  .back-btn--hero {
    display: inline-flex;
    gap: calc(8 * var(--u));
    padding: calc(11.5 * var(--u)) calc(21.5 * var(--u)) calc(11.5 * var(--u))
      calc(25.5 * var(--u));
    box-shadow: inset 0 0 0 calc(1.5 * var(--u)) var(--white);
    font-weight: 400;
    font-size: calc(18 * var(--ut));
    line-height: calc(28 * var(--ut));
    font-feature-settings: "ss01" 1;
  }

  .back-btn--hero svg {
    width: calc(20 * var(--u));
    height: calc(20 * var(--u));
  }

  .brand {
    gap: calc(4 * var(--u));
  }

  .brand__wordmark {
    width: calc(264.578 * var(--u));
    height: calc(48 * var(--u));
  }

  .brand__by {
    gap: calc(8 * var(--u));
    font-size: calc(26 * var(--ut));
    line-height: calc(32 * var(--ut));
  }

  .brand__leumi {
    width: calc(29 * var(--u));
    height: calc(29 * var(--u));
  }

  .tag {
    padding: calc(8 * var(--u)) calc(20 * var(--u));
    font-weight: 700;
    font-size: calc(24 * var(--ut));
    line-height: calc(28 * var(--ut));
    letter-spacing: 0;
    font-feature-settings: "ss01" 1;
  }

  .btn {
    padding: calc(20 * var(--u)) calc(40 * var(--u));
    gap: calc(8 * var(--u));
    font-weight: 700;
    font-size: calc(18 * var(--ut));
    line-height: calc(26 * var(--ut));
  }

  .btn > span {
    padding-bottom: 0;
  }

  .btn__icon {
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
  }

  .lobby {
    flex-direction: row;
    align-items: center;
    gap: calc(96 * var(--u));
    padding: 0;
    padding-inline-start: calc(128 * var(--u));
  }

  .lobby__media {
    position: relative;
    inset: auto;
    flex: none;
    order: 2;
    align-self: stretch;
    width: calc(1060 * var(--u));
    height: auto;
  }

  .lobby__media::after {
    background: linear-gradient(
      to right,
      rgb(0 0 0 / 0) 45.453%,
      rgb(0 0 0 / 0.7) 80.519%,
      var(--black)
    );
  }

  .lobby__image {
    position: absolute;
    inset: 0;
    object-position: 100% 0;
  }

  .lobby__content {
    flex: 1;
    gap: calc(48 * var(--u));
  }

  .lobby__text {
    gap: calc(24 * var(--u));
  }

  .lobby__title {
    font-size: calc(88 * var(--u));
    line-height: calc(96 * var(--u));
  }

  .lobby__buttons {
    gap: calc(16 * var(--u));
    width: calc(480 * var(--u));
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    gap: calc(32 * var(--u));
  }

  .header-contact {
    display: flex;
    align-items: center;
    gap: calc(8 * var(--u));
    font-weight: 500;
    font-size: calc(18 * var(--ut));
    line-height: calc(26 * var(--ut));
    letter-spacing: calc(0.18 * var(--ut));
  }

  .header-contact__label {
    color: var(--gray);
  }

  .header-contact__phone {
    display: flex;
    align-items: center;
    gap: calc(4 * var(--u));
    text-decoration: none;
  }

  .header-contact__icon {
    width: calc(18 * var(--u));
    height: calc(18 * var(--u));
  }

  .btn--header {
    width: auto;
    padding: calc(16 * var(--u)) calc(32 * var(--u));
    font-weight: 500;
    font-size: calc(16 * var(--ut));
    line-height: calc(24 * var(--ut));
    letter-spacing: calc(0.16 * var(--ut));
    text-decoration: none;
  }

  /* Hero: imagem colada à esquerda (826) + texto (942, com 128 de margem à direita), como no Figma */
  .hero {
    flex-direction: row;
    align-items: center;
    gap: calc(24 * var(--u));
    height: calc(865 * var(--u));
    padding: 0;
    padding-inline-start: calc(128 * var(--u));
    overflow: hidden;
  }

  .hero__media {
    flex: none;
    order: 2;
    width: calc(826 * var(--u));
    height: 100%;
    margin: 0;
  }

  .hero__media::after {
    background: linear-gradient(
      to left,
      var(--black) 1.214%,
      rgb(0 0 0 / 0) 24.551%
    );
  }

  .hero__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(64 * var(--u));
    flex: 1;
    min-width: 0;
    padding: calc(32 * var(--u)) 0 0;
  }

  .hero__title {
    gap: calc(16 * var(--u));
  }

  .hero__eyebrow {
    font-size: calc(56 * var(--u));
    line-height: calc(64 * var(--u));
  }

  .hero__headline {
    font-size: calc(100 * var(--u));
    line-height: calc(100 * var(--u));
  }

  .hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(8 * var(--u));
    font-weight: 500;
    font-size: calc(16 * var(--ut));
    line-height: calc(24 * var(--ut));
    text-align: center;
  }

  .hero__scroll-icon {
    display: block;
    width: calc(48 * var(--u));
    height: calc(48 * var(--u));
  }

  /* Hero "לא סטודנטים" (Figma 8487:12998): carteirinha (826) + texto (942) */
  body[data-view="non-students"] .hero {
    padding: 0;
    padding-inline-start: calc(128 * var(--u));
  }

  body[data-view="non-students"] .hero__body {
    gap: calc(64 * var(--u));
    width: auto;
    padding: calc(32 * var(--u)) 0 0;
  }

  .hero__txt {
    gap: calc(24 * var(--u));
    text-align: start;
  }

  .hero__title--card {
    font-size: calc(76 * var(--u));
    line-height: calc(76 * var(--u));
  }

  .hero__lead {
    font-size: calc(24 * var(--ut));
    line-height: calc(34 * var(--ut));
  }

  .pill-btn.hero__cta {
    gap: calc(8 * var(--u));
    width: calc(360 * var(--u));
    height: calc(64 * var(--u));
    padding: calc(20 * var(--u)) calc(40 * var(--u));
    border-radius: calc(160 * var(--u));
    font-size: calc(16 * var(--ut));
    line-height: calc(24 * var(--ut));
  }

  .pill-btn.hero__cta svg {
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
  }

  .site-footer {
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    min-height: calc(791 * var(--u));
    padding: calc(128 * var(--u)) calc(128 * var(--u)) calc(96 * var(--u));
  }

  .site-footer__links {
    gap: calc(50 * var(--u));
  }

  .site-footer__links a {
    font-size: calc(16 * var(--ut));
    line-height: calc(24 * var(--ut));
  }

  .site-footer__by {
    gap: calc(16 * var(--u));
    font-size: calc(32 * var(--ut));
    line-height: calc(24 * var(--ut));
  }

  .site-footer__by > span {
    width: calc(38 * var(--ut));
  }

  .site-footer__leumi {
    width: calc(246.521 * var(--u));
    height: calc(48 * var(--u));
  }

  .desktop-only {
    display: initial;
  }

  .mobile-only {
    display: none;
  }

  .section-title {
    font-size: calc(48 * var(--u));
    line-height: calc(56 * var(--u));
  }

  .pill-btn {
    gap: calc(4 * var(--u));
    height: calc(56 * var(--u));
    padding: calc(16 * var(--u)) calc(32 * var(--u));
    font-size: calc(16 * var(--ut));
    line-height: calc(24 * var(--ut));
  }

  .pill-btn svg {
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
  }

  /* Cartões de adesão: título fixo à direita (642) + coluna de cartões à esquerda (926) */
  .join {
    flex-direction: row;
    align-items: flex-start;
    gap: calc(96 * var(--u));
    padding: calc(128 * var(--u)) calc(128 * var(--u)) calc(64 * var(--u));
  }

  .join__intro {
    position: sticky;
    top: 0;
    flex: none;
    width: calc(642 * var(--u));
    padding: calc(128 * var(--u)) 0;
  }

  .join__title {
    font-size: calc(76 * var(--u));
    line-height: calc(76 * var(--u));
  }

  .join__title .join__title-accent {
    display: block;
  }

  .join__subtitle {
    margin-top: calc(24 * var(--u));
    font-size: calc(20 * var(--ut));
    line-height: calc(28 * var(--ut));
  }

  .join__cards {
    flex: none;
    width: calc(926 * var(--u));
  }

  .join__or {
    height: calc(32 * var(--u));
  }

  .join__or span {
    width: calc(122 * var(--u));
    padding: calc(10 * var(--u));
    font-size: calc(56 * var(--u));
    line-height: calc(64 * var(--u));
    text-align: center;
  }

  .join-card {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: calc(64 * var(--u));
    border-radius: calc(32 * var(--u));
  }

  .join-card__image {
    position: absolute;
    left: calc(var(--x) * var(--u));
    top: calc(var(--y) * var(--u));
    width: calc(var(--w) * var(--u));
    height: calc(var(--h) * var(--u));
  }

  .join-card--grant .join-card__image {
    --x: 82;
    --y: 35.2;
    --w: 368;
    --h: 315.6;
  }
  .join-card--loan .join-card__image {
    --x: 89;
    --y: 41.2;
    --w: 346;
    --h: 296.7;
  }
  .join-card--voucher .join-card__image {
    --x: 70.5;
    --y: -2;
    --w: 379;
    --h: 379;
  }

  .join-card__body {
    position: relative;
    align-items: flex-start;
    gap: calc(32 * var(--u));
    width: calc(460 * var(--u));
  }

  .join-card__list {
    gap: calc(16 * var(--u));
  }

  .join-card__list li {
    gap: calc(12 * var(--u));
    height: calc(28 * var(--u));
    font-size: calc(24 * var(--ut));
    line-height: calc(28 * var(--ut));
    font-feature-settings: "ss01" 1;
  }

  .join-card__list svg {
    width: calc(24 * var(--u));
    height: calc(24 * var(--u));
  }

  /* Benefícios extras: grid de cards */
  .extras {
    gap: calc(40 * var(--u));
    padding: calc(64 * var(--u)) calc(128 * var(--u));
  }

  .extras__accordions {
    display: none;
  }

  .extras__grid {
    display: grid;
    grid-template-columns: repeat(var(--extras-columns, 5), minmax(0, 1fr));
    gap: calc(16 * var(--u));
  }

  /* Não estudante: cards de largura fixa (402) alinhados à direita */
  .extras--narrow .extras__grid {
    grid-template-columns: repeat(auto-fill, calc(402 * var(--u)));
  }

  .extra-card {
    --icon-box: calc(96 * var(--u));
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(288 * var(--u));
    padding: calc(24 * var(--u)) calc(20 * var(--u));
    border-radius: calc(8 * var(--u));
    background: var(--pink-light);
  }

  .extra-card__title {
    margin: calc(16 * var(--u)) 0 calc(16 * var(--u));
    font-weight: 700;
    font-size: calc(23 * var(--ut));
    line-height: calc(28 * var(--ut));
    text-align: center;
    font-feature-settings: "ss01" 1;
  }

  .extra-card[data-extra="mortgage"] .extra-card__title {
    margin-top: calc(4 * var(--u));
  }

  .extra-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(4 * var(--u));
    width: calc(158 * var(--u));
    height: calc(40 * var(--u));
    margin-top: auto;
    padding: calc(8 * var(--u)) calc(24 * var(--u));
    border: 0;
    border-radius: 100px;
    background: var(--lime);
    color: var(--ink);
    font-weight: 500;
    font-size: calc(16 * var(--ut));
    line-height: calc(24 * var(--ut));
    white-space: nowrap;
    cursor: pointer;
  }

  .extra-card__more svg {
    flex: none;
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
  }

  /* Vantagens: 4 colunas */
  .perks {
    gap: calc(40 * var(--u));
    padding: calc(64 * var(--u)) calc(128 * var(--u)) calc(128 * var(--u));
  }

  .perks__list {
    flex-direction: row;
    gap: calc(20 * var(--u));
  }

  .perk {
    flex: 1;
    gap: calc(16 * var(--u));
    font-size: calc(20 * var(--ut));
    line-height: calc(28 * var(--ut));
    font-feature-settings: "ss01" 1;
  }

  .perk__title {
    font-size: calc(24 * var(--ut));
    line-height: calc(28 * var(--ut));
  }

  .perk__icon {
    width: calc(28 * var(--u));
    height: calc(28 * var(--u));
  }

  .perk__icon--clock {
    height: calc(24 * var(--u));
  }
  .perk__icon--savings {
    height: calc(32 * var(--u));
  }

  /* FAQ */
  .faq {
    gap: calc(40 * var(--u));
    padding: calc(64 * var(--u)) calc(128 * var(--u)) calc(96 * var(--u));
  }

  .faq__trigger {
    padding: calc(16 * var(--u)) calc(20 * var(--u));
    font-size: calc(20 * var(--ut));
    line-height: calc(28 * var(--ut));
  }

  .faq__icon {
    width: calc(24 * var(--u));
    height: calc(24 * var(--u));
    stroke-width: 2;
  }

  .faq__panel {
    padding: 0 calc(16 * var(--u)) calc(16 * var(--u));
    font-size: calc(20 * var(--ut));
    line-height: calc(28 * var(--ut));
  }

  .faq__panel > * + * {
    margin-top: calc(28 * var(--ut));
  }

  .faq__panel ul {
    padding-inline-start: calc(30 * var(--ut));
  }

  .disclaimers {
    padding: calc(64 * var(--u)) calc(128 * var(--u));
    font-size: max(12px, calc(14 * var(--u)));
    line-height: max(19px, calc(22 * var(--u)));
  }

  /* Formulário da carteirinha: título em cima, campo "שם מלא" (480) alinhado ao início */
  .card-form-section {
    padding: calc(64 * var(--u)) calc(128 * var(--u));
  }

  .card-form {
    padding: calc(96 * var(--u));
    border-radius: calc(32 * var(--u));
  }

  .card-form__top {
    gap: 0;
  }

  .card-form__intro {
    gap: calc(56 * var(--u));
  }

  .card-form__intro > .field {
    width: calc(480 * var(--u));
  }

  .card-form__text {
    display: flex;
    flex-direction: column;
    gap: calc(16 * var(--u));
    text-align: start;
  }

  .card-form__title {
    font-size: calc(48 * var(--u));
    line-height: calc(56 * var(--u));
  }

  .card-form__subtitle {
    font-size: calc(20 * var(--ut));
    line-height: calc(28 * var(--ut));
  }

  .card-visual {
    --glow-w: calc(718.381 * var(--u));
    --glow-h: calc(549.35 * var(--u));
    order: 0;
    flex: none;
    width: calc(550 * var(--u));
    padding: calc(35.106 * var(--u)) 0;
  }

  .card-visual__frame {
    width: calc(402.349 * var(--u));
    height: calc(269.174 * var(--u));
  }

  .card-visual__card {
    width: calc(380.319 * var(--u));
    box-shadow: 0 calc(12.677 * var(--u)) calc(50.709 * var(--u))
      rgb(251 72 196 / 0.45);
  }

  .card-visual--hero {
    --glow-w: calc(820 * var(--u));
    --glow-h: calc(751.111 * var(--u));
    flex: none;
    order: 2;
    width: calc(826 * var(--u));
    padding: 0;
  }

  .card-visual--hero .card-visual__frame {
    width: calc(549.176 * var(--u));
    height: calc(361 * var(--u));
  }

  .card-visual--hero .card-visual__card {
    width: calc(522 * var(--u));
    box-shadow: 0 calc(17.4 * var(--u)) calc(69.6 * var(--u))
      rgb(251 72 196 / 0.45);
  }

  .field {
    gap: calc(10 * var(--u));
  }

  .field__label {
    font-size: calc(18 * var(--ut));
    line-height: calc(26 * var(--ut));
    font-feature-settings: normal;
  }

  .field__input {
    height: calc(64 * var(--u));
    padding: 0 calc(20 * var(--u));
    font-size: calc(20 * var(--ut));
    line-height: calc(28 * var(--ut));
  }

  .field__error {
    font-size: calc(16 * var(--ut));
    line-height: calc(24 * var(--ut));
  }

  .study-fields {
    margin-top: calc(56 * var(--u));
  }

  /* gap de 10 + 6 = 16 do Figma */
  .study-fields > .field__label {
    margin-bottom: calc(6 * var(--u));
  }

  .study-fields__options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(12 * var(--u)) calc(16 * var(--u));
  }

  .study-option {
    gap: calc(16 * var(--u));
    padding: calc(19.5 * var(--u)) calc(21.5 * var(--u));
    font-size: calc(20 * var(--ut));
    line-height: calc(28 * var(--ut));
  }

  .study-option__radio {
    width: calc(24 * var(--u));
    height: calc(24 * var(--u));
  }

  .study-fields__toggle-row {
    margin-top: calc(6 * var(--u));
    padding-top: calc(8 * var(--u));
  }

  .study-fields__toggle {
    gap: calc(8 * var(--u));
    padding: calc(13.5 * var(--u)) calc(25.5 * var(--u));
    font-weight: 400;
    font-size: calc(18 * var(--ut));
    line-height: calc(28 * var(--ut));
    font-feature-settings: "ss01" 1;
  }

  .study-fields__toggle svg {
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
  }

  .card-form__required {
    margin-top: calc(16 * var(--u));
    font-size: max(12px, calc(14 * var(--u)));
    line-height: max(19px, calc(22 * var(--u)));
  }

  .card-form__submit {
    gap: calc(8 * var(--u));
    width: calc(400 * var(--u));
    margin-top: calc(56 * var(--u));
    padding: calc(16 * var(--u)) calc(32 * var(--u));
    font-weight: 700;
    font-size: calc(18 * var(--ut));
    line-height: calc(26 * var(--ut));
  }

  .card-form__submit svg {
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
  }

  /* Banner QR */
  .qr {
    display: block;
    padding: calc(64 * var(--u)) calc(128 * var(--u)) calc(128 * var(--u));
  }

  .qr__banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: calc(772 * var(--u));
    padding: calc(96 * var(--u));
    overflow: hidden;
    border-radius: calc(32 * var(--u));
    color: var(--white);
  }

  .qr__photo,
  .qr__banner::after {
    position: absolute;
    inset: 0;
  }

  .qr__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .qr__banner::after {
    content: "";
    background: linear-gradient(
      to left,
      var(--black) 6.203%,
      rgb(0 0 0 / 0) 41.351%
    );
  }

  .qr__wordmark,
  .qr__content {
    position: relative;
    z-index: 1;
  }

  .qr__wordmark {
    display: block;
    width: calc(178 * var(--u));
    height: calc(32 * var(--u));
    color: var(--pink);
  }

  .qr__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(16 * var(--u));
  }

  .qr__title {
    width: calc(528.747 * var(--u));
    margin: 0;
    font-weight: 900;
    font-size: calc(76 * var(--u));
    line-height: calc(72 * var(--u));
  }

  .qr__subtitle {
    font-size: calc(32 * var(--ut));
    line-height: calc(40 * var(--ut));
    white-space: nowrap;
    font-feature-settings: "ss01" 1;
  }

  .qr__code {
    display: block;
    width: calc(150 * var(--u));
    height: calc(150 * var(--u));
  }
}

/* Animações. Hover só muda cor; todo movimento fica em no-preference, então reduced motion desliga tudo.
   A altura dos accordions e a saída dos popups são animadas em JS (js/accordion.js, js/popup.js). */

@media (hover: hover) {
  .btn:hover,
  .sticky-cta__btn:hover,
  .card-ready__btn--save:hover,
  .card-form__submit:hover,
  .extra-card__more:hover {
    filter: brightness(0.93);
  }

  .back-btn:hover,
  .card-ready__btn--again:hover,
  .study-fields__toggle:hover {
    background-color: color-mix(in srgb, currentColor 12%, transparent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .back-btn,
  .sticky-cta__btn,
  .card-ready__btn,
  .card-form__submit,
  .study-fields__toggle,
  .extra-card__more {
    transition:
      filter 0.15s ease,
      background-color 0.15s ease,
      transform 0.15s ease;
  }

  .btn:active,
  .back-btn:active,
  .sticky-cta__btn:active,
  .card-ready__btn:active,
  .card-form__submit:active,
  .study-fields__toggle:active,
  .extra-card__more:active {
    transform: scale(0.97);
  }

  .extra-acc__chevron svg,
  .study-fields__toggle svg {
    transition: transform 0.25s ease;
  }

  .popup[open] {
    animation: popup-backdrop-in 0.25s ease-out;
  }

  .popup[open] .popup__panel {
    animation: popup-panel-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  /* Seções abaixo da dobra (js/reveal.js) */
  .is-reveal-pending {
    opacity: 0;
    transform: translateY(32px);
  }

  .page > section {
    transition:
      opacity 0.6s ease-out,
      transform 0.6s ease-out;
  }
}

@keyframes popup-backdrop-in {
  from {
    background-color: transparent;
  }
}

@keyframes popup-panel-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
