/* ============================================================
   Desa Inggris Singosari — Light theme
   Clean white canvas · soft red accent · animated ambient bg
   ============================================================ */

:root {
  --primary: #111827;
  --primary-pressed: #1f2937;
  --on-primary: #ffffff;
  --ink: #111827;
  --body: #4b5563;
  --charcoal: #374151;
  --mute: #6b7280;
  --ash: #9ca3af;
  --stone: #d1d5db;
  --on-dark: #111827;
  --on-dark-mute: rgba(17, 24, 39, 0.72);
  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-elevated: #f1f5f9;
  --surface-card: #ffffff;
  --button-fg: #ffffff;
  --hairline: #e5e7eb;
  --hairline-soft: rgba(15, 23, 42, 0.06);
  --hairline-strong: rgba(15, 23, 42, 0.14);
  --accent-blue: #2563eb;
  --accent-blue-soft: rgba(37, 99, 235, 0.1);
  --accent-red: #e11d48;
  --accent-red-soft: rgba(225, 29, 72, 0.1);
  --accent-green: #059669;
  --accent-green-soft: rgba(5, 150, 105, 0.1);
  --accent-yellow: #d97706;
  --accent-yellow-soft: rgba(217, 119, 6, 0.12);
  --hero-stripe-start: #fb7185;
  --hero-stripe-end: #e11d48;
  --glow-red: rgba(244, 63, 94, 0.22);
  --glow-blue: rgba(59, 130, 246, 0.18);
  --glow-amber: rgba(245, 158, 11, 0.16);

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;

  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-xxl: 32px;
  --section: 96px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff: "calt", "kern", "liga", "ss03";

  --shell: 1120px;
  --nav-h: 56px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.1);
}

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

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

body {
  font-family: var(--font);
  font-feature-settings: var(--ff);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
  font-feature-settings: var(--ff);
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---- Ambient animated background (site-wide) ---- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(251, 113, 133, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(96, 165, 250, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(52, 211, 153, 0.1), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 40%, #f1f5f9 100%);
}

.ambient-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift 40s linear infinite;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
  opacity: 0.85;
}

.ambient-orb--a {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  top: -8%;
  left: -6%;
  background: var(--glow-red);
  animation: orb-a 18s ease-in-out infinite;
}

.ambient-orb--b {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  top: 18%;
  right: -8%;
  background: var(--glow-blue);
  animation: orb-b 22s ease-in-out infinite;
}

.ambient-orb--c {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  bottom: 5%;
  left: 30%;
  background: var(--glow-amber);
  animation: orb-c 26s ease-in-out infinite;
}

.ambient-orb--d {
  width: min(30vw, 280px);
  height: min(30vw, 280px);
  top: 55%;
  right: 18%;
  background: rgba(16, 185, 129, 0.14);
  animation: orb-d 20s ease-in-out infinite;
}

.ambient-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 62%
  );
  background-size: 200% 100%;
  animation: shine-sweep 12s ease-in-out infinite;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

#ambient-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, -48px, 0); }
}

@keyframes orb-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8%, 12%, 0) scale(1.12); }
}

@keyframes orb-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-10%, 8%, 0) scale(1.08); }
}

@keyframes orb-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(6%, -10%, 0) scale(1.15); }
  66% { transform: translate3d(-8%, 4%, 0) scale(0.95); }
}

@keyframes orb-d {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12%, -6%, 0) scale(1.2); }
}

@keyframes shine-sweep {
  0%, 100% { background-position: 120% 0; opacity: 0.15; }
  50% { background-position: -20% 0; opacity: 0.4; }
}

/* Content above ambient */
.site-chrome,
main,
.footer,
.nav,
.hero-stripe {
  position: relative;
  z-index: 1;
}

/* ---- Typography ---- */
.display-xl {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-feature-settings: var(--ff);
  color: var(--ink);
}

.display-lg {
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -0.015em;
  font-feature-settings: var(--ff);
}

