/* ==========================================================================
   AuthorWise Token Factory — Main Human Mode Stylesheet
   WCAG 2.1 AA Compliant • Responsive • Modular
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--aw-font-body);
  font-size: var(--aw-text-base);
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--surface-page);
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Scroll Margin Clearance for Fixed Header (76px) */
section[id],
[id] {
  scroll-margin-top: var(--aw-scroll-offset);
}

/* Global Keyboard Focus Ring */
:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 3px;
}

/* Skip Navigation Link */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--aw-space-4);
  z-index: 1000;
  padding: var(--aw-space-3) var(--aw-space-5);
  background-color: var(--cta-primary-bg);
  color: var(--cta-primary-text);
  font-family: var(--aw-font-heading);
  font-weight: 700;
  border-radius: var(--aw-radius-sm);
  box-shadow: var(--aw-shadow-lg);
  transition: top var(--aw-duration-fast) var(--aw-ease);
}

.skip-link:focus {
  top: var(--aw-space-4);
}

.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;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--aw-font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--aw-text-hero);
}

h2 {
  font-size: var(--aw-text-3xl);
}

h3 {
  font-size: var(--aw-text-xl);
}

.aw-container {
  width: 100%;
  max-width: var(--aw-max-width);
  margin-inline: auto;
  padding-inline: var(--aw-space-6);
}

/* ==========================================================================
   STICKY HEADER (76px Frosted Glass)
   ========================================================================== */
.aw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--aw-header-height);
  background-color: var(--surface-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.aw-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--aw-space-4);
}

.aw-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--aw-space-3);
  flex-shrink: 0;
}

.aw-brand img {
  height: 34px;
  width: auto;
}

.aw-brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  background-color: var(--aw-navy-950);
  color: var(--aw-lime-400);
  font-family: var(--aw-font-mono);
  font-size: var(--aw-text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--aw-radius-pill);
  border: 1px solid var(--aw-border-lime-alpha);
}

.aw-nav {
  display: flex;
  align-items: center;
  gap: var(--aw-space-5);
}

.aw-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--aw-space-5);
}

.aw-nav-link {
  position: relative;
  font-family: var(--aw-font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  padding: var(--aw-space-2) 0;
  transition: color var(--aw-duration-fast) var(--aw-ease);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

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

.aw-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--brand-accent);
  border-radius: var(--aw-radius-pill);
}

.aw-header-actions {
  display: flex;
  align-items: center;
  gap: var(--aw-space-3);
  flex-shrink: 0;
}

/* Language Switcher Pill */
.aw-lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background-color: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--pill-radius);
}

.aw-lang-pill:focus-within {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.aw-lang-pill a {
  padding: 0.25rem 0.65rem;
  font-family: var(--aw-font-heading);
  font-size: var(--aw-text-xs);
  font-weight: 600;
  border-radius: var(--pill-radius);
  color: var(--pill-inactive-fg);
  transition: background-color var(--aw-duration-fast) var(--aw-ease), color var(--aw-duration-fast) var(--aw-ease);
}

.aw-lang-pill a:hover {
  background-color: var(--aw-slate-200);
}

.aw-lang-pill a.is-active,
.aw-lang-pill a[aria-current="true"] {
  background-color: var(--pill-active-bg);
  color: var(--pill-active-fg);
}

/* Hamburger Button */
.aw-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-subtle);
  background-color: var(--aw-white);
  color: var(--text-heading);
  border-radius: var(--aw-radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.aw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--aw-space-2);
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  font-family: var(--aw-font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--aw-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--aw-duration-fast) var(--aw-ease),
              background-color var(--aw-duration-fast) var(--aw-ease),
              border-color var(--aw-duration-fast) var(--aw-ease),
              box-shadow var(--aw-duration-fast) var(--aw-ease),
              color var(--aw-duration-fast) var(--aw-ease);
}

.aw-btn:active {
  transform: scale(0.98);
}

.aw-btn-primary {
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
}

.aw-btn-primary:hover {
  background-color: var(--btn-bg-hover);
  box-shadow: 0 10px 28px var(--aw-lime-glow);
}

