/* ============================================================
   SpotsUp Insurance — design system
   Palette  : ink #0A1633 · royal #1D4FD8 · paper #FAFBFE
              hairline #DEE6F2 · slate #5B6B8C · gilt #B98A2F
   Type     : Cormorant Garamond (display) · Inter (body)
              IBM Plex Mono (labels / data)
   Signature: the Estimate panel set like an insurance
              certificate — double rule, corner ticks, seal.
   ============================================================ */

:root {
  --ink: #0a1633;
  --ink-soft: #24344f;
  --slate: #5b6b8c;
  --paper: #fafbfe;
  --panel: #ffffff;
  --hairline: #dee6f2;
  --hairline-strong: #c4d0e4;
  --royal: #1d4fd8;
  --royal-deep: #16399c;
  --royal-wash: #eef3fe;
  --gilt: #b98a2f;
  --danger: #c43d3d;
  --danger-wash: #fdf1f1;
  --radius: 6px;
  --shadow: 0 18px 45px -28px rgba(10, 22, 51, 0.35);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.nav-open,
body.nav-open {
  overflow: hidden;
  height: 100dvh;
}
body.nav-open .nav-toggle {
  position: fixed;
  top: 12px;
  right: 24px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- utilities ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--royal);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--royal);
  border-radius: var(--radius);
  padding: 13px 26px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn-solid { background: var(--royal); color: #fff; }
.btn-solid:hover { background: var(--royal-deep); border-color: var(--royal-deep); }
.btn-ghost { background: transparent; color: var(--royal); }
.btn-ghost:hover { background: var(--royal-wash); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 254, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--royal);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-logo {
  height: 32px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--royal); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav {
    backdrop-filter: none !important;
    background: var(--paper);
  }
  .nav-inner {
    padding: 12px 0;
    gap: 16px;
  }
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    right: -280px;
    width: 280px;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--panel);
    border-left: 1px solid var(--hairline);
    padding: 15px 24px 24px;
    flex-direction: column;
    gap: 4px;
    box-shadow: -8px 0 32px rgba(10, 22, 51, 0.12);
    z-index: 95;
    transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 15px;
    font-weight: 600;
  }
  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--panel);
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    color: var(--ink);
    position: relative;
    z-index: 101; /* Keep hamburger clickable above drawer */
    transition: all 0.2s ease;
  }
  .nav-toggle:hover {
    background: var(--royal-wash);
    border-color: var(--royal);
    color: var(--royal);
  }
  .nav #navGetStartedBtn {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .nav .btn:not(#navGetStartedBtn) {
    display: none;
  }
}

@media (max-width: 600px) {
  .brand-name {
    display: inline-block !important;
    font-size: 15px;
  }
  .nav #navGetStartedBtn {
    padding: 6px 10px;
    font-size: 9px;
    gap: 4px;
  }
  .user-name-label {
    display: none;
  }
  .user-avatar-btn {
    padding: 5px 10px;
    gap: 6px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  text-align: left;
  padding: 0;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: stretch;
  background: #ffffff;
}
.hero::after {
  /* faint guilloché-style arcs, the quiet luxury texture */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 110%, transparent 58%, rgba(29, 79, 216, 0.05) 58.5%, transparent 59.5%),
    radial-gradient(circle at 88% 115%, transparent 55%, rgba(29, 79, 216, 0.05) 55.5%, transparent 56.5%),
    radial-gradient(circle at 50% -40%, transparent 70%, rgba(185, 138, 47, 0.06) 70.5%, transparent 71.5%);
  z-index: 2;
  display: none; /* Hide arcs so video is 100% clear */
}
.hero-video-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  /* Seamless fade from solid white on the left to clear video on the right */
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff 42%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.3) 62%,
    rgba(255, 255, 255, 0.0) 78%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-video-loader {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}
