/* ============================================================
   Cota Saúde — Global Stylesheet
   Pure CSS containing design system tokens, components, 
   responsive website layout, and mobile app simulator styles.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* ---- Brand Ramps ---- */
  --navy-900: #00132E;
  --navy-800: #00194D;   /* core brand navy */
  --navy-700: #0A2A66;
  --navy-600: #16407F;

  --blue-700: #0A5FA0;
  --blue-600: #0D75C3;   /* primary blue */
  --blue-500: #2A8BD6;
  --blue-400: #5CA8E2;
  --blue-200: #BBD9F2;
  --blue-100: #E2EEFA;
  --blue-050: #F1F7FD;

  --teal-700: #0A8092;
  --teal-600: #0FB2C5;   /* accent teal */
  --teal-500: #1AC4D2;
  --teal-400: #4FD6DF;
  --teal-200: #B6ECF0;
  --teal-100: #E0F7F9;
  --teal-050: #F0FBFC;

  --green-600: #16A06B;
  --green-500: #1FB87D;
  --green-100: #DEF5EB;

  --gray-900: #111A2E;
  --gray-800: #1F2A40;
  --gray-700: #36425A;
  --gray-600: #55617A;
  --gray-500: #7A86A0;
  --gray-400: #A4AFC4;
  --gray-300: #CBD3E1;
  --gray-200: #E3E9F2;
  --gray-100: #EFF3F9;
  --gray-050: #F6F9FC;
  --white:    #FFFFFF;

  --amber-600: #E0901B;
  --amber-100: #FBEFD6;
  --red-600:   #E0443E;
  --red-100:   #FBE3E1;

  /* ---- Semantic Aliases ---- */
  --color-primary:        var(--blue-600);
  --color-primary-hover:  var(--blue-700);
  --color-primary-press:  var(--navy-700);
  --color-accent:         var(--teal-600);
  --color-accent-hover:   var(--teal-700);

  --text-strong:   var(--navy-800);
  --text-body:     var(--gray-700);
  --text-muted:    var(--gray-500);
  --text-on-brand: var(--white);
  --text-link:     var(--blue-600);

  --surface-page:   var(--gray-050);
  --surface-card:   var(--white);
  --surface-raised: var(--white);
  --surface-sunken: var(--gray-100);
  --surface-brand:  var(--navy-800);
  --surface-accent-soft: var(--teal-050);
  --surface-info-soft:   var(--blue-050);

  --border-subtle: var(--gray-200);
  --border-default: var(--gray-300);
  --border-strong: var(--gray-400);
  --border-focus:  var(--blue-500);

  --status-success: var(--green-600);
  --status-success-soft: var(--green-100);
  --status-warning: var(--amber-600);
  --status-warning-soft: var(--amber-100);
  --status-error:   var(--red-600);
  --status-error-soft: var(--red-100);
  --status-info:    var(--blue-600);
  --status-info-soft: var(--blue-050);

  /* ---- Typography ---- */
  --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.375rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;
  --weight-extra:   800;

  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;
  --tracking-tight:  -0.02em;
  --tracking-caps:   0.12em;

  /* ---- Corner Radii ---- */
  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ---- Spacing Scale ---- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.5rem;
  --space-8:  3rem;
  --space-9:  4rem;
  --space-10: 5rem;
  --container-xl: 1240px;

  /* ---- Elevation Shadows ---- */
  --shadow-xs: 0 1px 2px rgba(0, 25, 77, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 25, 77, 0.07);
  --shadow-md: 0 8px 24px rgba(0, 25, 77, 0.09);
  --shadow-lg: 0 18px 48px rgba(0, 25, 77, 0.12);
  --shadow-brand: 0 12px 30px rgba(13, 117, 195, 0.28);
  --shadow-accent: 0 12px 30px rgba(15, 178, 197, 0.30);

  /* ---- Gradients ---- */
  --gradient-brand: linear-gradient(120deg, var(--blue-600) 0%, var(--teal-600) 100%);
  --gradient-brand-soft: linear-gradient(120deg, var(--blue-050) 0%, var(--teal-050) 100%);
  --gradient-deep: linear-gradient(140deg, var(--navy-800) 0%, var(--blue-700) 60%, var(--teal-700) 130%);

  /* ---- Focus Ring ---- */
  --ring: 0 0 0 3px rgba(42, 139, 214, 0.35);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   Base CSS Reset
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--surface-page);
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

