/* Google Fonts Import: Montserrat for Display & Headings, DM Sans for Body, DM Mono for Numbers */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Colors - Sunlit Apron Aesthetic */
  --color-amber-pop: #ffd801;      /* Vivid Yellow Accent */
  --color-canvas-gold: #fbefaf;    /* Warm Gold Foundation */
  --color-paper-buff: #fff6d2;     /* Richer Warm Surface Card */
  --color-midnight-ink: #000000;   /* High-Contrast Primary Ink */
  --color-fog: #cccbc7;            /* Soft Border/Separator */
  --color-frost: #ffffff;          /* Pure White (Cards, Light Elements) */
  --color-charcoal-haze: #666664;  /* Dark Neutral / Caption Label */
  --color-ink-muted: #333333;      /* Secondary Body Text */

  /* Typography — Font Families */
  --font-display: 'Montserrat', sans-serif;
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Typography — Scale */
  --text-caption: 12px;
  --leading-caption: 1.4;
  --tracking-caption: 0.16px;

  --text-body-sm: 14px;
  --leading-body-sm: 1.45;
  --tracking-body-sm: 0px;

  --text-body: 16px;
  --leading-body: 1.6;
  --tracking-body: 0.16px;

  --text-subheading: 20px;
  --leading-subheading: 1.4;
  --tracking-subheading: -0.4px;

  --text-heading: 26px;
  --leading-heading: 1.25;
  --tracking-heading: 0.26px;

  --text-heading-lg: 38px;
  --leading-heading-lg: 1.16;
  --tracking-heading-lg: 0.38px;

  --text-display: 72px;
  --leading-display: 1.05;
  --tracking-display: -0.02em;

  /* Border Radii */
  --radius-cards: 20px;
  --radius-buttons: 9999px; /* Pill Shape */
  --radius-inputs: 10px;
  --radius-small: 8px;

  /* Elevation - Premium Neobrutalist Flat Shadows */
  --shadow-md: 4px 4px 0px var(--color-midnight-ink);
  --shadow-lg: 8px 8px 0px var(--color-midnight-ink);

  /* Page Layout constraints */
  --page-max-width: 1200px;
  --spacing-section: 80px;

  /* Transitions */
  --transition-primary: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-quick: all 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset and Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background-color: var(--color-amber-pop);
  color: var(--color-midnight-ink);
}

/* Custom Scrollbar conforming to Refero Craft Details */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--color-canvas-gold);
}
::-webkit-scrollbar-thumb {
  background-color: var(--color-midnight-ink);
  border-radius: 6px;
  border: 3px solid var(--color-canvas-gold);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-amber-pop);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-canvas-gold);
  color: var(--color-midnight-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-canvas-gold);
  padding-top: 72px; /* Smooth padding for single sticky header */
}

/* Typography Base Elements with Balanced Wrapping */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-midnight-ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: 400;
  color: var(--color-ink-muted);
  text-wrap: pretty;
}

/* WCAG Compliant Accessibility Focus Rings */
.form-control:focus,
.btn:focus-visible,
input[type="range"]:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-amber-pop), 0 0 0 6px var(--color-midnight-ink) !important;
  transform: translateY(-2px);
}

/* Tabular figures for clean transitions in animations/numbers */
.calc-number,
.slider-value,
.comparison-table td {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

a {
  color: var(--color-midnight-ink);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-quick);
}

a:hover {
  opacity: 0.8;
}

/* Container */
.container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Single Sticky Header Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background-color: rgba(251, 239, 175, 0.85); /* Canvas Gold Translúcido */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-primary);
}

.header.scrolled {
  background-color: rgba(251, 239, 175, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-midnight-ink);
  cursor: pointer;
}

.logo span {
  font-weight: 400;
  color: var(--color-charcoal-haze);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--color-amber-pop);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-midnight-ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-midnight-ink);
  opacity: 0.85;
  transition: var(--transition-quick);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-midnight-ink);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
}

