/* =====================================================================
   Domus Gallo — base visual compartilhada
   Usada pelo orçamento online, área do cliente, oferta, checkout,
   agenda e CRM. Mesmos tokens e peças da landing page (index.html).
   ===================================================================== */
:root {
  --preto: #05070c;
  --navy: #0a1426;
  --azul: #2f7bff;
  --azul-claro: #6fb4ff;
  --ouro-1: #fff1b8;
  --ouro-2: #f7c948;
  --ouro-3: #e0a21a;
  --ouro-4: #9a6a0c;
  --ambar: #ff9f2e;
  --branco: #ffffff;
  --verde: #3ecf8e;
  --erro: #ff8a7a;
  --w: 940px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--preto); color: var(--branco); font-family: 'Roboto', sans-serif; overflow-x: hidden; min-height: 100vh; min-height: 100svh;
  -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Fundo: o mesmo escritório noturno da landing ============ */
.bg-scene, .bokeh, .shade { position: fixed; inset: 0; pointer-events: none; }
.bg-scene { z-index: 0; filter: blur(3px);
  background:
    linear-gradient(90deg, transparent 0 1%, rgba(255,170,60,.55) 1% 8%, transparent 8%) 0 9% / 100% .5% no-repeat,
    linear-gradient(90deg, rgba(255,160,50,.5) 0 9%, transparent 9%) 0 48% / 100% .45% no-repeat,
    linear-gradient(90deg, rgba(255,160,50,.35) 0 6%, transparent 6%) 0 30% / 100% .4% no-repeat,
    linear-gradient(90deg, transparent 0 88%, rgba(255,170,60,.5) 88% 100%) 0 44% / 100% .5% no-repeat,
    linear-gradient(90deg, transparent 0 91%, rgba(255,170,60,.4) 91% 100%) 0 17% / 100% .4% no-repeat,
    linear-gradient(90deg, transparent 0 7.6%, rgba(255,190,90,.55) 7.6% 8%, transparent 8%),
    linear-gradient(90deg, transparent 0 65%, rgba(255,190,90,.35) 65% 65.3%, transparent 65.3%),
    linear-gradient(90deg, transparent 0 75.5%, rgba(255,190,90,.35) 75.5% 75.8%, transparent 75.8%),
    radial-gradient(ellipse 18% 30% at 4% 12%, rgba(255,150,40,.35), transparent 70%),
    radial-gradient(ellipse 14% 26% at 97% 40%, rgba(255,150,40,.35), transparent 70%),
    radial-gradient(ellipse 22% 35% at 30% 20%, rgba(60,110,255,.35), transparent 70%),
    radial-gradient(ellipse 22% 35% at 72% 18%, rgba(60,110,255,.35), transparent 70%),
    radial-gradient(ellipse 30% 25% at 50% 62%, rgba(255,170,40,.35), transparent 70%),
    repeating-linear-gradient(90deg, rgba(40,80,170,.07) 0 3.2%, rgba(5,10,25,.35) 3.2% 3.6%),
    linear-gradient(180deg, #0a1328 0%, #081020 45%, #06080e 80%, #030407 100%);
}
.bokeh { z-index: 1;
  background:
    radial-gradient(circle at 56% 12%, rgba(255,210,140,.5) 0 .3vw, transparent .6vw),
    radial-gradient(circle at 44% 24%, rgba(140,180,255,.35) 0 .25vw, transparent .5vw),
    radial-gradient(circle at 23% 5%, rgba(255,200,120,.4) 0 .25vw, transparent .5vw),
    radial-gradient(circle at 83% 6%, rgba(140,180,255,.35) 0 .22vw, transparent .45vw),
    radial-gradient(circle at 5% 58%, rgba(255,180,90,.35) 0 .35vw, transparent .7vw),
    radial-gradient(circle at 96% 62%, rgba(255,180,90,.35) 0 .35vw, transparent .7vw);
}
.shade { z-index: 2; background: radial-gradient(ellipse 70% 80% at 50% 45%, rgba(3,4,8,.9), rgba(3,4,8,.62) 70%, rgba(3,4,8,.35) 100%); }

/* ============ Tipografia e peças da landing ============ */
.gold-text { background: linear-gradient(180deg, var(--ouro-1) 0%, var(--ouro-2) 40%, var(--ouro-3) 75%, var(--ouro-4) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 12.5px; letter-spacing: .3em; color: var(--ouro-2); text-transform: uppercase; }
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--ouro-2)); }
.eyebrow::after { transform: scaleX(-1); }
.eyebrow.left::before { display: none; }