/* ============================================================
   Layout & Typography Utilites
   ============================================================ */
.wrap {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.text-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Header Component
   ============================================================ */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

header.site .bar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand b {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: 20px;
  color: var(--navy-800);
  letter-spacing: var(--tracking-tight);
}

.brand b em {
  color: var(--teal-600);
  font-style: normal;
}

.header-tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  border-left: 1px solid var(--border-default);
  padding-left: 16px;
  display: inline-block;
}

/* Contact Button */
.wa-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1.5px solid var(--border-default);
  color: var(--text-strong);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}

.wa-link svg {
  color: var(--green-600);
  fill: currentColor;
}

.wa-link:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -160px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle at center, rgba(15, 178, 197, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero .grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-9);
  align-items: start;
  padding: var(--space-9) 0 var(--space-10);
}

.hero-text-panel,
.hero-card-panel {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-accent-soft);
  color: var(--teal-700);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background: var(--teal-600);
  box-shadow: 0 0 8px var(--teal-400);
}

h1.hero-title {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: 44px;
  line-height: var(--leading-tight);
  letter-spacing: 0;
  color: var(--navy-800);
  margin-top: 24px;
}

.hero-title-support {
  max-width: 44ch;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--navy-700);
}

.hero-sub {
  font-size: var(--text-md);
  color: var(--text-body);
  line-height: var(--leading-relaxed);
  margin-top: 16px;
  max-width: 48ch;
}

.operators-section {
  margin-top: var(--space-8);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.operators-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}

.op-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 62px;
  box-shadow: var(--shadow-xs);
}

.op-logo {
  display: block;
  width: auto;
  max-width: 132px;
  max-height: 40px;
  object-fit: contain;
}

.stats-grid {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.stat-item {
  flex: none;
}

.stat-item .value {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  font-size: var(--text-3xl);
  color: var(--navy-800);
  white-space: nowrap;
}

.stat-item .label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   UI Components (Pure CSS spec)
   ============================================================ */

/* Card */
.c-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-7);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.c-card.accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.c-card.interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Button */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  gap: 8px;
}

.c-btn:active {
  transform: scale(0.97);
}

.c-btn:hover {
  filter: brightness(1.06);
}

.c-btn.block {
  display: flex;
  width: 100%;
}

.c-btn.disabled,
.c-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
}

/* Button Sizes */
.c-btn.md {
  font-size: var(--text-base);
  padding: 12px 24px;
  min-height: 48px;
}

.c-btn.lg {
  font-size: var(--text-md);
  padding: 15px 32px;
  min-height: 54px;
}

/* Button Variants */
.c-btn.primary {
  background: var(--gradient-brand);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-brand);
}

.c-btn.outline {
  background: var(--surface-card);
  color: var(--color-primary);
  border: 1.5px solid var(--blue-200);
  box-shadow: var(--shadow-xs);
}

.c-btn.outline:hover {
  border-color: var(--color-primary);
}

.c-btn.secondary {
  background: var(--navy-800);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-sm);
}

.c-btn.accent-var {
  background: var(--color-accent);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-accent);
}

/* Steps Indicator */
.c-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: none;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  background: var(--surface-card);
  color: var(--text-muted);
  border: 1.5px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: 13px;
  font-family: var(--font-display);
  transition: all var(--dur-base) var(--ease-out);
}

.step-circle svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 3.5;
}

.step-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-default);
  margin-bottom: 22px;
  margin-left: 8px;
  margin-right: 8px;
  border-radius: 2px;
  transition: background var(--dur-base) var(--ease-out);
}

.step-node.active .step-circle {
  background: var(--gradient-brand);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.step-node.active .step-label {
  color: var(--text-strong);
  font-weight: var(--weight-bold);
}

.step-node.done .step-circle {
  background: var(--gradient-brand);
  color: var(--white);
  border-color: transparent;
}

.step-connector.done {
  background: var(--color-accent);
}

.form-stepper-hidden {
  display: none;
}

/* Fields & Groups */
.field-block {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-6);
}

.field-block:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.field-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.field-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-circle);
  background: var(--gradient-brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.field-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: var(--navy-800);
}

.field-help {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 14px;
  margin-left: 36px;
  line-height: var(--leading-normal);
}

.field-content {
  margin-left: 36px;
}

.form-step-view + .form-step-view .field-block,
.sim-form-step + .sim-form-step .field-block {
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
}

/* Counter Component */
.counter-widget {
  display: flex;
  align-items: center;
  gap: 16px;
}

