/* ==========================================================================
   Institutional EA — Landing Page Stylesheet
   Mobile-first, accessible, zero-dependency static CSS
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-bright: #3b82f6;
  --color-primary-light: #93c5fd;
  --color-primary-soft: #eff6ff;
  --color-primary-ring: rgba(37, 99, 235, 0.35);
  --color-primary-glow: rgba(59, 130, 246, 0.32);
  --color-logo-navy: #081235;
  --color-coral: #ef5b5b;
  --color-coral-soft: #fff0f0;

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-muted: #f7faf8;
  --color-border: #e5ece8;
  --color-border-strong: #d2ded7;

  --color-text: #161c22;
  --color-text-muted: #52606d;
  --color-dark: #1d2228;
  --color-dark-hover: #111519;
  --color-footer: #2b2d31;
  --color-footer-text: #d6dce2;
  --color-footer-muted: #a4aeb8;

  /* Typography */
  --font-heading: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing & Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-nav: 0 2px 16px rgba(16, 24, 40, 0.06);
  --shadow-card: 0 10px 30px rgba(16, 24, 40, 0.06);
  --shadow-float: 0 14px 34px rgba(16, 24, 40, 0.14);
  --shadow-device: 0 24px 48px rgba(15, 23, 42, 0.18);

  /* Layout */
  --container-max: 1180px;
  --nav-height: 74px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

/* Accessible Focus States */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-dark);
  color: #ffffff;
  font-weight: 600;
}

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

/* Container & Shared Section Helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 72px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--color-dark);
  color: #ffffff;
  padding: 14px 30px;
}

.btn-dark:hover {
  background-color: var(--color-dark-hover);
  transform: translateY(-1px);
}

/* Badges */
.badge-soon {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary-soft);
  border: 1px solid rgba(147, 197, 253, 0.65);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ==========================================================================
   1. NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-nav);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
  flex-shrink: 0;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  color: inherit;
  letter-spacing: -0.01em;
}

.brand-subtext {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 0.72rem + 0.25vw, 0.8125rem);
  font-weight: 500;
  line-height: 1.2;
  color: #64748b;
  letter-spacing: 0.01em;
  margin-top: 1px;
}

.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: 11px;
  background-color: #000000;
  border: 1px solid rgba(147, 197, 253, 0.35);
  box-shadow: 0 4px 12px rgba(8, 18, 53, 0.16);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-tile-footer {
  width: 48px;
  height: 48px;
  padding: 6px;
  border-radius: 13px;
  border-color: rgba(147, 197, 253, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 18px 34px rgba(16, 24, 40, 0.1);
  padding: 18px 20px 24px;
  display: none;
}

.main-nav.is-open {
  display: block;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--color-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-surface-muted);
}

.nav-link[aria-current="page"] {
  color: var(--color-primary-hover);
  background-color: var(--color-primary-soft);
}

.chevron-icon {
  transition: transform 0.2s ease;
}

.dropdown-trigger[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  padding: 6px 0 6px 12px;
}

.nav-dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover:not(.is-disabled) {
  background-color: var(--color-primary-soft);
  color: #1d4ed8;
}

.dropdown-item.is-disabled {
  color: #7b8794;
  cursor: not-allowed;
}

.dropdown-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ==========================================================================
   2. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 44px;
  padding-bottom: 72px;
  background: radial-gradient(circle at 82% 24%, rgba(37, 99, 235, 0.16), transparent 46%),
    linear-gradient(180deg, #eff6ff 0%, #f5f9ff 58%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 30px;
}

/* Store-style Download Buttons */
.store-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 500px;
}

.store-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 14px;
  background-color: var(--color-dark);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-btn:hover:not(.is-disabled) {
  background-color: var(--color-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.18);
}

.store-btn.is-detected-os {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 4px var(--color-primary-glow), 0 10px 24px rgba(8, 18, 53, 0.22);
}

.store-btn.is-disabled {
  background-color: #363d46;
  color: rgba(255, 255, 255, 0.72);
  cursor: not-allowed;
  box-shadow: none;
}

.store-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.store-btn-text small {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.store-btn-text strong {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
}

.store-badge-soon {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary-soft);
  color: #1d4ed8;
  font-size: 0.66rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.12);
}

.store-btn.is-loading {
  opacity: 0.72;
  cursor: progress;
}

.release-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.release-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #1fa35a;
  flex-shrink: 0;
}

.release-status.is-loading .release-status-dot {
  background-color: #94a3b8;
}

.release-status.is-error .release-status-dot {
  background-color: var(--color-coral);
}