.hero-video-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.luxury-spinner {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(29, 79, 216, 0.06);
  border-top-color: var(--royal);
  border-radius: 50%;
  animation: luxury-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes luxury-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---- Split hero layout ---- */
.hero-split-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 92vh;
  gap: 40px;
}
.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 80px 0;
}
.hero-visual-col {
  /* Empty — video shows through from background */
}
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }
  .hero-split-wrap {
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding-top: 60px;
    padding-bottom: 60px;
    gap: 0;
  }
  .hero-video-overlay {
    background: rgba(255, 255, 255, 0.80);
  }
  .hero-video-bg {
    width: 100%;
    left: 0;
    right: auto;
  }
  .hero-video-loader {
    width: 100%;
    left: 0;
    right: auto;
  }
  .hero-text-col {
    padding: 0;
    align-items: center;
    text-align: center;
  }
  .hero-visual-col {
    display: none;
  }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--royal);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: rgba(29, 79, 216, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 20px;
  margin-bottom: 28px;
}
.hero-badge::before { content: "◆"; font-size: 7px; color: var(--gilt); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 .line-top {
  display: block;
  font-size: clamp(36px, 5.5vw, 80px);
  color: var(--ink);
}
.hero h1 .line-bottom {
  display: block;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 50px);
  color: var(--royal);
  margin-top: 0.05em;
}
.hero-sub {
  max-width: 460px;
  margin: 0 0 36px 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}
.hero .btn { min-width: 220px; }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  margin: 14px 0 16px;
}
.section-head p { color: var(--slate); }

/* ---------- vision & mission ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 40px 38px;
  box-shadow: var(--shadow);
}
.vm-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--royal-wash);
  color: var(--royal);
  margin-bottom: 22px;
}
.vm-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 27px;
  margin-bottom: 14px;
}
.vm-card p { color: var(--slate); font-size: 15px; }
@media (max-width: 820px) { .vm-grid { grid-template-columns: 1fr; } }

/* ---------- how it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card { border-top: 2px solid var(--royal); padding-top: 22px; }
.step-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 10px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 10px;
}
.step-card p { color: var(--slate); font-size: 14.5px; }
.step-card a { color: var(--royal); text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 820px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- products ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
  border-color: var(--royal);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.product-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.product-meta .policy { color: var(--slate); }
.product-meta .cov { color: var(--royal); }
.product-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 12px;
  min-height: 58px;
}
.product-card p { color: var(--slate); font-size: 14px; min-height: 44px; }
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
}
.product-cta::after { content: "↗"; transition: transform 0.18s ease; }
.product-card:hover .product-cta::after { transform: translate(2px, -2px); }
@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr; } .product-card h3, .product-card p { min-height: 0; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-intro p { color: var(--slate); margin: 16px 0 28px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.contact-channel .vm-icon { width: 36px; height: 36px; margin: 0; }
.contact-form {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FORM PRIMITIVES (shared by contact + portal)
   ============================================================ */
.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #a9b6cc; } /* light grey placeholders, per spec */
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(29, 79, 216, 0.12);
}
.field input[disabled] {
  background: #e7ecf5;        /* slightly darker grey — locked value */
  color: var(--ink-soft);
  cursor: not-allowed;
}
.field-help {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 7px;
}
.field-error {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 7px;
}
.field.invalid input,
.field.invalid select { border-color: var(--danger); background: var(--danger-wash); }
.field.invalid .field-error { display: block; }
.input-prefix { position: relative; }
.input-prefix > span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate);
  font-size: 14.5px;
}
.input-prefix input { padding-left: 30px; }

/* ---------- tooltip / info icon ---------- */
.info {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--royal);
  border-radius: 50%;
  background: none;
  color: var(--royal);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
  margin-left: 4px;
}
.info .tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 300px;
  max-width: 74vw;
  background: var(--ink);
  color: #eef3fe;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 30;
}
.info .tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.info:hover .tip,
.info:focus .tip,
.info.open .tip { opacity: 1; visibility: visible; }

/* ============================================================
   RISK PORTAL (calculator + enroll)
   ============================================================ */