.heading-xl {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.heading-md {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.heading-sm {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.caption-sm {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.text-mute { color: var(--mute); }
.text-body { color: var(--body); }
.text-ash { color: var(--ash); }

/* ---- Layout ---- */
.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 16px;
  z-index: 100;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---- Hero stripe ---- */
.hero-stripe {
  height: 4px;
  width: 100%;
  background-image: repeating-linear-gradient(
    105deg,
    var(--hero-stripe-start) 0px,
    var(--hero-stripe-start) 40px,
    var(--hero-stripe-end) 40px,
    var(--hero-stripe-end) 80px,
    #be123c 80px,
    #be123c 120px
  );
  background-size: 240px 100%;
  animation: stripe-shift 8s linear infinite;
  z-index: 2;
}

@keyframes stripe-shift {
  from { background-position: 0 0; }
  to { background-position: 240px 0; }
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hairline-soft);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

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

.brand-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--ink);
}

.brand-icon { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 6px 12px;
  border-radius: var(--r-md);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-elevated);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 0 9px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-pressed);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--hairline-strong);
}

.btn-tertiary {
  background: var(--surface-elevated);
  color: var(--ink);
  border-color: var(--hairline);
}

.btn-tertiary:hover {
  background: #e2e8f0;
}

.btn-lg {
  height: 44px;
  padding: 10px 20px;
}

.btn-block { width: 100%; }

.link-inline {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--accent-red);
  transition: color 0.15s ease;
}

.link-inline:hover {
  color: #be123c;
}

/* ---- Pills / badges / keycaps ---- */
.pill-tab {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.55);
}

.pill-tab-active {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}

.badge-pro {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: var(--surface-elevated);
  color: var(--mute);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: 1px solid var(--hairline);
}

.badge-info-soft {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-xs);
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 500;
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: var(--surface-elevated);
  color: var(--body);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--hairline);
  line-height: 1;
}

/* ---- App icons ---- */
.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}

.app-icon-lg {
  width: 48px;
  height: 48px;
}

.app-icon--red {
  background: var(--accent-red-soft);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.08);
}

.app-icon--blue {
  background: var(--accent-blue-soft);
  border-color: transparent;
}

.app-icon--green {
  background: var(--accent-green-soft);
  border-color: transparent;
}

.app-icon--yellow {
  background: var(--accent-yellow-soft);
  border-color: transparent;
}

/* ---- Hero ---- */
.hero {
  padding: 72px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  filter: saturate(0.7) brightness(1.4) contrast(0.9);
  animation: hero-drift 28s ease-in-out infinite alternate;
}

.hero-bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.2) 0%, var(--canvas) 88%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.hero h1 {
  max-width: 16ch;
  margin-inline: auto;
}

.hero-lead {
  max-width: 52ch;
  margin: 20px auto 0;
  color: var(--body);
}

.hero-lead .sep {
  margin: 0 0.4em;
  color: var(--ash);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Command palette */
.palette-wrap {
  margin-top: 64px;
  perspective: 1200px;
}

.palette {
  max-width: 560px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  text-align: left;
  backdrop-filter: blur(12px);
}

.palette--media {
  max-width: 640px;
  transform: rotateX(3deg);
  animation: palette-float 6s ease-in-out infinite;
}

.palette-media {
  position: relative;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  max-height: 200px;
}

.palette-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  opacity: 0.75;
  filter: saturate(0.85) brightness(1.15);
}

.palette-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(225, 29, 72, 0.12) 48%,
    transparent 52%
  );
  background-size: 100% 200%;
  animation: scan-line 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan-line {
  0%, 100% { background-position: 0 -40%; opacity: 0.25; }
  50% { background-position: 0 140%; opacity: 0.9; }
}

@keyframes palette-float {
  0%, 100% { transform: rotateX(3deg) translateY(0); }
  50% { transform: rotateX(3deg) translateY(-10px); }
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.palette-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(248, 250, 252, 0.8);
}