.aw-btn-primary:active {
  background-color: var(--btn-bg-active);
}

.aw-btn-primary:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

.aw-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.aw-btn-header {
  min-height: 40px;
  padding: 0.45rem 1.05rem;
  font-size: 0.875rem;
}

.aw-btn-secondary {
  background-color: var(--btn-bg);
  border-color: var(--btn-border);
  color: var(--btn-fg);
}

.aw-btn-secondary:hover {
  border-color: var(--brand-accent-light);
  color: var(--brand-accent-light);
}

.aw-btn-secondary:focus-visible {
  outline: 2px solid var(--focus-ring-dark);
  outline-offset: 3px;
}

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

.aw-btn-outline-light:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* ==========================================================================
   HERO SECTION (Deep Obsidian #041021)
   ========================================================================== */
.aw-hero {
  position: relative;
  background-color: var(--surface-hero);
  color: var(--text-on-dark);
  padding-block: var(--aw-space-16) var(--aw-space-16);
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark-subtle);
}

.aw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(0, 163, 224, 0.16), transparent 48%),
    radial-gradient(circle at 20% 85%, rgba(132, 204, 22, 0.08), transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
}

.aw-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.aw-hero--compact {
  padding-block: var(--aw-space-12) var(--aw-space-12);
}

.aw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--aw-space-2);
  padding: 0.35rem 0.9rem;
  margin-bottom: var(--aw-space-5);
  background-color: var(--surface-hero-elevated);
  border: 1px solid var(--aw-border-cyan-alpha);
  border-radius: var(--aw-radius-pill);
  font-family: var(--aw-font-mono);
  font-size: var(--aw-text-xs);
  font-weight: 600;
  color: var(--brand-accent-light);
  letter-spacing: 0.03em;
}

.aw-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--aw-lime-500);
  box-shadow: 0 0 8px var(--aw-lime-500);
}

.aw-hero h1 {
  color: var(--text-on-dark);
  margin-bottom: var(--aw-space-5);
}

.aw-hero h1 .aw-text-lime {
  color: var(--aw-lime-400);
}

.aw-hero-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.68;
  color: var(--text-on-dark-muted);
  max-width: 760px;
  margin-bottom: var(--aw-space-8);
}

.aw-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--aw-space-4);
  margin-bottom: var(--aw-space-8);
}

.aw-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--aw-space-3) var(--aw-space-6);
  padding-top: var(--aw-space-6);
  border-top: 1px solid var(--border-dark-subtle);
}

.aw-trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--aw-space-2);
  font-family: var(--aw-font-heading);
  font-size: var(--aw-text-sm);
  font-weight: 500;
  color: var(--aw-slate-200);
}

.aw-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--aw-lime-400);
  flex-shrink: 0;
}

/* Breadcrumbs inside compact inner heroes */
.aw-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--aw-space-2);
  margin-bottom: var(--aw-space-4);
  font-size: var(--aw-text-sm);
  color: var(--aw-slate-400);
}

.aw-breadcrumb a:hover {
  color: var(--brand-accent-light);
}

/* ==========================================================================
   SECTIONS & LAYOUT CONTAINERS
   ========================================================================== */
.aw-section {
  padding-block: var(--aw-space-16);
  background-color: var(--surface-page);
}

.aw-section--subtle {
  background-color: var(--surface-subtle);
  border-block: 1px solid var(--border-subtle);
}

.aw-section--dark {
  background-color: var(--surface-hero);
  color: var(--text-on-dark);
}

.aw-section-head {
  max-width: 780px;
  margin-bottom: var(--aw-space-10);
}

.aw-section-head--center {
  margin-inline: auto;
  text-align: center;
}

