@font-face {
  font-family: 'Telma';
  src: url('/assets/Telma-Regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color: #2b2024;
  background: #f6f1ee;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --wine: #80103c;
  --wine-dark: #5f092c;
  --pink: #c9135d;
  --pink-soft: #fff0f5;
  --cream: #f6f1ee;
  --ink: #2b2024;
  --muted: #74666b;
  --line: #e3d7db;
  --surface: #ffffff;
  --danger: #a00d3e;
  --success: #25724f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

button, input, select { font: inherit; }

button, input, select, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--wine);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, 0.72fr) minmax(560px, 1.28fr);
}

.intro {
  position: sticky;
  top: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  background-image: url('/assets/imagem_principal.webp');
  background-position: 68% center;
  background-size: cover;
  color: #fff;
}

.intro::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(62, 9, 31, .2) 0%, rgba(67, 7, 32, .58) 47%, rgba(55, 5, 27, .94) 100%),
    linear-gradient(90deg, rgba(55, 5, 27, .48), transparent 72%);
  content: "";
  pointer-events: none;
}

.intro::after {
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.035), 0 0 0 96px rgba(255,255,255,.025);
  content: "";
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(235px, 72vw);
  height: auto;
  filter: drop-shadow(0 7px 18px rgba(52, 0, 22, .28));
}

.form-logo {
  display: block;
  width: clamp(118px, 18vw, 158px);
  height: auto;
  margin: 0 0 26px;
  mix-blend-mode: multiply;
  filter: saturate(.92) drop-shadow(0 5px 12px rgba(128, 16, 60, .08));
}

.intro-content {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 60px 0;
}

.eyebrow, .step-label {
  margin: 0 0 12px;
  color: #ffd2e2;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 620px;
  margin: 0;
  font-family: 'Telma', Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .99;
}

.intro-copy {
  max-width: 540px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  line-height: 1.65;
}

.benefits {
  display: grid;
  max-width: 540px;
  margin: 38px 0 0;
  padding: 0;
  gap: 17px;
  list-style: none;
}

.benefits li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 13px;
  color: rgba(255,255,255,.82);
  font-size: .91rem;
  line-height: 1.45;
}

.benefits strong { color: #fff; }

.benefit-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #ffd2e2;
  font-size: .63rem;
  font-weight: 800;
}

.security-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  line-height: 1.45;
}

.security-note svg {
  width: 29px;
  flex: 0 0 29px;
  fill: none;
  stroke: #ffd2e2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.security-note p { margin: 0; }
.security-note strong { color: #fff; }

.form-panel {
  display: flex;
  justify-content: center;
  padding: clamp(36px, 6vw, 90px) clamp(24px, 7vw, 100px);
  background: var(--cream);
}

.form-wrap { width: min(100%, 760px); }

.form-header { margin-bottom: 42px; }
.form-header .step-label { color: var(--pink); }

.form-header h2, .success-state h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -.04em;
}

.form-header > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

form { display: grid; gap: 38px; }

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  margin-bottom: 19px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--wine);
  font-size: .93rem;
  font-weight: 800;
}

legend > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-size: .69rem;
}

.fieldset-copy {
  margin: -9px 0 18px;
  color: var(--muted);
  font-size: .82rem;
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
  color: #45383d;
  font-size: .8rem;
  font-weight: 700;
}

.field-wide { grid-column: 1 / -1; }
.field small { color: var(--muted); font-size: .7rem; font-weight: 400; line-height: 1.4; }
.field small:empty { display: none; }

input, select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #d8cbd0;
  border-radius: 8px;
  outline: 0;
  background: rgba(255,255,255,.75);
  color: var(--ink);
  font-size: .9rem;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

input::placeholder { color: #a89ba0; }

input:hover, select:hover { border-color: #c9b6bd; }

input:focus, select:focus {
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,19,93,.09);
}

input[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff8fa;
}

.input-prefix, .password-input { position: relative; display: block; }
.input-prefix b {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--muted);
  transform: translateY(-50%);
}
.input-prefix input { padding-left: 32px; }

.password-input input { padding-right: 52px; }
.password-input button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  transform: translateY(-50%);
}
.password-input button:hover { background: var(--pink-soft); }
.password-input button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}
.password-input button svg[hidden] { display: none; }

.inline-action { position: relative; display: block; }
.inline-action, .inline-action input { width: 100%; }
.inline-action input { padding-right: 48px; }
.inline-action button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--pink-soft);
  color: var(--wine);
  cursor: pointer;
  transform: translateY(-50%);
}
.inline-action button:hover { background: #fbd9e6; }
.inline-action button:disabled { cursor: wait; opacity: .55; }
.inline-action svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.9; }
#cep-feedback.match { color: var(--success); }

.location-helper {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: -4px 0 20px;
  padding: 13px;
  border: 1px solid #e5cfd8;
  border-radius: 9px;
  background: rgba(255,255,255,.58);
}