.palette-query {
  flex: 1;
  font-size: 15px;
  color: var(--mute);
}

.palette-query.typing::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent-red);
  vertical-align: text-bottom;
  animation: caret 1s step-end infinite;
}

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

.palette-section-label {
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--ash);
  text-transform: uppercase;
}

.palette-list { padding: 4px 8px 8px; }

.palette-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  transition: background 0.12s ease;
}

.palette-row.is-active,
.palette-row:hover {
  background: var(--surface-elevated);
}

.palette-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.palette-row-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.palette-row-sub {
  font-size: 12px;
  color: var(--ash);
}

.palette-footer {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ash);
  background: rgba(248, 250, 252, 0.7);
}

.palette-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---- Strip ---- */
.strip {
  margin-top: 64px;
  border-block: 1px solid var(--hairline-soft);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 18px 0;
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}

.strip-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--stone);
}

.strip-marquee {
  overflow: hidden;
  justify-content: flex-start;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Sections ---- */
.section {
  padding: var(--section) 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-red);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-lead {
  margin-top: 16px;
  color: var(--body);
  max-width: 52ch;
}

/* ---- Feature / cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.15s ease;
}

.feature-card:hover {
  background: #fff;
}

/* ---- Store cards ---- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.store-grid--dense {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.store-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

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

.store-card--featured {
  background: #fff;
  border-color: rgba(225, 29, 72, 0.25);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(225, 29, 72, 0.06);
}

.store-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.meta-chips li {
  font-size: 12px;
  color: var(--mute);
  padding: 2px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--hairline);
  background: var(--surface-elevated);
  font-weight: 500;
}

.store-card .link-inline {
  font-size: 14px;
  margin-top: 4px;
}

/* ---- Hybrid / steps ---- */
.hybrid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hybrid-copy .section-kicker { margin-bottom: 12px; }
.hybrid-copy .display-lg { margin-bottom: 16px; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  align-items: start;
  transition: background 0.12s ease;
}

.step:hover { background: #fff; }

.step-key {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.step h3 { margin-bottom: 4px; }

/* ---- Platform / UI panel ---- */
.platform-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.ui-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ui-panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-elevated);
}

.ui-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone);
}

.ui-dot:nth-child(1) { background: #f43f5e; }
.ui-dot:nth-child(2) { background: #f59e0b; }
.ui-dot:nth-child(3) { background: #10b981; }

.ui-panel-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ash);
  font-weight: 500;
}

.ui-panel-body { padding: 8px; }

.ui-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--body);
}

.ui-row.is-active {
  background: var(--surface-elevated);
  color: var(--ink);
}

.ui-row > span:nth-child(2) { flex: 1; }

.signup-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.signup-card h3 { margin-bottom: 6px; }

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

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

.field > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}

.field input,
.field select {
  height: 40px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder { color: var(--ash); }

.field input:focus,
.field select:focus {
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b7280' stroke-width='1.5'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.field select option {
  background: #fff;
  color: var(--ink);
}

.form-note { margin-top: 4px; }
.form-note.is-error { color: var(--accent-red); }
.form-note.is-ok { color: var(--accent-green); }

/* ---- Quotes ---- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quote-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.quote-card p {
  color: var(--charcoal);
  margin-bottom: 16px;
}

.fineprint { margin-top: 20px; }

/* ---- FAQ ---- */
.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.faq-list {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: var(--shadow-sm);
}

.faq-list details {
  background: rgba(255, 255, 255, 0.95);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

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

.faq-list summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--ash);
  flex-shrink: 0;
}

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

.faq-list details p {
  padding: 0 20px 18px;
  max-width: 60ch;
}

/* ---- CTA ---- */
.cta-section { padding-top: 0; }

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(244, 63, 94, 0.08), transparent 60%);
  pointer-events: none;
  animation: cta-glow 8s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.cta-panel > * { position: relative; z-index: 1; }

