/* ============================================================
   HEUS Automation ROI Calculator
   Brand: dark navy + teal/purple, Playfair + Noto Serif + Manrope
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2dd4bf;
  --secondary: #a78bfa;
  --bg: #0a0f1e;
  --surface: #111827;
  --input-bg: #1a2235;
  --border: #1e2d45;
  --text: #dee1f7;
  --text-bright: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --danger: #ef4444;
  --amber: #fbbf24;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif', serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ---------- Background effects ---------- */

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  pointer-events: none;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.2;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.6; }
}

.top-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 60vh;
  background: radial-gradient(circle at center,
    rgba(45, 212, 191, 0.15),
    rgba(167, 139, 250, 0.05) 40%,
    transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Nav ---------- */

.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(20px, 4vw, 60px);
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(135deg, #f5f0e8, #2dd4bf, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-divider {
  color: var(--text-muted);
  font-weight: 300;
}
.brand-section {
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}
.nav-back {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.nav-back:hover { color: var(--primary); }

/* ---------- Layout ---------- */

.container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 60px) 80px;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 40px 0 60px;
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 20px;
}
.section-label.teal { color: var(--primary); }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
}
.hero-title .accent {
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-sub {
  font-family: 'Noto Serif', serif;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Grid ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 80px;
}
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
}

/* ---------- Panel (left side) ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.panel-header {
  margin-bottom: 28px;
}
.panel-header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 26px;
  color: white;
  line-height: 1.3;
}

/* ---------- Preset chips ---------- */

.preset-row {
  margin-bottom: 22px;
}
.preset-label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover {
  border-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}
.chip.active {
  background: linear-gradient(135deg, rgba(45,212,191,0.18), rgba(167,139,250,0.12));
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 12px rgba(45,212,191,0.25);
}

/* ---------- Task rows ---------- */

.task-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.task-row {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: border-color 0.2s;
}
.task-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.task-row-header {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.task-name {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  outline: none;
}
.task-name::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.remove-task {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s;
}
.remove-task:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.task-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.task-input label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.task-input input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 36px 8px 12px;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s;
}
.task-input input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

/* ---------- Custom branded number spinners ---------- */

/* Hide native spinners */
.task-input input[type="number"]::-webkit-inner-spin-button,
.task-input input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.task-input input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.number-wrap {
  position: relative;
}

.number-spinners {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 26px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  border-radius: 0 7px 7px 0;
  overflow: hidden;
  pointer-events: none;
}

.spin-btn {
  flex: 1;
  background: linear-gradient(135deg, rgba(45,212,191,0.06), rgba(167,139,250,0.04));
  border: none;
  color: var(--primary);
  font-size: 8px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}
.spin-btn:hover {
  background: linear-gradient(135deg, rgba(45,212,191,0.25), rgba(167,139,250,0.18));
  color: white;
  text-shadow: 0 0 8px rgba(45, 212, 191, 0.8);
}
.spin-btn:active {
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  color: var(--bg);
}
.spin-up    { border-bottom: 1px solid var(--border); }

/* ---------- Buttons ---------- */

.btn-secondary {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--primary);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(45, 212, 191, 0.05);
}
.plus { font-size: 16px; margin-right: 4px; }

/* ---------- Divider + Slider ---------- */

.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0 24px;
}

.slider-row {
  padding: 4px 0;
}
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.slider-label {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.slider-value {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--primary);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--input-bg);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

