/* OmniTender — Brand Unification Redesign
   Aesthetic system: Premium dark mode with deep black (#070707), brand orange (#F7792C),
   and accents of crown gold (#D4AF37). Responsive, progressive enhancement. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --brand: #F7792C;
  --brand-hover: #ff914d;
  --brand-press: #d55e1b;
  --gold: #D4AF37;
  --bg: #070707;
  --surface: #111111;
  --surface-2: #181818;
  --border: #242424;
  --border-glow: rgba(247, 121, 44, 0.15);
  --ink: #ececec;
  --muted: #9a9a9a;
  --faint: #5a5a5a;
  --danger: #f87171;
  --ok-bg: #0d281a;
  --ok-border: #14532d;
  --ok-ink: #4ade80;
  --radius: 16px;
  --radius-sm: 8px;
  --maxw: 960px;
  --dash-maxw: 1100px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(247, 121, 44, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 50% at 100% 80%, rgba(212, 175, 55, 0.03), transparent 60%);
  background-attachment: fixed;
}

/* Keyboard users: clear, visible focus everywhere. */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link — first tab stop, hidden until focused. */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #070707;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

header {
  background: #000;
  color: #fff;
  padding: 24px 20px;
  text-align: center;
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.brand {
  display: inline-block;
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.brand span {
  color: var(--brand);
}
a.brand:hover { color: #fff; opacity: 0.95; }
header .tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-weight: 700;
}

/* Primary navigation — lets either audience reach the other page. */
.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 16px;
}
.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 2px;
  transition: color 0.15s, border-color 0.15s;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { color: var(--brand); }
/* Current page: not a link target, visually marked with an underline. */
.topnav a[aria-current="page"] {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}

main { max-width: var(--maxw); margin: 0 auto; padding: var(--space-xl) 20px 80px; }

/* Section headings */
.sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.sec-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 8px 0 16px;
}
.sec-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand);
  margin-bottom: 8px;
  border: 1px solid var(--border-glow);
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(247, 121, 44, 0.05);
}

/* Hero section — value prop above the fold (landing page) */
.hero { 
  margin: var(--space-xl) 0 var(--space-2xl); 
  text-align: center;
}
.hero h1 { 
  font-size: clamp(2rem, 5vw, 3.2rem); 
  margin: 0 auto var(--space-md); 
  line-height: 1.15; 
  font-weight: 900; 
  letter-spacing: -0.02em;
  max-width: 820px;
  color: #fff;
}
.hero h1 span {
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { 
  font-size: clamp(1.1rem, 2vw, 1.35rem); 
  color: var(--muted); 
  margin: 0 auto var(--space-xl); 
  max-width: 680px; 
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}
.hstat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.hstat svg {
  color: var(--brand);
  flex-shrink: 0;
}
.hstat b {
  color: var(--brand);
}

/* Layout Cards and Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px var(--space-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .6);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 12px 40px rgba(247, 121, 44, 0.15);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  opacity: 0.8;
}

/* Forms layout constraints */
.form-card-container {
  max-width: 640px;
  margin: 0 auto;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(247, 121, 44, 0.1);
  color: var(--brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-glow);
}
.card-icon.gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.2);
}

h3 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 12px;
  font-weight: 700;
}
p {
  color: var(--ink);
  margin: 0 0 var(--space-md);
}

/* Steps section */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: #000;
  font-weight: 900;
  font-size: 1.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(247, 121, 44, 0.4);
}