.btn-gold { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 58px; padding: 0 70px 0 34px; border-radius: 99px; white-space: nowrap; text-decoration: none;
  background: linear-gradient(180deg, #ffe89a 0%, #f9cd46 40%, #e8a817 75%, #c98a0c 100%);
  border: 1.5px solid #fff0b0;
  box-shadow: 0 0 14px rgba(255,190,60,.7), 0 0 36px rgba(255,160,30,.32), inset 0 2px 3px rgba(255,255,255,.6), inset 0 -3px 5px rgba(120,70,0,.4);
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .02em; color: #0b0b0b; text-transform: uppercase;
  transition: transform .2s, box-shadow .2s, filter .2s; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(255,190,60,1), 0 0 46px rgba(255,160,30,.5), inset 0 2px 3px rgba(255,255,255,.6), inset 0 -3px 5px rgba(120,70,0,.4); }
.btn-gold:focus-visible { outline: 2px solid var(--ouro-1); outline-offset: 4px; }
.btn-gold .arrow-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: #0b0b0b; display: grid; place-items: center; transition: transform .2s; }
.btn-gold:hover .arrow-btn { transform: translate(2px, -50%); }
.btn-gold .arrow-btn svg { width: 55%; height: 55%; stroke: var(--ouro-2); stroke-width: 2.6; }
.btn-gold:disabled { cursor: default; transform: none; filter: saturate(.7) brightness(.85); }
.btn-gold.plain { padding: 0 30px; }
.btn-gold.sm { height: 46px; font-size: 16px; padding: 0 24px; }
.btn-gold.full { width: 100%; }

.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 99px; text-decoration: none;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: var(--ouro-2); border: 1px solid rgba(247,201,72,.7); background: rgba(247,201,72,.05); transition: background .2s, box-shadow .2s; }
.btn-ghost:hover { background: rgba(247,201,72,.12); box-shadow: 0 0 18px rgba(255,190,60,.35); }
.btn-ghost:focus-visible { outline: 2px solid var(--ouro-2); outline-offset: 3px; }
.btn-ghost svg { width: 18px; height: 18px; stroke-width: 2.4; }
.btn-ghost.sm { height: 40px; padding: 0 16px; font-size: 14px; gap: 7px; }
.btn-ghost.sm svg { width: 15px; height: 15px; }
.btn-ghost.danger { color: var(--erro); border-color: rgba(255,138,122,.55); background: rgba(255,138,122,.05); }
.btn-ghost:disabled { opacity: .45; cursor: default; box-shadow: none; }
.link-btn { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13.5px; color: rgba(255,255,255,.7); text-decoration: underline;
  text-decoration-color: rgba(247,201,72,.5); text-underline-offset: 4px; }
.link-btn:hover { color: var(--ouro-1); }

.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.chips > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(247,201,72,.35);
  background: rgba(0,0,0,.3); font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--ouro-1); }
.chips > span svg { width: 15px; height: 15px; color: var(--ouro-2); }

/* Painel: mesma linguagem do card final/oferta */
.panel { position: relative; padding: clamp(22px, 3.2vw, 40px); border-radius: 22px;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255,180,50,.08), transparent 70%), linear-gradient(180deg, rgba(12,16,30,.92), rgba(5,6,10,.95));
  border: 1px solid rgba(247,201,72,.5);
  box-shadow: 0 0 22px rgba(255,180,50,.16), 0 30px 60px rgba(0,0,0,.5), inset 0 0 40px rgba(255,180,50,.04); }
.panel::before { content: ""; position: absolute; left: 15%; right: 15%; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, #fff0b0, transparent); }
.panel.hero { max-width: 860px; margin: 0 auto; padding: clamp(34px, 5vw, 64px) clamp(20px, 4.5vw, 64px); text-align: center; border-radius: 28px;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255,180,50,.14), transparent 70%), linear-gradient(180deg, rgba(12,16,30,.95), rgba(5,6,10,.97));
  border-color: rgba(247,201,72,.8);
  box-shadow: 0 0 30px rgba(255,180,50,.32), 0 0 90px rgba(255,160,30,.14), 0 40px 80px rgba(0,0,0,.6), inset 0 0 50px rgba(255,180,50,.06); }
.hero h1 { margin-top: 16px; font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase; line-height: 1.06; letter-spacing: -.01em;
  font-size: clamp(27px, 4.4vw, 50px); color: var(--branco); }
