/* CareerCroft AI — Light theme (navy + electric green) */

:root {
  --navy: #001a4d;
  --navy-deep: #0f172a;
  --electric: #00c853;
  --electric-dim: #00a844;
  --electric-bright: #00e65c;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --muted-dark: #94a3b8;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --glass: rgba(255, 255, 255, 0.78);
  --shadow-header: 0 1px 0 rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

#get-started,
#compare,
#contact,
#waitlist,
#login,
#prelaunch {
  scroll-margin-top: calc(
    var(--header-h) + env(safe-area-inset-top, 0px) + 16px
  );
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  height: auto;
}

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

button,
.btn,
.nav-toggle,
.nav-center a,
.footer-nav a,
summary {
  -webkit-tap-highlight-color: rgba(0, 200, 83, 0.12);
}

button,
.btn,
.nav-toggle {
  touch-action: manipulation;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.container.narrow {
  max-width: 720px;
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  padding-top: env(safe-area-inset-top, 0px);
  min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  width: 100%;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--electric);
  flex-shrink: 0;
  z-index: 2;
}

.logo-ai {
  color: var(--text);
  font-weight: 700;
}

.nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  z-index: 1;
}

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

.nav-center a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s var(--ease-out);
}

.nav-center a:hover {
  color: var(--electric);
}

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

@media (min-width: 900px) {
  .nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.btn-primary {
  background: var(--electric);
  color: var(--white);
  border-color: var(--electric);
  box-shadow: 0 0 0 0 rgba(0, 200, 83, 0);
}

.btn-primary:hover {
  background: var(--electric-bright);
  box-shadow:
    0 0 0 1px rgba(0, 200, 83, 0.25),
    0 8px 28px rgba(0, 200, 83, 0.35);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-primary:disabled {
  opacity: 0.88;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary:disabled:hover {
  background: var(--electric);
  box-shadow: none;
}

.btn-primary.is-loading {
  position: relative;
  pointer-events: none;
}

.btn-primary.is-loading .btn__label {
  opacity: 0;
}

.btn-primary.is-loading::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

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

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--electric);
}

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

.btn-outline:hover {
  border-color: var(--electric);
  color: var(--electric-dim);
}

.btn-block {
  width: 100%;
}

/* ----- Hero ----- */

.hero {
  position: relative;
  padding: 96px 0 112px;
  background: linear-gradient(180deg, #f0f7ff 0%, var(--bg) 55%);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 70% 20%, rgba(0, 200, 83, 0.08), transparent 55%);
  animation: grid-shift 24s ease-in-out infinite alternate;
}

@keyframes grid-shift {
  0% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  100% {
    opacity: 0.85;
    transform: rotate(0.5deg) scale(1.02);
  }
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--electric);
  margin: 0 0 16px;
}

.hero-launch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.hero-beta-note {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--electric-dim);
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.45);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 200, 83, 0.08);
}

.launch-pill--hero {
  font-size: 0.75rem;
  padding: 10px 16px;
  background: linear-gradient(
    180deg,
    rgba(0, 200, 83, 0.14) 0%,
    rgba(0, 200, 83, 0.06) 100%
  );
}

.launch-pill--link {
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.launch-pill--link:hover {
  border-color: rgba(0, 200, 83, 0.65);
  background: rgba(0, 200, 83, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 200, 83, 0.12);
}

.nav-launch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.launch-banner-section {
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 55%);
}

.launch-card {
  padding: 36px 28px;
  border-radius: 12px;
  border: 1px solid rgba(0, 200, 83, 0.35);
  background: linear-gradient(
    155deg,
    rgba(0, 200, 83, 0.06) 0%,
    var(--surface) 42%,
    var(--bg) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 200, 83, 0.06),
    var(--shadow-card);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.launch-card__eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric-dim);
}

.launch-card__title {
  margin-bottom: 12px;
}

.launch-card__lead {
  margin: 0 auto 28px;
  max-width: 44ch;
}

