/* Inter auto-hospedada (fonte variavel, subset latin): elimina a dependencia
   de fonts.googleapis.com e fonts.gstatic.com. Um unico arquivo cobre 400-800. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-latin-var.woff2') format('woff2');
}

:root {
  --blue: oklch(45% 0.16 258);
  --blue-hover: oklch(38% 0.17 258);
  --blue-accent: oklch(75% 0.1 258);
  --blue-badge-bg: oklch(95% 0.03 258 / 90%);
  --blue-badge-text: oklch(38% 0.15 258);
  --badge-gradient-start: oklch(52% 0.16 258);
  --badge-gradient-end: oklch(38% 0.15 258);

  --navy: oklch(20% 0.02 258);
  --navy-border: oklch(32% 0.02 258);
  --overlay-navy: oklch(20% 0.03 258);

  --bg-page: oklch(99% 0.003 258);
  --bg-card-gray: oklch(97% 0.01 258);
  --bg-blue-gray: oklch(96% 0.015 258);

  --text-heading: oklch(18% 0.01 258);
  --text-body: oklch(45% 0.02 258);
  --text-body-alt: oklch(48% 0.02 258);
  --text-muted: oklch(46% 0.02 258);

  --border-light: oklch(92% 0.005 258);
  --border-input: oklch(88% 0.005 258);

  --success-bg: oklch(90% 0.06 145);
  --success-icon: oklch(38% 0.13 145);

  --radius-sm: 7px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 20px 50px -20px oklch(20% 0.02 258 / 25%);
  --shadow-card-lg: 0 20px 50px -24px oklch(20% 0.02 258 / 25%);
  --shadow-badge: 0 10px 22px -8px oklch(38% 0.15 258 / 55%), inset 0 1px 0 oklch(100% 0 0 / 25%);
  --shadow-tabs: 0 2px 10px -4px oklch(20% 0.02 258 / 20%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-page);
  color: var(--text-heading);
  min-height: 100vh;
}

h1, h2, h3, p {
  margin: 0;
}

input::placeholder,
textarea::placeholder {
  color: oklch(55% 0.01 258);
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--blue-hover);
}

input, textarea, select, button {
  font-family: inherit;
}

button, a, .checkbox-row, input[type="checkbox"] {
  touch-action: manipulation;
}

.btn:focus-visible,
.btn-link:focus-visible,
.segmento-option:focus-visible,
.tab:focus-visible,
.stepper-btn:focus-visible,
.input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-blue {
  color: var(--blue);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-md);
  padding: 11px 22px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-hover);
  color: #fff;
}
.btn--pill {
  border-radius: var(--radius-md);
}
.btn--block {
  width: 100%;
}
.btn-link {
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px;
}
.btn-link:hover {
  color: var(--blue-hover);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.brand-logo {
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-logo--danka {
  height: 40px;
}
.brand-logo--porto {
  height: 22px;
}
.brand-divider {
  width: 1px;
  height: 30px;
  background: oklch(88% 0.005 258);
  flex-shrink: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 64px 24px 56px;
  background:
    linear-gradient(100deg, oklch(20% 0.03 258 / 92%) 0%, oklch(20% 0.03 258 / 78%) 45%, oklch(20% 0.03 258 / 40%) 100%),
    url('assets/hero-family.webp') center/cover no-repeat;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.hero-grid > * {
  min-width: 0;
}
.hero-copy {
  padding-top: 24px;
}
.badge {
  display: inline-block;
  background: var(--blue-badge-bg);
  color: var(--blue-badge-text);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero-title {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 2px 16px oklch(0% 0 0 / 30%);
}
.hero-title-accent {
  color: var(--blue-accent);
}
.hero-text {
  font-size: 18px;
  line-height: 1.6;
  color: oklch(94% 0.005 258);
  margin: 0 0 32px;
  max-width: 480px;
  text-shadow: 0 1px 8px oklch(0% 0 0 / 25%);
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}
.stat-label {
  font-size: 13px;
  color: oklch(88% 0.01 258);
  font-weight: 500;
}

/* ===== PROPOSAL FORM CARD ===== */
.proposal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  border: 1px solid oklch(93% 0.005 258);
  max-width: 380px;
  margin-left: auto;
  scroll-margin-top: 90px;
}
.proposal-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 2px;
}
.proposal-subtext {
  font-size: 12px;
  color: var(--text-body-alt);
  margin: 0 0 14px;
}
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input {
  width: 100%;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 13px;
  outline: none;
  color: var(--text-heading);
  background: #fff;
}
.input:focus {
  border-color: var(--blue);
}
.textarea {
  resize: vertical;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-body-alt);
  line-height: 1.4;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--blue);
}
.checkbox-row--field {
  align-items: center;
  font-size: 11.5px;
  color: oklch(35% 0.01 258);
}
.checkbox-row--field input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-top: 0;
}
.conditional-field {
  overflow: hidden;
}
.field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-body-alt);
  margin: 2px 0 -2px;
}
.segmento-toggle {
  display: flex;
  gap: 6px;
}
.segmento-option {
  flex: 1;
  border: 1px solid var(--border-input);
  background: #fff;
  color: var(--text-body-alt);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.segmento-option:hover {
  border-color: var(--blue);
}
.segmento-option--active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.form-row-2col {
  display: flex;
  gap: 8px;
}
.form-row-2col .input {
  flex: 1;
  min-width: 0;
  width: auto;
}
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0;
}
.form-error {
  background: oklch(95% 0.04 25);
  color: oklch(40% 0.15 25);
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin: 0 0 10px;
}

