/* DrugSign — Marketing site styles
   Source: ui_kits/web/web.css
   Loaded after colors_and_type.css */

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

body {
  font-family: var(--ds-web-font);
  background: var(--ds-web-bg-deep);
  color: var(--ds-web-fg-text);
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ds-web-coral);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── NAV ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
.web-imap-section { scroll-margin-top: calc(var(--ds-web-nav-h) + 16px); }
.web-nav {
  background: rgba(15, 17, 19, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  height: var(--ds-web-nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1100;  /* above Leaflet panes (max 800 for tooltips) */
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .web-nav { background: rgba(15, 17, 19, 0.92); }
}
.web-nav-logo { display: flex; align-items: center; gap: 10px; }
.web-nav-logo img { height: 44px !important; width: auto; display: block; }
.web-nav-logo .fallback { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0.2px; }
.web-nav-logo .fallback span { color: var(--ds-web-coral); }
.web-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.web-nav-links a {
  color: rgba(255,255,255,0.68);
  font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.web-nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.web-nav-links a.active { color: #fff; }
.web-nav-cta {
  background: var(--ds-web-coral) !important;
  color: #fff !important;
  padding: 7px 18px !important;
}
.web-nav-cta:hover { background: var(--ds-web-coral-hover) !important; }
.web-nav-burger { display: none; background: transparent; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* ── CONTAINER + LABELS ──────────────────────────────────── */
.web-container { max-width: var(--ds-web-max); margin: 0 auto; padding: 0 40px; }

.web-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ds-web-coral); margin-bottom: 8px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.web-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 6px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: background .18s, transform .12s;
}
.web-btn-coral { background: var(--ds-web-coral); color: #fff; }
.web-btn-coral:hover { background: var(--ds-web-coral-hover); }
.web-btn-coming-soon,
.web-btn-coming-soon:hover {
  background: var(--ds-web-coral);
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.web-btn-ghost { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: #fff; }
.web-btn-ghost:hover { background: rgba(255,255,255,0.1); }
.web-btn-light { background: #fff; color: var(--ds-web-bg-deep); }
.web-btn-light:hover { background: #f0f0f0; }

.web-store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 10px 22px;
  transition: background .18s, border-color .18s;
}
.web-store-btn:hover { background: #111; border-color: rgba(255,255,255,0.3); }
.web-store-btn .icon { font-size: 28px; color: #fff; line-height: 1; }
.web-store-btn .text { color: #fff; }
.web-store-btn .text small { display: block; font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: 0.3px; }
.web-store-btn .text strong { display: block; font-size: 15px; font-weight: 700; }

/* ── BADGE ───────────────────────────────────────────────── */
.web-trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 8px 16px;
  color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.web-trust-badge .check {
  width: 18px; height: 18px;
  background: var(--ds-web-success); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; font-weight: 700;
}

/* ── HERO V1 (matches the existing preview file) ─────────── */
.web-hero {
  background: var(--ds-web-bg-panel);
  padding-top: var(--ds-web-nav-h);
  min-height: 100vh;
  display: flex; align-items: center;
}
.web-hero-inner {
  max-width: var(--ds-web-max); margin: 0 auto;
  padding: 80px 40px 72px;
  display: flex; align-items: center; gap: 72px;
}
.web-hero-content { flex: 1; min-width: 0; }
.web-hero-logo { max-width: 240px; height: auto; margin-bottom: 32px; display: block; }
.web-hero-content h1 {
  font-size: 40px; font-weight: 700; color: #fff;
  line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.5px;
}
.web-hero-content h1 .accent { color: var(--ds-web-coral); }
.web-hero-tagline {
  font-size: 17px; color: rgba(255,255,255,0.68);
  line-height: 1.7; margin-bottom: 28px; max-width: 520px;
}
.web-hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }

.web-hero-visual {
  flex-shrink: 0; width: 320px;
  display: flex; justify-content: center;
}

/* Live phone mockup (used in V1 hero) */
.web-phone {
  width: 280px; height: 560px;
  background: #1c1f24;
  border-radius: 38px;
  border: 8px solid #0c1923;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
  position: relative; overflow: hidden;
}
.web-phone::before {
  content: '';
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #000; border-radius: 14px; z-index: 5;
}

/* ── MAP SECTION (V1) ────────────────────────────────────── */
.web-map-section { background: var(--ds-web-bg-light); padding: 72px 0 0; }
.web-map-section h2 {
  font-size: 30px; font-weight: 700; color: var(--ds-web-fg-text);
  margin-bottom: 8px; line-height: 1.2;
}
.web-map-intro { font-size: 15px; color: var(--ds-web-fg-muted); margin-bottom: 28px; line-height: 1.6; max-width: 720px; }

.web-map-controls {
  background: #fff;
  border-radius: 10px 10px 0 0;
  padding: 18px 28px;
  display: flex; gap: 48px; flex-wrap: wrap;
  border-bottom: 1px solid #e8eaed;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.web-filter-group h3 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--ds-web-fg-muted); margin-bottom: 10px;
}
.web-checkbox-row { display: flex; flex-direction: column; gap: 6px; }
.web-checkbox-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ds-web-fg-text); cursor: pointer;
}
.web-checkbox-item input { accent-color: var(--ds-web-coral); width: 14px; height: 14px; cursor: pointer; }
.web-filter-btn {
  margin-top: 10px;
  background: var(--ds-web-coral); color: #fff; border: none; border-radius: 5px;
  padding: 6px 14px; font-size: 12px; font-family: inherit; cursor: pointer; font-weight: 600;
}
.web-filter-btn:hover { background: var(--ds-web-coral-hover); }

.web-map-canvas {
  height: 520px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, #2E3841, transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 70%, #263039, transparent 70%),
    #1B2530;
}
.web-map-canvas::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, transparent 48%, rgba(255,255,255,0.025) 48%, rgba(255,255,255,0.025) 52%, transparent 52%),
    linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.025) 48%, rgba(255,255,255,0.025) 52%, transparent 52%);
  background-size: 80px 80px;
  pointer-events: none;
}
.web-map-pin {
  position: absolute; transform: translate(-50%, -100%);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.55));
  cursor: pointer;
  transition: transform .15s;
}
.web-map-pin:hover { transform: translate(-50%, -100%) scale(1.12); }
.web-map-pin img { height: 36px; width: auto; display: block; }

/* ── FEATURES SHOWCASE (V1) ──────────────────────────────── */
.web-features { background: var(--ds-web-bg-deep); padding: 88px 0 48px; }
.web-features-header { text-align: center; margin-bottom: 72px; padding: 0 40px; }
.web-features-header h2 { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.web-features-header p { font-size: 16px; color: rgba(255,255,255,0.55); max-width: 520px; margin: 0 auto; line-height: 1.6; }

.web-showcase {
  display: flex; align-items: center; gap: 72px;
  max-width: var(--ds-web-max); margin: 0 auto 80px; padding: 0 40px;
}
.web-showcase.flip { flex-direction: row-reverse; }
.web-showcase-visual { flex: 1; min-width: 0; }
.web-showcase-text { flex: 1; min-width: 0; }
.web-showcase-text h3 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 14px; line-height: 1.25; }
.web-showcase-text p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.75; }

