/* Yen Comunicação — estilos do site
   Tokens (cores, tipografia, espaçamento, efeitos) ficam em css/tokens/. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--yen-red-500); }
img { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--yen-red-500); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 112px; padding-bottom: 112px; }
.bg-subtle { background: var(--surface-subtle); }

/* ---------- Tipografia ---------- */
.eyebrow { font: var(--type-eyebrow); letter-spacing: var(--ls-eyebrow); color: var(--text-accent); }
.eyebrow--light { color: var(--yen-red-400); }
.h2 { margin: 0; font: var(--type-h2); text-wrap: balance; }
.h3 { margin: 0; font: var(--type-h3); font-size: 20px; }
.text { margin: 0; color: var(--text-secondary); text-wrap: pretty; }
.text-sm { margin: 0; font: var(--type-body-sm); color: var(--text-secondary); }
.caption { font: var(--type-caption); color: var(--text-secondary); }

.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head--center { align-items: center; text-align: center; max-width: 600px; margin: 0 auto; }

/* ---------- Ícones ---------- */
.icon {
  display: inline-block; flex: none; width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon--14 { width: 14px; height: 14px; }
.icon--16 { width: 16px; height: 16px; }
.icon--18 { width: 18px; height: 18px; }
.icon--32 { width: 32px; height: 32px; }
.icon--36 { width: 36px; height: 36px; }
.icon--red { color: var(--yen-red-500); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font: 700 14px/1 var(--font-body); letter-spacing: .02em; white-space: nowrap;
  border: 1.5px solid transparent; border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { color: #fff; background: var(--yen-red-500); border-radius: 0; clip-path: var(--clip-cut-sm); }
.btn--primary:hover { color: #fff; background: var(--yen-red-600); }
.btn--dark { color: var(--ink-0); background: var(--ink-900); border-radius: 0; clip-path: var(--clip-cut-sm); }
.btn--dark:hover { color: var(--ink-0); background: var(--ink-700); }
.btn--secondary { color: var(--ink-900); background: transparent; border-color: var(--ink-900); }
.btn--secondary:hover { color: var(--ink-0); background: var(--ink-900); }
.btn--inverse { color: var(--ink-0); background: transparent; border-color: var(--ink-0); }
.btn--inverse:hover { color: var(--ink-900); background: var(--ink-0); }

.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: var(--radius-xs);
  background: var(--yen-red-500); color: #fff; cursor: pointer;
  transition: background var(--dur-base) var(--ease-out);
}
.icon-btn:hover { background: var(--yen-red-600); color: #fff; }
.icon-btn--sm { width: 32px; height: 32px; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface-card); color: var(--text-primary);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 32px;
}
.card--hover { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--ink-900); }

.float-card { background: var(--surface-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-lg); }

.placeholder { width: 100%; height: 100%; background: var(--ink-100); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--yen-red-500); color: #fff; font-size: 13px; }
.topbar__inner { padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__info span { display: flex; align-items: center; gap: 6px; }
.topbar__social { display: flex; gap: 14px; }
.topbar__social a { display: flex; }
.topbar__social a:hover { color: var(--ink-900); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 17, 16, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text-inverse);
}
.header__inner { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.header__logo { height: 36px; width: auto; display: block; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; font-weight: 500; color: var(--ink-200); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero__grid {
  padding-top: 96px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px; align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px); line-height: var(--lh-tight); letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.hero__lead { margin: 0; font: var(--type-body-lg); color: var(--text-secondary); max-width: 460px; text-wrap: pretty; }
.hero__media { position: relative; width: 100%; max-width: 600px; justify-self: end; aspect-ratio: 1 / 1; }
.hero__fade {
  position: absolute; top: 0; bottom: 0; left: -12%; right: -8%;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%);
  mask-image: linear-gradient(to top, transparent 0%, #000 22%);
}
.hero__panel {
  position: absolute; top: 0; bottom: 0; left: 31.67%; right: 6.67%;
  clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%, 0 64px);
  background:
    linear-gradient(to top, var(--ink-200) 0 22%, transparent 22%) 6% 100% / 9% 100% no-repeat,
    linear-gradient(to top, var(--ink-200) 0 34%, transparent 34%) 20% 100% / 9% 100% no-repeat,
    linear-gradient(to top, var(--ink-200) 0 44%, transparent 44%) 34% 100% / 9% 100% no-repeat,
    linear-gradient(to top, var(--ink-200) 0 58%, transparent 58%) 48% 100% / 9% 100% no-repeat,
    linear-gradient(to top, var(--ink-200) 0 70%, transparent 70%) 62% 100% / 9% 100% no-repeat,
    linear-gradient(to top, var(--ink-200) 0 82%, transparent 82%) 76% 100% / 9% 100% no-repeat,
    linear-gradient(to top, var(--yen-red-100) 0 94%, transparent 94%) 90% 100% / 9% 100% no-repeat,
    var(--ink-50);
}
.hero__photo { position: absolute; right: 4.17%; bottom: 0; width: 93.33%; max-width: none; height: auto; display: block; z-index: 1; }
.hero__stat { position: absolute; top: 14%; left: 0; z-index: 2; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 180px; }

.stat__label { font: var(--type-eyebrow); letter-spacing: var(--ls-eyebrow); color: var(--text-muted); }
.stat__row { display: flex; align-items: baseline; gap: 10px; }
.stat__value { font-family: var(--font-mono); font-weight: 700; font-size: 32px; line-height: 1; }
.stat__delta { display: flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--status-up); }

/* ---------- Blocos em duas colunas (Sobre, Por que a Yen) ---------- */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 72px; align-items: center;
}
.stack { display: flex; flex-direction: column; gap: 24px; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

.collage { position: relative; min-height: clamp(380px, 40vw, 480px); }
.collage__a { position: absolute; top: 0; left: 0; width: 56%; height: 72%; }
.collage__b { position: absolute; right: 0; bottom: 0; width: 56%; height: 66%; }
.collage__badge { position: absolute; left: 18%; bottom: 12%; padding: 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.collage__num { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--text-accent); }

.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; }

/* ---------- Serviços ---------- */
.services { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.grid-cards { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }

/* ---------- Por que a Yen ---------- */
.why__text { display: flex; flex-direction: column; gap: 40px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.why__media { position: relative; padding: 32px 0 0 32px; }
.why__photo { height: clamp(380px, 40vw, 500px); }
.why__badge {
  position: absolute; top: 0; left: 0;
  background: var(--surface-inverse); color: var(--text-inverse); clip-path: var(--clip-cut);
  padding: 20px 28px; display: flex; flex-direction: column; gap: 4px;
}
.why__badge-value { font-family: var(--font-mono); font-weight: 700; font-size: 36px; line-height: 1; }
.why__badge-label { font: var(--type-caption); color: var(--text-inverse-muted); }

/* ---------- Time ---------- */
.team { position: relative; background: var(--surface-page); }
.team__band { position: absolute; top: 0; left: 0; right: 0; height: 62%; background: var(--surface-inverse); }
.team__inner { position: relative; padding-top: 104px; padding-bottom: 112px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.team__head { color: var(--text-inverse); }
.team__grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.member { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.member__photo { aspect-ratio: 4 / 5; }
.member__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.person { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Como funciona (linha do tempo) ---------- */
.process { border-top: 1px solid var(--border-subtle); }
.process__inner { display: flex; flex-direction: column; gap: 64px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.timeline__line {
  position: absolute; top: 43px; height: 2px;
  left: calc((100% - 48px) / 6); right: calc((100% - 48px) / 6);
  background: linear-gradient(to right, var(--ink-900) 0 50%, var(--yen-red-500) 50% 100%);
}
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.step__when { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--text-muted); }
.step__dot {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-page); border: 2px solid var(--ink-900); transform: rotate(45deg);
}
.step__dot::after { content: ""; width: 10px; height: 10px; background: var(--ink-900); }
.step__title { margin: 8px 0 0; font: var(--type-h3); font-size: 22px; }
.step .text-sm { max-width: 280px; }
.step--last .step__when { color: var(--text-accent); }
.step--last .step__dot { background: var(--yen-red-500); border-color: var(--yen-red-500); }
.step--last .step__dot::after { background: #fff; }

/* ---------- Planos ---------- */
.plans { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: start; }
.plan { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.plan__head { background: var(--ink-900); color: #fff; padding: 28px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.plan--featured .plan__head { background: var(--yen-red-500); }
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.plan__label { font: var(--type-eyebrow); letter-spacing: var(--ls-eyebrow); opacity: .85; }
.plan__range { font-family: var(--font-mono); font-weight: 700; font-size: 26px; line-height: 1.1; }
.plan__period { font-size: 13px; opacity: .85; }
.plan__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan__item { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-primary); }
.plan__item .icon { color: var(--yen-red-500); }
.plan__item--off { color: var(--text-muted); }
.plan__item--off .icon { color: var(--ink-300); }
.plan__cta { padding-top: 12px; }

/* ---------- Depoimentos ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.quote { display: flex; flex-direction: column; gap: 18px; }
.quote__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.quote__who { display: flex; gap: 14px; align-items: center; }
.quote__avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; }
.quote__name { font-weight: 700; }
.quote__company { font: var(--type-caption); color: var(--text-muted); }
.quote__mark { color: var(--ink-200); }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink-950); color: var(--text-inverse-muted); font-size: 14px; }
.footer__inner { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 48px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__logo { height: 40px; width: auto; display: block; align-self: flex-start; }
.footer__title { font-weight: 700; color: var(--ink-0); }
.footer p { margin: 0; line-height: 1.6; }
.footer__social { display: flex; gap: 8px; }
.newsletter { display: flex; gap: 8px; align-items: center; }
.newsletter input {
  flex: 1 1 0; min-width: 0; height: 48px; padding: 0 14px;
  font: var(--type-body); color: var(--text-primary);
  background: var(--surface-card); border: 1.5px solid var(--border-default); border-radius: var(--radius-xs);
  outline: 0; transition: border-color var(--dur-fast);
}
.newsletter input:focus { border-color: var(--ink-900); }
.newsletter__msg { font-size: 13px; color: var(--ink-0); }
.footer__copy { padding-top: 24px; border-top: 1px solid var(--border-inverse); font-size: 12px; color: var(--ink-400); text-align: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero__media { justify-self: center; }
}
@media (max-width: 720px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
  .hero__grid { padding-top: 64px; padding-bottom: 64px; }
  .timeline { grid-template-columns: 1fr; gap: 48px; }
  .timeline__line { display: none; }
  .nav { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