.portal { background: var(--paper); min-height: calc(100vh - 71px); padding: 56px 0 96px; }
.portal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.portal-head h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 38px);
  margin-top: 10px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stepper .step {
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid var(--hairline-strong);
  color: var(--slate);
  background: var(--panel);
}
.stepper .step.active { background: var(--royal); border-color: var(--royal); color: #fff; }
.stepper .sep { color: var(--hairline-strong); }

.portal-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: start; }
@media (max-width: 920px) { .portal-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.panel-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 23px;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--hairline);
}
.panel-title small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  color: var(--slate);
  margin-top: 6px;
}

/* ---------- the certificate (estimate panel) — signature ---------- */
.certificate {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 32px;
}
.certificate::before {
  /* inner double rule, like a policy document */
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  pointer-events: none;
}
.certificate::after {
  /* gilt corner ticks */
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    linear-gradient(var(--gilt), var(--gilt)) top left / 14px 1px,
    linear-gradient(var(--gilt), var(--gilt)) top left / 1px 14px,
    linear-gradient(var(--gilt), var(--gilt)) top right / 14px 1px,
    linear-gradient(var(--gilt), var(--gilt)) top right / 1px 14px,
    linear-gradient(var(--gilt), var(--gilt)) bottom left / 14px 1px,
    linear-gradient(var(--gilt), var(--gilt)) bottom left / 1px 14px,
    linear-gradient(var(--gilt), var(--gilt)) bottom right / 14px 1px,
    linear-gradient(var(--gilt), var(--gilt)) bottom right / 1px 14px;
  background-repeat: no-repeat;
}
.certificate-inner { position: relative; z-index: 1; }
.certificate h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  margin: 8px 0 22px;
}
.estimate-empty {
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius);
  padding: 46px 28px;
  text-align: center;
  color: var(--slate);
  font-size: 14px;
}
.estimate-result { display: none; }
.estimate-result.show { display: block; }
.price-box {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--royal-wash), var(--panel));
  padding: 22px 24px;
  margin-bottom: 24px;
}
.price-box .price-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.price-box .price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.05;
  color: var(--royal);
  margin-top: 4px;
}
.estimate-rows { margin-bottom: 26px; }
.estimate-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.estimate-row .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.estimate-row .v { font-weight: 600; }
.estimate-row .v.blue { color: var(--royal); }

/* ---------- enroll page ---------- */
.enroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 820px) { .enroll-grid { grid-template-columns: 1fr; } }
.enroll-summary {
  background: var(--royal-wash);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
}
.enroll-summary .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
.enroll-summary .v {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  margin-top: 2px;
}
.enroll-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  margin-top: 14px;
  padding-top: 24px;
}
.enroll-totals { font-size: 14px; color: var(--ink-soft); display: grid; gap: 4px; }
.enroll-totals b { color: var(--royal); font-weight: 700; }
.quote-config-link {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
}
.quote-config-link:hover { color: var(--royal); }