.web-mockup-frame {
  width: 100%; aspect-ratio: 4/3;
  border-radius: 14px;
  background: linear-gradient(140deg, #1f2d3a 0%, #162230 100%);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.web-mockup-header { font-size: 14px; font-weight: 700; color: #fff; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.web-mockup-tag { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; color: #fff; }
.web-mockup-tag.coral { background: var(--ds-web-coral); }
.web-mockup-tag.blue  { background: var(--ds-web-blue); }
.web-mockup-row {
  background: rgba(255,255,255,0.04); border-radius: 6px;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.web-mockup-row-label { font-size: 12px; color: rgba(255,255,255,0.7); }
.web-mockup-bar-wrap { flex: 1; height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; }
.web-mockup-bar { height: 100%; border-radius: 3px; }

/* ── FEATURE GRID ───────────────────────────────────────── */
.web-feature-grid-section { background: var(--ds-web-bg-panel); padding: 64px 0; }
.web-feature-grid-section h2 { text-align: center; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 36px; }
.web-feature-grid {
  max-width: var(--ds-web-max); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.web-feature-card {
  background: rgba(255,255,255,0.05); border-radius: 10px;
  padding: 28px 24px; border: 1px solid rgba(255,255,255,0.07);
  transition: transform .2s, border-color .2s;
}
.web-feature-card:hover { transform: translateY(-2px); border-color: rgba(235,76,80,0.3); }
.web-feature-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--ds-web-coral-dim);
  color: var(--ds-web-coral);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.web-feature-card .icon svg { width: 22px; height: 22px; }
.web-feature-card h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.web-feature-card p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* ── FOOTER ──────────────────────────────────────────────── */
.web-trust-band {
  background: var(--ds-web-bg-deep);
  padding: 36px 40px;
  display: flex; justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.web-trust-band img {
  height: 56px; width: auto; display: block;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.web-footer {
  background: var(--ds-web-bg-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 40px 24px; text-align: center;
}
.web-footer-contact {
  max-width: 420px; margin: 0 auto 20px;
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.web-footer-contact .eyebrow {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ds-web-coral);
  margin-bottom: 6px;
}
.web-footer-contact p {
  font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.4;
}
.web-footer-copy { font-size: 13px; color: rgba(255,255,255,0.32); }

.web-footer-legal {
  display: flex; justify-content: center; align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  flex-wrap: wrap;
}
.web-footer-legal a {
  color: rgba(255,255,255,0.55);
  transition: color .15s;
}
.web-footer-legal a:hover { color: var(--ds-web-coral); }
.web-footer-legal .sep { color: rgba(255,255,255,0.22); }
.web-footer-legal .copy { color: rgba(255,255,255,0.32); }

/* Placeholder/legal pages and 404 */
.web-policy-shell, .web-404-shell {
  min-height: calc(100vh - var(--ds-web-nav-h));
  padding: calc(var(--ds-web-nav-h) + 56px) 24px 80px;
  background: var(--ds-web-bg-deep);
  display: flex; align-items: center; justify-content: center;
}
.web-policy-card {
  max-width: 720px; width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: left;
}
.web-policy-card .web-eyebrow { margin-bottom: 12px; }
.web-policy-card h1 {
  font-size: 32px; font-weight: 700; color: #fff;
  letter-spacing: -0.5px; margin-bottom: 18px;
}
.web-policy-card p {
  font-size: 15px; color: rgba(255,255,255,0.7);
  line-height: 1.7; margin-bottom: 14px;
}
.web-policy-card .web-policy-meta {
  font-size: 12px; color: rgba(255,255,255,0.4);
  margin-top: 24px;
}

.web-404-card {
  max-width: 480px; width: 100%;
  text-align: center;
}
.web-404-card .web-404-glyph {
  height: 120px; width: auto;
  margin: 0 auto 24px; display: block;
  filter: drop-shadow(0 8px 18px rgba(250,80,81,0.45));
}
.web-404-card h1 {
  font-size: 32px; font-weight: 700; color: #fff;
  letter-spacing: -0.5px; margin: 8px 0 12px;
}
.web-404-card p {
  font-size: 15px; color: rgba(255,255,255,0.65);
  line-height: 1.6; max-width: 360px; margin: 0 auto 28px;
}
.web-404-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
@media (max-width: 480px) {
  .web-404-actions { flex-direction: column; align-items: stretch; }
  .web-404-actions .web-btn { justify-content: center; }
  .web-policy-card { padding: 40px 28px; }
}

/* ── HERO V2 (forward design) ────────────────────────────── */
.web-hero-v2 {
  position: relative;
  background: var(--ds-web-bg-deep);
  padding-top: calc(var(--ds-web-nav-h) + 60px);
  padding-bottom: 100px;
  overflow: hidden;
}
.web-hero-v2::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(235,76,80,0.18), transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(235,76,80,0.10), transparent 70%);
  pointer-events: none;
}
.web-hero-v2-inner {
  position: relative; z-index: 1;
  max-width: var(--ds-web-max); margin: 0 auto;
  padding: 0 40px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.web-hero-v2-headline {
  font-size: 64px; font-weight: 800; color: #fff;
  line-height: 1.02; letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.web-hero-v2-headline .accent { color: var(--ds-web-coral); }
.web-hero-v2-sub {
  font-size: 18px; color: rgba(255,255,255,0.7);
  line-height: 1.6; max-width: 520px; margin-bottom: 30px;
}
.web-hero-v2-stats {
  display: flex; gap: 32px; padding: 24px 0; margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.web-stat-num { font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.web-stat-num .accent, .web-stat-num.accent { color: var(--ds-web-coral); }
.web-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.8px; }

.web-hero-v2-phones { position: relative; height: 560px; display: flex; justify-content: center; align-items: center; }
.web-hero-v2-phone {
  width: 260px; height: 540px;
  background: #1c1f24;
  border: 8px solid #0c1923;
  border-radius: 40px;
  position: absolute;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}
.web-hero-v2-phone.back  { transform: rotate(-6deg) translateX(-90px) translateY(20px); opacity: 0.7; }
.web-hero-v2-phone.front { transform: rotate(4deg)  translateX(60px); z-index: 2; }
.web-hero-v2-phone::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; background: #000; border-radius: 12px; z-index: 5;
}

/* ── INTERACTIVE MAP V2 ──────────────────────────────────── */
.web-imap-section {
  background: var(--ds-web-bg-light);
  padding: 88px 0;
}
/* HOWTO */
.web-howto-section {
  background: var(--ds-web-bg-deep);
  padding: 96px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.web-howto-section h2 {
  font-size: 36px; font-weight: 700; color: #fff;
  letter-spacing: -0.5px; margin: 8px 0 56px;
  line-height: 1.15;
}
.web-howto-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.web-howto-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 32px 28px;
}
.web-howto-step .step-num {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: var(--ds-web-coral);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 18px;
}
.web-howto-step h4 {
  font-size: 22px; font-weight: 700; color: #fff;
  margin-bottom: 10px;
}
.web-howto-step p {
  font-size: 14px; line-height: 1.65;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 900px) {
  .web-howto-grid { grid-template-columns: 1fr; }
  .web-howto-section h2 { font-size: 28px; }
}
.web-imap-shell {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  margin-top: 32px;
}
.web-imap-controls {
  padding: 28px 26px; background: #fafbfd; border-right: 1px solid #eef0f3;
}
.web-imap-controls h3 { font-size: 13px; font-weight: 700; color: var(--ds-web-fg-text); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.web-imap-controls h3:not(:first-child) { margin-top: 24px; }

.web-imap-pin-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px;
  border-radius: 8px; cursor: pointer;
  transition: background .12s;
}
.web-imap-pin-row:hover { background: #f0f2f5; }
.web-imap-pin-row.off { opacity: 0.45; }
.web-imap-pin-row img { height: 24px; width: auto; flex-shrink: 0; }
.web-imap-pin-row .label { font-size: 13px; color: var(--ds-web-fg-text); flex: 1; }
.web-imap-pin-row .count { font-size: 11px; font-weight: 700; color: var(--ds-web-fg-muted); background: #fff; border: 1px solid #e0e0e0; padding: 1px 8px; border-radius: 10px; }

.web-imap-radius { margin-top: 20px; }
.web-imap-radius .label-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ds-web-fg-muted); margin-bottom: 8px; }
.web-imap-radius .label-row strong { color: var(--ds-web-coral); font-weight: 700; }
.web-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--ds-web-coral) var(--pct,30%), #e0e0e0 var(--pct,30%));
  outline: none;
}
.web-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ds-web-coral);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.web-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ds-web-coral); cursor: pointer; }

.web-imap-canvas {
  position: relative; min-height: 540px;
  background: #1B2530;
  overflow: hidden;
  display: block;
}
.web-imap-leaflet {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  min-height: 540px;
  background: #1B2530;
  z-index: 1;
}
/* Defensive: Leaflet's pane defaults; make sure tiles aren't clipped. */
.web-imap-leaflet .leaflet-container {
  background: #1B2530;
  font: inherit;
}
/* Hide Leaflet attribution flag — keep map clean. We still credit OSM in
   the page footer to honour the OSM tile licence. */
.web-imap-leaflet .leaflet-control-attribution { display: none; }
/* Custom div-based pin; keeps the brand drop-shadow and avoids Leaflet's
   default blue marker. The img inside is the real pin asset. */
.web-imap-marker {
  display: block;
  width: 30px; height: 30px;
  background: transparent;
  border: 0;
}
.web-imap-marker img {
  display: block;
  width: 100%; height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.55));
}