.aw-section-kicker {
  display: inline-block;
  font-family: var(--aw-font-mono);
  font-size: var(--aw-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: var(--aw-space-2);
}

.aw-section-head h2 {
  margin-bottom: var(--aw-space-4);
}

.aw-section-summary {
  font-size: var(--aw-text-lg);
  color: var(--text-body);
}

.aw-section--dark .aw-section-head h2 {
  color: var(--text-on-dark);
}

.aw-section--dark .aw-section-summary {
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   CONCEPTUAL 3-BOX BLACK-BOX FLOW DIAGRAM
   ========================================================================== */
.aw-flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr auto 1fr;
  align-items: stretch;
  gap: var(--aw-space-4);
}

.aw-flow-box {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--aw-radius-lg);
  padding: var(--aw-space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--aw-space-2);
  box-shadow: var(--aw-shadow-sm);
}

.aw-flow-box--gateway {
  background-color: var(--aw-navy-950);
  color: var(--aw-white);
  border: 2px solid var(--aw-lime-500);
  box-shadow: var(--aw-shadow-lg), 0 0 28px rgba(132, 204, 22, 0.14);
}

.aw-flow-box--gateway h3 {
  color: var(--aw-white);
}

.aw-flow-label {
  font-family: var(--aw-font-mono);
  font-size: var(--aw-text-xs);
  font-weight: 600;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aw-flow-box--gateway .aw-flow-label {
  color: var(--aw-lime-400);
}

.aw-flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--aw-space-2);
  margin-top: var(--aw-space-2);
}

.aw-flow-tag {
  padding: 0.25rem 0.65rem;
  border-radius: var(--aw-radius-pill);
  font-family: var(--aw-font-mono);
  font-size: var(--aw-text-xs);
  font-weight: 600;
  background-color: var(--aw-navy-900);
  color: var(--aw-lime-400);
  border: 1px solid var(--aw-border-lime-alpha);
}

.aw-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
}

.aw-flow-arrow svg {
  width: 28px;
  height: 28px;
}

.aw-flow-note {
  margin-top: var(--aw-space-4);
  font-size: var(--aw-text-sm);
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   CARDS & BENEFIT PILLARS
   ========================================================================== */
.aw-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--aw-space-6);
}

.aw-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--aw-space-6);
}

.aw-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--aw-space-6);
  box-shadow: var(--card-shadow);
  transition: border-color var(--aw-duration-base) var(--aw-ease),
              box-shadow var(--aw-duration-base) var(--aw-ease),
              transform var(--aw-duration-base) var(--aw-ease);
}

.aw-card:hover {
  border-color: var(--brand-accent);
  box-shadow: var(--aw-shadow-md);
}

.aw-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--aw-radius-md);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--aw-space-4);
}

.aw-card-icon svg {
  width: 24px;
  height: 24px;
}

.aw-card h3 {
  margin-bottom: var(--aw-space-3);
}

.aw-card-meta {
  display: inline-block;
  margin-top: var(--aw-space-4);
  font-family: var(--aw-font-heading);
  font-size: var(--aw-text-sm);
  font-weight: 600;
  color: var(--brand-primary);
}

/* ==========================================================================
   NUMBERED CAPABILITIES (01/ – 05/)
   ========================================================================== */
.aw-cap-list {
  display: flex;
  flex-direction: column;
  gap: var(--aw-space-4);
}

.aw-cap-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--aw-space-6);
  align-items: start;
  padding: var(--aw-space-6);
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--aw-radius-lg);
}

.aw-cap-num {
  font-family: var(--aw-font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-accent);
  line-height: 1.1;
}

.aw-cap-body h3 {
  margin-bottom: var(--aw-space-2);
}

.aw-check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--aw-space-2) var(--aw-space-6);
  margin-top: var(--aw-space-4);
}

.aw-check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--aw-space-2);
  font-size: var(--aw-text-sm);
}

.aw-check-list li svg {
  width: 16px;
  height: 16px;
  color: var(--aw-success-700);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ==========================================================================
   INTERACTIVE TABS (Use Cases)
   ========================================================================== */
.aw-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--aw-space-2);
  margin-bottom: var(--aw-space-6);
}

.aw-tab-btn {
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  background-color: var(--aw-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--aw-radius-pill);
  font-family: var(--aw-font-heading);
  font-size: var(--aw-text-sm);
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: background-color var(--aw-duration-fast) var(--aw-ease),
              color var(--aw-duration-fast) var(--aw-ease),
              border-color var(--aw-duration-fast) var(--aw-ease);
}

