/* Descomplicando Penteados: página de vendas */

/* fontes hospedadas no próprio site (subconjunto latino, que cobre o português) */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(../assets/fonts/jost.woff2) format('woff2');
}
@font-face {
  font-family: 'Libre Bodoni';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/libre-bodoni-500.woff2) format('woff2');
}
@font-face {
  font-family: 'Mrs Saint Delafield';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/mrs-saint-delafield-400.woff2) format('woff2');
}

:root {
  /* cores */
  --perola: #FDF6F5;
  --nude: #F7E1DF;
  --nude-claro: #FBEAE8;
  --rose: #E0A9AC;
  --rose-profundo: #A0505F;
  --rose-escuro: #7F3B4A;
  --vinho: #4A2230;
  --vinho-suave: #7B4652;
  --ouro-rose: #F0C9B8;
  --linha: rgba(74, 34, 48, 0.16);
  --linha-clara: rgba(251, 234, 232, 0.22);

  /* tipografia */
  /* Bodoni desenhada para leitura: traços finos mais encorpados que os da Bodoni de vitrine */
  --serif: "Libre Bodoni", "Bodoni 72", "Didot", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --script: "Mrs Saint Delafield", "Snell Roundhand", cursive;

  /* escala ~1,25 */
  --texto: 1.0625rem;
  --texto-pequeno: 0.9375rem;
  --titulo-3: 1.5rem;
  --titulo-2: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --titulo-1: clamp(2.75rem, 1.6rem + 5vw, 5.25rem);

  /* espaço */
  --gutter: 16px;
  --secao: clamp(72px, 10vw, 136px);
  --raio-botao: 999px;

  color-scheme: light;
}

@media (min-width: 768px) {
  :root {
    --texto: 1.125rem;
    --gutter: 32px;
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--perola);
  color: var(--vinho);
  font-family: var(--sans);
  font-size: var(--texto);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* âncoras não ficam escondidas sob o cabeçalho fixo do computador */
[id] {
  scroll-margin-top: 104px;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

/* o anel de foco precisa de contraste sobre os fundos escuros e rosé */
.section--rose :focus-visible,
.site-footer :focus-visible,
.sticky-cta :focus-visible {
  outline-color: var(--perola);
}

.closing :focus-visible {
  outline-color: var(--vinho);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--rose-escuro);
  color: var(--perola);
  border-radius: var(--raio-botao);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* botões e links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 34px;
  border: 1px solid var(--rose-profundo);
  border-radius: var(--raio-botao);
  background: var(--rose-profundo);
  color: var(--perola);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  transition-property: background-color, border-color, color, scale;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

@media (hover: hover) {
  .button:hover {
    background: var(--rose-escuro);
    border-color: var(--rose-escuro);
  }
}

.button:active {
  scale: 0.96;
}

.button--small {
  min-height: 44px;
  padding: 10px 22px;
  font-size: var(--texto-pequeno);
}

.button--outline {
  background: transparent;
  color: var(--vinho);
}

@media (hover: hover) {
  .button--outline:hover {
    color: var(--perola);
  }
}

.button--wide {
  width: 100%;
}

.price-note {
  margin-top: 14px;
  color: var(--vinho-suave);
  font-size: var(--texto-pequeno);
  line-height: 1.5;
}

.text-link {
  color: var(--rose-profundo);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link--light {
  color: var(--nude-claro);
  text-decoration-color: var(--ouro-rose);
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

/* logo tipográfico */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--vinho);
  text-decoration: none;
}

.wordmark__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
}

.wordmark__signature {
  margin: 2px 0 0 1.4em;
  color: var(--rose-profundo);
  font-family: var(--script);
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.1rem);
  line-height: 1;
}

.wordmark--light {
  color: var(--perola);
}

.wordmark--light .wordmark__signature {
  color: var(--ouro-rose);
}

/* topo: só a marca, centralizada */
.site-header {
  padding-block: 28px 8px;
}

.site-header__inner {
  display: flex;
  justify-content: center;
}

@media (min-width: 960px) {
  .site-header {
    padding-block: 40px 16px;
  }
}

.hero {
  padding-block: 24px 64px;
}

.hero__grid {
  display: grid;
  gap: 48px;
}

.hero__title {
  max-width: 13ch;
  font-size: var(--titulo-1);
  line-height: 1.05;
  letter-spacing: -0.012em;
}

.hero__lead {
  max-width: 40ch;
  margin-top: 24px;
  color: var(--vinho-suave);
  font-size: calc(var(--texto) * 1.12);
  line-height: 1.55;
}

.hero__media {
  width: 100%;
  max-width: 460px;
  justify-self: center;
}

.hero__caption {
  margin-top: 20px;
  color: var(--vinho-suave);
  font-size: var(--texto-pequeno);
  text-align: center;
}

@media (min-width: 960px) {
  .hero {
    padding-block: 32px 112px;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 72px;
    min-height: calc(100svh - 120px);
  }

  .hero__media {
    justify-self: end;
  }
}

