/* PsychoGraph — Stylesheet com Fontes Locais Auto-Hospedadas (100% GDPR Compliance) */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/publicsans-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/publicsans-700.ttf') format('truetype');
}

:root {
  color-scheme: dark;
  --bg-0: #0A1A2F;
  --bg-1: #0E2440;
  --bg-2: #0C1F38;
  --glass: rgba(148, 178, 222, .06);
  --glass-brd: rgba(159, 196, 255, .16);
  --hair: rgba(159, 196, 255, .12);

  --accent: #3B82F6;
  --accent-soft: #7FB0FF;
  --accent-glow: rgba(59, 130, 246, .45);

  --cta: #2563EB;
  --cta-hover: #1E4FD1;

  --text: #EEF4FF;
  --text-2: #9FB3CC;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 44px);
  --section: clamp(76px, 11vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-0);
}

.top-glow {
  position: absolute;
  inset: 0 0 auto;
  height: min(1100px, 120vh);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -6%, rgba(59,130,246,.24), transparent 60%),
    radial-gradient(760px 520px at 6% 2%, rgba(37,99,235,.16), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 62%);
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 80px; }
[hidden] { display: none !important; }

.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;
}

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

.section { padding-block: var(--section); position: relative; }
.alt {
  background: linear-gradient(180deg, rgba(159,196,255,.05), transparent 18%), var(--bg-2);
  border-block: 1px solid var(--hair);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--text); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.25rem + 3.9vw, 3.9rem); line-height: 1.03; font-variation-settings: "opsz" 144; font-weight: 500; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.9rem); line-height: 1.1; font-variation-settings: "opsz" 96; font-weight: 500; }

.eyebrow { margin: 0 0 16px; font: 600 .9375rem/1.4 var(--sans); color: var(--accent-soft); }
.lede { font-size: clamp(1.0625rem, 1rem + .4vw, 1.28rem); line-height: 1.55; color: var(--text-2); }
.measure { max-width: 60ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 16px 30px;
  border: 0;
  border-radius: 10px;
  background: var(--cta);
  color: #fff;
  font: 700 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px -12px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.18);
  transition: background-color .15s ease, box-shadow .2s ease, transform .12s ease, opacity .15s ease;
}

.btn:hover {
  background: var(--cta-hover);
  box-shadow: 0 18px 38px -14px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.18);
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"] { background: #2b3f5e; color: #8ea3c2; box-shadow: none; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: #2b3f5e; }
.btn[aria-busy="true"] { cursor: progress; opacity: .8; }

.btn-danger {
  background: #DC2626;
  box-shadow: 0 12px 30px -12px rgba(220, 38, 38, .45), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-danger:hover {
  background: #B91C1C;
  box-shadow: 0 18px 38px -14px rgba(220, 38, 38, .55);
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10,26,47,.86), rgba(10,26,47,.5));
  border-bottom: 1px solid var(--hair);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand { font: 700 1.4rem/1 var(--sans); letter-spacing: .01em; color: var(--text); text-decoration: none; }
.brand b {
  font-weight: 700;
  background: linear-gradient(92deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.lang-selector a {
  color: var(--text-2);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.lang-selector a:hover, .lang-selector a.active {
  color: var(--text);
  border-color: var(--glass-brd);
  background: var(--glass);
}

.hero { padding-block: clamp(48px, 8vw, 104px) var(--section); }
.hero-grid { display: grid; gap: 56px; }
.hero-copy { position: relative; }
.hero .lede { margin-top: 22px; }
.hero-text { margin-top: 16px; }
.hero-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.micro { font-size: .9375rem; color: var(--text-2); }
.micro time, .micro span[data-price] { color: var(--text); }
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0,7fr) minmax(0,5fr); align-items: center; gap: 76px; }
}

.sheet {
  position: relative;
  aspect-ratio: 210/297;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(158deg, #15305a 0%, #0f2547 60%, #0c1f3c 100%);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.8);
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 60% at 20% -10%, rgba(127,176,255,.16), transparent 55%);
}