.aw-tab-btn:hover {
  border-color: var(--brand-accent);
  color: var(--brand-primary);
}

.aw-tab-btn[aria-selected="true"] {
  background-color: var(--aw-navy-950);
  border-color: var(--aw-navy-950);
  color: var(--aw-lime-400);
}

.aw-tab-panel {
  background-color: var(--aw-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--aw-radius-lg);
  padding: var(--aw-space-8);
  box-shadow: var(--aw-shadow-sm);
}

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

.aw-tabpanel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--aw-space-6);
  margin-bottom: var(--aw-space-6);
}

.aw-tabpanel-col h3 {
  font-size: var(--aw-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-accent);
  margin-bottom: var(--aw-space-2);
}

.aw-card h2.aw-card-title-md {
  font-size: var(--aw-text-xl);
  margin-bottom: var(--aw-space-3);
}

/* ==========================================================================
   TABLES (Fact-Based Comparison Matrix)
   ========================================================================== */
.aw-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--aw-space-2);
  margin-bottom: var(--aw-space-5);
}

.aw-filter-btn {
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border-radius: var(--aw-radius-pill);
  border: 1px solid var(--border-subtle);
  background-color: var(--aw-white);
  font-family: var(--aw-font-heading);
  font-size: var(--aw-text-sm);
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
}

.aw-filter-btn[aria-pressed="true"] {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--aw-white);
}

.aw-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--aw-radius-lg);
  background-color: var(--aw-white);
  box-shadow: var(--aw-shadow-sm);
}

.aw-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: left;
  min-width: 680px;
}

.aw-table thead th {
  background-color: var(--aw-navy-950);
  color: var(--aw-white);
  font-family: var(--aw-font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: var(--aw-space-4) var(--aw-space-5);
  border-bottom: 2px solid var(--aw-navy-800);
}

.aw-table thead th.aw-col-highlight {
  color: var(--aw-lime-400);
  background-color: var(--aw-navy-900);
}

.aw-table tbody th,
.aw-table tbody td {
  padding: var(--aw-space-4) var(--aw-space-5);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  font-size: 0.9375rem;
}

.aw-table tbody th {
  font-family: var(--aw-font-heading);
  font-weight: 600;
  color: var(--text-heading);
}

.aw-table tbody td.aw-col-highlight {
  background-color: var(--aw-slate-50);
  font-weight: 600;
  color: var(--aw-navy-800);
}

.aw-table tbody tr[hidden] {
  display: none;
}

/* ==========================================================================
   ACCORDION (Executive FAQ)
   ========================================================================== */
.aw-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--aw-space-3);
}

.aw-faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--aw-radius-md);
  background-color: var(--aw-white);
  overflow: hidden;
}

.aw-faq-trigger {
  width: 100%;
  min-height: 54px;
  padding: var(--aw-space-4) var(--aw-space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--aw-space-4);
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--aw-font-heading);
  font-size: var(--aw-text-base);
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
}

.aw-faq-trigger:hover {
  background-color: var(--surface-subtle);
}

.aw-faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand-primary);
  transition: transform var(--aw-duration-fast) var(--aw-ease);
}

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

.aw-faq-panel {
  padding: 0 var(--aw-space-5) var(--aw-space-5);
  color: var(--text-body);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--aw-space-4);
}

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

/* ==========================================================================
   SUBPAGE SPECIALIZED COMPONENTS
   ========================================================================== */
.aw-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--aw-space-5);
}

.aw-anchor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--aw-space-2);
  margin-top: var(--aw-space-5);
}

.aw-anchor-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border-radius: var(--aw-radius-pill);
  border: 1px solid var(--border-dark-subtle);
  background-color: var(--surface-hero-elevated);
  color: var(--aw-slate-200);
  font-family: var(--aw-font-heading);
  font-size: var(--aw-text-sm);
  font-weight: 500;
}