.counter-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-default);
  background: var(--surface-card);
  color: var(--color-primary);
  font-size: 24px;
  font-weight: var(--weight-bold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease-out);
}

.counter-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--blue-050);
}

.counter-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.counter-display {
  min-width: 60px;
  text-align: center;
}

.counter-display .num {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xl);
  color: var(--navy-800);
  display: block;
}

.counter-display .lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  margin-top: -2px;
}

/* ============================================================
   Age Table — Step 2 Beneficiary Age Selector
   ============================================================ */
.age-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: var(--text-sm);
}

.age-table thead tr {
  background: var(--surface-info-soft);
}

.age-table th {
  padding: 10px 14px;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  text-align: left;
  border-bottom: 1.5px solid var(--border-subtle);
}

.age-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

.age-table tbody tr:hover {
  background: var(--surface-info-soft);
}

/* Beneficiary label cell */
.age-person-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  background: var(--gradient-brand-soft);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* Type badge */
.age-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--text-body);
  white-space: nowrap;
}

/* Age stepper inside table */
.age-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.age-stepper .counter-btn {
  width: 32px;
  height: 32px;
  font-size: 18px;
  border-radius: var(--radius-md);
}

.age-input {
  width: 44px;
  height: 36px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  color: var(--navy-800);
  text-align: center;
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.age-input:focus {
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}

.beneficiary-type-select {
  width: 150px;
  min-height: 36px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: 7px 10px;
  outline: none;
}

.beneficiary-type-select:focus {
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}

.age-action-cell {
  width: 42px;
  text-align: right;
}

.age-remove-btn {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-circle);
  background: var(--surface-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  font-weight: var(--weight-bold);
  line-height: 1;
  transition: all var(--dur-fast) var(--ease-out);
}

.age-remove-btn:hover:not(:disabled) {
  border-color: var(--status-error);
  color: var(--status-error);
  background: var(--status-error-soft);
}

.age-remove-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.beneficiary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.beneficiary-actions span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
}

.beneficiary-add-btn {
  min-height: 42px;
  padding: 10px 18px;
  font-size: var(--text-sm);
}

.simulator-container .age-table th,
.simulator-container .age-table td {
  padding: 8px 6px;
}

.simulator-container .age-person-label {
  gap: 6px;
}

.simulator-container .age-person-label span:last-child {
  display: none;
}

.simulator-container .beneficiary-type-select {
  width: 104px;
  font-size: 12px;
  padding-inline: 6px;
}

.simulator-container .age-stepper .counter-btn {
  width: 28px;
  height: 28px;
}

.simulator-container .age-input {
  width: 36px;
  height: 32px;
}

@media (max-width: 600px) {
  .age-table th,
  .age-table td {
    padding: 8px 6px;
  }

  .age-person-label span:last-child {
    display: none;
  }

  .beneficiary-type-select {
    width: 112px;
    font-size: 12px;
    padding-inline: 6px;
  }

  .age-stepper .counter-btn {
    width: 28px;
    height: 28px;
  }

  .age-input {
    width: 38px;
    height: 32px;
  }
}

/* Styled Inputs */
.c-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.c-input-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
}

.c-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0 14px;
  min-height: 48px;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base) var(--ease-out);
}

.c-input-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}

.c-input-box.error-state {
  border-color: var(--status-error);
}

.c-input-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-strong);
  padding: 12px 0;
  min-width: 0;
}

.c-input-box input::placeholder {
  color: var(--gray-400);
}

.c-input-suffix {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  pointer-events: none;
  white-space: nowrap;
}

.c-input-error {
  font-size: var(--text-xs);
  color: var(--status-error);
  margin-top: 2px;
}

/* Styled Select */
.c-select-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  min-height: 48px;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base) var(--ease-out);
}

.c-select-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}

.c-select-box select {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-strong);
  padding: 12px 40px 12px 14px;
  cursor: pointer;
}

.c-select-box select:invalid,
.c-select-box select option[value=""] {
  color: var(--text-muted);
}

.c-select-box svg {
  position: absolute;
  right: 14px;
  pointer-events: none;
  stroke: var(--text-muted);
  stroke-width: 2.2;
}

/* Custom Switch Toggle */
.c-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-body);
  user-select: none;
}

.c-switch input {
  display: none;
}

.c-switch-track {
  width: 48px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--gray-300);
  padding: 3px;
  display: inline-flex;
  transition: background var(--dur-base) var(--ease-out);
}