/* ---------- alerts / state ---------- */
.alert {
  display: none;
  border: 1px solid var(--danger);
  background: var(--danger-wash);
  color: var(--danger);
  border-radius: var(--radius);
  font-size: 13.5px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.alert.show { display: block; }
.loading-veil { text-align: center; color: var(--slate); padding: 60px 0; }
.spinner {
  width: 22px;
  height: 22px;
  margin: 0 auto 14px;
  border: 2px solid var(--hairline-strong);
  border-top-color: var(--royal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- success ---------- */
.success-card { max-width: 560px; margin: 80px auto; text-align: center; }
.success-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gilt);
  color: var(--gilt);
  font-size: 26px;
  background: #fffdf7;
}
.success-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 36px; margin-bottom: 12px; }
.success-card p { color: var(--slate); margin-bottom: 8px; }
.policy-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--royal-wash);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: inline-block;
  margin: 16px 0 28px;
  word-break: break-all;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--panel);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer .fine {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate);
}
@media (max-width: 600px) {
  .footer {
    padding: 28px 0;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer .brand {
    margin-right: 0;
  }
  .footer .fine {
    font-size: 10.5px;
    line-height: 1.6;
    max-width: 290px;
    margin: 0 auto;
  }
  .field-label {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }
}

/* ---------- reveal animation (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   ADMIN DASHBOARD (Minimalist Redesign)
   ============================================================ */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-metric {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(10, 22, 51, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.stat-metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(10, 22, 51, 0.08);
  border-color: var(--royal-wash);
}
.stat-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background-color 0.25s ease;
}
.stat-metric:nth-child(1):hover::before { background: #10b981; }
.stat-metric:nth-child(2):hover::before { background: var(--royal); }
.stat-metric:nth-child(3):hover::before { background: #8b5cf6; }
.stat-metric:nth-child(4):hover::before { background: #f59e0b; }

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-metric .label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.stat-metric .value {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--slate);
  transition: all 0.25s ease;
}
.stat-metric:hover .stat-icon-wrapper {
  background: var(--royal-wash);
  color: var(--royal);
}
.stat-metric:nth-child(1):hover .stat-icon-wrapper { background: #e6fcf5; color: #0ca678; }
.stat-metric:nth-child(2):hover .stat-icon-wrapper { background: #eef2ff; color: #4f46e5; }
.stat-metric:nth-child(3):hover .stat-icon-wrapper { background: #f3e8ff; color: #7c3aed; }
.stat-metric:nth-child(4):hover .stat-icon-wrapper { background: #fffbeb; color: #d97706; }

.btn-refresh {
  background: var(--panel);
  border: 1px solid var(--hairline-strong);
  color: var(--ink-soft);
  padding: 9px 18px;
}
.btn-refresh:hover {
  background: var(--royal-wash);
  border-color: var(--royal);
  color: var(--royal);
}
.btn-logout {
  background: #fdf2f2;
  border: 1px solid #fee2e2;
  color: var(--danger);
  padding: 9px 18px;
}
.btn-logout:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.admin-controls .search-wrapper {
  flex: 1;
  min-width: 260px;
  position: relative;
}
.admin-controls .search-wrapper::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--slate);
  opacity: 0.6;
  pointer-events: none;
}
.admin-controls .search-wrapper input {
  padding-left: 38px;
  height: 42px;
  background: var(--panel);
  border-color: var(--hairline-strong);
  margin-bottom: 0;
}
.admin-controls select {
  height: 42px;
  padding: 0 14px;
  width: auto;
  min-width: 170px;
  background: var(--panel);
  border-color: var(--hairline-strong);
  margin-bottom: 0;
}

.table-container {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  margin-bottom: 48px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.admin-table th {
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  font-weight: 600;
  white-space: nowrap;
}
.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  white-space: nowrap;
}
.admin-table tbody tr {
  transition: background-color 0.1s ease;
  cursor: pointer;
}
.admin-table tbody tr:hover {
  background-color: var(--royal-wash);
}
.admin-table .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}

/* Minimalist Status Indicators */
.status-dot-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.dot-paid { background-color: #1f8b4c; box-shadow: 0 0 0 3px rgba(31, 139, 76, 0.15); }
.status-dot.dot-pending { background-color: #b78103; box-shadow: 0 0 0 3px rgba(183, 129, 3, 0.15); }
.status-dot.dot-draft { background-color: var(--slate); box-shadow: 0 0 0 3px rgba(91, 107, 140, 0.15); }

.badge-product-outline {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--slate);
  font-weight: 500;
}

/* Passcode login screen */
.login-overlay {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.login-card {
  width: min(390px, 92vw);
  background: var(--panel);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 44px 34px;
  box-shadow: 0 20px 50px -25px rgba(10, 22, 51, 0.18);
}
.login-card h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  margin: 8px 0 16px;
  color: var(--ink);
}

/* Slide-over Drawer Panel */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 51, 0.3);
  backdrop-filter: blur(2px);
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.drawer-backdrop.show {
  display: block;
  opacity: 1;
}
.drawer-panel {
  position: fixed;
  top: 0;
  right: -480px;
  width: min(480px, 100vw);
  height: 100%;
  background: var(--panel);
  box-shadow: -8px 0 32px rgba(10, 22, 51, 0.08);
  z-index: 100;
  transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.drawer-panel.show {
  right: 0;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--hairline);
}
.drawer-header h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--slate);
  padding: 4px;
  line-height: 1;
}
.drawer-close:hover {
  color: var(--royal);
}
.drawer-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}
.drawer-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  display: flex;
  justify-content: flex-end;
}
.drawer-detail-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drawer-detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--paper);
  padding-bottom: 12px;
}
.drawer-detail-row.span-full {
  width: 100%;
}
.drawer-detail-row .label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.drawer-detail-row .val {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.drawer-detail-row .val.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  word-break: break-all;
}