/* ── LOGIN ──────────────────────────────────────────────── */
.web-login-shell {
  min-height: 100vh; padding-top: var(--ds-web-nav-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--ds-web-bg-panel);
  position: relative;
}
.web-login-shell::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 30%, rgba(235,76,80,0.15), transparent 60%);
  pointer-events: none;
}
.web-login-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 44px 40px;
  width: 100%; max-width: 420px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.web-login-card .brand { text-align: center; margin-bottom: 28px; }
.web-login-card .brand img { height: 36px; }
.web-login-card h2 { font-size: 24px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 6px; }
.web-login-card .sub { font-size: 13px; color: rgba(255,255,255,0.55); text-align: center; margin-bottom: 28px; }
.web-form-group { margin-bottom: 16px; }
.web-form-label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--ds-web-coral); text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.web-form-control {
  width: 100%; height: 44px; padding: 0 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-family: inherit; font-size: 14px; color: #fff;
  outline: none; transition: border-color .15s, background .15s;
}
.web-form-control:focus { border-color: var(--ds-web-coral); background: rgba(255,255,255,0.07); }
.web-form-control::placeholder { color: rgba(255,255,255,0.35); }
.web-login-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.55);
  margin: 8px 0 22px;
}
.web-login-meta a { color: var(--ds-web-coral); font-weight: 600; }
.web-login-meta a:hover { text-decoration: underline; }
.web-login-card .web-btn-coral { width: 100%; justify-content: center; height: 46px; }