.proposal-success {
  text-align: center;
  padding: 20px 8px;
}
.success-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 12px;
}
.success-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}
.success-text {
  font-size: 12.5px;
  color: var(--text-body-alt);
  margin: 0;
}

/* ===== SECTION HEADINGS ===== */
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}
.section-title--center {
  text-align: center;
  margin: 0 0 40px;
}
.section-subtext {
  font-size: 15px;
  color: var(--text-body);
  margin: 0 0 32px;
}

/* ===== BENEFITS ===== */
.benefits {
  padding: 64px 24px;
  background: #ffffff;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--bg-card-gray);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.benefit-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--badge-gradient-start), var(--badge-gradient-end));
  box-shadow: var(--shadow-badge);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border: 3px solid #ffffff;
}
.benefit-text {
  font-size: 15px;
  font-weight: 600;
  color: oklch(25% 0.01 258);
  margin: 0;
  line-height: 1.5;
}

/* ===== SIMULATOR ===== */
.simulator {
  padding: 64px 24px;
  background: var(--bg-blue-gray);
}
.simulator-container {
  max-width: 640px;
  text-align: center;
}
.tabs {
  display: inline-flex;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-tabs);
}
.tab {
  border: none;
  background: transparent;
  color: oklch(40% 0.02 258);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.tab--active {
  background: var(--blue);
  color: #fff;
}
.simulator-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card-lg);
}
.simulator-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px;
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}
.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font-size: 22px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.stepper-btn:hover {
  background: oklch(97% 0.01 258);
}
.stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.stepper-value {
  font-size: 28px;
  font-weight: 800;
  min-width: 180px;
}
.range-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.simulator-disclaimer {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.6;
}

.result-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-align: center;
}
.result-field-label {
  font-size: 13px;
  color: var(--text-body-alt);
  margin-bottom: 4px;
  text-align: center;
}
.result-credito {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 18px;
  text-align: center;
}
.result-plano {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}
.result-parcela {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 24px;
  text-align: center;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-actions .btn {
  font-size: 15px;
  padding: 14px;
}

/* ===== VIDEO ===== */
.video-section {
  padding: 64px 24px;
  background: #ffffff;
}
.video-container {
  max-width: 800px;
  text-align: center;
}
.video-container .section-title {
  font-size: 26px;
  margin: 0 0 24px;
}
.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px -24px oklch(20% 0.02 258 / 30%);
}
.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-facade {
  cursor: pointer;
  background: #000;
}
.video-facade-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: oklch(45% 0.2 25 / 90%);
  transition: background-color 0.15s ease;
}
.video-facade-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-45%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-facade-play,
.video-facade:focus-visible .video-facade-play {
  background: oklch(45% 0.24 25);
}
.video-fallback-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: oklch(88% 0.01 258);
  padding: 48px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--navy-border);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 16px;
  width: fit-content;
  margin-bottom: 14px;
}
.footer-brand-logo {
  width: auto;
  object-fit: contain;
}
.footer-brand-logo--danka {
  height: 28px;
}
.footer-brand-logo--porto {
  height: 18px;
}
.brand-divider--footer {
  height: 22px;
  background: oklch(85% 0.005 258);
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: oklch(70% 0.01 258);
  margin: 0;
}
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-text {
  font-size: 13.5px;
  margin: 0 0 6px;
  color: oklch(78% 0.01 258);
}
.footer-link {
  font-size: 13.5px;
  color: oklch(78% 0.05 258);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
}
.footer-legal {
  font-size: 11.5px;
  color: oklch(58% 0.02 258);
  margin: 0;
  max-width: 700px;
  line-height: 1.6;
}
.footer-top-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.footer-top-link:hover {
  color: oklch(88% 0.01 258);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(180deg, oklch(20% 0.03 258 / 88%) 0%, oklch(20% 0.03 258 / 88%) 100%),
      url('assets/hero-family-mobile.webp') center/cover no-repeat;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .proposal-card {
    max-width: 100%;
    margin-left: 0;
  }
  .hero-title {
    font-size: 38px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand-logo--danka {
    height: 28px;
  }
  .brand-logo--porto {
    height: 15px;
  }
  .brand-divider {
    height: 20px;
  }
  .header-cta {
    padding: 9px 16px;
    font-size: 13px;
    min-height: 44px;
  }
  .segmento-option {
    min-height: 44px;
  }
  .hero {
    padding: 40px 16px 40px;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-text {
    font-size: 16px;
  }
  .hero-stats {
    gap: 20px;
  }
  .container {
    padding: 0 16px;
  }
  .section-title {
    font-size: 24px;
  }
  .stepper-value {
    font-size: 22px;
    min-width: 140px;
  }
}
