/* =========================================================
   INSTITUTO YUMI KATAOKA — Landing de seleção
   Identidade: bordô profundo do topo ao rodapé, letras
   douradas, acabamento de convite/certificado premium.
   Display: Playfair Display · UI/Body: Inter
   Formulário: card claro (marfim) para leitura confortável.
   ========================================================= */

:root {
  /* ---------- Paleta ---------- */
  --bordo-050: #7A2E3E;   /* realce, hovers claros sobre bordô */
  --bordo-100: #6B2636;   /* superfícies elevadas sobre o fundo */
  --bordo:     #5A1F2F;   /* base de marca */
  --bordo-600: #4C1A28;   /* fundo principal da página */
  --bordo-700: #3E1420;   /* fundo mais profundo (rodapé, hero) */
  --bordo-900: #2C0E17;   /* sombras / vinheta */

  --gold-100: #EAD9AE;    /* dourado claro — texto de destaque grande */
  --gold:     #C8A24A;    /* dourado principal — botões, ícones */
  --gold-600: #A8823A;    /* dourado escuro — hover, bordas finas */
  --gold-line: rgba(200,162,74,.35);

  --ivory:    #FBF7EE;    /* card do formulário */
  --ivory-100:#F3ECDC;    /* campos dentro do card */
  --line-on-ivory: #E4D9C2;
  --ink:      #2C1B14;    /* texto sobre marfim */
  --ink-soft: #6B5C4E;    /* texto secundário sobre marfim */

  --white: #FFFFFF;

  /* ---------- Tipografia ---------- */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* ---------- Sombra ---------- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.14), 0 6px 18px rgba(0,0,0,.18);
  --shadow-md: 0 10px 40px rgba(0,0,0,.28), 0 30px 80px rgba(0,0,0,.30);
  --shadow-lg: 0 50px 140px rgba(0,0,0,.45);
  --shadow-gold: 0 8px 26px rgba(200,162,74,.32);

  --maxw: 1080px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--gold-100);
  background: var(--bordo-600);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
::selection { background: var(--gold); color: var(--bordo-900); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================
   TEXTURA DE FUNDO — vinheta contínua + linhas de moldura
   ========================================================= */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(122,46,62,.55), transparent 60%),
    radial-gradient(140% 90% at 50% 100%, rgba(44,14,23,.6), transparent 55%),
    var(--bordo-600);
}
/* Moldura dourada fina, fixa, ao redor de toda a página — acabamento de convite */
.frame-border {
  position: fixed; inset: 10px; z-index: 40; pointer-events: none;
  border: 1px solid var(--gold-line);
}
.frame-border::before {
  content: ""; position: absolute; inset: 5px; border: .5px solid rgba(200,162,74,.18);
}
@media (max-width: 640px) { .frame-border { inset: 6px; } .frame-border::before { inset: 3px; } }

/* ---------- Tipos utilitários de marca ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--gold);
}
.eyebrow--center { justify-content: center; }
.eyebrow__dot {
  width: 6px; height: 6px; transform: rotate(45deg);
  background: var(--gold); display: inline-block;
}
.section-label {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--gold); margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.15;
  color: var(--gold-100); letter-spacing: -.005em;
}

/* Ornamento losango dourado, usado como separador entre blocos */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 auto;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 46px;
  background: linear-gradient(90deg, transparent, var(--gold-line));
}
.ornament::after { background: linear-gradient(270deg, transparent, var(--gold-line)); }
.ornament__dot {
  width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--gold); flex: none;
}

/* ---------- Indicador de scroll (topo) ---------- */
.scroll-indicator {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: rgba(0,0,0,.2);
}
.scroll-indicator span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-600), var(--gold));
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(110px, 18vh, 190px) 0 clamp(80px, 12vh, 130px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  border-bottom: 1px solid var(--gold-line);
}
.hero__inner { max-width: 860px; margin-inline: auto; }
.hero__crest {
  width: 148px; height: 148px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,250,238,.95), rgba(234,217,174,.55) 55%, rgba(200,162,74,.18) 78%, transparent 82%);
  box-shadow:
    0 0 0 1px var(--gold-line),
    0 10px 34px rgba(0,0,0,.35),
    inset 0 0 22px rgba(255,255,255,.25);
}
.hero__crest svg, .hero__crest img { width: 100%; height: 100%; object-fit: contain; }
.hero .eyebrow { color: var(--gold); }

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 26px auto 0;
  max-width: 16ch;
  text-wrap: balance;
  color: var(--gold-100);
}
.hero__title em {
  font-style: italic; color: var(--gold);
  font-weight: 600;
}
.hero__subtitle {
  margin: 28px auto 0;
  max-width: 62ch;
  color: rgba(234,217,174,.72);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 300;
  line-height: 1.8;
}
.hero__subtitle strong { color: var(--gold-100); font-weight: 600; }
.hero__cta { margin-top: 42px; }
.hero__note {
  margin-top: 20px; font-size: .82rem; letter-spacing: .03em;
  color: rgba(234,217,174,.5); font-weight: 300;
}
.hero__note .dot-sep { color: var(--gold); margin-inline: 6px; }