.c-switch-thumb {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-circle);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateX(0);
  transition: transform var(--dur-base) var(--ease-out);
}

.c-switch input:checked + .c-switch-track {
  background: var(--gradient-brand);
}

.c-switch input:checked + .c-switch-track .c-switch-thumb {
  transform: translateX(22px);
}

/* Success Card Content */
.quote-success-view {
  text-align: center;
  animation: scaleUp var(--dur-slow) var(--ease-spring);
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-circle);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
  animation: pulseBrand 2s infinite;
}

.success-icon-wrap svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  stroke-width: 3;
}

.quote-success-view h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: 26px;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.quote-success-view p {
  font-size: var(--text-md);
  color: var(--text-body);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 44ch;
  margin-inline: auto;
}

.quote-success-actions {
  display: grid;
  gap: var(--space-3);
}

.quote-error-message {
  margin-top: var(--space-4);
  border: 1.5px solid var(--status-error);
  background: var(--status-error-soft);
  color: var(--gray-900);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
}

/* Dynamic steps views wrapper */
.form-step-view {
  display: block;
}

.form-step-view.active {
  display: block;
  animation: fadeIn var(--dur-base) var(--ease-out);
}

.single-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

.form-nav-hidden {
  display: none !important;
}

.sim-single-form-actions .c-btn {
  min-height: 40px;
  padding: 10px 20px;
  font-size: 14px;
}

/* ============================================================
   Trust Factors Band
   ============================================================ */
.trust-band {
  background: var(--surface-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-band .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding: var(--space-7) 0;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trust-ic {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--surface-info-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-ic svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.trust-item h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  color: var(--navy-800);
  margin-bottom: 6px;
}

.trust-item p {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: var(--leading-normal);
}

/* ============================================================
   Footer Component
   ============================================================ */
footer.site {
  background: var(--gradient-deep);
  color: rgba(255, 255, 255, 0.78);
}

footer.site .grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding: var(--space-9) 0 var(--space-7);
}

footer.site .logo-panel {
  max-width: 38ch;
}

footer.site .logo-panel p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-top: 16px;
}

footer.site .links-grid {
  display: flex;
  gap: 48px;
}

footer.site h5 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--white);
  font-size: var(--text-sm);
  margin-bottom: 16px;
}

footer.site .links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--text-sm);
}

footer.site .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
}

footer.site .legal .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: var(--space-5) 0;
}

/* ============================================================
   Mobile App Simulator View (iOS Device Bezel)
   ============================================================ */
.simulator-container {
  display: none; /* Only visible on desktop when simulated app view is on */
  justify-content: center;
  align-items: center;
  padding: var(--space-7) 0 var(--space-9);
}

/* iOS Bezel */
.ios-device {
  width: 395px;
  height: 844px;
  border-radius: 46px;
  background: #000000;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 25, 77, 0.25), 0 0 0 1px rgba(0, 25, 77, 0.15), inset 0 0 3px 2px rgba(255, 255, 255, 0.2);
  position: relative;
  user-select: none;
}

/* Screen wrapper */
.ios-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface-page);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island */
.ios-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 115px;
  height: 30px;
  border-radius: 20px;
  background: #000;
  z-index: 999;
}

/* Status Bar */
.ios-status-bar {
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  pointer-events: none;
}

.ios-status-bar .right-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ios-status-bar .right-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* In-App Title Header */
.ios-app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 54px 18px 12px;
  background: var(--surface-page);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ios-back-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-strong);
}

.ios-back-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.ios-app-bar h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  color: var(--navy-800);
}

/* Mobile Screens Content Container */
.ios-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 90px; /* offset for bottom tab bar */
  scrollbar-width: none; /* Hide scrollbar for layout cleanliness */
}

.ios-content::-webkit-scrollbar {
  display: none;
}

/* Tab Bar */
.ios-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  padding: 8px 12px 28px;
  z-index: 800;
}

.tab-item {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gray-400);
  flex: 1;
  transition: color var(--dur-fast) var(--ease-out);
}

.tab-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.tab-item span {
  font-size: 9px;
  font-weight: var(--weight-bold);
}

.tab-item.active {
  color: var(--color-primary);
}

/* iOS Home Indicator Bar */
.ios-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: 5px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.25);
  z-index: 999;
  pointer-events: none;
}

/* Simulated Screens */
.sim-screen {
  display: none;
}