.release-status-sep {
  opacity: 0.5;
}

.release-status-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.release-status-link:hover {
  color: var(--color-primary-hover);
}

.release-retry-btn {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background-color: #ffffff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.release-retry-btn:hover {
  background-color: var(--color-surface-muted);
  border-color: var(--color-primary);
}

/* Hero Visual & Floating Elements */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 18px 8px 26px 18px;
}

.hero-mockup-img {
  width: 100%;
  border-radius: 20px;
  filter: drop-shadow(0 24px 40px rgba(15, 23, 42, 0.18));
}

.floating-pill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}

.pill-green {
  top: 6px;
  right: 10px;
  background-color: #1fa35a;
  color: #ffffff;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6cf3c8;
  box-shadow: 0 0 0 3px rgba(108, 243, 200, 0.32);
}

.pill-coral {
  bottom: 18px;
  right: 12px;
  background-color: var(--color-coral);
  color: #ffffff;
}

.hero-circle-badge {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background-color: #ffffff;
  padding: 5px;
  box-shadow: 0 14px 32px rgba(8, 18, 53, 0.2), 0 0 0 4px var(--color-primary-glow);
}

.hero-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #000000;
  border: 1.5px solid rgba(147, 197, 253, 0.45);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-badge-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   3. HOW INSTITUTIONAL EA WORKS
   ========================================================================== */
.how-section {
  background-color: var(--color-bg);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.how-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 16px;
}

.green-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-primary-light) 0%, var(--color-primary) 78%);
  box-shadow: 0 18px 42px var(--color-primary-glow);
  z-index: 0;
}

.how-circle {
  width: min(300px, 76vw);
  height: min(300px, 76vw);
}

.how-phone-img {
  position: relative;
  z-index: 1;
  width: min(220px, 56vw);
  filter: drop-shadow(0 20px 36px rgba(15, 23, 42, 0.2));
}

.how-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--color-primary-soft);
  color: #1d4ed8;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.94rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   4. ONE BOT, EVERY DEVICE (TABS)
   ========================================================================== */
.devices-section {
  background-color: var(--color-surface-muted);
}

.device-tabs {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  margin-top: 26px;
  border-radius: var(--radius-pill);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
}

.device-tab {
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.device-tab.is-active {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.device-panel[hidden] {
  display: none;
}

.device-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.device-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.devices-circle {
  width: min(310px, 78vw);
  height: min(310px, 78vw);
}

.tilted-pair {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tilted-pair-desktop {
  min-height: 280px;
}

.tilted-img {
  border-radius: 16px;
  filter: drop-shadow(0 18px 32px rgba(15, 23, 42, 0.2));
}

.tilted-back {
  width: 78%;
  transform: translate(-14%, -10%) rotate(-5deg);
}

.tilted-front {
  position: absolute;
  width: 72%;
  transform: translate(16%, 18%) rotate(4deg);
}

.tilted-pair-mobile {
  min-height: 340px;
}

.tilted-phone {
  width: min(175px, 44vw);
  filter: drop-shadow(0 18px 32px rgba(15, 23, 42, 0.22));
}

.tilted-phone-left {
  transform: translateX(12px) rotate(-8deg);
}

.tilted-phone-right {
  transform: translate(-12px, 16px) rotate(7deg);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background-color: var(--color-primary-soft);
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.feature-item p {
  font-size: 0.94rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   5. DOWNLOAD BANNER
   ========================================================================== */
.banner-section {
  padding-block: 56px;
}

.cta-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 26px 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.16), transparent 45%),
    linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.24);
}

.cta-banner-content {
  max-width: 500px;
  padding-bottom: 8px;
}

.cta-banner-content h2 {
  color: #ffffff;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.03rem;
  margin-bottom: 26px;
}

.cta-banner-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 230px;
}

.banner-phone {
  width: 150px;
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.28));
}

.banner-phone-back {
  transform: translate(16px, 46px) rotate(-8deg);
}

.banner-phone-front {
  transform: translate(-16px, 28px) rotate(6deg);
}

/* ==========================================================================
   6. DOCUMENTATION ACCORDION
   ========================================================================== */
.docs-section {
  background-color: var(--color-surface);
}

.docs-container {
  max-width: 900px;
}

.docs-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.docs-item {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
}

.docs-heading {
  margin: 0;
}

.docs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease;
}

.docs-trigger:hover,
.docs-trigger[aria-expanded="true"] {
  color: var(--color-primary);
}

.docs-chevron {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease;
}

.docs-trigger[aria-expanded="true"] .docs-chevron {
  transform: rotate(45deg);
}