.location-helper[hidden] { display: none; }
.location-helper button {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: var(--wine);
  color: #fff;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 800;
}
.location-helper button:disabled { cursor: wait; opacity: .65; }
.location-helper button svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.location-helper div { display: grid; gap: 2px; min-width: 0; }
.location-helper strong { color: var(--ink); font-size: .76rem; }
.location-helper small { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.location-feedback { min-height: 0; margin: -11px 0 15px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.location-feedback:empty { display: none; }
.location-feedback a { color: var(--wine); font-weight: 700; }
.location-feedback.error { color: var(--danger); }
.location-feedback.success { color: var(--success); }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength i { height: 3px; border-radius: 99px; background: #dfd3d7; }
.strength[data-level="1"] i:nth-child(-n+1) { background: #bf315b; }
.strength[data-level="2"] i:nth-child(-n+2) { background: #d37b29; }
.strength[data-level="3"] i:nth-child(-n+3) { background: #6b8d3a; }
.strength[data-level="4"] i { background: var(--success); }

.field-error, #password-match.error {
  color: var(--danger);
  font-size: .7rem;
  font-weight: 600;
}

#password-match.match { color: var(--success); }

.address-grid { grid-template-columns: 1fr 2fr .7fr; }
.field-cep { grid-column: span 1; }
.field-street { grid-column: span 2; }
.field-number { grid-column: span 1; }
.field-complement { grid-column: span 2; }
.field-city { grid-column: span 1; }
.field-state { grid-column: span 1; }

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 11px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--pink);
}

.consent a { color: var(--wine); font-weight: 700; }

.turnstile-area { min-height: 65px; }
.captcha-error { margin: 7px 0 0; color: var(--danger); font-size: .75rem; }

.form-error {
  padding: 12px 14px;
  border-left: 3px solid var(--danger);
  border-radius: 5px;
  background: #fff5f8;
  color: var(--danger);
  font-size: .8rem;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--pink);
  box-shadow: 0 10px 24px rgba(128,16,60,.16);
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 800;
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.submit-button:hover { background: #ae104f; box-shadow: 0 12px 28px rgba(128,16,60,.23); }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { opacity: .66; cursor: wait; }
.submit-button svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.submit-note { margin: -28px 0 0; color: var(--muted); font-size: .72rem; text-align: center; }

.studio-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.studio-signature img { width: 34px; height: 34px; object-fit: contain; }
.studio-signature span { display: flex; flex-direction: column; gap: 2px; }
.studio-signature strong { color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.studio-signature small { font-size: .66rem; letter-spacing: .02em; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success-state {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 24px 80px rgba(41, 17, 29, .24);
  text-align: center;
}
.success-state::backdrop { background: rgba(30, 17, 24, .58); backdrop-filter: blur(4px); }
.success-state .eyebrow { color: var(--pink); }
.success-state > p:not(.eyebrow) { max-width: 540px; margin: 16px auto; color: var(--muted); line-height: 1.65; }
.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  place-items: center;
  border-radius: 50%;
  background: #e6f3ed;
  color: var(--success);
}
.success-icon svg { width: 38px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.success-tip { margin-top: 30px !important; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.58); font-size: .82rem; }
.success-close {
  min-width: 180px;
  min-height: 46px;
  margin-top: 24px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.success-close:hover { background: #ae104f; }
.success-close:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.success-notify {
  position: fixed;
  z-index: 1001;
  top: 20px;
  right: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid #a7d4bd;
  border-radius: 10px;
  background: #e6f3ed;
  box-shadow: 0 8px 28px rgba(20, 69, 44, .16);
  color: var(--success);
  font-size: .82rem;
  font-weight: 700;
}
.success-notify span { margin-right: 6px; }

@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; }
  .intro { position: relative; min-height: auto; padding: 34px clamp(22px, 7vw, 70px) 44px; }
  .intro-content { padding: 60px 0 42px; }
  .intro h1 { max-width: 760px; font-size: clamp(2.35rem, 8vw, 4.6rem); }
  .intro { background-position: 64% 36%; }
  .security-note { display: none; }
  .form-panel { padding-top: 55px; }
}

@media (max-width: 640px) {
  .intro { padding: 25px 20px 36px; }
  .intro-content { padding: 48px 0 12px; }
  .intro h1 { width: 100%; max-width: 100%; font-size: clamp(2.45rem, 11vw, 3.25rem); overflow-wrap: break-word; }
  .intro-copy { margin-top: 18px; font-size: .94rem; }
  .benefits { display: none; }
  .brand-logo { width: 190px; }
  .form-logo { width: 128px; margin-bottom: 23px; }
  .form-panel { padding: 42px 18px 60px; }
  .form-wrap { width: 100%; max-width: 100%; }
  .form-header { margin-bottom: 34px; }
  form { gap: 34px; }
  .fields-grid, .address-grid { grid-template-columns: 1fr; }
  .field-wide, .field-cep, .field-street, .field-number, .field-complement, .field-city, .field-state { grid-column: auto; }
  input, select { height: 50px; }
  .location-helper { align-items: stretch; flex-direction: column; }
  .location-helper button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