.sim-screen.active {
  display: block;
  animation: fadeIn var(--dur-base) var(--ease-out);
}

/* Screen 1: App Home */
.sim-home-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 58px 20px 14px;
}

.sim-home-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: var(--gradient-brand);
  padding: 2px;
}

.sim-home-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-circle);
  border: 1.5px solid var(--white);
  object-fit: cover;
}

.sim-home-welcome {
  line-height: 1.3;
}

.sim-home-welcome span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
}

.sim-home-welcome b {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--navy-800);
  font-weight: var(--weight-bold);
}

.sim-home-bell {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
}

.sim-home-bell svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.sim-hero-card {
  margin: 0 18px;
  background: var(--gradient-deep);
  border-radius: var(--radius-xl);
  padding: 20px;
  color: var(--white);
  box-shadow: var(--shadow-brand);
  position: relative;
  overflow: hidden;
}

.sim-hero-card .bg-pattern {
  position: absolute;
  right: -20px;
  bottom: -20px;
  opacity: 0.08;
  color: var(--white);
  pointer-events: none;
}

.sim-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: var(--weight-bold);
}

.sim-hero-chip svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.sim-hero-card h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: 20px;
  line-height: var(--leading-snug);
  margin-top: 12px;
}

.sim-hero-card p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 6px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.sim-quotes-section {
  padding: 24px 18px 0;
}

.sim-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.sim-section-head h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--navy-800);
}

.sim-section-head a {
  font-size: var(--text-xs);
  color: var(--text-link);
  font-weight: var(--weight-bold);
}

.sim-quote-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-quote-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-xs);
  width: 100%;
  text-align: left;
  border-style: solid;
  cursor: pointer;
}

.sim-quote-ic {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  flex-shrink: 0;
}

.sim-quote-ic svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.sim-quote-meta {
  flex: 1;
}

.sim-quote-meta b {
  display: block;
  font-size: 13px;
  color: var(--text-strong);
  font-weight: var(--weight-bold);
}

.sim-quote-meta span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.sim-badge {
  background: var(--surface-accent-soft);
  color: var(--teal-700);
  font-size: 10px;
  font-weight: var(--weight-bold);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

/* Screen 2: App Results */
.sim-results-alert {
  background: var(--surface-accent-soft);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 0 18px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sim-results-alert svg {
  color: var(--teal-600);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2.5;
}

.sim-results-alert div {
  font-size: 12px;
  color: var(--teal-700);
  line-height: 1.4;
}

.sim-results-alert b {
  display: block;
  font-weight: var(--weight-bold);
  margin-bottom: 2px;
}

.sim-plans-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 18px;
}

/* Plan Card Spec */
.plan-card {
  background: var(--white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.plan-card.recommended {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-accent);
}

.plan-card-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gradient-brand);
  color: var(--white);
  font-size: 9px;
  font-weight: var(--weight-bold);
  padding: 3px 10px;
  border-bottom-left-radius: 10px;
  text-transform: uppercase;
}

.plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.plan-op-info {
  line-height: 1.3;
}

.plan-op-info b {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 15px;
  color: var(--navy-800);
  display: block;
}

.plan-op-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.plan-match-chip {
  background: var(--surface-accent-soft);
  color: var(--teal-700);
  font-size: 10px;
  font-weight: var(--weight-bold);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.plan-match-chip span {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-circle);
  background: var(--teal-600);
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.plan-price-row .curr {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
}

.plan-price-row .val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: var(--weight-bold);
  color: var(--navy-800);
}

.plan-price-row .period {
  font-size: 11px;
  color: var(--text-muted);
}

.plan-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.plan-highlights li {
  font-size: 11px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-highlights li svg {
  color: var(--green-600);
  width: 14px;
  height: 14px;
  stroke-width: 3;
  flex-shrink: 0;
}

/* Screen 3: Plan Detail */
.sim-detail-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 20px 20px;
}

.sim-detail-hero .meta-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.sim-detail-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sim-detail-price .curr {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
}

.sim-detail-price .val {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--navy-800);
}

.sim-detail-price .period {
  font-size: 12px;
  color: var(--text-muted);
}

.sim-detail-section {
  padding: 20px;
}

.sim-detail-section h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  margin-bottom: 12px;
}

/* Coverage checklist table spec */
.coverage-list {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 0 16px;
}

.coverage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.coverage-row:last-child {
  border-bottom: none;
}

