/* ============================================================================
   Fim do Portunhol no Trabalho — Landing page UI kit
   Faithful recreation of the Figma "Modelo" frame. Tokens from tokens.css
   (generated copy of /colors_and_type.css — see build step).
   ============================================================================ */
@import url('tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--et-font-body);
  color: var(--et-text);
  background: var(--et-ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.et-container { width: min(1200px, 100% - 80px); margin-inline: auto; }
@media (max-width: 720px) { .et-container { width: min(1200px, 100% - 40px); } }

/* Generic line icon (CSS mask so it can be tinted with currentColor).
   Modifier classes (.ic-*) set the mask-image; url()s resolve relative to THIS
   stylesheet, so they bundle cleanly into a standalone file. */
.icon { display: inline-block; width: 1em; height: 1em; background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain; }
.ic-arrow     { -webkit-mask-image: url(../assets/icons/arrow-right.svg); mask-image: url(../assets/icons/arrow-right.svg); }
.ic-check     { -webkit-mask-image: url(../assets/icons/check.svg);       mask-image: url(../assets/icons/check.svg); }
.ic-gift      { -webkit-mask-image: url(../assets/icons/gift.svg);        mask-image: url(../assets/icons/gift.svg); }
.ic-star      { -webkit-mask-image: url(../assets/icons/star.svg);        mask-image: url(../assets/icons/star.svg); }
.ic-meeting   { -webkit-mask-image: url(../assets/icons/meeting.svg);     mask-image: url(../assets/icons/meeting.svg); }
.ic-interview { -webkit-mask-image: url(../assets/icons/interview.svg);   mask-image: url(../assets/icons/interview.svg); }
.ic-edit      { -webkit-mask-image: url(../assets/icons/edit-frame.svg);  mask-image: url(../assets/icons/edit-frame.svg); }

/* ---- Scroll reveal -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--et-ease), transform .7s var(--et-ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--et-font-body); font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: .01em; border: none; border-radius: var(--et-radius-sm);
  padding: 19px 25px; line-height: 1; transition: transform var(--et-dur-fast) var(--et-ease), box-shadow var(--et-dur) var(--et-ease), filter var(--et-dur) var(--et-ease);
}
.btn .icon { width: 14px; height: 14px; }
.btn-primary { background: var(--et-yellow); color: var(--et-ink-800); }
.btn-primary:hover { filter: brightness(1.04); box-shadow: 0 8px 24px rgba(255,246,0,0.28); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(.985); box-shadow: none; }
.btn-block { width: 100%; }

/* CTA with typing-swap label: keeps width stable while characters retype */
.cta-type { position: relative; white-space: pre; }
.cta-ghost { visibility: hidden; }
.cta-live { position: absolute; left: 0; top: 0; white-space: pre; }
.cta-type .caret { display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 1px; vertical-align: -2px; opacity: 0; }
.cta-typing .caret { opacity: 1; animation: caretBlink .8s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; background: var(--et-ink-900); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: none }
.hero__model { position: absolute; right: clamp(-120px, 18vw, 0px); bottom: -2%; height: 96%; width: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.hero__inner { position: relative; z-index: 2; display: grid; align-items: center; min-height: 760px; padding: 120px 0 90px; }
.hero__logo { height: 25vh; width: auto; margin-bottom: 56px; }
.hero__title { max-width: 640px; color: var(--et-white); }
.hero__lead { max-width: 560px; margin-top: 26px; color: var(--et-fg-muted-dk); }
.hero__cta { margin-top: 38px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero__trust { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 14px; }
.hero__trust .hot { font-family: var(--et-font-display); letter-spacing: .02em; font-size: 18px; }
.hero__trust .sep { width: 1px; height: 16px; background: rgba(255,255,255,.5); }
@media (max-width: 920px) { .hero__model { opacity: .35; height: 78%; } .hero__inner { min-height: 620px; } }

/* ---- Marquee -------------------------------------------------------------- */
.marquee { background: var(--et-yellow); overflow: hidden; padding: 16px 0; display: flex; }
.marquee__track { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap;
  animation: marquee 26s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--et-font-display); font-size: 32px; text-transform: uppercase; color: var(--et-ink-700); }
.marquee__star { width: 18px; height: 18px; flex: none; background: var(--et-ink-700);
  -webkit-mask: url(../assets/icons/star.svg) center/contain no-repeat; mask: url(../assets/icons/star.svg) center/contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---- Section scaffold ----------------------------------------------------- */
.section { padding: 120px 0; }
.section--light { background: var(--et-white); color: var(--et-ink-800); }
.section--dark { background: var(--et-ink-900); color: var(--et-white); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 64px; display: flex; flex-direction: column; gap: 20px; }
.section__head .et-body, .section__head .et-lead { color: inherit; opacity: .85; }
.section--light .section__head .et-body { opacity: 1; }

/* ---- Pain cards ----------------------------------------------------------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { border-radius: var(--et-radius-lg); padding: 40px; color: var(--et-white); transition: transform var(--et-dur) var(--et-ease); }
.pcard:hover { transform: translateY(-6px); }
.pcard--dark { background: var(--et-card); }
.pcard--blue { background: var(--et-blue); }
.pcard__icon { width: 44px; height: 44px; background: var(--et-yellow);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.pcard__icon--meeting   { -webkit-mask-image: url(../assets/icons/meeting.svg);   mask-image: url(../assets/icons/meeting.svg); }
.pcard__icon--interview { -webkit-mask-image: url(../assets/icons/interview.svg); mask-image: url(../assets/icons/interview.svg); }
.pcard__icon--edit      { -webkit-mask-image: url(../assets/icons/edit-frame.svg); mask-image: url(../assets/icons/edit-frame.svg); }
.pcard__title { margin: 26px 0 0; }
.pcard__rule { height: 1px; background: var(--et-border-dark); margin: 18px 0; }
.pcard--blue .pcard__rule { background: rgba(255,255,255,.39); }
.pcard__body { color: var(--et-fg-muted-dk); }

/* ---- Method --------------------------------------------------------------- */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.method__note { position: relative; aspect-ratio: 1 / 1.03; }
.method__note .pad { position: absolute; inset: 0; background: var(--et-yellow-ink); border-radius: var(--et-radius-xl); transform: rotate(5deg); }
.method__note .photo { position: absolute; inset: 0; border-radius: var(--et-radius-xl); background-size: cover; background-position: center; transform: rotate(-1deg); box-shadow: var(--et-shadow-card); }
.method__title { color: var(--et-ink-800); }
.method__list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.method__item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.method__badge { width: 48px; height: 48px; border-radius: 50%; background: var(--et-yellow-ink); display: grid; place-items: center; }
.method__badge .icon { width: 24px; height: 24px; color: var(--et-ink-800); }
.method__item h4 { font-family: var(--et-font-body); font-weight: 700; font-size: 20px; margin: 2px 0 6px; color: var(--et-ink-800); }
.method__item p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--et-fg-muted-lt); }
@media (max-width: 920px) { .method { grid-template-columns: 1fr; gap: 48px; } }

/* ---- Modules -------------------------------------------------------------- */
.mod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mcard { background: var(--et-card); border-left: 4px solid var(--et-yellow); border-radius: 0 var(--et-radius-lg) var(--et-radius-lg) 0;
  padding: 32px 36px; transition: transform var(--et-dur) var(--et-ease), background var(--et-dur) var(--et-ease); }
.mcard:hover { transform: translateX(6px); background: var(--et-ink-700); }
.mcard__num { font-family: var(--et-font-body); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--et-yellow); text-transform: uppercase; }
.mcard__title { margin: 10px 0 12px; }
.mcard__body { color: var(--et-fg-muted-dk); font-size: 15px; line-height: 1.5; }
.center-cta { display: flex; justify-content: center; margin-top: 56px; }

/* ---- Testimonials carousel (coverflow) ------------------------------------ */
/* Cards are absolutely stacked on the track midline and fanned out by a JS-set
   --tx offset; the data-pos tier (set by initCarousel) maps to scale/opacity/z. */
.carousel { position: relative; display: flex; align-items: center; justify-content: center; }
.carousel__viewport { overflow: hidden; width: 100%; max-width: 1100px; margin: 0 auto; }
.carousel__track { position: relative; height: clamp(320px, 40vw, 380px); }
.tcard { position: absolute; top: 50%; left: 50%; width: clamp(280px, 30vw, 420px); box-sizing: border-box;
  transform-origin: center center;
  transform: translate(-50%, -50%) translateX(var(--tx, 0)) scale(var(--scale, 1));
  transition: transform var(--et-dur-slow) var(--et-ease), opacity var(--et-dur-slow) var(--et-ease);
  background: var(--et-card); border-radius: var(--et-radius-lg); padding: 34px; min-height: 300px;
  display: flex; flex-direction: column; gap: 18px; }
.tcard[data-pos="center"] { --scale: 1;   opacity: 1;   z-index: 40; box-shadow: var(--et-shadow-lift); cursor: default; }
.tcard[data-pos="near"]   { --scale: .88; opacity: .65; z-index: 30; cursor: pointer; }
.tcard[data-pos="far"]    { --scale: .76; opacity: .35; z-index: 20; cursor: pointer; }
.tcard[data-pos="hidden"] { --scale: .70; opacity: 0;   z-index: 10; pointer-events: none; }
.tcard__stars { color: var(--et-yellow); letter-spacing: 3px; font-size: 15px; }
.tcard__quote { font-family: var(--et-font-body); font-size: 16px; line-height: 1.55; color: var(--et-fg-muted-dk); flex: 1; }
.tcard__who { display: flex; align-items: center; gap: 12px; }
.tcard__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--et-ink-700) center/cover; flex: none; }
.tcard__name { font-weight: 700; font-size: 15px; color: var(--et-white); }
.tcard__role { font-size: 13px; color: var(--et-fg-muted-lt); }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; background: transparent; border: 1.5px solid var(--et-border-dark);
  color: var(--et-white); display: grid; place-items: center; transition: all var(--et-dur) var(--et-ease); }