.nav-mobile-actions {
  display: none;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-buttons);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-body-sm);
  padding: 10px 22px;
  cursor: pointer;
  transition: var(--transition-primary);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background-color: var(--color-amber-pop);
  color: var(--color-midnight-ink);
  border: 2px solid var(--color-midnight-ink);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: #e6c200;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-midnight-ink);
  border: 2px solid var(--color-midnight-ink);
}

.btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--color-midnight-ink);
  color: var(--color-frost);
  border: 2px solid var(--color-midnight-ink);
}

.btn-dark:hover {
  background-color: var(--color-charcoal-haze);
  border-color: var(--color-charcoal-haze);
  transform: translateY(-2px);
}

.btn-link {
  background-color: transparent;
  color: var(--color-midnight-ink);
  padding: 8px 16px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.btn-link:hover {
  border-bottom-color: var(--color-midnight-ink);
  opacity: 1;
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  background-color: var(--color-canvas-gold);
  overflow: clip; /* Evita quebra lateral por causa dos widgets flutuantes */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-midnight-ink);
  background-color: var(--color-amber-pop);
  border: 2px solid var(--color-midnight-ink);
  padding: 4px 12px;
  border-radius: var(--radius-small);
  margin-bottom: 20px;
}

.hero-title {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: 800;
  color: var(--color-midnight-ink);
  margin-bottom: 24px;
  max-width: 100%;
}

.hero-desc {
  font-size: var(--text-subheading);
  line-height: var(--leading-subheading);
  font-weight: 500;
  color: var(--color-charcoal-haze);
  margin-bottom: 32px;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Selos de Confiança */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 2.5px dashed rgba(0, 0, 0, 0.15);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-midnight-ink);
}

.trust-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5px;
  color: var(--color-midnight-ink);
}

/* Hero Visual & Interactive Scene */
.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-scene-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 20px;
}

/* Faux Browser Mockup */
.faux-browser {
  width: 100%;
  background-color: var(--color-paper-buff);
  border: 3.5px solid var(--color-midnight-ink);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  line-height: 0;
}

.browser-header {
  height: 38px;
  background-color: var(--color-frost);
  border-bottom: 3.5px solid var(--color-midnight-ink);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--color-midnight-ink);
}

.browser-dots .dot.red { background-color: #ff5f56; }
.browser-dots .dot.yellow { background-color: #ffbd2e; }
.browser-dots .dot.green { background-color: #27c93f; }

.browser-address {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-canvas-gold);
  border: 1.5px solid var(--color-midnight-ink);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  color: var(--color-charcoal-haze);
  white-space: nowrap;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browser-body {
  width: 100%;
}

.browser-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Floating Widgets */
.floating-widget {
  position: absolute;
  background-color: var(--color-frost);
  border: 2.5px solid var(--color-midnight-ink);
  border-radius: var(--radius-small);
  box-shadow: 4px 4px 0px #000000;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10;
}

/* Widget 1: Cartão de Crédito */
.card-widget {
  width: 190px;
  height: 110px;
  bottom: -15px;
  left: -35px;
  background: linear-gradient(135deg, var(--color-amber-pop) 0%, #ff9d00 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-6deg);
  color: var(--color-midnight-ink);
  animation: heroFloatCard 6s ease-in-out infinite;
}

.card-chip {
  width: 24px;
  height: 18px;
  background-color: var(--color-frost);
  border: 1.5px solid var(--color-midnight-ink);
  border-radius: 4px;
}

.card-brand {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  margin-top: 12px;
  letter-spacing: 0.5px;
}

.card-holder {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Widget 2: Recibo de Transação */
.tx-widget {
  width: 165px;
  top: -25px;
  right: -25px;
  padding: 12px;
  background-color: var(--color-frost);
  animation: heroFloatTx 5s ease-in-out infinite;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1.5px dashed rgba(0, 0, 0, 0.15);
  padding-bottom: 6px;
  line-height: 1;
}

.widget-date {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-charcoal-haze);
}

.widget-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.widget-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-charcoal-haze);
  text-transform: uppercase;
}

.widget-value {
  font-size: 15px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--color-midnight-ink);
}

/* Widget 3: Contador de Milhas */
.miles-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  bottom: 35px;
  right: -45px;
  padding: 10px 14px;
  background-color: var(--color-paper-buff);
  animation: heroFloatMiles 7s ease-in-out infinite;
}

