/* ==========================================================================
   OutOfMail — Production Marketing & Download Site Stylesheet
   Palette: Brand Orange #EE7B1C | Obsidian #111111 | White #FFFFFF | Light #F4F4F4
   Fonts: Poppins (headings) | Inter (body) | JetBrains Mono (technical)
   ========================================================================== */

:root {
  --orange: #EE7B1C;
  --orange-hover: #D66910;
  --orange-soft: #FFF4EA;
  --orange-tint: rgba(238, 123, 28, 0.14);
  --orange-border: rgba(238, 123, 28, 0.34);

  --dark: #111111;
  --dark-elevated: #171717;
  --dark-surface: #1F1F1F;
  --dark-border: rgba(255, 255, 255, 0.11);

  --white: #FFFFFF;
  --light: #F4F4F4;
  --light-card: #FAFAFA;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  --text-primary: #111111;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-on-dark: #F9FAFB;
  --text-on-dark-muted: #A3A3A3;

  --green: #15803D;
  --green-soft: #DCFCE7;
  --blue: #1D4ED8;
  --blue-soft: #DBEAFE;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 10px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 12px 32px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.38);

  --container: 1180px;
  --header-h: 72px;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

section[id],
div[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.mono {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 500;
  background: var(--orange);
  color: var(--dark);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: var(--orange);
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.4;
}

.announcement-bar a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  margin-left: 6px;
}

/* ==========================================================================
   Header / Sticky Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dark-border);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  background: rgba(17, 17, 17, 0.97);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-link img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-on-dark-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.15s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--dark-border);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  background: var(--dark-elevated);
  border-bottom: 1px solid var(--dark-border);
  padding: 16px 24px 22px;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer a {
  color: var(--text-on-dark);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 13.5px;
  padding: 9px 17px;
}

.btn-primary {
  background: var(--orange);
  color: var(--dark);
  box-shadow: 0 6px 20px rgba(238, 123, 28, 0.28);
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: var(--white);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: #262626;
}

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-outline-light {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline-light:hover {
  border-color: var(--dark);
  background: var(--light);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--orange-soft);
  color: #B45309;
  border: 1px solid var(--orange-border);
}

.pill-tag.dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.16);
}

.pill-tag.solid-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.pill-tag.outline-orange {
  background: rgba(238, 123, 28, 0.14);
  color: #FFB06B;
  border-color: rgba(238, 123, 28, 0.36);
}

.pill-tag.success {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(21, 128, 61, 0.24);
}

.pill-tag.neutral {
  background: var(--light);
  color: var(--text-secondary);
  border-color: var(--border);
}

.device-badge {
  display: none;
}

.device-badge.visible {
  display: inline-flex;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(238, 123, 28, 0.18), transparent 62%),
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(238, 123, 28, 0.08), transparent 60%),
    var(--dark);
  color: var(--text-on-dark);
  padding: 84px 0 96px;
  border-bottom: 1px solid var(--dark-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.65rem);
  font-weight: 800;
  color: var(--white);
  margin: 18px 0 20px;
  line-height: 1.08;
}

.hero-copy h1 .accent {
  color: var(--orange);
}

.hero-lead {
  font-size: 18px;
  color: #D4D4D4;
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.hero-sub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

.hero-sub-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-sub-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* Interactive Workspace Mockup */
.workspace-card {
  background: var(--dark-elevated);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.workspace-topbar {
  background: #0D0D0D;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dark-border);
  gap: 8px 10px;
}

.workspace-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #EF4444; }
.dot.amber { background: #F59E0B; }
.dot.green { background: #22C55E; }

.workspace-title {
  font-size: 12px;
  font-weight: 600;
  color: #D4D4D4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-badge {
  font-size: 11px;
  font-weight: 700;
  color: #4ADE80;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.workspace-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 344px;
}

.workspace-sidebar {
  background: #141414;
  border-right: 1px solid var(--dark-border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ws-account {
  font-size: 11px;
  font-weight: 700;
  color: #A3A3A3;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.ws-account::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.ws-nav-item {
  border: none;
  background: transparent;
  color: #C4C4C4;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.ws-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.ws-nav-item.active {
  background: rgba(238, 123, 28, 0.18);
  color: #FFB06B;
  font-weight: 600;
}

.ws-nav-item em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

.workspace-reader {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.ws-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ws-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  color: #D4D4D4;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ws-chip.orange {
  background: rgba(238, 123, 28, 0.18);
  color: #FFB06B;
  border-color: rgba(238, 123, 28, 0.35);
}

.ws-chip.green {
  background: rgba(34, 197, 94, 0.15);
  color: #86EFAC;
  border-color: rgba(34, 197, 94, 0.3);
}

.ws-subject {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.ws-from {
  font-size: 12px;
  color: #A3A3A3;
  margin-bottom: 12px;
}

.ws-snippet {
  font-size: 13px;
  color: #D4D4D4;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 13px 14px;
}

.ws-footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--dark-border);
  font-size: 11.5px;
  color: #9CA3AF;
}

/* ==========================================================================
   Section Scaffolding
   ========================================================================== */
.band {
  padding: 88px 0;
}

.band-light {
  background: var(--light);
}

.band-white {
  background: var(--white);
}

.band-dark {
  background: var(--dark);
  color: var(--text-on-dark);
}

.section-header {
  max-width: 740px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.band-dark .section-header p {
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-border);
}

.card-dark {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--orange-border);
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card .pill-tag {
  margin-bottom: 14px;
}

/* ==========================================================================
   Security Spec Band
   ========================================================================== */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.spec-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.spec-card h3 {
  font-size: 17px;
  color: var(--white);
}

.spec-card p {
  font-size: 13.5px;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

.spec-footer-bar {
  margin-top: 28px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: #D4D4D4;
}

.spec-footer-bar a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Provider Strip
   ========================================================================== */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.provider-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.provider-card:hover {
  border-color: var(--orange-border);
  transform: translateY(-2px);
}

.provider-card strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--white);
}

.provider-card span {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 680px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--light);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.compare-table thead th.highlight {
  background: var(--dark);
  color: var(--white);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody th {
  font-weight: 700;
  color: var(--text-primary);
  width: 24%;
}

.compare-table td.good {
  background: rgba(238, 123, 28, 0.05);
  color: var(--text-primary);
  font-weight: 500;
}

.compare-table td.bad {
  color: var(--text-secondary);
}

/* ==========================================================================
   Downloads Section
   ========================================================================== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.platform-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.platform-card.recommended {
  border-color: var(--orange);
  box-shadow: 0 12px 32px rgba(238, 123, 28, 0.15);
}

.plat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.plat-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.plat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--dark);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
}

.plat-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.sha-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.sha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.sha-label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sha-code {
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
  color: #374151;
  display: block;
}

.sha-note {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.copy-mini-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.copy-mini-btn:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.plat-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plat-actions .btn {
  width: 100%;
}

.release-matrix-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.release-matrix-head {
  padding: 18px 24px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.release-matrix-head h3 {
  font-size: 16.5px;
}

.release-matrix-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

.matrix-table th,
.matrix-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.matrix-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: #FAFAFA;
}

.matrix-table tbody tr:last-child td,
.matrix-table tbody tr:last-child th {
  border-bottom: none;
}

.matrix-table td.mono-cell {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Registration Form Panel */
.register-panel {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.register-head {
  margin-bottom: 24px;
}

.register-head h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.register-head p {
  font-size: 15px;
  color: var(--text-secondary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.field input,
.field select {
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  font-family: inherit;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-tint);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.inline-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--orange-hover);
  font-weight: 600;
  text-decoration: underline;
  font-size: inherit;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
}

.form-status {
  margin-bottom: 18px;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
  line-height: 1.55;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.06);
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: var(--green-soft);
  color: #14532D;
  border: 1px solid rgba(21, 128, 61, 0.25);
}

.form-status.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.form-status a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   Company Section (Prodegy Labs Private Limited — Zero Private Details)
   ========================================================================== */
.company-banner {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.company-brand-block {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 680px;
}

.company-logo-card {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.company-logo-card img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.company-brand-block h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.company-brand-block p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.company-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.company-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.contact-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.contact-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--orange-border);
}

.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 500;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.68;
}

/* ==========================================================================
   Final CTA & Footer
   ========================================================================== */
.cta-box {
  background:
    radial-gradient(ellipse 75% 75% at 50% 0%, rgba(238, 123, 28, 0.22), transparent 65%),
    var(--dark-elevated);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 58px 36px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--white);
  margin-bottom: 14px;
}

.cta-box p {
  font-size: 16.5px;
  color: #D4D4D4;
  max-width: 620px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.site-footer {
  background: #0A0A0A;
  color: var(--text-on-dark-muted);
  padding: 64px 0 36px;
  border-top: 1px solid var(--dark-border);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand img {
  height: 30px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 340px;
}

.footer-brand a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a,
.footer-col button {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-on-dark-muted);
  font-size: 13.5px;
  text-align: left;
  transition: color 0.15s ease;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--orange);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #8A8A8A;
}

/* ==========================================================================
   Accessible Legal & Guide Modal + Toast
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  color: var(--text-primary);
  width: 100%;
  max-width: 760px;
  max-height: 86vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-head {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-head h3 {
  font-size: 19px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--light);
  font-size: 20px;
  line-height: 1;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.modal-body {
  padding: 24px 26px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-body h4 {
  font-size: 15.5px;
  color: var(--text-primary);
  margin: 20px 0 8px;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body ul,
.modal-body ol {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body a {
  color: var(--orange-hover);
  text-decoration: underline;
}

.modal-body pre {
  background: #141414;
  color: #F3F4F6;
  padding: 13px 15px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow-x: auto;
  margin: 10px 0;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: var(--dark);
  color: var(--white);
  border: 1px solid var(--orange-border);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */
.error-page-body {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(238, 123, 28, 0.16), transparent 60%),
    var(--dark);
  color: var(--text-on-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.error-page-main {
  width: 100%;
  max-width: 540px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.error-brand-link img {
  height: 36px;
  width: auto;
}

.error-card {
  width: 100%;
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}

.error-card h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--white);
  margin: 16px 0 12px;
}

.error-card p {
  font-size: 15.5px;
  color: var(--text-on-dark-muted);
  margin-bottom: 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-foot {
  font-size: 13px;
  color: #8A8A8A;
}

.error-foot a {
  color: var(--orange);
  text-decoration: underline;
}

/* ==========================================================================
   Standalone Legal & Policy Pages (/privacy/, /terms/)
   ========================================================================== */
.legal-hero {
  background: var(--dark);
  color: var(--text-on-dark);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--dark-border);
}

.legal-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--white);
  margin: 12px 0 14px;
}

.legal-hero .legal-subtitle {
  max-width: 760px;
  font-size: 16.5px;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  font-size: 13.5px;
  color: #D4D4D4;
}

.legal-meta-bar a {
  color: var(--orange);
  text-decoration: underline;
}

.legal-page-band {
  background: var(--white);
  padding: 56px 0 84px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--light-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.legal-toc-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: color 0.15s ease;
}

.legal-toc a:hover {
  color: var(--orange);
}

.legal-content {
  min-width: 0;
  color: var(--text-primary);
}

.legal-callout {
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 28px;
}

.legal-callout h3 {
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 8px;
}

.legal-callout p {
  font-size: 14.5px;
  color: #374151;
  line-height: 1.65;
}

.legal-callout a {
  color: #B45309;
  font-weight: 600;
  text-decoration: underline;
}

.legal-section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.legal-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.legal-section h2 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 12px;
}