.hero__glow {
  position: absolute; z-index: -1; left: 50%; top: 4%;
  width: 680px; height: 680px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200,162,74,.16), transparent 62%);
  filter: blur(10px); pointer-events: none;
}

/* =========================================================
   BOTÕES
   ========================================================= */
.btn {
  --pad-y: 17px; --pad-x: 38px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 999px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-100), var(--gold) 55%, var(--gold-600));
  color: var(--bordo-900);
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(255,255,255,.25);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(200,162,74,.42); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent; color: var(--gold-100);
  border: 1px solid var(--gold-line);
}
.btn--ghost:hover { border-color: var(--gold); background: rgba(200,162,74,.08); }

/* Botões usados DENTRO do card claro do formulário usam tinta bordô sobre marfim */
.btn--on-ivory.btn--ghost { color: var(--bordo); border-color: var(--line-on-ivory); }
.btn--on-ivory.btn--ghost:hover { border-color: var(--gold-600); background: rgba(168,130,58,.08); }

.btn--full { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn__loader {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(44,14,23,.25); border-top-color: var(--bordo-900);
  animation: spin .7s linear infinite; display: none;
}
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn.is-loading .btn__label { opacity: .55; }
.btn.is-loading .btn__loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   VÍDEO
   ========================================================= */
.video-section { padding: clamp(90px, 13vh, 140px) 0; text-align: center; position: relative; }
.video-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(200,162,74,.06), transparent 70%);
}
.video-frame {
  position: relative; margin: 44px auto 0; max-width: 880px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gold-line);
  background: #000;
}
.video-frame__ratio { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame__ratio > iframe,
.video-frame__ratio > #ytplayer { position: absolute; inset: 0; width: 100%; height: 100%; }

.video-frame__shield { position: absolute; inset: 0; z-index: 2; background: transparent; cursor: default; }

.video-frame__overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(160deg, var(--bordo-700), var(--bordo-900));
  color: rgba(234,217,174,.7); font-size: .85rem; font-weight: 300;
  transition: opacity .5s var(--ease);
}
.video-frame__overlay[hidden] { display: none; }
.video-frame__spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(200,162,74,.2); border-top-color: var(--gold);
  animation: spin .8s linear infinite;
}

/* Barra de progresso do vídeo assistido */
.video-frame__progress {
  padding: 16px 20px 4px;
  background: var(--bordo-900);
}
.video-frame__progress-track {
  position: relative;
  height: 5px; border-radius: 999px;
  background: rgba(234,217,174,.14);
  overflow: visible;
}
.video-frame__progress-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold));
  box-shadow: 0 0 10px rgba(200,162,74,.55);
  transition: width .3s linear;
}

.video-frame__toolbar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--bordo-900);
  border-top: 1px solid var(--gold-line);
}
.video-frame__toolbar-label {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(234,217,174,.5); font-weight: 600;
}
.speed-group { display: inline-flex; gap: 6px; background: rgba(200,162,74,.08); padding: 4px; border-radius: 999px; }
.speed-btn {
  padding: 7px 13px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  color: rgba(234,217,174,.65); transition: background .2s, color .2s;
}
.speed-btn:hover { color: var(--gold-100); }
.speed-btn.is-active { background: var(--gold); color: var(--bordo-900); }
.speed-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.unmute-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--bordo-900); background: var(--gold-100);
  transition: background .2s, opacity .2s, transform .2s;
}
.unmute-btn:hover { background: var(--gold); transform: translateY(-1px); }
.unmute-btn.is-hidden { opacity: 0; pointer-events: none; width: 0; padding: 0; overflow: hidden; }

.video-hint {
  margin-top: 18px; font-size: .8rem; color: rgba(234,217,174,.5); font-weight: 300;
}

/* =========================================================
   FORMULÁRIO — seção inline, sempre visível, logo abaixo do
   vídeo. Card claro (marfim) sobre o fundo bordô da página.
   ========================================================= */
.form-section { padding: clamp(20px, 6vh, 50px) 0 clamp(90px, 12vh, 140px); }
.form-section__inner { text-align: center; }
.form-section .section-label,
.form-section .section-title { text-align: center; }

.form-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 640px; margin-inline: auto;
  text-align: left;
  background: var(--ivory); color: var(--ink);
  border-radius: var(--radius-lg); border: 1px solid var(--gold-line);
  padding: 42px clamp(24px, 4vw, 50px) 42px;
  box-shadow: var(--shadow-lg);
}

.form-progress {
  height: 3px; background: var(--ivory-100); border-radius: 999px; overflow: hidden;
  margin-bottom: 12px;
}
.form-progress__bar {
  height: 100%; width: 50%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold));
  transition: width .5s var(--ease);
}
.form-progress__steps {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-bottom: 26px;
}