.sheet-art {
  --bar: rgba(238,244,255,.26);
  --soft: rgba(159,196,255,.14);
  --tint: rgba(59,130,246,.30);
  position: absolute;
  inset: 11% 12% 17%;
}
.v1 .sheet-art {
  background:
    linear-gradient(var(--bar) 0 0) 0 0/64% 8px no-repeat,
    linear-gradient(var(--soft) 0 0) 0 18px/42% 5px no-repeat,
    radial-gradient(circle closest-side, var(--tint) 0 94%, transparent 96%) 50% 34%/100% 44% no-repeat,
    repeating-linear-gradient(to bottom, var(--soft) 0 5px, transparent 5px 15px) 0 100%/100% 26% no-repeat;
}
.v2 .sheet-art {
  background:
    linear-gradient(var(--bar) 0 0) 0 0/52% 8px no-repeat,
    linear-gradient(var(--tint) 0 0) 0 30px/46% 36% no-repeat,
    repeating-linear-gradient(to bottom, var(--soft) 0 5px, transparent 5px 14px) 100% 30px/46% 36% no-repeat,
    linear-gradient(var(--soft) 0 0) 0 62%/100% 1px no-repeat,
    repeating-linear-gradient(to bottom, var(--soft) 0 5px, transparent 5px 15px) 0 100%/100% 28% no-repeat;
}
.v3 .sheet-art {
  background:
    linear-gradient(var(--bar) 0 0) 0 0/58% 8px no-repeat,
    linear-gradient(var(--soft) 0 0) 0 18px/36% 5px no-repeat,
    linear-gradient(var(--tint) 0 0) 0 34%/28% 17% no-repeat,
    linear-gradient(var(--tint) 0 0) 50% 34%/28% 17% no-repeat,
    linear-gradient(var(--tint) 0 0) 100% 34%/28% 17% no-repeat,
    linear-gradient(var(--bar) 0 0) 50% 52%/1px 9% no-repeat,
    repeating-linear-gradient(to bottom, var(--soft) 0 5px, transparent 5px 15px) 0 100%/100% 30% no-repeat;
}
.sheet-label {
  position: absolute;
  left: 12%;
  bottom: 5.5%;
  font: 600 .75rem/1 var(--sans);
  color: var(--text-2);
  background: rgba(10,26,47,.7);
  border: 1px solid var(--hair);
  padding: 6px 9px;
  border-radius: 6px;
}

.stack { position: relative; width: 100%; max-width: 320px; margin-inline: auto; aspect-ratio: 1/1.06; }
@media (min-width: 920px) { .stack { max-width: 440px; } }
.stack::after {
  content: "";
  position: absolute;
  inset: -12% -8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  filter: blur(6px);
}
.stack .sheet { position: absolute; width: 62%; left: 19%; top: 4%; }
.stack .s1 { transform: translate(-27%,7%) rotate(-7deg); }
.stack .s2 { transform: translate(26%,5%) rotate(5deg); }
.stack .s3 { transform: translate(0,0) rotate(-1.2deg); box-shadow: 0 30px 60px -28px rgba(0,0,0,.9), 0 0 0 1px rgba(127,176,255,.22); }

@media (prefers-reduced-motion: no-preference) {
  .stack .sheet { animation: .95s cubic-bezier(.2,.7,.2,1) both; }
  .stack .s1 { animation-name: fan1; animation-delay: .25s; }
  .stack .s2 { animation-name: fan2; animation-delay: .25s; }
  .stack .s3 { animation-name: rise; animation-delay: .05s; }
}
@keyframes fan1 { from { opacity: 0; transform: translate(0,3%) rotate(-1.2deg); } to { opacity: 1; transform: translate(-27%,7%) rotate(-7deg); } }
@keyframes fan2 { from { opacity: 0; transform: translate(0,3%) rotate(-1.2deg); } to { opacity: 1; transform: translate(26%,5%) rotate(5deg); } }
@keyframes rise { from { opacity: 0; transform: translate(0,6%) rotate(-1.2deg); } to { opacity: 1; transform: translate(0,0) rotate(-1.2deg); } }

.gallery {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 48px calc(-1 * var(--gutter)) 0;
  padding: 6px var(--gutter) 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--glass-brd) transparent;
}
.gallery li { flex: 0 0 74%; max-width: 330px; scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery .sheet { width: 100%; transition: box-shadow .25s ease, transform .25s ease; }
.gallery .sheet:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(127,176,255,.4); transform: translateY(-4px); }
@media (min-width: 760px) {
  .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .gallery li { max-width: none; }
}

.features { list-style: none; margin: 52px 0 0; padding: 0; display: grid; gap: 0 34px; }
.features li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 22px; border-top: 1px solid var(--hair); }
.features .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-brd); }
.features svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.offer {
  background: radial-gradient(760px 560px at 82% 32%, rgba(59,130,246,.14), transparent 62%), linear-gradient(180deg, var(--bg-2), var(--bg-0));
}
.offer-grid { display: grid; gap: 44px; }
@media (min-width: 980px) { .offer-grid { grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: 80px; align-items: start; } }
.price-head { font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.4rem); line-height: 1.02; font-variation-settings: "opsz" 144; font-weight: 600; }
.price-head span[data-price] {
  background: linear-gradient(94deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.offer .sub { margin-top: 18px; font-size: 1.15rem; color: var(--text-2); }
.offer .sub time, .offer .sub span[data-price] { color: var(--text); }
.offer-text { margin-top: 26px; }
.ticks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 16px; border-radius: 5px; background: var(--glass); border: 1px solid var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: .86em; width: 6px; height: 3px; border-left: 1.5px solid var(--accent-soft); border-bottom: 1.5px solid var(--accent-soft); transform: rotate(-45deg); }

.buy {
  background: linear-gradient(180deg, rgba(159,196,255,.08), rgba(18,42,75,.55));
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  padding: clamp(22px, 4.5vw, 38px);
  backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
}
.buy-title { font: 700 1.05rem/1.4 var(--sans); margin: 0 0 20px; color: var(--text); }
.field-label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 8px; color: var(--text); }
.field-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(8,20,38,.7);
  border: 1px solid var(--glass-brd);
  border-radius: 9px;
  margin-bottom: 16px;
}
.field-input:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .2);
}

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 12px 46px 12px 15px;
  font: inherit;
  color: var(--text);
  background: rgba(8,20,38,.7);
  border: 1px solid var(--glass-brd);
  border-radius: 9px;
  cursor: pointer;
}
.select-wrap select:hover { border-color: var(--accent-soft); }
.select-wrap select option { background: #0c1f3c; color: var(--text); }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 9px;
  height: 9px;
  pointer-events: none;
  border-right: 1.5px solid var(--accent-soft);
  border-bottom: 1.5px solid var(--accent-soft);
  transform: translateY(-70%) rotate(45deg);
}
.summary { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: .9844rem; line-height: 1.62; color: var(--text-2); }
.summary strong, .summary time { color: var(--text); }

