/* ez-reports landing. Self-contained: no CDN, no external fonts. */
:root {
  --blue: #123A8C;
  --blue-deep: #0C2A66;
  --blue-bright: #2F6BE0;
  --accent: #FF8562;
  --ink: #22303F;
  --muted: #5F7186;
  --tint: #F4F6FA;
  --line: #E3E9F2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  display: flex; align-items: center; gap: 32px;
  padding: 14px 32px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); z-index: 10;
}
.brand { display: flex; line-height: 0; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--blue); }

/* buttons */
.btn {
  border: 1px solid transparent; border-radius: 8px; padding: 10px 20px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-onblue { background: #fff; color: var(--blue); }
.btn-onblue:hover { background: #EEF2FA; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-lg { padding: 15px 38px; font-size: 17px; border-radius: 10px; }
.btn:disabled { opacity: .6; cursor: default; }

/* hero */
.hero {
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(47,107,224,.55), transparent 60%),
    linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, #1B4BA8 100%);
  color: #fff;
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 104px 24px 112px; }
.hero h1 { font-size: 50px; letter-spacing: -1px; max-width: 17ch; margin-bottom: 24px; }
.hero p { font-size: 19px; color: #D6E0F5; max-width: 60ch; margin: 0 0 36px; }

/* bands */
.band { padding: 88px 0; }
.band-tint { background: var(--tint); }
.band h2 { font-size: 34px; letter-spacing: -.5px; margin-bottom: 14px; }
.lede { color: var(--muted); font-size: 18px; max-width: 62ch; margin: 0 0 44px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.steps li { border-top: 3px solid var(--blue); padding-top: 22px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 14px;
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }

/* cards */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px; }
.card h3 { font-size: 19px; margin-bottom: 10px; color: var(--blue); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* pricing */
.pricing { text-align: center; }
.price { font-size: 58px; font-weight: 700; letter-spacing: -1.5px; margin: 6px 0 0; color: var(--blue); }
.price-note { color: var(--muted); margin: 4px 0 40px; }

/* the ladder as a slider: drag right, watch the full price strike through */
.calc { max-width: 620px; margin: 36px auto 18px; }

/* A range thumb's centre travels from THUMB/2 to width - THUMB/2, never to the edges.
   Everything below is inset by that half-thumb so the fill, the thumb and the tick
   labels all agree at every stop, not just in the middle. */
.calc-track { --thumb: 26px; position: relative; padding-bottom: 30px; }
.calc-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px;
  background: linear-gradient(to right,
    var(--blue) calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--fill, 0) / 100),
    var(--line) calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--fill, 0) / 100));
  outline: none; cursor: pointer; display: block; margin: 0;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: var(--thumb); height: var(--thumb); border-radius: 50%;
  background: #fff; border: 3px solid var(--blue); cursor: grab;
  box-shadow: 0 2px 8px rgba(18, 58, 140, .28);
}
.calc-range::-moz-range-thumb {
  width: var(--thumb); height: var(--thumb); border-radius: 50%; background: #fff;
  border: 3px solid var(--blue); cursor: grab; box-shadow: 0 2px 8px rgba(18, 58, 140, .28);
}
.calc-range:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 6px; }

.calc-ticks {
  position: absolute; top: 18px;
  left: calc(var(--thumb) / 2); right: calc(var(--thumb) / 2);
  height: 16px;
}
.calc-ticks span {
  position: absolute; transform: translateX(-50%);
  font-size: 12px; color: #9AA8BC; white-space: nowrap;
}

.calc-qty { margin: 20px 0 4px; font-size: 15px; color: var(--muted); }
.calc-qty b { color: var(--ink); font-size: 17px; }

/* Three columns with equal 1fr sides: the price sits in the middle column and is therefore
   dead-centre whether or not there is a discount. Centring a flex row instead would let the
   struck price — which keeps its space so the block does not resize — shove the price right. */
.calc-summary {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; column-gap: 14px; margin: 0; min-height: 46px;
}
.calc-summary s { justify-self: end; min-width: 0; }
.calc-summary b { justify-self: center; }
.calc-summary .calc-badge { justify-self: start; min-width: 0; }
.calc-summary s { color: #9AA8BC; font-size: 22px; text-decoration-thickness: 2px; }
.calc-summary b { color: var(--blue); font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.calc-badge {
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
  padding: 4px 11px; border-radius: 99px; line-height: 1.35;
}
.is-blank { visibility: hidden; }
.calc-saving { color: var(--accent); font-weight: 600; font-size: 15px; margin: 4px 0 0; min-height: 20px; }

.pricing-note { color: var(--muted); max-width: 60ch; margin: 0 auto 26px; font-size: 16px; }

/* footer */
.site-footer { background: var(--blue-deep); color: #A8B6CE; padding: 44px 24px; text-align: center; }
.site-footer img { height: 42px; width: auto; margin-bottom: 12px; }
.site-footer p { margin: 0; font-size: 14px; }

/* modal */
.modal {
  position: fixed; inset: 0; background: rgba(12, 42, 102, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 20;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 14px; padding: 34px 32px 28px;
  width: 100%; max-width: 400px; position: relative;
  box-shadow: 0 24px 60px rgba(12, 42, 102, .28);
}
.modal-card h2 { font-size: 25px; margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 12px; right: 16px; border: 0; background: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: #9AA8BC;
}
.modal-close:hover { color: var(--ink); }
#auth-form label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
#auth-form input {
  display: block; width: 100%; margin-top: 7px; padding: 11px 12px;
  border: 1px solid #CBD5E1; border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink);
}
#auth-form input:focus { outline: 2px solid var(--blue-bright); outline-offset: 1px; border-color: transparent; }
#auth-form .btn { width: 100%; margin-top: 4px; }
.error { color: #C0392B; font-size: 14px; margin: 0 0 14px; }
.modal-switch { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.linkish {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 600;
  color: var(--blue); cursor: pointer; text-decoration: underline;
}

@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; gap: 14px; padding: 12px 18px; }
  .site-nav { display: none; }
  .brand img { height: 38px; }
  .hero-inner { padding: 64px 20px 72px; }
  .hero h1 { font-size: 33px; letter-spacing: -.5px; }
  .hero p { font-size: 17px; }
  .band { padding: 56px 0; }
  .band h2 { font-size: 27px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .calc-summary b { font-size: 28px; }
  .calc-summary { gap: 10px; }
  .calc-ticks span:nth-child(even) { display: none; }
  .price { font-size: 44px; }
}