/* ---------- mobile responsiveness utilities ---------- */
@media (max-width: 600px) {
  .brand-name {
    display: inline-block !important;
    font-size: 15px;
  }
  .admin-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-controls .search-wrapper,
  .admin-controls select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 500px) {
  .panel {
    padding: 24px 20px;
  }
  .certificate {
    padding: 24px 20px;
  }
  .certificate::before,
  .certificate::after {
    inset: 6px;
  }
}

@media (max-width: 480px) {
  .drawer-header {
    padding: 16px 20px;
  }
  .drawer-body {
    padding: 20px;
  }
  .drawer-footer {
    padding: 16px 20px;
  }
}

/* ---------- customer auth modal & header badges ---------- */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 51, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.auth-overlay.show {
  display: flex;
  opacity: 1;
}
.auth-card {
  width: min(400px, 94vw);
  background: var(--panel);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: 0 24px 64px -16px rgba(10, 22, 51, 0.25);
  position: relative;
  animation: authFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-card .close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--slate);
  line-height: 1;
  padding: 4px;
}
.auth-card .close-btn:hover {
  color: var(--royal);
}
.auth-toggle-text {
  font-size: 13.5px;
  color: var(--slate);
  text-align: center;
  margin-top: 20px;
}
.auth-toggle-text a {
  color: var(--royal);
  font-weight: 600;
  text-decoration: none;
}
.auth-toggle-text a:hover {
  text-decoration: underline;
}
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.user-email {
  font-family: var(--font-mono);
  color: var(--slate);
  font-weight: 500;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-link {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.logout-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .user-email {
    max-width: 100px;
  }
}

/* ---------- admin dashboard tabs ---------- */
.admin-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 4px 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--slate);
  font-size: 14.5px;
  font-family: inherit;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  color: var(--ink);
}
.tab-btn.active {
  border-bottom-color: var(--royal);
  color: var(--royal);
  font-weight: 600;
}

/* ---------- Premium Header User Dropdown ---------- */
.user-dropdown-container {
  position: relative;
  display: inline-block;
}
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--royal-wash);
  border: 1px solid var(--hairline-strong);
  padding: 6px 14px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.user-avatar-btn:hover {
  background: var(--hairline);
  border-color: var(--slate);
}
.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--royal-deep));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}
.user-name-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-chevron {
  font-size: 10px;
  color: var(--slate);
  transition: transform 0.2s ease;
}
.user-dropdown-container:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  transform-origin: top right;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(-5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.user-dropdown-container:hover .user-dropdown-menu,
.user-dropdown-menu.show {
  display: flex;
}
.dropdown-header-info {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 6px;
}
.dropdown-user-email {
  font-size: 12px;
  color: var(--slate);
  display: block;
  margin-top: 2px;
  word-break: break-all;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.15s ease;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}
.dropdown-item:hover {
  background: var(--wash);
  color: var(--royal);
}
.dropdown-item.logout-item {
  color: var(--danger);
  border-top: 1px solid var(--hairline);
  border-radius: 0 0 8px 8px;
  margin-top: 6px;
}
.dropdown-item.logout-item:hover {
  background: var(--danger-wash);
  color: var(--danger);
}

/* ---------- Mobile Drawer Custom Styles ---------- */
/* Force-hide on desktop (overrides any inline JS styles) */
@media (min-width: 901px) {
  .drawer-header,
  .drawer-user-info,
  .drawer-guest-cta {
    display: none !important;
  }
}

/* Hidden by default on all sizes, shown only in mobile media query below */
.drawer-header {
  display: none;
}
.drawer-user-info {
  display: none;
}
.drawer-guest-cta {
  display: none;
}

@media (max-width: 900px) {
  .drawer-header {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 15px;
  }
  .drawer-header .brand-name {
    display: inline-block !important;
    font-size: 18px;
  }
  .drawer-guest-cta {
    display: block;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--hairline);
  }
  .drawer-user-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--hairline);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .drawer-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
  }
  .drawer-user-meta {
    display: flex;
    flex-direction: column;
  }
  .drawer-user-meta .user-name-label {
    display: block !important;
    font-weight: 600;
  }
  .drawer-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--royal-wash);
    transition: background 0.15s ease;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
  }
  .drawer-action-btn:hover {
    background: var(--hairline);
    color: var(--royal);
  }
  .drawer-action-btn.logout-btn {
    background: var(--danger-wash);
    color: var(--danger);
  }
  .drawer-action-btn.logout-btn:hover {
    background: #fcdede;
  }
}