.carousel__btn:hover { background: var(--et-yellow); color: var(--et-ink-800); border-color: var(--et-yellow); }
.carousel__btn .icon { width: 20px; height: 20px; }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
.carousel__btn--prev .icon { transform: rotate(180deg); }
.carousel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.carousel__dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--et-border-dark); padding: 0; transition: all var(--et-dur); }
.carousel__dots button[aria-current="true"] { background: var(--et-yellow); width: 26px; border-radius: 5px; }

/* ---- Professor ------------------------------------------------------------ */
.prof { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.prof__eyebrow { color: var(--et-yellow); }
.prof__name { margin: 14px 0 24px; }
.prof__bio { color: var(--et-fg-muted-dk); white-space: pre-line; }
.prof__stats { display: flex; gap: 56px; margin-top: 36px; }
.prof__stat .n { font-family: var(--et-font-display); font-size: 50px; color: var(--et-yellow); line-height: 1; }
.prof__stat .l { font-size: 18px; color: var(--et-fg-muted-dk); margin-top: 8px; }
.prof__note { position: relative; aspect-ratio: 3 / 3.5; }
.prof__note .pad { position: absolute; inset: 0; background: var(--et-yellow); border-radius: var(--et-radius-xl); transform: rotate(-4deg); }
.prof__note .photo { position: absolute; inset: 0; border-radius: var(--et-radius-xl); background-size: cover; background-position: top center; transform: rotate(1deg); box-shadow: var(--et-shadow-lift); }
@media (max-width: 920px) { .prof { grid-template-columns: 1fr; gap: 48px; } }

/* ---- Bonus ---------------------------------------------------------------- */
.bonus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bcard { background: var(--et-card); border-radius: var(--et-radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 18px;
  transition: transform var(--et-dur) var(--et-ease); }
.bcard:hover { transform: translateY(-6px); }
.bpill { align-self: flex-start; font-family: var(--et-font-body-alt); font-weight: 700; font-size: 16px; border-radius: var(--et-radius-md); padding: 8px 18px; }
.bpill--y { background: var(--et-yellow); color: var(--et-ink-800); }
.bpill--b { background: var(--et-blue); color: var(--et-white); }
.bcard__title { color: var(--et-white); }
.bcard__body { font-family: var(--et-font-body-alt); color: var(--et-fg-muted-dk); font-size: 15px; line-height: 1.55; }

/* ---- Offer ---------------------------------------------------------------- */
.offer__box { background: var(--et-card); border: 1px solid var(--et-yellow); border-radius: var(--et-radius-lg);
  padding: 50px; display: grid; grid-template-columns: 1fr 1px 1fr; gap: 55px; max-width: 900px; margin: 0 auto; }
.offer__divider { background: rgba(255,255,255,.24); }
.offer h5 { color: var(--et-white); margin-bottom: 26px; }
.offer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 17px; }
.offer__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--et-white); font-size: 16px; }
.offer__bonus { display: flex; align-items: flex-start; gap: 12px; }
.offer__bonus-label { font-weight: 700; white-space: nowrap; }
.offer__bonus span:last-child { flex: 1; }
.offer__list .icon { width: 22px; height: 22px; flex: none; color: var(--et-yellow); margin-top: 1px; }
.offer__price { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; }
.offer__from { color: rgba(255,255,255,.51); font-size: 18px; text-decoration: line-through; }
.offer__apenas { color: rgba(255,255,255,.9); font-size: 16px; }
.offer__cash { color: rgba(255,255,255,.9); font-size: 17px; }
.offer__cta { width: 100%; margin-top: 10px; }
.offer__pay { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .9; margin-top: 8px; }
.offer__pay .row { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.9); font-size: 14px; }
.offer__pay .hot { font-family: var(--et-font-display); font-size: 16px; }
@media (max-width: 820px) { .offer__box { grid-template-columns: 1fr; gap: 36px; } .offer__divider { display: none; } }