/* arco de espelho: o elemento de assinatura */
.arch {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  /* semicírculo no topo de uma moldura 3:4 */
  border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0;
  background: var(--nude);
  outline: 1px solid var(--rose);
  outline-offset: 10px;
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch--hero img {
  object-position: 50% 50%;
}

.section--rose .arch {
  outline-color: var(--ouro-rose);
}

/* o único momento animado da página: a entrada do topo */
@media (prefers-reduced-motion: no-preference) {
  .hero__title,
  .hero__lead {
    animation: subir 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__lead {
    animation-delay: 0.1s;
  }

  .hero .arch {
    animation: revelar 1.3s cubic-bezier(0.6, 0, 0.2, 1) 0.15s both;
  }
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* insets negativos para não cortar o contorno do espelho */
@keyframes revelar {
  from {
    clip-path: inset(100% -14px -14px -14px);
  }
  to {
    clip-path: inset(-14px -14px -14px -14px);
  }
}

/* credenciais */
/* fica entre os módulos (nude) e "Quem é Bianca" (café), por isso o fundo pérola */
.credentials {
  padding-block: 64px;
  background: var(--perola);
}

.credentials__grid {
  display: grid;
  gap: 32px;
}

.credentials__statement {
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);
  line-height: 1.08;
}

.credentials__intro {
  color: var(--vinho-suave);
  font-size: var(--texto-pequeno);
}

.credentials__list {
  display: grid;
  margin-top: 12px;
}

.credentials__list li {
  padding-block: 14px;
  border-top: 1px solid var(--linha);
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.25;
}

.credentials__list span {
  display: block;
  margin-top: 4px;
  color: var(--vinho-suave);
  font-family: var(--sans);
  font-size: var(--texto-pequeno);
}

@media (min-width: 600px) {
  .credentials__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}

@media (min-width: 960px) {
  .credentials {
    padding-block: 80px;
  }

  .credentials__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
  }
}

/* seções */
.section {
  padding-block: var(--secao);
}

.section--nude {
  background: var(--nude);
}

.section--rose {
  background: var(--rose-escuro);
  color: var(--nude-claro);
}

.section--rose .section-title {
  color: var(--perola);
}

.section--rose .section-lead {
  color: var(--nude-claro);
}

/* sobre o rosé escuro, o botão principal fica claro */
.section--rose .button {
  border-color: var(--perola);
  background: var(--perola);
  color: var(--vinho);
}

@media (hover: hover) {
  .section--rose .button:hover {
    border-color: var(--nude);
    background: var(--nude);
  }
}

.section-title {
  font-size: var(--titulo-2);
  line-height: 1.08;
  letter-spacing: -0.008em;
}

.section-lead {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--vinho-suave);
}

/* foto + texto: no celular, título > foto > lista; no computador, foto fixa ao lado */
.split {
  display: grid;
  gap: 32px;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* contorno discreto para as fotos não "vazarem" no fundo claro */
.split__media img,
.style-card img {
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.split__head,
.split__body {
  max-width: 620px;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 5fr 7fr;
    grid-template-areas:
      "media head"
      "media body";
    grid-template-rows: auto 1fr;
    column-gap: 80px;
    row-gap: 0;
  }

  .split--reverse {
    grid-template-columns: 7fr 5fr;
    grid-template-areas:
      "head media"
      "body media";
  }

  .split__head {
    grid-area: head;
  }

  .split__body {
    grid-area: body;
  }

  .split__media {
    grid-area: media;
    align-self: start;
    position: sticky;
    top: 112px;
  }

  .split__media img {
    aspect-ratio: 3 / 4;
  }
}

.feature-list {
  margin-top: 0;
}

@media (min-width: 960px) {
  .feature-list {
    margin-top: 40px;
  }
}

.feature-list li {
  padding-block: 22px;
  border-top: 1px solid var(--linha);
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--linha);
}

.feature-list h3 {
  font-size: var(--titulo-3);
  line-height: 1.2;
}

.feature-list p {
  max-width: 54ch;
  margin-top: 8px;
  color: var(--vinho-suave);
}

/* trechos das aulas */
.demo__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.demo__head {
  max-width: 640px;
}

.demo__head .section-lead {
  margin-inline: auto;
}

.demo__video {
  width: 100%;
  max-width: 980px;
  height: auto;
  margin-block: 40px 36px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: var(--vinho);
  box-shadow: 0 24px 48px rgba(40, 12, 22, 0.35);
}

/* módulos */
.modules__head {
  max-width: 720px;
}

.module-list {
  max-width: 760px;
  margin-top: 40px;
}

.module {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-block: 20px;
  border-top: 1px solid var(--linha);
}

.module-list:last-child .module:last-child {
  border-bottom: 1px solid var(--linha);
}

.module__number {
  color: var(--rose-profundo);
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
}

.module__title {
  font-size: var(--titulo-3);
  line-height: 1.2;
}

.module p {
  margin-top: 4px;
  color: var(--vinho-suave);
}

.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 12px;
  padding-block: 28px 32px;
  border-top: 1px solid var(--linha);
}

.style-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--nude);
}

.style-card__label {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.2;
}