.hero h1:focus { outline: none; }
.hero .sub { margin: 18px auto 0; max-width: 34em; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.6; color: #d4d9e2; }
.hero .chips { margin-top: 24px; }
.hero .safe { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px auto 0; max-width: 36em; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.58); }
.hero .safe svg { flex: none; width: 17px; height: 17px; color: var(--verde); }
.actions { margin-top: clamp(30px, 4vw, 42px); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; }

/* ============ Topo simples (marca + ação) ============ */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 3vw, 36px); background: rgba(3,4,7,.82); border-bottom: 1px solid rgba(247,201,72,.2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255,190,70,.4)); }
.brand b { display: block; font-family: 'Cinzel', serif; font-weight: 700; font-size: 16px; letter-spacing: .1em; color: var(--ouro-2); line-height: 1.1; }
.brand small { display: block; margin-top: 3px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 9.5px; letter-spacing: .3em; color: rgba(255,255,255,.6); }
.exit { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); text-decoration: none;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .16em; color: rgba(255,255,255,.78); transition: border-color .2s, color .2s, background .2s; }
.exit:hover { border-color: rgba(247,201,72,.7); color: var(--ouro-1); background: rgba(247,201,72,.06); }
.exit svg { width: 16px; height: 16px; stroke-width: 2.2; }

/* página centralizada (login, oferta, agenda...) */
.page { position: relative; z-index: 5; max-width: var(--w); margin: 0 auto; padding: clamp(28px, 6vh, 64px) 16px 80px; }
.page.narrow { max-width: 520px; }

/* ============ Campos ============ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.form-grid.one { grid-template-columns: 1fr; }
.field.wide { grid-column: 1 / -1; }
.field > label, .lbl { display: block; margin-bottom: 9px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.field .req { color: var(--ouro-2); }
.field .optl { font-weight: 600; letter-spacing: .06em; text-transform: none; color: rgba(255,255,255,.42); }
.field .hint { margin-top: 7px; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.5); }
.control { position: relative; }
.control .ci { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ouro-2); pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255,190,60,.45)); }
.control input, .control select, .control textarea { width: 100%; height: 56px; padding: 0 18px; border-radius: 13px;
  background: rgba(5,6,10,.78); border: 1px solid rgba(255,255,255,.15); color: var(--branco);
  font-family: 'Roboto', sans-serif; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.control .ci ~ input, .control .ci ~ select { padding-left: 48px; }
.control textarea { height: auto; min-height: 170px; padding: 16px 18px; line-height: 1.6; resize: vertical; }
.control ::placeholder { color: rgba(255,255,255,.34); }
.control input:hover, .control select:hover, .control textarea:hover { border-color: rgba(247,201,72,.45); }
.control input:focus, .control select:focus, .control textarea:focus { outline: none; border-color: var(--ouro-2); background: rgba(8,10,18,.92);
  box-shadow: 0 0 0 3px rgba(247,201,72,.14), 0 0 18px rgba(255,190,60,.22); }
.control input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 100px #0b0e17 inset; caret-color: #fff; }
.control.sel::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--ouro-2); border-bottom: 2px solid var(--ouro-2); transform: translateY(-70%) rotate(45deg); }
.control select { padding-right: 44px; cursor: pointer; }
.control select.empty { color: rgba(255,255,255,.4); }
.control select option { background: #0b0f1a; color: #fff; }
/* mostrar/ocultar senha */
.control .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: rgba(255,255,255,.55); }
.control .eye:hover { color: var(--ouro-1); }
.control .eye svg { width: 19px; height: 19px; }
.control .eye ~ input, .control input:has(~ .eye) { padding-right: 54px; }
.control.pw input { padding-right: 54px; }

.err { min-height: 0; font-size: 13px; line-height: 1.4; color: var(--erro); }
.err:not(:empty) { margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.err:not(:empty)::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,138,122,.16); border: 1px solid rgba(255,138,122,.6); font: 700 10px/1 'Montserrat', sans-serif; }
.err a, .err button { color: var(--ouro-1); text-decoration: underline; font-weight: 700; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .url-row.invalid input { border-color: rgba(255,138,122,.8); box-shadow: 0 0 0 3px rgba(255,138,122,.1); }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* medidor de força da senha */
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.pw-meter i { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); transition: background .25s; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--erro); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--ambar); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: var(--ouro-2); }
.pw-meter[data-s="4"] i { background: var(--verde); }

.note { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 18px 20px; border-radius: 14px;
  background: rgba(247,201,72,.07); border: 1px dashed rgba(247,201,72,.5); text-align: left; }