.miles-icon {
  width: 28px;
  height: 28px;
  background-color: var(--color-amber-pop);
  border: 1.5px solid var(--color-midnight-ink);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.miles-icon svg {
  width: 14px;
  height: 14px;
  color: var(--color-midnight-ink);
  stroke-width: 3px;
}

.miles-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.miles-value {
  font-size: 15px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--color-midnight-ink);
}

.miles-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-charcoal-haze);
}

/* Keyframe Animations for Natural Float */
@keyframes heroFloatCard {
  0% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-6px); }
  100% { transform: rotate(-6deg) translateY(0); }
}

@keyframes heroFloatTx {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes heroFloatMiles {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* Layered Parallax Spring Interaction on Hover */
.hero-scene-container:hover .faux-browser {
  transform: scale(1.015) translate(-2px, -2px);
  box-shadow: 12px 12px 0px #000000;
}

.hero-scene-container:hover .card-widget {
  transform: rotate(-10deg) scale(1.05) translate(-12px, -8px);
  box-shadow: 8px 8px 0px #000000;
  animation-play-state: paused;
}

.hero-scene-container:hover .tx-widget {
  transform: scale(1.06) translate(8px, -8px);
  box-shadow: 8px 8px 0px #000000;
  animation-play-state: paused;
}

.hero-scene-container:hover .miles-widget {
  transform: scale(1.05) translate(12px, 6px);
  box-shadow: 8px 8px 0px #000000;
  animation-play-state: paused;
}

/* Sections rhythm */
.section {
  padding: var(--spacing-section) 0;
  background-color: var(--color-canvas-gold);
}

.section-alt {
  background-color: var(--color-paper-buff);
}

.section-header {
  margin-bottom: 52px;
  text-align: center;
}

.section-header.left-aligned {
  text-align: left;
  max-width: 600px;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-charcoal-haze);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: var(--text-heading-lg);
  line-height: var(--leading-heading-lg);
  font-weight: 800;
  color: var(--color-midnight-ink);
  margin-bottom: 16px;
}

.section-desc {
  font-size: var(--text-subheading);
  line-height: var(--leading-subheading);
  font-weight: 500;
  color: var(--color-charcoal-haze);
  max-width: 720px;
  margin: 0 auto;
}

.section-header.left-aligned .section-desc {
  margin: 0;
}

/* Split feature section */
.split-feature {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.split-feature:last-child {
  margin-bottom: 0;
}

.split-feature.reverse {
  flex-direction: row-reverse;
}

.split-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.split-title {
  font-size: var(--text-heading-lg);
  line-height: var(--leading-heading-lg);
  font-weight: 800;
}

.split-desc {
  font-size: var(--text-body);
  color: var(--color-ink-muted);
}

.split-image-container {
  flex: 1;
  position: relative;
}

.split-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-cards);
  border: 3px solid var(--color-midnight-ink);
  box-shadow: var(--shadow-md);
}

.split-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-amber-pop);
  color: var(--color-midnight-ink);
  border: 2px solid var(--color-midnight-ink);
  padding: 8px 16px;
  border-radius: var(--radius-small);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.split-feature.reverse .split-badge {
  right: auto;
  left: 20px;
}

.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0;
}

.split-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-body);
  color: var(--color-ink-muted);
}

.split-item strong {
  color: var(--color-midnight-ink);
}

.split-item::before {
  content: "";
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-amber-pop);
  border: 2px solid var(--color-midnight-ink);
  box-shadow: 1px 1px 0px var(--color-midnight-ink);
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* Feature Grid and Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  border-radius: var(--radius-cards);
  padding: 32px;
  background-color: var(--color-paper-buff);
  border: 3.5px solid var(--color-midnight-ink);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
}

.card:hover {
  transform: translate(-6px, -6px);
  box-shadow: var(--shadow-lg);
}

.card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--color-midnight-ink);
}

.card-white {
  background-color: var(--color-frost);
}