/* Fingerprint logon button — replaces the standard CTA on the login form. */
.web-login-fingerprint {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 0 4px;
  cursor: pointer;
}
.web-login-fingerprint img {
  height: 96px; width: auto;
  transition: transform .2s var(--ds-ease);
}
.web-login-fingerprint:hover img { transform: scale(1.04); }
.web-login-fingerprint:active img { transform: scale(0.97); }
.web-login-divider {
  text-align: center; margin: 24px 0 16px;
  font-size: 11px; color: rgba(255,255,255,0.4);
  letter-spacing: 1px; text-transform: uppercase;
  position: relative;
}
.web-login-divider::before, .web-login-divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 36px); height: 1px;
  background: rgba(255,255,255,0.1);
}
.web-login-divider::before { left: 0; } .web-login-divider::after { right: 0; }

/* ── DOWNLOAD ───────────────────────────────────────────── */
.web-download-shell {
  min-height: calc(100vh - var(--ds-web-nav-h));
  padding: calc(var(--ds-web-nav-h) + 60px) 40px 80px;
  background: var(--ds-web-bg-deep);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.web-download-shell::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(235,76,80,0.18), transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 90%, rgba(235,76,80,0.10), transparent 70%);
  pointer-events: none;
}
.web-download-inner {
  position: relative; z-index: 1;
  max-width: var(--ds-web-max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
.web-download-text h1 { font-size: 56px; font-weight: 800; color: #fff; line-height: 1.05; letter-spacing: -1px; margin-bottom: 18px; }
.web-download-text h1 .accent { color: var(--ds-web-coral); }
.web-download-text p { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.6; max-width: 480px; margin-bottom: 32px; }
.web-download-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }

.web-download-features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 560px; }
.web-download-feature { display: flex; align-items: flex-start; gap: 14px; }
.web-download-feature .icon-bullet {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--ds-web-coral-dim); color: var(--ds-web-coral);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.web-download-feature .text { font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.web-download-feature .text strong { color: #fff; display: block; font-weight: 700; margin-bottom: 4px; font-size: 19px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .web-nav { padding: 0 20px; }
  .web-nav-links { display: none; position: fixed; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ds-web-bg-deep); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); z-index: 1099; }
  .web-nav-links.open { display: flex; }
  .web-nav-links li { width: 100%; }
  .web-nav-links a { padding: 12px 24px; border-radius: 0; display: block; width: 100%; box-sizing: border-box; }
  /* Logon CTA: full-width row with vertical breathing room so the red
     pill doesn't crowd the rows above/below. */
  .web-nav-links li:has(> .web-nav-cta) { padding: 8px 24px; margin-top: 4px; }
  .web-nav-links .web-nav-cta {
    display: block;
    text-align: center;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    width: 100%;
    box-sizing: border-box;
  }
  .web-nav-burger { display: block; }

  .web-hero-inner, .web-hero-v2-inner, .web-download-inner { flex-direction: column; grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }
  .web-hero-content h1 { font-size: 32px; }
  .web-hero-v2-headline { font-size: 40px; letter-spacing: -0.8px; }
  .web-hero-v2-stats { gap: 20px; }
  .web-stat-num { font-size: 24px; }
  .web-hero-v2-phones { height: 480px; }
  .web-hero-v2-phone { width: 220px; height: 460px; }
  .web-hero-v2-phone.back { transform: rotate(-5deg) translateX(-50px) translateY(15px); }
  .web-hero-v2-phone.front { transform: rotate(3deg) translateX(40px); }
  .web-download-text h1 { font-size: 36px; }

  .web-imap-shell { grid-template-columns: 1fr; }
  .web-imap-controls { border-right: none; border-bottom: 1px solid #eef0f3; }
  .web-imap-canvas { min-height: 480px; height: 70vh; max-height: 720px; }

  .web-feature-grid { grid-template-columns: 1fr; }
  .web-showcase, .web-showcase.flip { flex-direction: column !important; gap: 32px; padding: 0 24px; }

  .web-map-controls { gap: 24px; padding: 16px 20px; }
  .web-map-canvas { height: 360px; }
  .web-container { padding: 0 24px; }
}