.docs-panel {
  padding: 0 20px 20px;
  color: var(--color-text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.docs-panel p + p {
  margin-top: 12px;
}

.docs-panel ol {
  margin: 0;
  padding-left: 22px;
}

.docs-panel li + li {
  margin-top: 9px;
}

.docs-risk-disclosure {
  margin: 24px auto 0;
  max-width: 820px;
  color: var(--color-text-muted);
  text-align: center;
  font-size: 0.84rem;
}

/* ==========================================================================
   7. FAQ ACCORDION
   ========================================================================== */
.faq-section {
  background-color: var(--color-surface-muted);
}

.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-md);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.18s ease;
}

.faq-trigger:hover {
  color: var(--color-primary);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.22s ease;
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  padding: 0 22px 20px;
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

.faq-panel code {
  padding: 2px 6px;
  border-radius: 5px;
  background-color: var(--color-primary-soft);
  color: #1d4ed8;
  font-size: 0.88em;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-footer);
  color: var(--color-footer-text);
  padding-top: 60px;
  padding-bottom: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-footer {
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-desc {
  max-width: 340px;
  font-size: 0.94rem;
  color: var(--color-footer-muted);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.94rem;
  color: var(--color-footer-text);
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copyright {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 500;
}

.disclaimer {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-footer-muted);
  max-width: 900px;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .container {
    padding-inline: 28px;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

@media (min-width: 960px) {
  .section {
    padding-block: 96px;
  }

  /* Desktop Navbar */
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    flex: 1;
    min-width: 0;
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: clamp(4px, 0.7vw, 12px);
  }

  .nav-link {
    width: auto;
    padding: 8px 14px;
  }

  .nav-dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: var(--radius-md);
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-float);
  }

  /* Desktop Hero */
  .hero {
    padding-top: 72px;
    padding-bottom: 92px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 44px;
  }

  /* Desktop How It Works: 2 left, mockup center, 2 right */
  .how-grid {
    grid-template-columns: 1fr minmax(260px, 340px) 1fr;
    gap: 28px;
  }

  .how-col-left {
    order: 1;
  }

  .how-center {
    order: 2;
  }

  .how-col-right {
    order: 3;
  }

  /* Desktop One Bot Every Device */
  .device-panel-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

  /* Desktop CTA Banner with overlapping device mockups */
  .cta-banner {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 54px 56px;
    overflow: visible;
    margin-block: 24px;
  }

  .cta-banner-content {
    padding-bottom: 0;
  }

  .cta-banner-visual {
    height: 240px;
  }

  .banner-phone {
    width: 185px;
  }

  .banner-phone-back {
    transform: translate(20px, 16px) rotate(-9deg);
  }

  .banner-phone-front {
    transform: translate(-18px, -18px) rotate(7deg);
  }
}


/* Windows SmartScreen Note & Expandable 4-Step Guide */
[data-smartscreen-help][hidden] {
  display: none !important;
}

.win-smartscreen-note {
  margin: 12px 0 0;
  max-width: 500px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.81rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.win-smartscreen-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.win-smartscreen-link {
  color: var(--color-primary-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.win-smartscreen-link:hover {
  color: var(--color-primary);
}

.win-help-details {
  margin-top: 10px;
  max-width: 500px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
  overflow: hidden;
}

.win-help-body {
  padding: 6px 15px 15px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--color-text);
}

.win-help-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.win-help-steps li {
  padding-left: 2px;
}

.win-help-steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  background-color: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 1px 5px;
}

.win-help-illus {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-muted);
  border: 1px solid var(--color-border);
}

.win-help-svg {
  width: 100%;
  height: auto;
  display: block;
}

.win-illus-card {
  fill: #ffffff;
  stroke: #cbd5e1;
  stroke-width: 1.25;
}

.win-illus-header {
  fill: #1e3a5f;
}

.win-illus-title {
  fill: #ffffff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
}

.win-illus-line {
  fill: #cbd5e1;
}

.win-illus-highlight {
  fill: rgba(37, 99, 235, 0.14);
  stroke: #2563eb;
  stroke-width: 1.5;
}

.win-illus-link {
  fill: #0f172a;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: underline;
}

.win-illus-btn-primary {
  fill: #1e3a5f;
}

.win-illus-btn-primary-text {
  fill: #ffffff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
}

.win-illus-btn-muted {
  fill: #e2e8f0;
}

.win-illus-btn-muted-text {
  fill: #334155;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
}

.win-illus-badge {
  fill: #2563eb;
}

.win-illus-badge-text {
  fill: #ffffff;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
}

.win-illus-arrow {
  color: #64748b;
}

.win-help-illus-caption {
  margin-top: 6px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.win-help-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.win-help-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.win-help-inline-link {
  color: var(--color-primary-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.win-help-inline-link:hover {
  color: var(--color-primary);
}

@media (prefers-color-scheme: dark) {
  .win-help-details {
    background-color: #161b22;
    border-color: #30363d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .win-help-body {
    color: #e6edf3;
  }

  .win-help-steps code {
    background-color: #0d1117;
    border-color: #30363d;
    color: #e6edf3;
  }

  .win-help-illus {
    background-color: #0d1117;
    border-color: #30363d;
  }

  .win-illus-card {
    fill: #161b22;
    stroke: #30363d;
  }

  .win-illus-line {
    fill: #30363d;
  }

  .win-illus-link {
    fill: #f0f6fc;
  }

  .win-illus-btn-muted {
    fill: #21262d;
  }

  .win-illus-btn-muted-text {
    fill: #c9d1d9;
  }

  .win-illus-arrow {
    color: #8b949e;
  }

  .win-help-illus-caption,
  .win-help-meta {
    color: #9ba6b2;
  }

  .win-help-footer {
    border-top-color: #30363d;
  }

  .win-help-inline-link {
    color: #1d4ed8;
  }

  .win-help-inline-link:hover {
    color: var(--color-primary-bright);
  }
}

/* ==========================================================================
   Realistic Device Mockup Polish & Motion
   ========================================================================== */
.hero-mockup-img {
  aspect-ratio: 600 / 420;
}

.how-phone-img,
.tilted-phone,
.banner-phone {
  aspect-ratio: 300 / 600;
}

.tilted-back {
  aspect-ratio: 600 / 420;
}

.tilted-front {
  aspect-ratio: 480 / 340;
}

@keyframes iea-float-subtle {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

.floating-pill {
  animation: iea-float-subtle 5.5s ease-in-out infinite;
}

.pill-coral {
  animation-delay: 1.6s;
}

/* Local-only simulated screens layered inside the existing device artwork. */
.demo-screen {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.demo-laptop-screen {
  top: 18px;
  left: 18px;
  width: calc(100% - 26px);
  height: auto;
  aspect-ratio: 600 / 420;
}

.demo-phone-wrap {
  position: relative;
  z-index: 1;
  width: min(220px, 56vw);
  aspect-ratio: 1 / 2;
  filter: drop-shadow(0 20px 36px rgba(15, 23, 42, 0.2));
}

.how-phone-img {
  display: block;
  width: 100%;
  height: 100%;
  filter: none;
}

.demo-phone-screen {
  inset: 0;
  width: 100%;
  height: 100%;
}

.demo-cursor {
  fill: #fff;
  transform: translate(122px, 119px);
  transition: transform 520ms cubic-bezier(.2,.75,.25,1);
}

.demo-click-ring {
  fill: none;
  stroke: #93c5fd;
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.demo-screen[data-demo-state="start"] .demo-click-ring,
.demo-screen[data-demo-state="pause"] .demo-click-ring,
.demo-screen[data-demo-state="stop"] .demo-click-ring {
  animation: demo-cursor-click 680ms ease-out both;
}

.demo-price-line,
.demo-phone-price-line {
  stroke-dasharray: 420;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 900ms ease;
}

.demo-screen[data-demo-state="stop"] .demo-price-line,
.demo-screen[data-demo-state="stop"] .demo-phone-price-line {
  stroke-dashoffset: 150;
}

.demo-screen[data-demo-state="paused"] .demo-price-dot,
.demo-screen[data-demo-state="stop"] .demo-price-dot {
  opacity: .55;
}

.demo-screen:not([data-demo-state="paused"]):not([data-demo-state="stop"]) .demo-price-dot {
  animation: demo-price-pulse 1.8s ease-in-out infinite;
}

.demo-screen:not([data-demo-state="paused"]):not([data-demo-state="stop"]) .demo-bridge-dot {
  animation: demo-status-pulse 2.2s ease-in-out infinite;
}

@keyframes demo-cursor-click {
  0% { opacity: .75; transform: scale(.55); }
  100% { opacity: 0; transform: scale(1.7); }
}

@keyframes demo-price-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

@keyframes demo-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-pill {
    animation: none;
  }

  .demo-screen *,
  .demo-screen *::before,
  .demo-screen *::after {
    animation: none !important;
    transition: none !important;
  }

  .demo-cursor {
    display: none;
  }
}