.card-recessed {
  background-color: var(--color-paper-buff);
}

.card-dark {
  background-color: var(--color-midnight-ink);
  color: var(--color-frost);
}

.card-dark h3 {
  color: var(--color-frost);
}

.card-dark p {
  color: rgba(255, 255, 255, 0.85);
}

.card-icon {
  width: 48px;
  height: 48px;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-amber-pop);
  color: var(--color-midnight-ink);
  border: 2px solid var(--color-midnight-ink);
  margin-bottom: 8px;
  box-shadow: var(--shadow-md);
}

.card-dark .card-icon {
  background-color: var(--color-amber-pop);
  color: var(--color-midnight-ink);
}

.card-title {
  font-size: var(--text-subheading);
  font-weight: 700;
}

.card-desc {
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.card-action-link {
  font-family: var(--font-display);
  font-size: var(--text-body-sm);
  color: var(--color-midnight-ink);
  font-weight: 700;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 2px solid transparent;
  width: fit-content;
  padding-bottom: 2px;
}

.card-action-link:hover {
  border-bottom-color: var(--color-midnight-ink);
  opacity: 1;
}

.card-action-link::after {
  content: "→";
}

.card-dark .card-action-link {
  color: var(--color-amber-pop);
}

.card-dark .card-action-link:hover {
  border-bottom-color: var(--color-amber-pop);
}

/* Rent Rewards Calculator Section */
.stage-gradient {
  padding: 60px 40px;
  border-radius: var(--radius-cards);
  border: 3px solid var(--color-midnight-ink);
  box-shadow: var(--shadow-lg);
  background-color: var(--color-paper-buff); /* Warm and sunlit */
  width: 100%;
}

.stage-indigo {
  background: radial-gradient(circle at 10% 20%, rgb(255, 246, 210) 0%, rgb(251, 239, 175) 90%);
}

.stage-citrus {
  background: linear-gradient(135deg, var(--color-amber-pop) 0%, var(--color-canvas-gold) 100%);
}

.stage-gradient h2 {
  font-size: var(--text-heading-lg);
  margin-bottom: 12px;
  text-align: center;
}

.stage-gradient p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 28px;
  font-weight: 500;
}

.calc-container {
  background-color: var(--color-frost);
  border-radius: var(--radius-cards);
  border: 3.5px solid var(--color-midnight-ink);
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.calc-inputs {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-header label {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--color-midnight-ink);
}

.slider-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-midnight-ink);
  background-color: var(--color-amber-pop);
  padding: 4px 12px;
  border-radius: var(--radius-small);
  border: 2px solid var(--color-midnight-ink);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 9999px;
  background: var(--color-canvas-gold);
  border: 2.5px solid var(--color-midnight-ink);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-amber-pop);
  border: 2.5px solid var(--color-midnight-ink);
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--color-midnight-ink);
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 4px 4px 0px var(--color-midnight-ink);
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(0.95);
  box-shadow: 1px 1px 0px var(--color-midnight-ink);
}

.calc-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-charcoal-haze);
}

.calc-outputs {
  flex: 0.8;
  background-color: var(--color-paper-buff);
  border-radius: var(--radius-cards);
  border: 2.5px solid var(--color-midnight-ink);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calc-outputs .calc-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-charcoal-haze);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.calc-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-midnight-ink);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.calc-outputs .calc-desc {
  font-weight: 600;
  color: var(--color-midnight-ink);
  font-size: 14px;
  margin-bottom: 16px;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background-color: var(--color-frost);
  border: 3.5px solid var(--color-midnight-ink);
  border-radius: var(--radius-cards);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card:hover {
  transform: translate(-6px, -6px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--color-midnight-ink);
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
  color: var(--color-ink-muted);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-amber-pop);
  color: var(--color-midnight-ink);
  border: 2px solid var(--color-midnight-ink);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-md);
}

.author-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-midnight-ink);
}

.author-info p {
  font-size: 13px;
  color: var(--color-charcoal-haze);
}

/* FAQ Accordion Details */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

