* {
  box-sizing: border-box;
}

:root {
  --navy: #0a2540;
  --navy-2: #14365a;
  --blue: #1a73e8;
  --green: #17a36b;
  --green-2: #0fb98a;
  --light: #f4f8fb;
  --text: #1d2730;
  --muted: #5b6b7c;
  --border: #e3ecf3;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(10, 37, 64, 0.16);
  --shadow-sm: 0 8px 22px rgba(10, 37, 64, 0.08);
  --grad-accent: linear-gradient(120deg, #17a36b 0%, #0fb98a 50%, #1a73e8 100%);
  --grad-cta: linear-gradient(135deg, #17a36b 0%, #0fb98a 100%);
  --grad-hero: radial-gradient(circle at 80% 0%, rgba(23, 163, 107, 0.18), transparent 38%),
               radial-gradient(circle at 0% 100%, rgba(26, 115, 232, 0.10), transparent 40%),
               linear-gradient(135deg, #f8fbfd 0%, #eaf4fb 100%);
  --font-head: "Sora", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.01em; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy > * { animation: fadeUp 0.6s cubic-bezier(.2,.7,.3,1) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.02s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.10s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.34s; }
.market-card { animation: fadeUp 0.7s cubic-bezier(.2,.7,.3,1) 0.18s backwards; }
.trust-badges .badge-card { animation: fadeUp 0.6s cubic-bezier(.2,.7,.3,1) backwards; }
.trust-badges .badge-card:nth-child(1) { animation-delay: 0.32s; }
.trust-badges .badge-card:nth-child(2) { animation-delay: 0.40s; }
.trust-badges .badge-card:nth-child(3) { animation-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .market-card, .trust-badges .badge-card { animation: none; }
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}

.brand {
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(180deg, #14365a 0%, #0a2540 100%);
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.22);
  overflow: hidden;
}
.brand-mark svg { display: block; }

.phone-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.hero {
  background: var(--grad-hero);
  padding: 32px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 163, 107, 0.4), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 163, 107, 0.10);
  color: #0f7a4f;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid rgba(23, 163, 107, 0.22);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 163, 107, 0.18);
}

h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

h2 {
  color: var(--navy);
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
}

h3 {
  color: var(--navy);
  margin: 0 0 8px;
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 660px;
  margin: 0 0 14px;
  line-height: 1.45;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.trust-row span {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  letter-spacing: -0.005em;
  transition: transform 0.18s cubic-bezier(.2,.7,.3,1.4), box-shadow 0.18s ease, filter 0.18s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-cta);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(23, 163, 107, 0.32), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(23, 163, 107, 0.40), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn[disabled],
.btn-primary[disabled] {
  background: #cdd6df;
  color: #ffffff;
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
  transform: none;
  pointer-events: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.full {
  width: 100%;
}

.microcopy,
.market-note,
.step-sub,
.privacy-note {
  color: var(--muted);
}

.market-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.market-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(23, 163, 107, 0.35), rgba(26, 115, 232, 0.25), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.silver-bars {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 12px rgba(15, 47, 74, 0.18));
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.badge-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 47, 74, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.badge-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 47, 74, 0.10);
}

.badge-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.badge-title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}

.badge-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 720px) {
  .trust-badges {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }
  .badge-card { padding: 10px 12px; }
  .badge-icon { width: 44px; height: 44px; }
}

.market-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.card-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

#silverPrice {
  font-size: 42px;
  margin-top: 8px;
}

.silver-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #e9eef2;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
}

.section {
  padding: 70px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
}

.step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 14px;
}