/* Security container */
.security-banner {
  background: linear-gradient(135deg, var(--surface) 0%, #0c0c0c 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 48px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.security-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.security-grid h2 {
  font-size: 2.2rem;
  font-weight: 850;
  line-height: 1.2;
  margin-top: 8px;
  color: #fff;
}
.security-grid p.lead {
  color: var(--muted);
  font-size: 1.1rem;
}
.badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.badge svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.badge b {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}
.badge span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Stats display */
.statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.statcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}
.statcard .num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.statcard .lbl {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Final CTA section */
.final-cta {
  background: linear-gradient(135deg, var(--surface) 0%, #151515 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  margin-bottom: 48px;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}
.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.final-cta h2 {
  font-size: 2.2rem;
  font-weight: 850;
  color: #fff;
  margin-bottom: 16px;
}
.final-cta p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 24px;
}
.cta-bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.cta-bullets .pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-bullets .pill svg {
  color: var(--brand);
}

label { display: block; font-weight: 600; margin: var(--space-md) 0 6px; color: var(--ink); font-size: 0.95rem; }

input[type=tel],
input[type=text],
input[type=email] {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid #333;
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #5a5a5a; }
input:hover { border-color: #4a4a4a; }
input:focus-visible { border-color: var(--brand); outline: none; box-shadow: 0 0 10px rgba(247, 121, 44, 0.2); }
/* Keep browser-autofilled fields on-theme (override the default light fill). */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  caret-color: var(--ink);
}
/* Mark invalid fields only after the user has interacted (set via JS). */
input[aria-invalid="true"] { border-color: var(--danger); }

.field-error {
  display: none;
  color: var(--danger);
  font-size: .85rem;
  margin-top: 6px;
  font-weight: 500;
}
.field-error.show { display: block; }

.consent {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin: var(--space-lg) 0;
  font-weight: 400;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}
.consent input { margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--brand); }
.consent a { color: var(--brand); text-decoration: none; font-weight: 600; }
.consent a:hover { color: var(--brand-hover); text-decoration: underline; }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #000;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: var(--space-sm);
  min-height: 48px;
  text-decoration: none;
  font-family: inherit;
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
button:hover, .btn:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 5px 15px rgba(247, 121, 44, 0.3); }
button:active, .btn:active { background: var(--brand-press); transform: translateY(0); }
button:disabled { background: #5a4029; color: #2a2a2a; cursor: progress; transform: none; box-shadow: none; }

.btn-secondary {
  background: var(--surface-2);
  color: #fff;
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: none;
}

.fine { font-size: .82rem; color: var(--muted); margin-top: var(--space-md); text-align: center; }

/* Status panels (success / error). Hidden until JS reveals them. */
.ok, .err {
  display: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
  font-weight: 600;
}
.ok {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-ink);
}
.err {
  background: #2a1414;
  border: 1px solid #7d2f2f;
  color: #ffb3b3;
}

a { color: var(--brand); transition: color 0.15s; }
a:hover { color: var(--brand-hover); }

footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: .88rem;
  border-top: 1px solid var(--border);
  background: #000;
}
footer nav {
  margin-bottom: 12px;
}
footer a { margin: 0 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--brand); }

/* ---- Shared utility classes (used across all pages) ---- */

/* Section label — uppercase, small, muted (for dashboard sections) */
.sec-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--brand);
  margin: 0 0 var(--space-sm);
}

/* Collapsible / expandable wrapper — hidden by default */
.collapsible { display: none; }
.collapsible.open { display: block; }

/* Toggle button for expandable sections — inline, text-style */
.toggle-btn {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  padding: 0;
  width: auto;
  min-height: 0;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toggle-btn:hover { color: var(--brand-hover); }

/* Metric value — big bold number (for stat boxes / KPI displays) */
.metric-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}
.metric-label {
  font-size: .78rem;
  color: var(--muted);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}

/* Status pill — inline health indicator */
.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .4px;
}
.pill-up   { background: #065f46; color: #34d399; }
.pill-down { background: #991b1b; color: #f87171; }
.pill-wait { background: #374151; color: #9ca3af; }

/* Legal pages */
.legal h1 { color: #fff; font-weight: 900; font-size: 2.2rem; margin-top: 12px; }
.legal h2 { color: var(--brand); font-size: 1.35rem; margin-top: 32px; font-weight: 800; }
.legal p { color: var(--ink); }
.back { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.back:hover { text-decoration: underline; }

/* Small screens */
@media (max-width: 880px) {
  .cards, .steps, .statgrid, .security-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .statgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .badges {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header { padding: 20px 16px; }
  .brand { font-size: 1.6rem; }
  main { padding: 20px 14px 48px; }
  .card { padding: 24px 16px; }
  .statgrid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .legal h1 { font-size: 1.8rem; }
}

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