.legal-section h3 {
  font-size: 16.5px;
  color: var(--dark);
  margin: 20px 0 8px;
}

.legal-section p {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.75;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section a {
  color: var(--orange-hover);
  text-decoration: underline;
  font-weight: 500;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-table th {
  background: var(--light);
  color: var(--dark);
  font-weight: 600;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table td {
  color: var(--text-secondary);
  line-height: 1.55;
}

.inline-legal-link {
  color: var(--orange-hover);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .legal-toc {
    position: static;
  }
}

/* ==========================================================================
   Reduced Motion & Responsive Breakpoints
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .download-grid,
  .provider-grid,
  .company-stats-grid,
  .spec-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-links,
  .header-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .grid-2,
  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .workspace-body {
    grid-template-columns: 1fr;
  }
  .workspace-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--dark-border);
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
  }
  .ws-account {
    width: 100%;
    margin-bottom: 2px;
  }
}

@media (max-width: 600px) {
  .band {
    padding: 64px 0;
  }
  .hero {
    padding: 58px 0 68px;
  }
  .download-grid,
  .provider-grid,
  .company-stats-grid,
  .spec-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .register-panel,
  .company-banner {
    padding: 24px 20px;
  }
  .company-brand-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-box {
    padding: 40px 22px;
  }
}