.aw-anchor-pill:hover {
  border-color: var(--aw-lime-400);
  color: var(--aw-lime-400);
}

.aw-license-card--featured {
  border: 2px solid var(--aw-lime-500);
  background-color: var(--aw-navy-950);
  color: var(--aw-white);
}

.aw-license-card--featured h3,
.aw-license-card--featured strong {
  color: var(--aw-white);
}

.aw-badge-lime {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin-bottom: var(--aw-space-3);
  border-radius: var(--aw-radius-pill);
  background-color: var(--aw-lime-500);
  color: var(--aw-navy-950);
  font-family: var(--aw-font-heading);
  font-size: var(--aw-text-xs);
  font-weight: 700;
}

/* ==========================================================================
   REQUEST DEMO SPLIT FORM (/request-demo)
   ========================================================================== */
.aw-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--aw-space-10);
  align-items: start;
}

.aw-form-card {
  background-color: var(--aw-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--aw-radius-xl);
  padding: var(--aw-space-8);
  box-shadow: var(--aw-shadow-md);
}

.aw-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--aw-space-2);
  padding: 4px;
  background-color: var(--surface-muted);
  border-radius: var(--aw-radius-pill);
  margin-bottom: var(--aw-space-6);
}

.aw-mode-tab {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: var(--aw-radius-pill);
  background: transparent;
  font-family: var(--aw-font-heading);
  font-size: var(--aw-text-sm);
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
}

.aw-mode-tab[aria-pressed="true"] {
  background-color: var(--aw-navy-950);
  color: var(--aw-lime-400);
}

.aw-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--aw-space-4);
}

.aw-field {
  display: flex;
  flex-direction: column;
  gap: var(--aw-space-1);
  margin-bottom: var(--aw-space-4);
}

.aw-field--full {
  grid-column: 1 / -1;
}

.aw-label {
  font-family: var(--aw-font-heading);
  font-size: var(--aw-text-sm);
  font-weight: 600;
  color: var(--text-heading);
}

.aw-input,
.aw-select,
.aw-textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  font-size: 16px; /* Prevents iOS Safari auto-zoom */
  color: var(--text-heading);
  background-color: var(--aw-white);
  border: 1px solid var(--aw-slate-300);
  border-radius: var(--aw-radius-sm);
  transition: border-color var(--aw-duration-fast) var(--aw-ease), box-shadow var(--aw-duration-fast) var(--aw-ease);
}

.aw-textarea {
  min-height: 96px;
  resize: vertical;
}

.aw-input:hover,
.aw-select:hover,
.aw-textarea:hover {
  border-color: var(--aw-slate-400);
}

.aw-input:focus,
.aw-select:focus,
.aw-textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px var(--aw-cyan-glow);
}

.aw-input[aria-invalid="true"],
.aw-select[aria-invalid="true"] {
  border-color: var(--aw-danger-600);
}

.aw-field-error {
  font-size: var(--aw-text-xs);
  color: var(--aw-danger-600);
  font-weight: 600;
  min-height: 1rem;
}

.aw-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--aw-space-3);
  padding: var(--aw-space-3) var(--aw-space-4);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--aw-radius-sm);
}

.aw-captcha-question {
  font-family: var(--aw-font-mono);
  font-weight: 700;
  color: var(--brand-primary);
  min-width: 110px;
}

.aw-captcha-input {
  width: 110px;
}

.aw-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--aw-space-3);
  min-height: 44px;
  padding-block: var(--aw-space-2);
  cursor: pointer;
  font-size: var(--aw-text-sm);
}

.aw-checkbox-wrap {
  width: 44px;
  height: 44px;
  margin: -10px 0 -10px -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aw-checkbox-wrap input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.aw-form-status {
  padding: var(--aw-space-4);
  border-radius: var(--aw-radius-sm);
  margin-bottom: var(--aw-space-4);
  font-weight: 600;
  font-size: var(--aw-text-sm);
}

.aw-form-status[hidden] {
  display: none;
}

.aw-form-status.is-success {
  background-color: var(--aw-success-50);
  border: 1px solid var(--aw-success-200);
  color: var(--aw-success-700);
}

.aw-form-status.is-error {
  background-color: var(--aw-danger-50);
  border: 1px solid var(--aw-danger-200);
  color: var(--aw-danger-600);
}

.aw-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--aw-navy-950);
  border-top-color: transparent;
  border-radius: 50%;
  animation: aw-spin 0.7s linear infinite;
}