.highlight {
  background: var(--light);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.benefits {
  display: grid;
  gap: 12px;
}

.benefits div {
  background: var(--white);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-weight: 700;
  color: var(--navy);
}

.sticky-cta {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal.open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 47, 74, 0.58);
}
.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 24px));
  max-height: min(92vh, 720px);
  background: var(--white);
  border-radius: 22px;
  padding: 20px 22px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.progress {
  height: 6px;
  background: #edf2f5;
  border-radius: 999px;
  margin: 8px 0 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.progress-bar {
  height: 100%;
  width: 8%;
  background: var(--green);
  transition: width 0.25s ease;
}
.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
.step h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.25;
}
.step .step-sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.choice-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.choice {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.choice:hover,
.choice.selected {
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(15, 47, 74, 0.08);
}
.choice.selected { background: #f1faf5; }
label {
  display: block;
  margin: 10px 0 6px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
}

/* Hide the spinner arrows on number inputs in all major browsers. */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.dialog-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 30;
  border-radius: inherit;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadeIn 0.18s ease-out;
}
.dialog-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(23, 163, 107, 0.15);
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}
.dialog-loading-text {
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.verify-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.quote-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin: 8px 0 14px;
  text-align: center;
}
.quote-card .price-line {
  font-size: 18px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.35;
}
.quote-card .quote-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}
.wizard-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.back-link {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  font-size: 14px;
}
.error {
  color: #c0392b;
  font-weight: 700;
  font-size: 14px;
  margin: 8px 0 0;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  background: none;
}

#resendInfo {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  background: none;
  padding: 0;
  border: none;
}
.link-btn {
  border: none;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
  display: block;
  width: 100%;
  text-align: center;
}
.link-btn:hover { color: var(--navy); }

.calc-svg {
  display: block;
  margin: 6px auto 10px;
  filter: drop-shadow(0 6px 14px rgba(10, 37, 64, 0.10));
  max-width: 100%;
  height: auto;
}

.opt-in-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}
.opt-in-note strong { color: var(--navy); }
.opt-in-note a { color: var(--blue); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  margin-top: 24px;
  background: var(--white);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .site-footer .container { justify-content: center; }
}

.calc-summary {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: center;
}
.calc-summary-text {
  margin-top: 6px;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.4;
}
.calc-extra {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: -4px;
  margin-bottom: 4px;
}

.resend-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.resend-row button {
  border: none;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
}
.resend-row button[disabled] { color: var(--muted); cursor: not-allowed; }
.full { width: 100%; }
.places-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 180px;
  overflow-y: auto;
  margin-top: 4px;
  background: var(--white);
}
.places-list div {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.places-list div:last-child { border-bottom: none; }
.places-list div:hover { background: var(--light); }
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  color: var(--navy);
}
.check-row input[type="checkbox"] { width: auto; }
.inline-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.inline-buttons .choice { flex: 1; text-align: center; }

@media (max-width: 520px) {
  .modal-panel {
    width: calc(100vw - 12px);
    max-height: 96vh;
    border-radius: 16px;
    padding: 16px 16px 12px;
  }
  .step h2 { font-size: 18px; }
  .choice { padding: 12px 14px; font-size: 14px; }
  .field-row { grid-template-columns: 1fr; }
}

.eligible-banner {
  position: relative;
  background: linear-gradient(135deg, #17a36b 0%, #0fb98a 60%, #1a73e8 140%);
  color: #ffffff;
  border-radius: 16px;
  padding: 16px 18px 16px 56px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  margin: 4px 0 16px;
  box-shadow: 0 14px 30px rgba(23, 163, 107, 0.30), 0 0 0 1px rgba(23, 163, 107, 0.35) inset;
  letter-spacing: -0.005em;
  animation: bannerPop 0.55s cubic-bezier(.2,.8,.3,1.4) both;
}

.eligible-banner::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.10);
}

.eligible-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.20), transparent 60%);
}

@keyframes bannerPop {
  0%   { opacity: 0; transform: translateY(-6px) scale(0.96); }
  60%  { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .eligible-banner { animation: none; }
}

@media (max-width: 850px) {
  #silverPrice { font-size: 30px; }
  .hero {
    padding: 18px 0 80px;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  h1 { font-size: 26px; margin-bottom: 8px; }
  .hero-sub { font-size: 15px; margin-bottom: 10px; }
  .trust-row { margin: 10px 0; }

  .steps {
    grid-template-columns: 1fr;
  }

  .market-card {
    padding: 22px;
  }

  .sticky-cta {
    display: block;
    position: fixed;
    z-index: 40;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px;
  }

  .sticky-cta .btn {
    width: 100%;
  }

  .phone-link {
    font-size: 14px;
  }
}