@media (max-width: 640px) {
  .launch-card {
    padding: 28px 20px;
    text-align: left;
  }

  .launch-card .btn {
    width: 100%;
  }
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero-sub {
  margin: 0 0 32px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36ch;
}

.hero-visual-wrap {
  will-change: transform;
}

.product-preview {
  border-radius: 12px;
  border: 1px solid rgba(0, 200, 83, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 200, 83, 0.12),
    0 0 40px rgba(0, 200, 83, 0.12),
    var(--shadow-card);
  background: var(--surface);
  overflow: hidden;
}

.product-preview__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.product-preview__title {
  color: var(--muted);
  font-size: 0.75rem;
}

.product-preview__badge {
  font-size: 0.6875rem;
  color: var(--electric-dim);
  padding: 4px 8px;
  border: 1px solid rgba(0, 200, 83, 0.35);
  border-radius: 4px;
  background: rgba(0, 200, 83, 0.08);
}

.product-preview__body {
  padding: 20px;
}

.analytics-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.analytics-row:last-child {
  margin-bottom: 0;
}

.analytics-row .label {
  color: var(--muted);
  font-size: 0.75rem;
}

.analytics-row .value {
  color: var(--text);
  font-size: 0.75rem;
}

.bar {
  height: 6px;
  background: var(--bg-muted);
  border-radius: 3px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--border-strong);
  border-radius: 3px;
}

.bar--accent span {
  background: linear-gradient(90deg, var(--electric-dim), var(--electric));
}

/* ----- Sections ----- */

.section {
  padding: 88px 0;
}

/* Bands alternate by main child index (hero is first child) */
main > section:nth-child(odd):not(.hero) {
  background: var(--bg-subtle);
}

main > section:nth-child(even):not(.hero) {
  background: var(--bg);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-lead {
  margin: 0 0 48px;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 52ch;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

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

/* ----- Core loop ----- */

.core-loop-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.core-card {
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.core-card__step {
  display: block;
  color: var(--electric);
  margin-bottom: 16px;
}

.core-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--muted);
}

.core-card__icon svg {
  width: 100%;
  height: 100%;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.mic-pulse {
  animation: mic-pulse 2s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.core-card__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.core-card__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ----- Bento ----- */

.features .bento {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(260px, 380px);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-box {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.bento-box--wide {
  grid-column: 1 / 3;
  grid-row: 1;
}

.bento-box--tall {
  grid-column: 3;
  grid-row: 1 / 3;
}

.bento-box--small:nth-of-type(3) {
  grid-column: 1;
  grid-row: 2;
}

.bento-box--small:nth-of-type(4) {
  grid-column: 2;
  grid-row: 2;
}

.bento-box h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

.bento-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bento-box__head h3 {
  margin: 0;
}

.status-ok {
  color: var(--electric);
  font-size: 0.8125rem;
}

.bento-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.code-block {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--navy);
  overflow-x: auto;
}

.check-panel {
  font-size: 0.875rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text);
}

.check {
  color: var(--electric);
}

.check.dim {
  color: var(--muted-dark);
}

.bento-caption {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

.waveform-lottie {
  position: relative;
  height: 140px;
  border-radius: 8px;
  background: var(--bg-muted);
  border: 1px solid rgba(0, 200, 83, 0.2);
  overflow: hidden;
}

.waveform-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.wave-path {
  opacity: 0.35;
}

.wave-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 16px;
}

.wave-bars span {
  width: 4px;
  height: 24px;
  background: var(--electric);
  border-radius: 2px;
  animation: bar-bounce 0.8s ease-in-out infinite;
  opacity: 0.85;
}

.wave-bars span:nth-child(1) {
  animation-delay: 0s;
}
.wave-bars span:nth-child(2) {
  animation-delay: 0.05s;
}
.wave-bars span:nth-child(3) {
  animation-delay: 0.1s;
}
.wave-bars span:nth-child(4) {
  animation-delay: 0.15s;
}
.wave-bars span:nth-child(5) {
  animation-delay: 0.2s;
}
.wave-bars span:nth-child(6) {
  animation-delay: 0.25s;
}
.wave-bars span:nth-child(7) {
  animation-delay: 0.3s;
}
.wave-bars span:nth-child(8) {
  animation-delay: 0.35s;
}
.wave-bars span:nth-child(9) {
  animation-delay: 0.4s;
}
.wave-bars span:nth-child(10) {
  animation-delay: 0.45s;
}
.wave-bars span:nth-child(11) {
  animation-delay: 0.5s;
}
.wave-bars span:nth-child(12) {
  animation-delay: 0.55s;
}
.wave-bars span:nth-child(13) {
  animation-delay: 0.6s;
}
.wave-bars span:nth-child(14) {
  animation-delay: 0.65s;
}
.wave-bars span:nth-child(15) {
  animation-delay: 0.7s;
}

@keyframes bar-bounce {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1.4);
    opacity: 1;
  }
}

.pdf-preview {
  padding: 16px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
}

.pdf-preview__line {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
}

.pdf-preview__line.short {
  width: 60%;
}

.pdf-preview__tag {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.8125rem;
}

.before-after__label {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.6875rem;
}

.before-after__col p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.before-after__col.after p {
  color: var(--electric);
}

.before-after__arrow {
  color: var(--muted);
  padding-top: 20px;
}

/* ----- Demo ----- */

.demo-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(0, 200, 83, 0.1), transparent 50%),
    radial-gradient(ellipse at 30% 40%, #e8f4fc, var(--bg-subtle));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.demo-play {
  position: relative;
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background: var(--electric);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.25s var(--ease-out), transform 0.2s;
}