.slider-hint {
  font-family: 'Noto Serif', serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ---------- Results panel (LED border) ---------- */

.results-wrapper {
  position: relative;
  display: flex;
  min-height: 100%;
}

.led-card {
  position: relative;
  padding: 1px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  flex: 1;
  display: flex;
  width: 100%;
}

.led-border {
  position: absolute;
  inset: -2px;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(from 0deg,
    transparent 40%,
    #2dd4bf 50%,
    #a78bfa 60%,
    transparent 70%);
  animation: rotate-led 8s linear infinite;
}
@keyframes rotate-led {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.led-content {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #0d1f3c, #0a1628);
  border-radius: 23px;
  padding: 36px;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.led-content .action-row { margin-top: auto; }

.result-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-bright);
  margin-bottom: 18px;
}

.big-number {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.18;
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  padding-bottom: 0.12em;
  display: inline-block;
  overflow: visible;
}
.big-number-hint {
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 32px;
}

/* ---------- Chart ---------- */

.chart {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chart-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chart-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chart-value {
  margin-left: auto;
  color: white;
  font-size: 13px;
  font-weight: 700;
}
.chart-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-now { background: var(--danger); box-shadow: 0 0 8px rgba(239,68,68,0.6); }
.dot-auto { background: var(--primary); box-shadow: 0 0 8px rgba(45,212,191,0.6); }

.chart-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.chart-bar {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-now {
  background: linear-gradient(90deg, #ef4444, #f97316);
  box-shadow: 0 0 12px rgba(239,68,68,0.35);
}
.bar-auto {
  background: linear-gradient(90deg, #2dd4bf, #a78bfa);
  box-shadow: 0 0 12px rgba(45,212,191,0.4);
}

/* ---------- Stat grid ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.stat {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.stat-wide { grid-column: span 2; }
.stat-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.stat-hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-muted);
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 26px;
  color: white;
}

/* ---------- CTA ---------- */

.action-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.cta-btn {
  flex: 1;
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 18px 32px;
  border-radius: 14px;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(45, 212, 191, 0.25);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45, 212, 191, 0.4);
  color: var(--bg);
}

.pdf-btn {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 18px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.pdf-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.pdf-btn .pdf-icon {
  font-size: 18px;
  line-height: 1;
}
.pdf-btn.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
.cta-hint {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  font-style: italic;
}

/* ---------- Services section ---------- */

.services {
  margin-bottom: 80px;
}
.services-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.services-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: white;
  margin: 8px 0 16px;
}
.services-title .accent {
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}
.services-sub {
  font-family: 'Noto Serif', serif;
  font-size: 16px;
  color: var(--text-dim);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45,212,191,0.08), rgba(167,139,250,0.06));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(45,212,191,0.15);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45,212,191,0.18), rgba(167,139,250,0.12));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: white;
  margin-bottom: 10px;
}
.service-card p {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
}
.service-tag {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ---------- Icon button (share) ---------- */

.icon-btn {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-bright);
  width: 54px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.is-copied {
  border-color: var(--primary);
  background: rgba(45,212,191,0.12);
  color: var(--primary);
}

/* ---------- FAQ ---------- */

.faq {
  margin-bottom: 80px;
}
.faq-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}
.faq-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: white;
  margin: 8px 0 0;
}
.faq-title .accent {
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: rgba(45,212,191,0.4);
  box-shadow: 0 8px 30px rgba(45,212,191,0.08);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: white;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: rgba(45,212,191,0.04); }

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 1px;
  transition: transform 0.3s;
}
.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}
.faq-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 24px 22px;
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.faq-answer p {
  margin: 0 0 12px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Mobile sticky CTA bar ---------- */

.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10,15,30,0.6), rgba(10,15,30,0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(45,212,191,0.25);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: none;
}
.sticky-bar.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}
.sticky-bar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.sticky-bar-amount {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sticky-bar-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 2px;
}
.sticky-bar-cta {
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(45,212,191,0.3);
}
@media (max-width: 760px) {
  .sticky-bar { display: block; }
}

/* ---------- Toast (link copied) ---------- */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #111827, #0a0f1e);
  border: 1px solid var(--primary);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(45,212,191,0.25);
  z-index: 100;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast[hidden] { display: none; }
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 760px) {
  .toast { bottom: 90px; }
}

/* ---------- Trust row ---------- */

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}
@media (max-width: 720px) {
  .trust-row { grid-template-columns: 1fr; }
}
.trust-item { text-align: center; }
.trust-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 42px;
  background: linear-gradient(135deg, #2dd4bf, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.trust-text {
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
}
.footer-brand {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.footer-links a {
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--primary); }

/* ---------- Lead capture modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: linear-gradient(160deg, #111827, #0a0f1e);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(45,212,191,0.1);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(239,68,68,0.08);
  border-color: var(--danger);
  color: var(--danger);
}

.modal-card h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 26px;
  color: white;
  line-height: 1.25;
  margin: 8px 0 10px;
}
.modal-sub {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.lead-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s;
  margin-bottom: 18px;
}
.lead-option:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}
.lead-option .option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.lead-option .option-icon svg { width: 24px; height: 24px; }
.lead-option .option-body { flex: 1; }
.lead-option .option-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: white;
  margin-bottom: 3px;
}
.lead-option .option-sub {
  font-family: 'Noto Serif', serif;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}
.lead-option .option-arrow {
  color: #25d366;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.lead-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  color: var(--text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.lead-divider::before,
.lead-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.lead-form { display: flex; flex-direction: column; gap: 12px; }
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.form-row input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s;
}
.form-row input::placeholder { color: var(--text-muted); }
.form-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.12);
}
.form-row input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.form-submit {
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(45,212,191,0.25);
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,212,191,0.4);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-hint {
  font-family: 'Noto Serif', serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
  font-style: italic;
}

.modal-success,
.modal-error {
  text-align: center;
  padding: 20px 0 10px;
}
.success-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 30px rgba(45,212,191,0.45);
}
.success-circle svg { width: 32px; height: 32px; }
.modal-success p,
.modal-error p {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text-dim);
  margin: 8px 0 22px;
  line-height: 1.55;
}
.modal-error h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: white;
  margin-bottom: 8px;
}
.modal-error a { color: var(--primary); }

/* ---------- Off-screen PDF report ---------- */

/* On-screen: hide the PDF report entirely (it's a print-only view) */
.pdf-clip { display: none; }
#pdf-report {
  width: 794px;
  background: white;
  color: #0a0f1e;
  font-family: 'Manrope', sans-serif;
}