@keyframes aw-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   BOTTOM DARK CTA & CORPORATE FOOTER
   ========================================================================== */
.aw-cta-band {
  background-color: var(--surface-hero);
  color: var(--text-on-dark);
  padding-block: var(--aw-space-16);
  border-top: 1px solid var(--border-dark-subtle);
  text-align: center;
}

.aw-cta-band h2 {
  color: var(--text-on-dark);
  margin-bottom: var(--aw-space-4);
}

.aw-cta-band p {
  color: var(--text-on-dark-muted);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--aw-space-8);
}

.aw-cta-band .aw-cta-group {
  justify-content: center;
  margin-bottom: 0;
}

.aw-footer {
  background-color: var(--surface-footer);
  color: var(--aw-slate-300);
  padding-block: var(--aw-space-12) var(--aw-space-8);
  border-top: 1px solid var(--border-dark-subtle);
}

.aw-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--aw-space-10);
  margin-bottom: var(--aw-space-10);
}

.aw-footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--aw-space-4);
}

.aw-footer h2.aw-footer-title {
  color: var(--aw-white);
  font-size: var(--aw-text-base);
  margin-bottom: var(--aw-space-4);
}

.aw-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--aw-space-2);
}

.aw-footer-links a {
  font-size: var(--aw-text-sm);
  color: var(--aw-slate-300);
}

.aw-footer-links a:hover {
  color: var(--aw-lime-400);
}

.aw-footer-bottom {
  padding-top: var(--aw-space-6);
  border-top: 1px solid var(--border-dark-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--aw-space-4);
  font-size: var(--aw-text-sm);
  color: var(--aw-slate-400);
}

.aw-footer-legal {
  display: flex;
  gap: var(--aw-space-4);
}

.aw-footer-legal a:hover {
  color: var(--aw-white);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .aw-flow-grid {
    grid-template-columns: 1fr;
  }

  .aw-flow-arrow svg {
    transform: rotate(90deg);
  }

  .aw-grid-3,
  .aw-grid-4,
  .aw-tabpanel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aw-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 812px) {
  .aw-nav-desktop-wrap {
    display: none;
    position: fixed;
    top: var(--aw-header-height);
    left: 0;
    right: 0;
    background-color: var(--aw-white);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--aw-space-5) var(--aw-space-6);
    box-shadow: var(--aw-shadow-lg);
    z-index: 49;
  }

  .aw-nav-desktop-wrap.is-open {
    display: block;
  }

  .aw-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aw-space-3);
  }

  .aw-hamburger {
    display: inline-flex;
  }

  .aw-header-cta-desktop {
    display: none;
  }

  .aw-grid-3,
  .aw-grid-2,
  .aw-grid-4,
  .aw-tabpanel-grid,
  .aw-check-list,
  .aw-form-grid,
  .aw-footer-grid {
    grid-template-columns: 1fr;
  }

  .aw-cap-row {
    grid-template-columns: 1fr;
    gap: var(--aw-space-3);
  }
}

@media (max-width: 640px) {
  .aw-container {
    padding-inline: var(--aw-space-4);
  }

  .aw-btn {
    white-space: normal;
    text-align: center;
  }

  .aw-cta-group .aw-btn {
    width: 100%;
  }

  .aw-header-inner {
    gap: var(--aw-space-2);
  }

  .aw-brand {
    gap: var(--aw-space-2);
  }

  .aw-brand img {
    height: 26px;
    width: auto;
  }

  .aw-brand-badge {
    display: none;
  }

  .aw-header-actions {
    gap: 6px;
  }

  .aw-lang-pill a {
    padding: 0.2rem 0.45rem;
  }
}

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

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