.demo-play:hover {
  box-shadow: 0 8px 36px rgba(0, 200, 83, 0.45);
  transform: scale(1.04);
}

.demo-play__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 200, 83, 0.35);
  animation: ring-pulse 2s ease-out infinite;
}

@keyframes ring-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.demo-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ----- Compare & pricing ----- */

.currency-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.currency-toggle {
  display: inline-flex;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.currency-toggle button {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.currency-toggle button.is-active {
  background: rgba(0, 200, 83, 0.12);
  color: var(--electric-dim);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 56px;
}

.compare-section .compare-intro {
  margin-top: 12px;
  margin-bottom: 40px;
}

/* ----- Pricing section (standalone) ----- */

.pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.pricing-head__title {
  margin-bottom: 0;
}

.pricing-intro {
  margin-top: 0;
  margin-bottom: 40px;
}

.pricing-section .currency-bar {
  margin-bottom: 0;
}

.pricing-subsection-heading {
  margin: 48px 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.pricing-section .pricing-subsection-heading:first-of-type {
  margin-top: 0;
}

.pricing-subsection-lead {
  margin: -4px 0 24px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}

.pricing-cards + .pricing-subsection-heading {
  margin-top: 56px;
}

.price-card__tier {
  margin: 0 0 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card__duration {
  margin: -8px 0 14px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.price-card__validity {
  margin: 0 0 16px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted-dark);
}

.price-card__footnote {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.price-card__linked {
  margin: -6px 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--electric-dim);
}

.price-card--compact {
  padding: 22px 24px;
}

.price-card--compact .price-card__amount {
  margin-bottom: 4px;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.compare-table th:not(:last-child),
.compare-table td:not(:last-child) {
  border-right: 1px solid var(--border);
}

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

.compare-table th {
  font-weight: 600;
}

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

.compare-th {
  display: table-cell;
  background: var(--bg-muted);
  color: var(--navy);
}

.compare-th--features {
  text-align: left;
  padding-left: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-th--brand {
  background: #000000;
  color: var(--white);
}

.compare-th--brand .compare-th__main {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: inherit;
}

.compare-th--brand .compare-th__hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

.compare-th--muted .compare-th__main {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.compare-th--muted .compare-th__hint {
  display: block;
  margin-top: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
}

.compare-feature {
  text-align: left;
  padding: 18px 20px;
  background: var(--surface);
  font-weight: normal;
}

.compare-feature__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.compare-feature__desc {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.compare-col--highlight {
  background: rgba(232, 244, 252, 0.85);
}

.compare-table tbody td:not(.compare-col--highlight) {
  background: var(--surface);
}

.compare-table tbody tr:hover .compare-col--highlight {
  background: rgba(220, 238, 252, 0.95);
}

/* Status badges — match reference: green / red / amber pills */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge--ok {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: #e6f4ea;
  color: #137333;
  border: 1px solid rgba(19, 115, 51, 0.15);
}

.status-badge--ok .status-badge__icon {
  font-size: 1rem;
  line-height: 1;
}

.status-badge--no {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid rgba(197, 34, 31, 0.12);
}

.status-badge--no .status-badge__icon {
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 700;
}

.status-badge--partial {
  min-width: auto;
  min-height: auto;
  padding: 8px 14px;
  border-radius: 9999px;
  background: #fef7e0;
  color: #92400e;
  border: 1px solid rgba(146, 64, 14, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6875rem;
  font-weight: 700;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-cards--specialized,
.pricing-cards--topup {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.price-card {
  position: relative;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.price-card--popular {
  padding-top: 32px;
  border-color: var(--electric);
  box-shadow:
    0 0 0 1px rgba(0, 200, 83, 0.12),
    var(--shadow-card);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--electric);
  border-radius: 6px;
  color: var(--electric-dim);
  font-size: 0.6875rem;
}

.price-card__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--navy);
}

.price-card__desc {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.price-card__amount {
  margin: 0 0 24px;
}

.price-card__amount .price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.price-card__amount .period {
  font-size: 0.9375rem;
  color: var(--muted);
}

.price-card__list {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ----- FAQ ----- */

.faq-accordion {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.faq-details {
  border-bottom: 1px solid var(--border);
}

.faq-details:last-child {
  border-bottom: none;
}

.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 48px 20px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  user-select: none;
  transition: background 0.15s ease;
}

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

.faq-summary::marker {
  content: "";
}

.faq-summary:hover {
  background: var(--bg-subtle);
}

.faq-summary:focus {
  outline: none;
}

.faq-summary:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}

.faq-details[open] .faq-summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-details[open] .faq-summary {
  border-bottom: 1px solid var(--border);
}

.faq-panel {
  padding: 0 20px 20px;
}

.faq-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.careers-page {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 96px;
}

.careers-page .section-title {
  margin-left: auto;
  margin-right: auto;
}

.careers-page .section-lead,
.careers-page__lead {
  margin-left: auto;
  margin-right: auto;
}

.careers-page__back {
  margin-top: 40px;
}

/* Standalone legal pages (Privacy, Terms) */

.legal-page {
  text-align: left;
  padding-top: 48px;
  padding-bottom: 88px;
}

.legal-page .section-title {
  text-align: center;
  margin-bottom: 8px;
}

.legal-page__meta {
  text-align: center;
  margin: 0 0 36px;
  font-size: 0.875rem;
  color: var(--muted);
}

.legal-prose {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

.legal-prose h2 {
  margin: 28px 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

.legal-prose h2:first-of-type {
  margin-top: 0;
}

.legal-prose p {
  margin: 0 0 16px;
}

.legal-prose ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

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

.legal-prose a {
  word-break: break-word;
}

.legal-page__back {
  margin-top: 48px;
  text-align: center;
}

.link-invert {
  color: var(--electric);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ----- Contact form ----- */

.contact-section .contact-intro {
  margin-top: 12px;
  margin-bottom: 36px;
}

.contact-form {
  margin-top: 8px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.form-field {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  gap: 20px;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.form-label .req {
  color: #b91c1c;
  font-weight: 700;
}

.form-label .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-input::placeholder {
  color: var(--muted-dark);
}

.form-input:hover {
  border-color: var(--muted-dark);
}

.form-input:focus {
  outline: none;
  border-color: var(--electric-dim);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-textarea {
  display: block;
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.form-hint a {
  color: var(--electric-dim);
  font-weight: 500;
}

.form-hint a:hover {
  text-decoration: underline;
}

.form-counter {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

.form-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
}

.form-status.is-success {
  color: var(--electric-dim);
}

.form-status:empty:not(.is-error):not(.is-success) {
  min-height: 0;
  margin-top: 0;
}

/* Inline alert for config / server errors (success uses .contact-success) */
.form-status.is-error {
  color: #b91c1c;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(185, 28, 28, 0.25);
  background: rgba(185, 28, 28, 0.06);
}

.contact-success {
  margin-top: 8px;
  margin-bottom: 4px;
  border-radius: 12px;
  border: 1px solid rgba(0, 200, 83, 0.4);
  background: linear-gradient(
    145deg,
    rgba(0, 200, 83, 0.09) 0%,
    var(--surface) 48%,
    var(--bg-subtle) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 200, 83, 0.06),
    var(--shadow-card);
  outline: none;
}

.contact-success[hidden] {
  display: none !important;
}

.contact-success:not([hidden]) {
  display: block;
  animation: contact-success-in 0.5s var(--ease-out);
}

@keyframes contact-success-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-success__body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
}

.contact-success__icon {
  flex-shrink: 0;
  color: var(--electric-dim);
}

.contact-success__title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.contact-success__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.form-actions {
  margin-top: 24px;
  padding-top: 8px;
}

@media (max-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }
}

/* ----- Footer ----- */

.site-footer {
  padding: 48px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--navy);
}

.footer-brand p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--electric);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-dark);
}

/* ----- Responsive ----- */

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  /* Keep DOM order: headline & CTA first, product preview card below (better on mobile). */
  .hero-visual-wrap {
    max-width: 480px;
    margin: 32px auto 0;
  }

  .features .bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-box--wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .bento-box--tall {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .bento-box--small:nth-of-type(3),
  .bento-box--small:nth-of-type(4) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

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

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .price-card--popular {
    order: -1;
  }

  /* Core loop: vertical stack on mobile / tablet — same idea as pricing cards */
  .core-loop-scroll {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

@media (max-width: 640px) {
  .pricing-head {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-head .currency-bar {
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* backdrop-filter creates a containing block; fixed #nav would size to the header
     instead of the viewport — breaks the slide-out panel on mobile Safari/Chrome. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.97);
    overflow: visible;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 102;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s var(--ease-out);
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.08);
    z-index: 101;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open {
    transform: translate3d(0, 0, 0);
  }

  .nav-center {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-center a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-actions {
    flex-direction: column;
    margin-top: 24px;
    gap: 12px;
  }

  .nav-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .site-hide-commerce .nav-launch {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    justify-content: stretch;
  }

  .site-hide-commerce .nav-launch .launch-pill {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .section {
    padding: 64px 0;
  }

  /* iOS Safari: avoid auto-zoom on focus — keep inputs at 16px minimum */
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px;
  }

  .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .logo {
    font-size: clamp(0.875rem, 3.8vw, 1.125rem);
    line-height: 1.25;
  }
}

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

  .btn-primary.is-loading::after {
    animation: none;
    border-color: rgba(255, 255, 255, 0.5);
    border-top-color: var(--white);
    opacity: 0.9;
  }

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

  .hero-grid::after,
  .wave-bars span,
  .demo-play__ring,
  .cursor-blink,
  .mic-pulse {
    animation: none !important;
  }

  .hero-grid::after {
    opacity: 0.9;
    transform: none;
  }

  .contact-success:not([hidden]) {
    animation: none;
  }
}

/* Prelaunch messaging: visible only while body has .site-hide-commerce */
.nav-launch,
.hero-launch,
.launch-banner-section {
  display: none;
}

.site-hide-commerce .nav-launch {
  display: flex;
}

.site-hide-commerce .hero-launch {
  display: block;
}

.site-hide-commerce .launch-banner-section {
  display: block;
}

/* Prelaunch: Login, Get Started, pricing, Live interrogation, and FAQ stay in the DOM
   but are not shown. Remove class `site-hide-commerce` from <body> to reveal them. */
.site-hide-commerce .nav-actions {
  display: none !important;
}

.site-hide-commerce a[href$="#pricing"] {
  display: none !important;
}

.site-hide-commerce a[href$="#faq"] {
  display: none !important;
}

.site-hide-commerce #pricing {
  display: none !important;
}

.site-hide-commerce #demo {
  display: none !important;
}

.site-hide-commerce #faq {
  display: none !important;
}