/* ---------- Print stylesheet ---------- */
/* When the browser is in print mode (window.print / Save as PDF):
   hide the entire app, show ONLY the PDF report, full A4 layout. */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  html, body {
    background: white !important;
    color: #0a0f1e !important;
    overflow: visible !important;
    height: auto !important;
  }
  body > *:not(.pdf-clip) { display: none !important; }

  .starfield, .top-glow { display: none !important; }

  .pdf-clip {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    z-index: auto !important;
  }
  #pdf-report {
    width: 100% !important;
    background: white !important;
    color: #0a0f1e !important;
  }
  /* Make the report a full A4 flex column so the footer sits at the page bottom */
  #pdf-report {
    display: flex !important;
    flex-direction: column !important;
    min-height: 297mm !important; /* A4 height */
    box-sizing: border-box !important;
  }
  .pdf-page {
    padding: 9mm 14mm 8mm !important;
    background: white !important;
    color: #0a0f1e !important;
    flex: 1 0 auto !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .pdf-header {
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
  }
  .pdf-brand { font-size: 28px !important; }
  .pdf-meta { font-size: 10px !important; }
  .pdf-h1 { font-size: 16px !important; margin-bottom: 4px !important; }
  .pdf-bignum {
    font-size: 44px !important;
    margin-bottom: 16px !important;
    line-height: 1.1 !important;
  }
  .pdf-stats {
    gap: 8px !important;
    margin-bottom: 18px !important;
  }
  .pdf-stat { padding: 9px 11px !important; }
  .pdf-stat-label { font-size: 9px !important; margin-bottom: 3px !important; }
  .pdf-stat-value { font-size: 17px !important; }
  .pdf-h2 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    padding-bottom: 5px !important;
  }
  .pdf-table {
    margin-bottom: 14px !important;
    font-size: 11px !important;
  }
  .pdf-table th, .pdf-table td { padding: 6px 9px !important; }
  .pdf-services {
    margin-bottom: 14px !important;
  }
  .pdf-services li {
    padding: 5px 0 5px 20px !important;
    font-size: 11px !important;
  }
  .pdf-services li::before { top: 11px !important; }
  .pdf-note {
    padding: 9px 13px !important;
    margin-bottom: 12px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .pdf-note-label { font-size: 9px !important; margin-bottom: 2px !important; }
  .pdf-note p { font-size: 10.5px !important; line-height: 1.45 !important; }
  .pdf-cta {
    padding: 14px 18px !important;
    margin-bottom: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .pdf-cta-text { font-size: 11px !important; line-height: 1.45 !important; }
  .pdf-cta-contact { font-size: 11px !important; }
  /* Page-bottom footer (separate from content) */
  .pdf-footer {
    flex-shrink: 0 !important;
    padding: 6mm 14mm !important;
    margin: 0 !important;
    background: white !important;
    border-top: 1px solid #e2e8f0 !important;
    text-align: center !important;
    font-size: 10px !important;
    color: #94a3b8 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  /* Ensure coloured backgrounds in CTA box and stat tiles render */
  .pdf-cta, .pdf-stat, .pdf-table th, .pdf-bignum, .pdf-services li::before {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
.pdf-page {
  padding: 56px 48px;
  background: white;
  color: #0a0f1e;
  font-family: 'Manrope', sans-serif;
}
.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #0a0f1e;
  padding-bottom: 20px;
  margin-bottom: 36px;
}
.pdf-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 34px;
  color: #0a0f1e;
  letter-spacing: -0.02em;
}
.pdf-meta {
  text-align: right;
  font-size: 12px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.pdf-date {
  margin-top: 4px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.pdf-h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: #0a0f1e;
  margin-bottom: 10px;
}
.pdf-bignum {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 64px;
  color: #0d9488;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}
.pdf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.pdf-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}
.pdf-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}
.pdf-stat-value {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: #0a0f1e;
}
.pdf-h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: #0a0f1e;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}
.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 13px;
}
.pdf-table th,
.pdf-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.pdf-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
  background: #f8fafc;
}
.pdf-table td {
  color: #0a0f1e;
  font-weight: 500;
}
.pdf-table td:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.pdf-table th:nth-child(n+2) { text-align: right; }

.pdf-services {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.pdf-services li {
  padding: 10px 0 10px 22px;
  position: relative;
  font-size: 13px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.pdf-services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: #0d9488;
  border-radius: 50%;
}
.pdf-services li strong { color: #0a0f1e; }

.pdf-note {
  background: #f0fdfa;
  border-left: 3px solid #0d9488;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 22px;
}
.pdf-note-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #0d9488;
  margin-bottom: 4px;
}
.pdf-note p {
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
  margin: 0;
}

.pdf-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #0a0f1e, #1e293b);
  color: white;
  padding: 22px 26px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.pdf-cta-text {
  font-size: 13px;
  line-height: 1.55;
  max-width: 64%;
}
.pdf-cta-contact {
  font-size: 13px;
  text-align: right;
  font-weight: 600;
  color: #2dd4bf;
}
.pdf-footer {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