.coverage-row span {
  font-size: 13px;
  color: var(--text-strong);
  font-weight: var(--weight-medium);
}

.coverage-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.coverage-status span {
  font-size: 11px;
  font-weight: var(--weight-bold);
}

.coverage-status.yes {
  color: var(--green-600);
}

.coverage-status.no {
  color: var(--red-600);
}

.coverage-status.partial {
  color: var(--amber-600);
}

.coverage-status svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

/* In-App Sticky CTA Footer */
.ios-footer-cta {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  padding: 12px 18px 16px;
  background: linear-gradient(to top, var(--surface-page) 70%, transparent);
  z-index: 100;
}

/* ============================================================
   Webchat Widget
   ============================================================ */
.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;
}

.webchat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  font-family: var(--font-body);
}

.webchat-toggle {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: var(--radius-circle);
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--shadow-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.webchat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.webchat-toggle svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.4;
}

.webchat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleUp var(--dur-base) var(--ease-out);
}

.webchat-panel[hidden] {
  display: none;
}

.webchat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 16px 18px;
  background: var(--gradient-deep);
  color: var(--white);
}

.webchat-header span {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.webchat-header strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: var(--text-md);
}

.webchat-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.webchat-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.webchat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: var(--surface-page);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.webchat-identify-form[hidden],
.webchat-messages[hidden],
.webchat-form[hidden] {
  display: none;
}

.webchat-identify-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 18px;
  background: var(--surface-page);
  overflow-y: auto;
}

.webchat-identify-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--navy-800);
  margin-bottom: 6px;
}

.webchat-identify-copy span {
  display: block;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-body);
}

.webchat-identify-fields {
  display: grid;
  gap: var(--space-3);
}

.webchat-field {
  display: grid;
  gap: 7px;
}

.webchat-field span {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--navy-700);
}

.webchat-field input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 0 13px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-strong);
  outline: none;
}

.webchat-field input:focus {
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}

.webchat-identify-error {
  margin: 0;
  border: 1.5px solid var(--status-error);
  background: var(--status-error-soft);
  color: var(--gray-900);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
}

.webchat-identify-submit {
  height: 44px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  cursor: pointer;
  box-shadow: var(--shadow-brand);
}

.chat-message {
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 82%;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  box-shadow: var(--shadow-xs);
}

.chat-message.bot .chat-bubble {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  border-bottom-left-radius: 5px;
}

.chat-message.user .chat-bubble {
  background: var(--gradient-brand);
  color: var(--white);
  border-bottom-right-radius: 5px;
}

.chat-message.pending .chat-bubble {
  color: var(--text-muted);
  font-style: italic;
}

.webchat-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
  background: var(--white);
}

.webchat-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 0 15px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-strong);
  outline: none;
}

.webchat-form input:focus {
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}

.webchat-form button {
  width: 44px;
  height: 44px;
  flex: none;
  border: none;
  border-radius: var(--radius-circle);
  background: var(--gradient-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.webchat-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.webchat-form button svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
}

@media (max-width: 600px) {
  .webchat-widget {
    right: 14px;
    bottom: 14px;
  }

  .webchat-toggle {
    width: 56px;
    height: 56px;
  }

  .webchat-panel {
    right: -2px;
    bottom: 68px;
    width: calc(100vw - 24px);
    height: min(560px, calc(100vh - 100px));
  }
}

/* ============================================================
   Transitions and Animations
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseBrand {
  0% { box-shadow: 0 0 0 0 rgba(13, 117, 195, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(13, 117, 195, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 117, 195, 0); }
}

/* ============================================================
   Media Queries & Responsive Logic
   ============================================================ */

/* Mobile Mode View Triggered via Header */
body.sim-active .site-content {
  display: none !important;
}

body.sim-active .simulator-container {
  display: flex !important;
}

/* Real mobile devices responsiveness */
@media (max-width: 900px) {
  .hero .grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
    padding: var(--space-6) 0 var(--space-8);
  }

  h1.hero-title {
    font-size: 30px;
  }

  .hero-title-support {
    font-size: var(--text-lg);
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .stat-item .value {
    font-size: var(--text-2xl);
  }

  .operators-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    max-width: none;
  }

  .trust-band .grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .header-tag {
    display: none !important;
  }

  footer.site .grid {
    flex-direction: column;
    gap: 32px;
  }

  footer.site .links-grid {
    flex-direction: column;
    gap: 24px;
  }
}