/* ---- Guarantee ------------------------------------------------------------ */
.guarantee { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; max-width: 900px; margin: 0 auto; }
.guarantee img { width: 220px; height: auto; }
.guarantee__title { color: var(--et-white); margin-bottom: 18px; }
.guarantee__body { color: var(--et-fg-muted-dk); }
@media (max-width: 720px) { .guarantee { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ---- FAQ ------------------------------------------------------------------ */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq__item { border-bottom: 1px solid var(--et-border-light); }
.faq__q { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; text-align: left; }
.faq__q .et-h4 { color: var(--et-ink-800); }
.faq__sign { width: 24px; height: 24px; position: relative; flex: none; }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--et-ink-icon);
  transform: translate(-50%, -50%); transition: transform var(--et-dur) var(--et-ease), opacity var(--et-dur); }
.faq__sign::before { width: 14px; height: 2px; }
.faq__sign::after { width: 2px; height: 14px; }
.faq__item.open .faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a { overflow: hidden; max-height: 0; transition: max-height var(--et-dur-slow) var(--et-ease); }
.faq__a p { margin: 0; padding: 0 0 26px; color: var(--et-ink-800); font-size: 16px; line-height: 1.56; max-width: 760px; }

/* ---- Footer --------------------------------------------------------------- */
.footer { background: var(--et-ink-900); padding: 40px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer__logo { height: 56px; width: auto; }
.footer__meta { text-align: right; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.7; }
.footer__meta a:hover { color: var(--et-yellow); }
@media (max-width: 640px) { .footer__inner { flex-direction: column; text-align: center; } .footer__meta { text-align: center; } }

/* ---- Back to top ---------------------------------------------------------- */
.to-top { position: fixed; right: 28px; bottom: 28px; width: 52px; height: 52px; border-radius: 50%; background: var(--et-yellow);
  color: var(--et-ink-800); display: grid; place-items: center; border: none; box-shadow: var(--et-shadow-lift); z-index: 60;
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: all var(--et-dur) var(--et-ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { filter: brightness(1.05); transform: translateY(-3px); }
.to-top .icon { width: 22px; height: 22px; transform: rotate(-90deg); }

/* ---- Scroll progress bar -------------------------------------------------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--et-yellow); z-index: 70; transition: width 80ms linear; }

/* ---- Image backgrounds (kept in CSS so url()s bundle cleanly) ------------- */
.hero__bg            { background-image: url(../assets/hero_generated.png); }
.method__note .photo { background-image: url(../assets/meeting-room.png); }
.prof__note .photo   { background-image: url(../assets/professor-wall.jpg); }
.tcard__avatar--bruno   { background-image: url(../assets/avatar-bruno.jpg); }
.tcard__avatar--luiz    { background-image: url(../assets/avatar-luiz.jpg); }
.tcard__avatar--ruam    { background-image: url(../assets/avatar-ruam.jpg); }
.tcard__avatar--liliane { background-image: url(../assets/avatar-liliane.jpg); }

/* ============================================================================
   RESPONSIVE — tablet & mobile (additive; desktop >=1024px stays unchanged).
   Ordered widest -> narrowest so the narrower rules win where they overlap.
   ============================================================================ */

/* ---- Tablet (<=920px) ----------------------------------------------------- */
@media (max-width: 920px) {
  .pain-grid, .bonus-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Phone (<=720px) ------------------------------------------------------ */
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }

  .mod-grid { grid-template-columns: 1fr; }
  .mcard { padding: 24px; }

  .hero__inner { min-height: 560px; padding: 88px 0 56px; }
  .hero__logo { margin-bottom: 32px; }
  .hero__model { opacity: .22; }

  .marquee { padding: 12px 0; }
  .marquee__item { font-size: 24px; }

  .pcard, .bcard { padding: 28px; }

  .offer__box { padding: 32px 24px; }
  .offer .et-price { font-size: clamp(34px, 11vw, 62px); }  /* avoids overflow <=375px */

  .prof__stats { gap: 36px; }
  .prof__stat .n { font-size: 42px; }

  .faq__q .et-h4 { font-size: clamp(20px, 6vw, 28px); }

  /* Coverflow scaled down: center card + one peeking neighbour each side
     (initCarousel hides ±2 below 720px). Arrows shrink to far-side 44px. */
  .carousel__viewport { max-width: 100%; }
  .carousel__track { height: clamp(300px, 80vw, 360px); }
  .tcard { width: clamp(240px, 78vw, 340px); padding: 28px; }
  .carousel__btn {
    width: 44px; height: 44px; background: rgba(23, 23, 26, .55);
  }
}

/* ---- Narrow phones: collapse the 3-up card grids fully (<=640px) ---------- */
@media (max-width: 640px) {
  .pain-grid, .bonus-grid { grid-template-columns: 1fr; }
}

/* ---- Very small screens, kept usable down to 320px (<=400px) -------------- */
@media (max-width: 400px) {
  .section { padding: 56px 0; }
  .pcard, .bcard { padding: 22px; }
  .offer__box { padding: 24px 18px; }
}