.note .n-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(247,201,72,.6); background: rgba(247,201,72,.1); color: var(--ouro-2); }
.note .n-ico svg { width: 21px; height: 21px; }
.note strong { display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ouro-2); }
.note p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: #e8ecf3; }
.note p + p { margin-top: 8px; color: rgba(255,255,255,.7); }
.note.blue { background: rgba(47,123,255,.08); border-color: rgba(111,180,255,.45); }
.note.blue .n-ico { border-color: rgba(111,180,255,.6); background: rgba(47,123,255,.12); color: var(--azul-claro); }
.note.blue strong { color: var(--azul-claro); }

.mock-note { margin: 22px auto 0; max-width: 34em; padding: 14px 18px; border-radius: 12px; text-align: left; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.75);
  background: rgba(47,123,255,.08); border: 1px dashed rgba(111,180,255,.45); }
.mock-note b { color: var(--azul-claro); }

/* ============ Cards de respostas (resumo do briefing) ============ */
.sum-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; text-align: left; }
.sum-hero .s-ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--ouro-2);
  background: rgba(247,201,72,.08); color: var(--ouro-2); box-shadow: 0 0 16px rgba(255,190,60,.35); }
.sum-hero .s-ico svg { width: 30px; height: 30px; }
.sum-hero small { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .3em; color: var(--ouro-2); }
.sum-hero h2 { margin-top: 4px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15; text-transform: uppercase; }
.sum-hero .chips { justify-content: flex-start; margin-top: 10px; }
.sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sum-card { padding: 20px 22px 22px; border-radius: 16px; background: rgba(5,6,10,.84); border: 1px solid rgba(247,201,72,.32);
  box-shadow: inset 0 0 20px rgba(255,180,50,.04); animation: optIn .5s both; animation-delay: calc(var(--k, 0) * 40ms); }
.sum-card.wide { grid-column: 1 / -1; }
.sum-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(247,201,72,.16); min-height: 45px; }
.sum-card h3 { display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ouro-2); }
.sum-card h3 span { font-size: 10.5px; color: rgba(255,255,255,.4); letter-spacing: .12em; }
.edit { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid rgba(247,201,72,.5); text-decoration: none;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ouro-2); transition: background .2s, box-shadow .2s; }
.edit:hover { background: rgba(247,201,72,.12); box-shadow: 0 0 12px rgba(255,190,60,.3); }
.edit svg { width: 13px; height: 13px; stroke-width: 2.2; }
.edit.sm { height: 24px; padding: 0 9px; font-size: 11.5px; margin-left: 8px; vertical-align: 1px; }
.sum-card dl { display: grid; gap: 14px; }
.sum-card dt { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.48); margin-bottom: 5px; }
.sum-card dd { font-size: 15.5px; line-height: 1.55; color: #eef1f5; overflow-wrap: anywhere; }
.sum-card dd .chips { justify-content: flex-start; gap: 6px; }
.sum-card dd .chips span { padding: 5px 12px; font-size: 13px; }
.sum-card dd a { color: var(--ouro-1); text-decoration: underline; text-decoration-color: rgba(247,201,72,.45); text-underline-offset: 3px; }
.sum-card dd .links { display: grid; gap: 4px; }
.none { font-style: italic; color: rgba(255,255,255,.38); }

/* ============ Selo animado (confirmações) ============ */
.seal { position: relative; width: 116px; height: 116px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(247,201,72,.2), rgba(5,6,10,.9) 70%); border: 1px solid var(--ouro-2);
  box-shadow: 0 0 26px rgba(255,190,60,.55), inset 0 0 20px rgba(255,190,60,.2); color: var(--ouro-2); }
.seal::before, .seal::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(247,201,72,.7); animation: ping 2.8s ease-out infinite; }
.seal::after { animation-delay: 1.4s; }
.seal svg { width: 52px; height: 52px; stroke-width: 2.2; filter: drop-shadow(0 0 6px rgba(255,190,60,.8)); }
.seal.draw svg path { stroke-dasharray: 30; animation: draw .8s .35s ease both; }
.seal.blue { border-color: var(--azul-claro); color: var(--azul-claro); background: radial-gradient(circle at 50% 35%, rgba(47,123,255,.25), rgba(5,6,10,.9) 70%);
  box-shadow: 0 0 26px rgba(47,123,255,.5), inset 0 0 20px rgba(47,123,255,.2); }
.seal.blue::before, .seal.blue::after { border-color: rgba(111,180,255,.7); }
.seal.blue svg { filter: drop-shadow(0 0 6px rgba(111,180,255,.8)); }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }

/* ============ Diálogos ============ */
dialog { margin: auto; width: min(460px, calc(100% - 32px)); padding: 0; border: 0; background: none; color: var(--branco); overflow: visible; max-height: none; }   /* visible: o brilho/sombra do cartão não é cortado pela caixa do dialog */
dialog::backdrop { background: rgba(2,3,6,.75); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog[open] .panel { animation: pop .35s cubic-bezier(.2,.7,.2,1) both; }
dialog .panel { text-align: center; padding: 34px 26px 30px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }   /* telas baixas: rola dentro do cartão */
dialog h2 { margin-top: 12px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.25; }
dialog p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); }
dialog .actions { margin-top: 24px; flex-direction: column; gap: 12px; }
dialog .actions > * { width: 100%; }
dialog .btn-gold { padding: 0 24px; font-size: 17px; height: 54px; }
/* aviso de cancelamento de assinatura (cliente.html): texto centralizado, prazo em destaque amarelo */
dialog .cx-warn { display: block; margin-top: 2px; font-size: 16px; line-height: 1.5; color: #fff; }
dialog .cx-txt { display: block; margin-top: 12px; }
dialog mark.cx-days { background: rgba(255,200,40,.16); color: #ffd23f; font-weight: 800; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
@media (max-width: 420px) { dialog .cx-warn { font-size: 15px; } dialog .cx-txt { margin-top: 10px; font-size: 14.5px; } }

/* escolha da forma de pagamento (PIX | cartão) — só visual */
.paychoose { text-align: left; }
.paychoose .eyebrow, .paychoose h2 { text-align: center; display: block; }
.pc-opts { display: grid; gap: 12px; margin-top: 18px; }
.pc-opt { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 18px; min-height: 84px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); transition: border-color .2s, background .2s, box-shadow .2s; }
.pc-opt:hover { border-color: rgba(247,201,72,.5); }
.pc-opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.pc-opt:has(input:focus-visible) { outline: 2px solid var(--ouro-2); outline-offset: 3px; }
.pc-radio { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); background: rgba(0,0,0,.35); transition: border-color .2s, background .2s, box-shadow .2s; }
.pc-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pc-txt b { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: .04em; color: var(--branco); }
.pc-txt small { font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,.62); }
.pc-opt.on { border-color: var(--ouro-2); background: linear-gradient(180deg, rgba(58,42,8,.5), rgba(8,8,12,.9)); box-shadow: 0 0 18px rgba(255,180,50,.28), inset 0 0 22px rgba(255,180,50,.06); }
.pc-opt.on .pc-radio { border-color: var(--ouro-2); background: radial-gradient(circle, var(--ouro-2) 0 42%, rgba(0,0,0,.35) 46%); box-shadow: 0 0 10px rgba(255,190,60,.75); }
.pc-opt.on .pc-txt b { color: var(--ouro-1); }
.pc-opt.on .pc-txt small { color: rgba(255,255,255,.8); }
.pc-sum { margin-top: 18px; padding: 6px 16px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.pc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14.5px; color: rgba(255,255,255,.75); }
.pc-row b { white-space: nowrap; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--branco); }
.pc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 14px 0 12px; }
.pc-total span { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .1em; color: rgba(255,255,255,.85); }
.pc-total b { white-space: nowrap; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 26px; color: var(--ouro-1); text-shadow: 0 0 14px rgba(255,190,60,.4); }
.paychoose .card-notice { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.55); text-align: center; }
@media (max-width: 420px) { dialog .paychoose { padding: 26px 16px 22px; } .pc-opt { padding: 16px 14px; gap: 14px; } .pc-total b { font-size: 23px; } }

/* aviso rápido */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 14px; max-width: calc(100% - 32px);
  background: rgba(5,7,12,.96); border: 1px solid rgba(247,201,72,.55); box-shadow: 0 0 22px rgba(255,180,50,.25), 0 20px 40px rgba(0,0,0,.6);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--verde); flex: none; }
.toast.bad { border-color: rgba(255,138,122,.6); }
.toast.bad svg { color: var(--erro); }

/* ============ Animações ============ */
@keyframes optIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes stepInF { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes stepInB { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .6s cubic-bezier(.2,.7,.2,1) both; }

@media (max-width: 860px) {
  .sum-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .brand img { width: 38px; height: 38px; }
  .brand span { display: none; }
  .exit { width: 40px; padding: 0; justify-content: center; }
  .exit span { display: none; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .note { grid-template-columns: 1fr; gap: 10px; }
  .actions .btn-gold, .actions .btn-ghost { width: 100%; }
  .hero .btn-gold { font-size: 17px; padding: 0 60px 0 24px; }
  .hero .btn-gold.plain { padding: 0 24px; }
  .sum-hero { gap: 16px; }
  .sum-hero .s-ico { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