.consents { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; display: grid; gap: 10px; }
.consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 15px;
  min-height: 44px;
  background: rgba(8,20,38,.55);
  border: 1px solid var(--hair);
  border-radius: 10px;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.consent:hover { border-color: var(--glass-brd); }
.consent:has(input:checked) { border-color: var(--accent-soft); background: rgba(59,130,246,.12); color: var(--text); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent span[data-price] { color: var(--text); }
.guarantee { margin-top: 16px; font-weight: 600; font-size: .9375rem; color: var(--accent-soft); }

.pay { margin-top: 26px; }
.pay .btn { width: 100%; }
.hint { margin-top: 14px; font-size: .875rem; line-height: 1.5; color: var(--text-2); }
.hint.is-alert { color: var(--accent-soft); font-weight: 600; }
.status { margin-top: 8px; font-size: .875rem; line-height: 1.5; color: var(--accent-soft); }
.status:empty { display: none; }
.mor { margin-top: 18px; font-size: .8125rem; color: var(--text-2); }

.faq-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: minmax(0,4fr) minmax(0,7fr); gap: 80px; } }
.faq-list { border-top: 1px solid var(--hair); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  padding: 22px 0;
  font: 600 1.0625rem/1.45 var(--sans);
  color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.pm { position: relative; flex: 0 0 18px; height: 18px; }
.pm::before, .pm::after { content: ""; position: absolute; background: var(--accent-soft); transition: transform .2s ease; }
.pm::before { left: 0; right: 0; top: 8.25px; height: 1.6px; }
.pm::after { top: 0; bottom: 0; left: 8.25px; width: 1.6px; }
details[open] .pm::after { transform: scaleY(0); }
details[open] summary { color: var(--accent-soft); }
.answer { padding: 0 36px 28px 0; max-width: 66ch; color: var(--text-2); }

.closing {
  margin-top: clamp(76px, 10vw, 128px);
  padding-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid var(--hair);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}
.closing h2 { max-width: 22ch; }
.closing .lede time, .closing .lede span[data-price] { color: var(--text); }
.closing .btn { margin-top: 16px; }

.foot { padding-block: 32px 40px; font-size: .875rem; color: var(--text-2); border-top: 1px solid var(--hair); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a.special-cancel {
  color: #FFB4B4;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 180, 180, .5);
}
.foot a.special-cancel:hover {
  color: #FF6B6B;
  border-bottom-style: solid;
}

.mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,26,47,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-brd);
  transform: translateY(120%);
  transition: transform .25s ease;
}
.mbar.is-visible { transform: none; }
.mbar-price { font-size: .9375rem; color: var(--text-2); }
.mbar-price strong { color: var(--text); font-weight: 700; }
.mbar .btn { min-height: 44px; padding: 11px 22px; }
@media (min-width: 760px) { .mbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .mbar, .btn, .consent, .pm::before, .pm::after, .gallery .sheet { transition: none; } }

/* Utility styles for Legal & Self-Service Pages */
.legal-card {
  background: linear-gradient(180deg, rgba(159,196,255,.06), rgba(18,42,75,.4));
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 40px);
  margin-top: 32px;
}
.alert-banner {
  background: rgba(59, 130, 246, .12);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: .95rem;
  line-height: 1.5;
}
.alert-banner.warning {
  background: rgba(234, 179, 8, .1);
  border-color: rgba(234, 179, 8, .4);
  color: #FDE047;
}
.alert-banner.success {
  background: rgba(34, 197, 94, .1);
  border-color: rgba(34, 197, 94, .4);
  color: #86EFAC;
}

/* Link dos termos junto à caixa 1 (fora do texto aceito, que é gravado como prova) */
.consent-link { margin: -4px 0 0; font-size: .875rem; }
.consent-link a { color: var(--text-2); }

/* Aviso de cookies de pagamento (Paddle.js só carrega após aceitar) */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 640px; margin: 0 auto; padding: 16px 20px;
  background: #0f2340; color: var(--text); border: 1px solid var(--hair);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.45);
  display: grid; gap: 12px; font-size: .9375rem;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice.is-required { border-color: var(--accent); }
.cookie-notice p { margin: 0; }
.cookie-notice a { color: var(--text); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-actions .btn { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }
.btn-secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--hair); }
.btn-secondary:hover { background: rgba(255,255,255,.06); }