/* ---------- invoice / certificate modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 51, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  z-index: 1100;
  animation: modalFadeIn 0.2s ease;
  padding: 24px 16px;
}
.modal-card {
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto; /* enables scrolling center margins */
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* adjust close button */
.modal-header .close-btn:hover {
  color: var(--royal) !important;
}

@media (max-height: 800px) or (max-width: 600px) {
  .modal-overlay {
    align-items: flex-start;
  }
}

/* ---------- invoice / certificate card ---------- */
.invoice-card-wrapper {
  padding: 24px;
  background: #f8fafc;
}
.invoice-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #c5b390;
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.02);
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--ink);
}
.invoice-card .border-outer {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 179, 144, 0.35);
  border-radius: 6px;
  pointer-events: none;
}
.invoice-card .border-inner {
  position: absolute;
  inset: 14px;
  border: 1px double rgba(197, 179, 144, 0.25);
  border-radius: 4px;
  pointer-events: none;
}
.invoice-card .watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 150px;
  color: rgba(197, 179, 144, 0.05);
  font-weight: 800;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
}
.invoice-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.invoice-card .card-title-sec {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.invoice-card .card-title-sec h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  color: var(--royal);
  margin: 0 0 6px 0;
}
.invoice-card .card-title-sec .line {
  width: 60px;
  height: 1.5px;
  background: #c5b390;
  margin: 0 auto;
}
.invoice-card .details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 24px;
}
.invoice-card .details-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.invoice-card .details-label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  display: block;
  margin-bottom: 2px;
}
.invoice-card .details-value {
  font-size: 13.5px;
  color: var(--ink);
}
.invoice-card .details-value.strong-mono {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}
.invoice-card .figures-box {
  background: var(--royal-wash);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}
.invoice-card .figure-value {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--royal);
  font-weight: 600;
}
.invoice-card .figure-value.secondary {
  color: var(--ink);
}
.invoice-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}
.invoice-card .footer-terms {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.5;
  max-width: 320px;
}
.invoice-card .footer-signature {
  text-align: right;
}
.invoice-card .sig-label {
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  display: block;
  margin-bottom: 4px;
}
.invoice-card .sig-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  color: var(--royal);
  border-bottom: 1px solid #c5b390;
  padding-bottom: 2px;
  display: inline-block;
}

/* ---------- media queries for mobile responsiveness of the card ---------- */
@media (max-width: 600px) {
  .invoice-card-wrapper {
    padding: 12px;
  }
  .invoice-card {
    padding: 24px 20px;
  }
  .invoice-card .border-outer {
    inset: 6px;
  }
  .invoice-card .border-inner {
    inset: 9px;
  }
  .invoice-card .watermark {
    font-size: 90px;
  }
  .invoice-card .card-header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    text-align: center;
  }
  .invoice-card .card-title-sec h2 {
    font-size: 20px;
  }
  .invoice-card .details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
  }
  .invoice-card .figures-box {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
  }
  .invoice-card .card-footer {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  .invoice-card .footer-terms {
    max-width: 100%;
  }
  .invoice-card .footer-signature {
    text-align: center;
  }
}