details {
  background-color: var(--color-paper-buff);
  border: 3px solid var(--color-midnight-ink);
  border-radius: var(--radius-cards);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-primary);
}

details[open] {
  box-shadow: var(--shadow-lg);
}

summary {
  padding: 24px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-midnight-ink);
  cursor: pointer;
  user-select: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

/* Hide standard arrow and add custom one */
summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 24px 24px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.5);
}

.faq-content p {
  padding-top: 16px;
  font-size: 15px;
  color: var(--color-ink-muted);
}

/* Footer Section */
.footer {
  background-color: var(--color-midnight-ink);
  color: var(--color-frost);
  padding: 80px 0 40px;
  margin-top: auto;
  border-top: 4px solid var(--color-amber-pop);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-frost);
}

.footer-logo span {
  font-weight: 400;
  color: var(--color-amber-pop);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.footer-column h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-amber-pop);
  font-family: var(--font-display);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 400;
}

.footer-links a:hover {
  color: var(--color-amber-pop);
  text-decoration: underline;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 400;
  margin-left: 20px;
}

.footer-bottom a:hover {
  color: var(--color-amber-pop);
}

/* Dialogue Modal - Accessibility compliant */
dialog {
  border: 3.5px solid var(--color-midnight-ink);
  border-radius: var(--radius-cards);
  padding: 32px;
  width: 100%;
  max-width: 500px;
  margin: auto;
  background-color: var(--color-paper-buff);
  box-shadow: var(--shadow-lg);
  outline: none;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

/* Animations for modern top-layer dialogue using @starting-style */
dialog[open] {
  animation: modal-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dialog-title {
  font-size: 22px;
  font-weight: 800;
}

.dialog-close {
  background: transparent;
  border: none;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  color: var(--color-midnight-ink);
  line-height: 1;
  transition: var(--transition-quick);
}

.dialog-close:hover {
  transform: scale(1.15);
}

/* Lead Capture Form */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-status {
  padding: 12px;
  border-radius: var(--radius-small);
  border: 2px solid var(--color-midnight-ink);
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border-color: #065f46;
}

.form-status.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #991b1b;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-midnight-ink);
}

.form-control {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px;
  border-radius: var(--radius-inputs);
  border: 2.5px solid var(--color-midnight-ink);
  background-color: var(--color-frost);
  color: var(--color-midnight-ink);
  outline: none;
  transition: var(--transition-quick);
}

.form-control::placeholder {
  color: #8c8b88;
}

.form-control:focus {
  border-color: var(--color-amber-pop);
  box-shadow: var(--shadow-md);
}

.form-control-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-charcoal-haze);
  cursor: pointer;
  text-align: left;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-amber-pop);
  width: 16px;
  height: 16px;
}