.step { border: none; padding: 0; display: none; }
.step--active { display: block; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }

.form-title {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.8rem; color: var(--bordo); letter-spacing: -.005em;
}
.form-subtitle { color: var(--ink-soft); font-size: .92rem; margin: 6px 0 26px; font-weight: 400; }

.pillar-label {
  font-family: var(--serif); font-weight: 700; font-style: italic;
  font-size: 1rem; color: var(--gold-600);
  margin: 30px 0 14px; padding-top: 18px;
  border-top: 1px dashed var(--line-on-ivory);
}
.pillar-label:first-of-type { border-top: none; padding-top: 0; margin-top: 22px; }

.field { margin-bottom: 20px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--sm { max-width: 140px; }
.field label, .q-label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--ink); margin-bottom: 8px; letter-spacing: .01em;
}
.q-label { font-weight: 700; line-height: 1.45; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%; padding: 13px 15px;
  background: var(--ivory-100); border: 1px solid var(--line-on-ivory);
  border-radius: 11px; font-size: .95rem; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 52px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(200,162,74,.18); background: #fff;
}
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: rgba(90,31,47,.35); }
.field.is-error input, .field.is-error select, .field.is-error textarea {
  border-color: #B4462F; background: #FDF3F0;
}
.field__error {
  display: block; font-size: .76rem; color: #B4462F;
  margin-top: 6px; min-height: 0; opacity: 0; transition: opacity .2s;
}
.field.is-error .field__error { opacity: 1; }

.radio-group { display: flex; flex-direction: column; gap: 9px; }
.radio-group--wrap { flex-flow: row wrap; }
.radio {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 15px; border: 1px solid var(--line-on-ivory);
  border-radius: 11px; font-size: .9rem; cursor: pointer;
  transition: border-color .2s, background .2s; user-select: none;
  background: var(--ivory-100);
}
.radio-group--wrap .radio { flex: 0 1 auto; }
.radio input { accent-color: var(--bordo); width: 16px; height: 16px; }
.radio:hover { border-color: var(--gold-600); }
.radio:has(input:checked) {
  border-color: var(--gold-600); background: rgba(200,162,74,.14);
}
.radio:has(input:focus-visible) { outline: 2px solid var(--gold-600); outline-offset: 2px; }

.step__actions { margin-top: 30px; }
.step__actions--split { display: flex; gap: 12px; }
.step__actions--split .btn--ghost { flex: 0 0 auto; }
.step__actions--split .btn--primary { flex: 1; }

/* =========================================================
   SUCESSO — mantém a linguagem bordô/dourado do site
   ========================================================= */
.success { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(122,46,62,.55), transparent 60%),
    radial-gradient(140% 90% at 50% 100%, rgba(44,14,23,.7), transparent 55%),
    var(--bordo-600);
  animation: fade .5s var(--ease);
}
.success[hidden] { display: none; }
.success__panel {
  text-align: center; max-width: 480px; color: var(--gold-100);
  animation: pop .6s var(--ease);
}
.success__seal {
  width: 64px; height: 64px; margin: 0 auto 26px;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--bordo-900);
  background: linear-gradient(135deg, var(--gold-100), var(--gold) 55%, var(--gold-600));
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(255,255,255,.3);
}
.success .eyebrow { color: var(--gold); margin-bottom: 16px; }
.success__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.6rem); letter-spacing: -.005em;
  color: var(--gold-100);
}
.success__text {
  margin-top: 18px; color: rgba(234,217,174,.78);
  font-weight: 300; line-height: 1.75; font-size: 1rem;
}
.success__text strong { color: var(--gold-100); font-weight: 600; }
.success__text--muted { font-size: .95rem; }
.success__divider {
  width: 44px; height: 1px; background: var(--gold);
  margin: 30px auto; opacity: .7;
}
.success .btn { margin-top: 8px; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.site-footer { padding: 44px 0; border-top: 1px solid var(--gold-line); }
.site-footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.site-footer__brand {
  font-family: var(--serif); font-size: 1.05rem; color: var(--gold-100); letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 10px;
}
.site-footer__logo {
  border-radius: 50%;
  padding: 4px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,250,238,.95), rgba(234,217,174,.55) 55%, rgba(200,162,74,.18) 78%, transparent 82%);
  box-shadow: 0 0 0 1px var(--gold-line);
}
.site-footer__meta {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(234,217,174,.5);
}

/* =========================================================
   REVEAL (scroll)
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; }
  .field--sm { max-width: none; }
  .form-card { padding: 32px 18px 28px; border-radius: 18px; }
  .btn { --pad-x: 26px; width: 100%; }
  .hero__cta .btn { width: auto; }
  .step__actions--split { flex-direction: column-reverse; }
  .step__actions--split .btn { width: 100%; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}

/* =========================================================
   ACESSIBILIDADE — motion reduzido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