.cta-panel--split { align-items: flex-end; }

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* ---- Stats / about ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  font-feature-settings: var(--ff);
  background: linear-gradient(135deg, var(--ink) 0%, #be123c 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.about-copy {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.bullet-list li {
  padding-left: 14px;
  border-left: 2px solid var(--hairline);
  transition: border-color 0.15s ease;
}

.bullet-list li:hover {
  border-left-color: var(--accent-red);
}

.contact-panel .ui-row { flex-wrap: wrap; }

.contact-panel .ui-row > span:nth-child(2),
.contact-panel .ui-row > a {
  flex: 1 1 180px;
}

.icons-banner {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: #fff;
  max-height: 160px;
  box-shadow: var(--shadow-sm);
}

.icons-banner img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  opacity: 0.7;
  filter: brightness(1.2) saturate(0.9);
  animation: icons-pan 20s ease-in-out infinite alternate;
}

@keyframes icons-pan {
  from { transform: scale(1.05) translateX(0); }
  to { transform: scale(1.12) translateX(-2%); }
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 64px 0 32px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand { margin-bottom: 12px; }

.footer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ash);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--body);
}

.footer-links a:hover { color: var(--ink); }

.footer-base {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 20px;
}

/* ---- Pretest ---- */
.pretest-page .hero {
  padding-bottom: 32px;
  text-align: left;
}

.pretest-page .hero h1 {
  max-width: none;
  margin-inline: 0;
}

.pretest-shell { max-width: 720px; }

.progress-bar {
  height: 4px;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  overflow: hidden;
  margin: 24px 0 8px;
}

.progress-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--hero-stripe-end), var(--hero-stripe-start));
  transition: width 0.25s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.quiz-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}

.quiz-prompt {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--ink);
}

.quiz-hint { margin-bottom: 20px; }

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--body);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease,
    box-shadow 0.12s ease;
  font-size: 15px;
  line-height: 1.45;
}

.quiz-option:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-elevated);
  color: var(--ink);
}

.quiz-option.is-selected {
  border-color: rgba(225, 29, 72, 0.4);
  background: var(--accent-red-soft);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08);
}

.quiz-option .opt-key {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: var(--r-xs);
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-weight: 600;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.result-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
}

.result-level {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 20px;
}

.result-level .level-pill {
  font-size: 28px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-md);
  background: var(--accent-red-soft);
  color: var(--accent-red);
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.result-metrics > div {
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px;
}

.result-metrics strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
  color: var(--ink);
}

.pretest-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}

.hidden { display: none !important; }

/* ---- Reveal on scroll (subtle) ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .store-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .hybrid-layout,
  .platform-grid,
  .faq-layout,
  .about-grid,
  .pretest-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .cta-actions { align-items: flex-start; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .result-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --section: 72px; }

  .shell { width: min(100% - 32px, var(--shell)); }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--hairline);
    padding: 8px;
    margin-left: 0;
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-secondary { display: none; }
  .nav-inner { position: relative; }

  .hero { padding-top: 48px; }
  .palette { transform: none; }
  .palette--media { transform: none; animation: palette-float-flat 6s ease-in-out infinite; }

  @keyframes palette-float-flat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .palette-footer { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 28px 20px; }
  .stat-grid { grid-template-columns: 1fr; }

  .palette-media,
  .palette-media img {
    max-height: 140px;
    height: 140px;
  }

  .quiz-actions { flex-direction: column-reverse; }
  .quiz-actions .btn { width: 100%; }

  .ambient-orb { filter: blur(48px); opacity: 0.7; }
}

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

  .hero-bg-img,
  .palette--media,
  .palette-scan,
  .marquee-track,
  .hero-stripe,
  .icons-banner img,
  .palette-query.typing::after,
  .ambient-grid,
  .ambient-orb,
  .ambient-shine,
  .cta-panel::before {
    animation: none !important;
  }

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

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