/* Scroll reveal properties */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .header {
    padding: 0 24px;
  }

  .header .header-actions {
    display: none; /* Hide header buttons on mobile */
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-amber-pop);
    border: 2px solid var(--color-midnight-ink);
    border-radius: 50%;
    box-shadow: 2px 2px 0px var(--color-midnight-ink);
    cursor: pointer;
    transition: var(--transition-quick);
    color: var(--color-midnight-ink);
    z-index: 1001; /* Keep it above the nav drawer */
    outline: none;
    padding: 0;
  }

  .mobile-menu-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--color-midnight-ink);
  }

  .mobile-menu-btn svg {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .mobile-menu-btn .line-top,
  .mobile-menu-btn .line-mid,
  .mobile-menu-btn .line-bot {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .mobile-menu-btn.open .line-mid {
    opacity: 0;
  }

  .mobile-menu-btn.open .line-top {
    transform: translateY(6px) rotate(45deg);
    transform-origin: center;
  }

  .mobile-menu-btn.open .line-bot {
    transform: translateY(-6px) rotate(-45deg);
    transform-origin: center;
  }

  .nav {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--color-canvas-gold);
    border-top: 3.5px solid var(--color-midnight-ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 22px;
    font-weight: 800;
    width: 100%;
    text-align: center;
    padding: 8px 0;
  }

  .nav-link::after {
    display: none; /* Hide hover line effect on mobile links */
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 320px;
    margin-top: 16px;
    border-top: 2.5px dashed rgba(0, 0, 0, 0.15);
    padding-top: 24px;
  }

  .nav-mobile-actions .btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 52px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-desc {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
    width: 100%;
  }
  
  .hero-trust {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  
  .split-feature {
    flex-direction: column !important;
    gap: 40px;
  }
  
  .split-image {
    height: 320px;
  }
  
  .calc-container {
    flex-direction: column;
    padding: 24px;
  }
  
  .calc-inputs, .calc-outputs {
    width: 100%;
    flex: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-desc {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  
  .hero-scene-container {
    max-width: 320px;
    padding: 10px;
  }
  
  .card-widget {
    width: 130px;
    height: 80px;
    left: -20px;
    bottom: -10px;
    padding: 8px;
    animation-name: heroFloatCardMobile;
  }
  
  .card-chip {
    width: 16px;
    height: 11px;
  }
  
  .card-brand {
    top: 8px;
    right: 8px;
    font-size: 9px;
  }
  
  .card-number {
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: 0px;
  }
  
  .card-holder {
    font-size: 7px;
  }
  
  .tx-widget {
    width: 115px;
    top: -15px;
    right: -15px;
    padding: 8px;
  }
  
  .widget-value {
    font-size: 11px;
  }
  
  .widget-label {
    font-size: 7px;
  }
  
  .widget-date {
    font-size: 7px;
  }
  
  .miles-widget {
    padding: 6px 10px;
    bottom: 20px;
    right: -20px;
  }
  
  .miles-value {
    font-size: 11px;
  }
  
  .miles-label {
    font-size: 7px;
  }
  
  .miles-icon {
    width: 20px;
    height: 20px;
  }
  
  .miles-icon svg {
    width: 10px;
    height: 10px;
  }
  
  @keyframes heroFloatCardMobile {
    0% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-4px); }
    100% { transform: rotate(-4deg) translateY(0); }
  }

  .browser-address {
    display: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-bottom-links {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .footer-bottom a {
    margin: 0 10px;
  }
}

/* Neobrutalist Premium Comparison Table styling conforming to Refero style design */
.comparison-table-card {
  border: 3.5px solid var(--color-midnight-ink) !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: var(--radius-cards);
  overflow: hidden;
  background-color: var(--color-frost) !important;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 2.5px solid var(--color-midnight-ink);
  color: var(--color-midnight-ink);
  vertical-align: middle;
}

.comparison-table th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  background-color: var(--color-paper-buff);
}

.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
  background-color: rgba(255, 216, 1, 0.15) !important;
  border-left: 2.5px solid var(--color-midnight-ink);
  border-right: 2.5px solid var(--color-midnight-ink);
  text-align: center;
  font-weight: 700;
}

.comparison-table th.highlight-col {
  background-color: var(--color-amber-pop) !important;
  font-weight: 800;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: rgba(251, 239, 175, 0.2);
}

.comparison-table tr:hover td.highlight-col {
  background-color: rgba(255, 216, 1, 0.25) !important;
}

.comparison-table-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.comparison-table-icon.success {
  color: #0d9488; /* Premium Teal */
}

.comparison-table-icon.danger {
  color: #e11d48; /* Premium Rose */
}

/* FAQ Details/Summary enhancements */
details {
  border: 3.5px solid var(--color-midnight-ink) !important;
  box-shadow: var(--shadow-md) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

details:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-lg) !important;
}

details[open] {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md) !important;
}

summary {
  font-weight: 800 !important;
  font-size: 18px !important;
  padding: 24px 32px !important;
}

summary::after {
  content: "" !important;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

details[open] summary::after {
  transform: rotate(135deg);
}

/* Onboarding Card styling */
.onboarding-card {
  border: 3.5px solid var(--color-midnight-ink) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 40px !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

@media (max-width: 576px) {
  .onboarding-card {
    padding: 24px 20px !important;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Responsive Comparison Table scroll support */
@media (max-width: 768px) {
  .comparison-table-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table {
    min-width: 600px;
  }
}