.style-card__label span {
  display: block;
  margin-bottom: 2px;
  color: var(--vinho-suave);
  font-family: var(--sans);
  font-size: var(--texto-pequeno);
}

.style-grid + .module-list {
  margin-top: 0;
}

@media (min-width: 768px) {
  .style-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* sobre a Bianca */
.about__grid {
  display: grid;
  gap: 56px;
}

.about__media {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.about__text {
  max-width: 600px;
}

.about__text p {
  margin-top: 20px;
}

.about__text .section-title + p {
  margin-top: 28px;
}

.about__signature {
  margin-block: 20px 28px;
  color: var(--ouro-rose);
  font-family: var(--script);
  font-size: 3.75rem;
  line-height: 1;
  transform: rotate(-4deg);
  transform-origin: left center;
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 96px;
  }
}

/* depoimentos (aparece quando houver depoimentos reais) */
.testimonial-list {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.testimonial {
  padding: 28px;
  border: 1px solid var(--linha);
  background: #fff;
}

.testimonial blockquote {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
}

.testimonial__author {
  margin-top: 16px;
  color: var(--vinho-suave);
  font-size: var(--texto-pequeno);
}

@media (min-width: 768px) {
  .testimonial-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* oferta */
.offer__card {
  max-width: 580px;
  margin-inline: auto;
  padding: 44px 22px 32px;
  border: 1px solid var(--linha);
  border-radius: 4px;
  background: var(--perola);
  text-align: center;
}

.offer__title {
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
  line-height: 1.1;
}

.offer__list {
  margin-top: 28px;
  text-align: left;
}

.offer__list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-top: 1px solid var(--linha);
}

/* pérola rosada como marcador */
.offer__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 14%, #f2dcd6 34%, var(--rose) 100%);
  box-shadow: 0 1px 2px rgba(74, 34, 48, 0.25);
}

.offer__price {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--linha);
}

.offer__amount {
  font-family: var(--serif);
  font-size: clamp(4.25rem, 3rem + 7vw, 6.25rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.offer__currency {
  margin-right: 6px;
  font-size: 0.34em;
  vertical-align: 0.95em;
}

.offer__terms {
  margin-top: 10px;
  color: var(--vinho-suave);
}

.offer__card .button {
  margin-top: 28px;
}

.offer__secure {
  margin-top: 14px;
  color: var(--vinho-suave);
  font-size: var(--texto-pequeno);
}

@media (min-width: 768px) {
  .offer__card {
    padding: 64px 56px 44px;
  }
}

/* garantia */
.guarantee__inner {
  display: grid;
  gap: 32px;
  justify-items: start;
  max-width: 860px;
}

.seal {
  width: 168px;
  height: 168px;
}

.seal__outer {
  fill: var(--rose-profundo);
}

.seal__line {
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.2;
}

.seal__ring-text {
  fill: var(--perola);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.seal__number {
  fill: var(--perola);
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
}

.seal__days {
  fill: var(--perola);
  font-family: var(--sans);
  font-size: 17px;
}

.guarantee__text p {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--vinho-suave);
}

@media (min-width: 768px) {
  .guarantee__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 56px;
    margin-inline: auto;
  }

  .seal {
    width: 200px;
    height: 200px;
  }
}

/* dúvidas */
.faq__inner {
  max-width: 820px;
}

.faq__list {
  margin-top: 36px;
  border-top: 1px solid var(--linha);
}

.faq details {
  border-bottom: 1px solid var(--linha);
}

.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* sinal de + que vira × ao abrir */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--rose-profundo);
  transition: transform 0.25s ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::before {
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq details p {
  max-width: 62ch;
  padding-bottom: 24px;
  color: var(--vinho-suave);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::before,
  .faq summary::after {
    transition: none;
  }
}

/* chamada final */
.closing {
  background: var(--rose);
}

.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing__title {
  max-width: 16ch;
  margin-bottom: 36px;
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem);
  line-height: 1.05;
}

.closing .price-note {
  color: var(--vinho);
}

/* rodapé */
.site-footer {
  padding-block: 56px 112px;
  background: var(--rose-escuro);
  color: var(--nude-claro);
  font-size: var(--texto-pequeno);
}

.site-footer__inner {
  display: grid;
  gap: 32px;
}

.site-footer__info p {
  margin-top: 8px;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .site-footer__info {
    text-align: right;
  }
}

@media (min-width: 960px) {
  .site-footer {
    padding-bottom: 56px;
  }
}

/* barra fixa do celular */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--rose-escuro);
  color: var(--perola);
  box-shadow: 0 -8px 24px rgba(74, 34, 48, 0.18);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__price {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
}

.sticky-cta__price span {
  display: block;
  color: var(--nude-claro);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
}

.sticky-cta .button {
  flex-shrink: 0;
  padding-inline: 18px;
  border-color: var(--perola);
  background: var(--perola);
  color: var(--vinho);
  white-space: nowrap;
}

@media (hover: hover) {
  .sticky-cta .button:hover {
    border-color: var(--nude);
    background: var(--nude);
  }
}

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

@media (min-width: 960px) {
  .sticky-cta {
    display: none;
  }
}
