/* Marketing site styles. Values follow docs/design/tokens.css ("Çivit ve Kireç"). */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --ink: #15173d;
  --text-2: #3c4060;
  --muted: #575b76;
  --faint: #9ea2c4;
  --border: #e3e5ee;
  --border-strong: #d5d7e3;
  --brand: #3d3ac4;
  --brand-strong: #322fa3;
  --brand-soft: #eeeefd;
  --brand-200: #c5c6f3;
  --brand-fg: #ffffff;
  --mark: #3d3ac4;
  --series-b: #8f93b8;
  --ok-fg: #166534;
  --ok-bg: #dcfce7;
  --major-fg: #9a3412;
  --major-bg: #ffedd5;
  --critical-fg: #991b1b;
  --critical-bg: #fee2e2;
  --offline: #b45309;
  --night: #15173d;
  --night-2: #0d0f26;
  --shadow: 0 1px 2px rgba(21, 23, 61, 0.06), 0 8px 24px rgba(21, 23, 61, 0.08);
  --shadow-lg: 0 2px 4px rgba(21, 23, 61, 0.06), 0 24px 60px rgba(21, 23, 61, 0.14);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d0f26;
  --surface: #15173d;
  --surface-2: #1a1d48;
  --ink: #e8e9f5;
  --text-2: #c9cbea;
  --muted: #a9acd6;
  --faint: #5d6194;
  --border: #2a2d5e;
  --border-strong: #383c75;
  --brand: #8b8cf8;
  --brand-strong: #a9aafb;
  --brand-soft: rgba(139, 140, 248, 0.14);
  --brand-200: #4b4db0;
  --brand-fg: #15173d;
  --mark: #6e6cf0;
  --series-b: #7a7eb0;
  --ok-fg: #86efac;
  --ok-bg: rgba(22, 101, 52, 0.32);
  --major-fg: #fdba74;
  --major-bg: rgba(154, 52, 18, 0.32);
  --critical-fg: #fca5a5;
  --critical-bg: rgba(153, 27, 27, 0.34);
  --offline: #fbbf24;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background-color 250ms var(--ease),
    color 250ms var(--ease);
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: var(--brand);
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
svg {
  display: block;
}
[hidden] {
  display: none !important;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: var(--brand-fg);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 13px;
}
.center {
  text-align: center;
}
.code {
  font-family: var(--mono);
  font-size: 0.82em;
}

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 200ms var(--ease),
    background-color 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-fg);
  box-shadow: 0 6px 18px rgba(61, 58, 196, 0.28);
}
.btn-primary:hover {
  background: var(--brand-strong);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--border-strong);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--brand);
}
.btn-small {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
}
.loop-controls .btn-small {
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-light {
  background: #ffffff;
  color: #15173d;
}
.btn-outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  border-color: #ffffff;
}
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.chip-demo {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px dashed var(--border-strong);
}
.chip-brand {
  background: var(--brand);
  color: var(--brand-fg);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
  transition:
    background-color 200ms var(--ease),
    color 200ms var(--ease);
}
.icon svg {
  width: 20px;
  height: 20px;
}
.icon-lg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.icon-lg svg {
  width: 26px;
  height: 26px;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.26em;
  font-size: 24px;
  color: var(--ink);
}
.logo .mark {
  height: 0.82em;
  width: 0.7585em;
  margin-bottom: -0.07em;
  transform: translateY(-0.12em);
}
.mark-d {
  fill: var(--mark);
}
.mark-d-dark {
  fill: #6e6cf0;
}
.wordmark {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-dark {
  color: #ffffff;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(21, 23, 61, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.nav-logo {
  text-decoration: none;
  flex: none;
}
.nav-menu {
  flex: 1;
}
.nav-menu ul {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.nav-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  font-weight: 500;
  transition:
    color 200ms var(--ease),
    background-color 200ms var(--ease);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--brand);
  background: var(--brand-soft);
}
.nav-menu .menu-extra {
  display: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.nav-lang,
.nav-signin {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav-lang:hover,
.nav-signin:hover {
  color: var(--brand);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.i-sun {
  display: none;
}
[data-theme="dark"] .i-sun {
  display: block;
}
[data-theme="dark"] .i-moon {
  display: none;
}
.nav-burger {
  display: none;
}
@media (max-width: 1023px) {
  .nav-burger {
    display: inline-grid;
  }
  .nav-signin {
    display: none;
  }
  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 8px 16px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 200ms var(--ease),
      transform 200ms var(--ease),
      visibility 200ms;
  }
  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-menu ul {
    flex-direction: column;
  }
  .nav-menu a {
    padding: 12px;
  }
  .nav-menu .menu-extra {
    display: block;
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 6px;
  }
}
@media (max-width: 559px) {
  .nav-demo {
    display: none;
  }
  .logo {
    font-size: 22px;
  }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}
@media (max-width: 639px) {
  .section {
    padding: 64px 0;
  }
}
.section-tint {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
:lang(tr) .eyebrow {
  text-transform: uppercase;
}
h2 {
  font-size: clamp(28px, 4vw, 42px);
}
h3 {
  font-size: 19px;
}
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-2);
  margin-top: 16px;
  max-width: 680px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-bg span:nth-child(1) {
  width: 520px;
  height: 520px;
  background: #c5c6f3;
  top: -180px;
  right: -120px;
}
.hero-bg span:nth-child(2) {
  width: 380px;
  height: 380px;
  background: #dcdcfa;
  bottom: -160px;
  left: -120px;
  animation-delay: -8s;
}
.hero-bg span:nth-child(3) {
  width: 260px;
  height: 260px;
  background: #bfe6ee;
  top: 30%;
  left: 42%;
  opacity: 0.35;
  animation-delay: -14s;
}
[data-theme="dark"] .hero-bg span {
  opacity: 0.22;
}
@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-40px, 30px) scale(1.08);
  }
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.02fr 1fr;
    gap: 56px;
  }
  .hero {
    padding: 88px 0 56px;
  }
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 70px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 4px;
}
.hero .lead {
  margin: 22px 0 30px;
}
.promise {
  margin-top: 26px;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.promise::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.hero-in {
  animation: rise 800ms var(--ease) both;
  animation-delay: calc(var(--d) * 110ms + 80ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero product tour */
.panel-dots {
  display: flex;
  gap: 6px;
}
.panel-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.ring-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.ring {
  width: 112px;
  height: 112px;
  transform: rotate(-90deg);
}
.ring-track {
  fill: none;
  stroke: var(--brand-soft);
  stroke-width: 10;
}
.ring-value {
  fill: none;
  stroke: var(--brand);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
}
.scene.is-active .ring-value {
  animation: ring 1600ms var(--ease) 200ms forwards;
}
@keyframes ring {
  to {
    stroke-dashoffset: calc(314.16 * (1 - var(--value) / 100));
  }
}
.ring-label {
  position: absolute;
  top: 14px;
  height: 112px;
  display: grid;
  place-content: center;
  line-height: 1.1;
}
.ring-number {
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ring-caption {
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  max-width: 64px;
  margin: 0 auto;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
}
.stat-number {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.stat-critical .stat-number {
  color: var(--critical-fg);
}
.grade {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #4d7c0f;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
}
.stat-grade .grade {
  margin-bottom: 4px;
}
.feed {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
}
.feed-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.feed-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text-2);
  border-top: 1px solid var(--border);
}
.feed-list li:first-child {
  border-top: 0;
}
.feed-list li.enter {
  animation: feedIn 600ms var(--ease);
}
@keyframes feedIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
    background: var(--brand-soft);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
.feed-list li.enter .feed-dot {
  animation: pulse 1.4s var(--ease) 2;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 58, 196, 0.45);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(61, 58, 196, 0);
  }
}
.standards {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.standard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.standard-chips li {
  font-family: var(--mono);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  animation: float 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.9s);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.standards .tiny {
  flex-basis: 100%;
}

/* ---------- Problem / sorter ---------- */
.sorter {
  display: grid;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .sorter {
    grid-template-columns: 1fr 90px 1fr;
  }
}
.sorter-col {
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.sorter-col h3 {
  margin-bottom: 18px;
}
.sorter-before {
  background: repeating-linear-gradient(
    -45deg,
    var(--surface),
    var(--surface) 12px,
    var(--surface-2) 12px,
    var(--surface-2) 24px
  );
}
.scatter {
  position: relative;
  height: 300px;
}
.paper {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: 14px;
  color: var(--text-2);
  animation: jitter 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.1s);
  transition:
    opacity 800ms var(--ease),
    filter 800ms var(--ease);
}
.paper svg {
  width: 16px;
  height: 16px;
  color: var(--faint);
  flex: none;
}
.paper:nth-child(1) {
  left: 2%;
  top: 4%;
  --r: -6deg;
}
.paper:nth-child(2) {
  right: 4%;
  top: 14%;
  --r: 5deg;
}
.paper:nth-child(3) {
  left: 10%;
  top: 34%;
  --r: 3deg;
}
.paper:nth-child(4) {
  right: 0;
  top: 50%;
  --r: -4deg;
}
.paper:nth-child(5) {
  left: 0;
  top: 66%;
  --r: -2deg;
}
.paper:nth-child(6) {
  right: 8%;
  top: 84%;
  --r: 6deg;
}
@keyframes jitter {
  0%,
  100% {
    transform: rotate(var(--r)) translate(0, 0);
  }
  33% {
    transform: rotate(calc(var(--r) * -0.6)) translate(6px, -5px);
  }
  66% {
    transform: rotate(calc(var(--r) * 0.4)) translate(-5px, 4px);
  }
}
.sorted .paper {
  opacity: 0.5;
  filter: grayscale(1);
}
.sorter-arrow {
  display: grid;
  place-items: center;
}
.sorter-arrow span {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand) 0 40%, transparent 40%) 0 0 / 24px 4px repeat-x;
  opacity: 0.7;
  animation: dash 900ms linear infinite;
}
.sorter-arrow span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -6px;
  border: 8px solid transparent;
  border-left-color: var(--brand);
  border-right: 0;
}
@keyframes dash {
  to {
    background-position: 24px 0;
  }
}
@media (max-width: 899px) {
  .sorter-arrow {
    height: 48px;
  }
  .sorter-arrow span {
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--brand) 0 40%, transparent 40%) 0 0 / 4px 24px repeat-y;
    animation-name: dashY;
  }
  .sorter-arrow span::after {
    right: -6px;
    top: auto;
    bottom: -4px;
    border: 8px solid transparent;
    border-top-color: var(--brand);
    border-bottom: 0;
  }
}
@keyframes dashY {
  to {
    background-position: 0 24px;
  }
}
.sorter-after {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
}
.ordered-list {
  display: grid;
  gap: 10px;
}
.ordered-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 500;
}
.js .ordered-list li {
  opacity: 0;
  transform: translateX(-14px);
  transition:
    opacity 500ms var(--ease),
    transform 500ms var(--ease);
  transition-delay: calc(var(--i) * 260ms + 300ms);
}
.js .sorted .ordered-list li {
  opacity: 1;
  transform: none;
}
.check {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok-fg);
  flex: none;
}
.check svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

/* ---------- Method loop ---------- */
.loop {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1000px) {
  .loop {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.loop-wheel {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.loop-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.loop-orbit {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
  transform-origin: 200px 200px;
  animation: spin 80s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loop-track {
  fill: none;
  stroke: var(--brand-soft);
  stroke-width: 12;
}
.loop-progress {
  fill: none;
  stroke: var(--brand);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 955.04;
  stroke-dashoffset: 795.87;
  transform: rotate(-90deg);
  transform-origin: 200px 200px;
  transition: stroke-dashoffset 900ms var(--ease);
}
.loop-comet {
  transform-origin: 200px 200px;
  transition: transform 900ms var(--ease);
  fill: var(--brand);
}
.comet-halo {
  fill: var(--brand);
  opacity: 0.18;
  transform-origin: 200px 48px;
  animation: halo 1.8s var(--ease) infinite;
}
@keyframes halo {
  0% {
    transform: scale(0.6);
    opacity: 0.35;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.loop-center {
  position: absolute;
  inset: 30%;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.loop-center-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.loop-center-value {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.loop-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 76px;
  padding: 8px 8px 6px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 300ms var(--ease),
    background-color 300ms var(--ease),
    border-color 300ms var(--ease),
    color 300ms var(--ease);
}
.loop-node:hover {
  border-color: var(--brand);
}
.loop-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  transition:
    background-color 300ms var(--ease),
    color 300ms var(--ease);
}
.loop-short {
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.loop-node.done .loop-num {
  background: var(--brand);
  color: var(--brand-fg);
}
.loop-node[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-fg);
  transform: translate(-50%, -50%) scale(1.08);
}
.loop-node[aria-selected="true"] .loop-num {
  background: var(--brand-fg);
  color: var(--brand);
}
@media (max-width: 480px) {
  .loop-node {
    min-width: 0;
    padding: 6px;
  }
  .loop-short {
    display: none;
  }
  .loop-num {
    width: 30px;
    height: 30px;
  }
}
.loop-panels {
  position: relative;
}
.loop-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: panelIn 500ms var(--ease);
}
@media (max-width: 479px) {
  .loop-panel {
    padding: 20px;
  }
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 6px;
}
.loop-panel h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.loop-panel > p {
  color: var(--text-2);
}
.points {
  display: grid;
  gap: 6px;
  margin: 16px 0 20px;
}
.points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
}
.points svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex: none;
  margin-top: 3px;
  stroke-width: 2.2;
}
.visual {
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 18px;
  min-height: 150px;
  display: grid;
  align-content: center;
  overflow: hidden;
}
.loop-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.loop-progressbar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-soft);
  overflow: hidden;
}
.loop-progressbar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: 4px;
}

/* Step visuals */
.v-library {
  display: grid;
  gap: 8px;
}
.v-library li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  animation: slideIn 500ms var(--ease) both;
  animation-delay: calc(var(--i) * 220ms + 150ms);
}
.v-library .check {
  animation: pop 400ms var(--ease) both;
  animation-delay: calc(var(--i) * 220ms + 600ms);
}
.code,
.v-library .code,
.evidence-targets li {
  font-family: var(--mono);
}
.v-library .code {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12.5px;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.v-phone {
  display: grid;
  place-items: center;
}
.phone {
  width: 200px;
  border-radius: 22px;
  border: 6px solid var(--night);
  background: var(--surface);
  overflow: hidden;
}
.phone-bar,
.g-phone {
  position: relative;
  height: 38px;
  background: var(--night);
  color: #e8e9f5;
  font-size: 12.5px;
}
.sync {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  white-space: nowrap;
  opacity: 0;
  animation: syncShow 4.5s linear infinite;
}
.sync svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.s-off {
  color: #fbbf24;
}
.s-busy {
  animation-delay: -3s;
}
.s-done {
  color: #86efac;
  animation-delay: -1.5s;
}
@keyframes syncShow {
  0%,
  30% {
    opacity: 1;
    transform: none;
  }
  33%,
  97% {
    opacity: 0;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
  }
}
.spinner {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  animation: spin 800ms linear infinite;
  flex: none;
}
.phone-rows {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.phone-rows i {
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(
      90deg,
      var(--surface-2) 0%,
      var(--brand-soft) 50%,
      var(--surface-2) 100%
    )
    0 0 / 200% 100%;
  animation: shimmer 2.2s linear infinite;
}
.phone-rows i:nth-child(2) {
  width: 80%;
}
.phone-rows i:nth-child(4) {
  width: 60%;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.v-finding {
  display: grid;
  place-items: center;
}
.finding-card {
  width: min(100%, 360px);
  display: grid;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--major-fg);
  border-radius: 10px;
  padding: 14px;
  animation: rise 600ms var(--ease) both 150ms;
}
.finding-title {
  font-weight: 600;
}
.finding-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  animation: pop 400ms var(--ease) both 700ms;
}
.sev svg {
  width: 14px;
  height: 14px;
}
.sev-major {
  background: var(--major-bg);
  color: var(--major-fg);
}
.finding-meta .code {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 6px;
  padding: 2px 8px;
  animation: pop 400ms var(--ease) both 950ms;
}
.v-capa {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.capa-track {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 13px;
  height: 3px;
  border-radius: 3px;
  background: var(--border-strong);
}
.capa-track span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
  transform-origin: left;
  transform: scaleX(0);
  animation: track 2400ms linear forwards 300ms;
}
@keyframes track {
  to {
    transform: scaleX(1);
  }
}
.v-capa li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.capa-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: transparent;
  animation: capaOn 300ms var(--ease) forwards;
  animation-delay: calc(var(--i) * 600ms + 300ms);
}
.capa-dot svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}
.capa-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
  animation: capaText 300ms var(--ease) forwards;
  animation-delay: calc(var(--i) * 600ms + 300ms);
}
@keyframes capaOn {
  to {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--brand-fg);
  }
}
@keyframes capaText {
  to {
    color: var(--ink);
  }
}
.v-capa li:last-child .capa-dot {
  animation-name: capaDone;
}
.v-capa li:last-child .capa-label {
  font-weight: 600;
}
@keyframes capaDone {
  to {
    background: var(--ok-fg);
    border-color: var(--ok-fg);
    color: var(--surface);
  }
}
.v-evidence {
  display: grid;
  grid-template-columns: 1fr 70px auto;
  align-items: center;
}
.evidence-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: rise 500ms var(--ease) both;
}
.evidence-card svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
  flex: none;
}
.evidence-lines {
  width: 100%;
  height: 120px;
}
.evidence-lines path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 700ms var(--ease) forwards;
  animation-delay: calc(var(--i) * 250ms + 400ms);
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.evidence-targets {
  display: grid;
  gap: 24px;
}
.evidence-targets li {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  white-space: nowrap;
  animation: pop 400ms var(--ease) both;
  animation-delay: calc(var(--i) * 250ms + 900ms);
}
.v-ready {
  display: grid;
  gap: 12px;
}
.ready-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.ready-row strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.ready-row.ok {
  justify-content: flex-start;
  color: var(--ok-fg);
  font-weight: 600;
  animation: pop 400ms var(--ease) both 1400ms;
}
.ready-row.ok svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
.bar {
  height: 10px;
  border-radius: 10px;
  background: var(--brand-soft);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: calc(var(--value) * 1%);
  background: var(--brand);
  border-radius: 10px;
  transform-origin: left;
  animation: grow 1200ms var(--ease) both 200ms;
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

/* ---------- Chart ---------- */
.chart {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.legend .chip-demo {
  margin-inline-start: auto;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.swatch {
  width: 22px;
  height: 0;
  border-top: 3px solid var(--brand);
  border-radius: 2px;
}
.swatch-b {
  border-top: 3px dashed var(--series-b);
}
.chart-box {
  position: relative;
}
.chart-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.grid {
  stroke: var(--border);
  stroke-width: 1;
}
.axis {
  fill: var(--muted);
  font-size: 13px;
  font-family: var(--font);
}
.axis-y {
  text-anchor: end;
}
.axis-x {
  text-anchor: middle;
}
.audit-line {
  stroke: var(--faint);
  stroke-dasharray: 3 4;
}
.audit-label {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.line-a {
  stroke: var(--brand);
}
.line-b {
  stroke: var(--series-b);
  stroke-width: 2;
}
.js .chart .line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js .chart.in .line-a {
  animation: draw 1900ms var(--ease) forwards 300ms;
}
.js .chart.in .line-b {
  animation: drawDashed 1600ms var(--ease) forwards 150ms;
}
@keyframes drawDashed {
  0% {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  99% {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dasharray: 0.012 0.008;
    stroke-dashoffset: 0;
  }
}
.reduced .chart .line-b {
  stroke-dasharray: 0.012 0.008;
}
.direct {
  font-size: 14px;
  font-weight: 600;
  fill: var(--ink);
  font-variant-numeric: tabular-nums;
}
.js .chart .direct {
  opacity: 0;
  transition: opacity 500ms var(--ease) 2000ms;
}
.js .chart.in .direct {
  opacity: 1;
}
@media (max-width: 639px) {
  .axis,
  .audit-label {
    font-size: 32px;
  }
  .direct {
    font-size: 34px;
  }
  .line {
    stroke-width: 4;
  }
  .chart {
    padding: 14px;
  }
}
.cross {
  stroke: var(--faint);
  stroke-width: 1;
}
.dot {
  stroke: var(--surface);
  stroke-width: 2;
}
.dot-a {
  fill: var(--brand);
}
.dot-b {
  fill: var(--series-b);
}
.hit {
  fill: transparent;
  cursor: crosshair;
}
.tooltip {
  position: absolute;
  top: 0;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  transform: translate(-50%, 0);
}
.tooltip strong {
  display: block;
}
.tooltip i {
  display: inline-block;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  margin-inline-end: 6px;
  vertical-align: middle;
}
.chart-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.table-view summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--brand);
  font-weight: 500;
}
.table-view table {
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.table-view caption {
  text-align: start;
  color: var(--muted);
  padding-bottom: 6px;
}
.table-view th,
.table-view td {
  padding: 4px 12px;
  border-top: 1px solid var(--border);
  text-align: start;
}
.activity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.activity li {
  display: grid;
  gap: 2px;
  text-align: center;
  padding: 14px 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.activity strong {
  font-size: 28px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Gates ---------- */
.gate-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .gate-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .gate-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gate {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  transition:
    transform 250ms var(--ease),
    box-shadow 250ms var(--ease),
    border-color 250ms var(--ease);
}
.gate:hover,
.module:hover,
.who:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}
.gate h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.gate p,
.module p,
.who p,
.principles p,
.plan p {
  color: var(--text-2);
  font-size: 15px;
}
.gate-visual {
  height: 112px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.g-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 70px;
}
.g-bars i {
  width: 16px;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: var(--brand);
  opacity: calc(0.45 + var(--i) * 0.1);
  transform-origin: bottom;
  animation: bars 3.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.5s);
}
@keyframes bars {
  from {
    transform: scaleY(0.55);
  }
  to {
    transform: scaleY(1);
  }
}
.g-phone {
  width: 86%;
  border-radius: 10px;
}
.g-voice {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 0 10px;
}
.voice-hello {
  font-size: 18px;
  font-weight: 600;
  transition:
    opacity 300ms var(--ease),
    transform 300ms var(--ease);
}
.voice-hello.out {
  opacity: 0;
  transform: translateY(6px);
}
.voice-hello[lang="ar"] {
  font-family: var(--arabic);
}
.g-voice .code {
  font-size: 12px;
  color: var(--muted);
}
.g-hub {
  width: 160px;
  height: 96px;
}
.hub-line {
  stroke: var(--brand-200);
  stroke-width: 2;
  stroke-dasharray: 4 5;
  animation: flow 1.2s linear infinite;
}
@keyframes flow {
  to {
    stroke-dashoffset: -18;
  }
}
.hub-center {
  fill: var(--brand);
  stroke: var(--brand-soft);
  stroke-width: 8;
  paint-order: stroke;
}
.hub-node {
  fill: var(--surface);
  stroke: var(--brand);
  stroke-width: 2.5;
  animation: hub 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.6s);
}
@keyframes hub {
  0%,
  100% {
    fill: var(--surface);
  }
  50% {
    fill: var(--brand);
  }
}

/* ---------- Modules ---------- */
.module-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .module-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition:
    transform 250ms var(--ease),
    box-shadow 250ms var(--ease),
    border-color 250ms var(--ease);
}
.module:hover .icon {
  background: var(--brand);
  color: var(--brand-fg);
}
.module h3 {
  font-size: 17px;
}

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 1000px) {
  .trust-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
  }
}
.chain-card {
  background: var(--night);
  color: #e8e9f5;
  border-radius: 18px;
  padding: 28px;
  display: grid;
  gap: 14px;
  align-content: start;
  box-shadow: var(--shadow-lg);
}
.chain-card .muted {
  color: #a9acd6;
}
.chain {
  display: grid;
  gap: 18px;
  margin: 12px 0 4px;
}
.block {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14.5px;
  transition:
    border-color 300ms var(--ease),
    background-color 300ms var(--ease),
    transform 300ms var(--ease);
}
.js .chain-card .block {
  opacity: 0;
  transform: translateY(8px);
}
.js .chain-card.in .block {
  opacity: 1;
  transform: none;
  transition:
    opacity 500ms var(--ease),
    transform 500ms var(--ease),
    border-color 300ms var(--ease),
    background-color 300ms var(--ease);
  transition-delay: calc(var(--i) * 260ms);
}
.block + .block::before {
  content: "";
  position: absolute;
  inset-inline-start: 34px;
  bottom: 100%;
  height: 18px;
  border-inline-start: 2px solid #8b8cf8;
  transition: border-color 300ms var(--ease);
}
.block-hash {
  color: #8b8cf8;
  background: rgba(139, 140, 248, 0.14);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  transition: color 300ms var(--ease);
}
.tamper .block:nth-child(2) {
  border-color: #fca5a5;
  background: rgba(153, 27, 27, 0.3);
  transform: translateX(8px);
}
.tamper .block:nth-child(2) .block-hash {
  color: #fca5a5;
  background: rgba(252, 165, 165, 0.14);
}
.tamper .block:nth-child(3)::before {
  border-inline-start: 2px dashed #fca5a5;
}
.chain-status {
  position: relative;
  height: 28px;
  font-weight: 600;
}
.chain-status span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 300ms var(--ease);
}
.chain-status svg {
  width: 20px;
  height: 20px;
}
.status-ok {
  color: #86efac;
}
.status-bad {
  color: #fca5a5;
  opacity: 0;
}
.tamper .status-ok {
  opacity: 0;
}
.tamper .status-bad {
  opacity: 1;
}
.principles {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .principles {
    grid-template-columns: 1fr 1fr;
  }
}
.principles li {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  gap: 6px;
  align-content: start;
}
.principles h3 {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.principles h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Who ---------- */
.who-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 900px) {
  .who-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.who {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition:
    transform 250ms var(--ease),
    box-shadow 250ms var(--ease),
    border-color 250ms var(--ease);
}

/* ---------- Plans ---------- */
.axis-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.plan-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .plan-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  /* Three social-compliance cards on the first row, BRCGS and ISO under them (D-009). */
  .plan-grid > .plan {
    grid-column: span 2;
  }
  .plan-grid > .plan:nth-child(4) {
    grid-column: 2 / span 2;
  }
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-cta {
  margin-top: auto;
  align-self: flex-start;
}
.plan h3 {
  font-size: 24px;
}
.plan-featured {
  border: 2px solid var(--brand);
  box-shadow: 0 18px 50px rgba(61, 58, 196, 0.2);
}
@media (min-width: 900px) {
  .js .plan-featured.in {
    transform: translateY(-10px);
  }
}
.plan .chip-brand {
  position: absolute;
  top: -12px;
  inset-inline-start: 24px;
}
.size-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 36px;
}
@media (min-width: 900px) {
  .size-row {
    grid-template-columns: repeat(4, 1fr);
  }
}
.size-row a {
  position: relative;
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition:
    border-color 200ms var(--ease),
    transform 200ms var(--ease);
}
.size-row a:hover {
  border-color: var(--brand);
  border-style: solid;
  transform: translateY(-2px);
}
.size-go {
  position: absolute;
  inset-inline-end: 14px;
  top: 12px;
  color: var(--brand);
  transition: transform 200ms var(--ease);
}
.size-row a:hover .size-go {
  transform: translateX(3px);
}
.size-row strong {
  color: var(--ink);
  font-size: 16px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 200ms var(--ease);
}
.faq[open] {
  border-color: var(--brand-200);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: transform 250ms var(--ease);
}
.faq-icon::after {
  transform: rotate(90deg);
}
.faq[open] .faq-icon::after,
.notice[open] .faq-icon::after {
  transform: rotate(0deg);
}
.faq::details-content {
  height: 0;
  overflow: clip;
  transition:
    height 300ms var(--ease),
    content-visibility 300ms allow-discrete;
}
.faq[open]::details-content {
  height: auto;
}
.faq-body {
  padding: 0 18px 18px;
  color: var(--text-2);
}

/* ---------- Closing ---------- */
.closing {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #ffffff;
  padding: 96px 0;
  text-align: center;
}
.closing-bg {
  position: absolute;
  inset: -40px;
  background-image: radial-gradient(rgba(139, 140, 248, 0.35) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  animation: grid 30s linear infinite;
}
@keyframes grid {
  to {
    transform: translate(28px, 28px);
  }
}
.closing-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.closing-mark {
  width: 56px;
  height: 60px;
}
.closing .lead {
  color: #c9cbea;
  margin: 0 auto 10px;
}
.closing .cta-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--night-2);
  color: #a9acd6;
  padding: 48px 0 28px;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-tagline {
  margin-top: 10px;
}
/* "Powered by SVAS GROUP" as at the foot of the app's menu, at full size (18 Oct 2026). */
.footer-vendor {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  color: inherit;
  text-decoration: none;
}
.footer-vendor:hover {
  opacity: 0.85;
}
.footer-vendor-label {
  font-size: 12px;
  color: var(--footer-muted, rgb(255 255 255 / 0.6));
}
.footer-vendor-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-vendor-lockup svg {
  width: auto;
  height: 26px;
}
.footer-vendor-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #fff;
  white-space: nowrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.footer a {
  color: #c9cbea;
  text-decoration: none;
}
.footer a:hover {
  color: #ffffff;
}
.footer-legal {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  font-size: 12.5px;
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ---------- 24/7 line: top strip, floating button, closing line ---------- */
.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.topbar {
  background: var(--night);
  color: #c9cbea;
  font-size: 13.5px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 38px;
}
.phone-link,
.topbar-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}
.phone-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #86efac;
  animation: live 1.8s ease-out infinite;
}
@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.6);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(134, 239, 172, 0);
  }
}
.phone-link svg,
.topbar-mail svg {
  width: 15px;
  height: 15px;
  color: #8b8cf8;
}
.phone-label {
  color: #a9acd6;
}
.topbar-mail {
  color: #c9cbea;
}
.topbar-mail:hover,
.phone-link:hover strong {
  color: #ffffff;
  text-decoration: underline;
}
@media (max-width: 559px) {
  .topbar-inner {
    justify-content: center;
  }
  .topbar-mail {
    display: none;
  }
}
.call-fab {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-fg);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(61, 58, 196, 0.38);
  transition: transform 200ms var(--ease);
}
.js .call-fab {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 250ms var(--ease),
    transform 250ms var(--ease),
    visibility 250ms;
}
.js .call-fab.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.call-fab.show:hover {
  transform: translateY(-2px);
}
.call-fab-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  animation: ringPulse 2.4s ease-out infinite;
}
.call-fab-icon svg {
  width: 20px;
  height: 20px;
}
@keyframes ringPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  }
  70%,
  100% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
}
.call-fab-text {
  display: grid;
  line-height: 1.15;
}
.call-fab-text small {
  font-size: 11.5px;
  opacity: 0.85;
}
.call-fab-text strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 639px) {
  .call-fab {
    padding: 7px;
  }
  .call-fab-text {
    display: none;
  }
}
.closing-call {
  color: #c9cbea;
  margin-top: 6px;
}
.closing-call a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.closing-call svg {
  width: 17px;
  height: 17px;
}
.footer-contact {
  display: grid;
  gap: 8px;
  align-content: start;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-contact svg {
  width: 16px;
  height: 16px;
  color: #8b8cf8;
  flex: none;
}
.footer-title {
  color: #ffffff;
  font-weight: 600;
}

/* ---------- Hero product tour ---------- */
.tour {
  position: relative;
  min-width: 0;
}
.tour-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tour-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--night);
  color: #e8e9f5;
  font-size: 14px;
}
.tour-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 250ms var(--ease);
}
.tour-top strong.swap {
  opacity: 0;
}
.tour-top .chip-demo {
  margin-inline-start: auto;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #c9cbea;
}
.tour-body {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
}
.tour-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  background: #1c1f4d;
}
.tour-side-i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #a9acd6;
  transition:
    background-color 300ms var(--ease),
    color 300ms var(--ease);
}
.tour-side-i svg {
  width: 19px;
  height: 19px;
}
.tour-side-i.is-active {
  background: rgba(139, 140, 248, 0.24);
  color: #ffffff;
}
.tour-stage {
  position: relative;
  height: 452px;
  overflow: hidden;
}
@media (max-width: 519px) {
  .tour-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .tour-side {
    display: none;
  }
  .tour-stage {
    height: 590px;
  }
}
.scene {
  position: absolute;
  inset: 0;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition:
    opacity 450ms var(--ease),
    transform 450ms var(--ease),
    visibility 450ms;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.ov-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
}
.trend-card,
.ov-grid .feed {
  grid-column: 1 / -1;
}
@media (max-width: 519px) {
  .ov-grid {
    grid-template-columns: 1fr;
  }
}
.trend-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px 6px;
}
.trend-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}
.delta {
  background: var(--ok-bg);
  color: var(--ok-fg);
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 600;
}
.trend {
  width: 100%;
  height: 56px;
  margin-top: 4px;
}
.trend-area {
  fill: var(--brand-soft);
  opacity: 0;
}
.trend-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.scene.is-active .trend-line {
  animation: draw 1600ms var(--ease) 300ms forwards;
}
.scene.is-active .trend-area {
  animation: fadeIn 600ms var(--ease) 1500ms forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.fd-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  height: 100%;
}
@media (max-width: 519px) {
  .fd-grid {
    grid-template-columns: 1fr;
    align-items: start;
    height: auto;
  }
}
.fd-phone {
  border: 6px solid var(--night);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fd-bar {
  position: relative;
  height: 30px;
  background: var(--night);
  font-size: 12px;
}
.fd-off,
.fd-on {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  white-space: nowrap;
}
.fd-off svg,
.fd-on svg {
  width: 14px;
  height: 14px;
}
.fd-off {
  color: #fbbf24;
}
.fd-on {
  color: #86efac;
  opacity: 0;
}
.scene.is-active .fd-off {
  animation: fdOff 4600ms linear forwards;
}
.scene.is-active .fd-on {
  animation: fadeIn 400ms var(--ease) 4000ms forwards;
}
@keyframes fdOff {
  0%,
  84% {
    opacity: 1;
  }
  92%,
  100% {
    opacity: 0;
  }
}
.fd-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px 6px;
  font-size: 13px;
}
.fd-head span {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.fd-progress {
  height: 4px;
  margin: 0 12px 6px;
  border-radius: 4px;
  background: var(--brand-soft);
  overflow: hidden;
}
.fd-progress span {
  display: block;
  height: 100%;
  width: 34%;
  border-radius: 4px;
  background: var(--brand);
}
.scene.is-active .fd-progress span {
  animation: fdProgress 3200ms var(--ease) 400ms forwards;
}
@keyframes fdProgress {
  to {
    width: 67%;
  }
}
.fd-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  padding: 7px 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.3;
}
.fd-a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
}
.fd-a svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}
.scene.is-active .fd-a {
  animation: pop 350ms var(--ease) both;
  animation-delay: calc(var(--i) * 750ms + 500ms);
}
.fd-yes {
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.fd-no {
  background: var(--critical-bg);
  color: var(--critical-fg);
}
.fd-extra {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fd-extra > * {
  opacity: 0;
  font-size: 11px;
}
.scene.is-active .fd-extra > * {
  animation: rise 450ms var(--ease) both 2500ms;
}
.scene.is-active .fd-extra > :last-child {
  animation-delay: 2950ms;
}
.fd-photo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.fd-photo svg,
.fd-extra .sev svg {
  width: 12px;
  height: 12px;
}
.fd-extra .sev {
  font-size: 11px;
  padding: 2px 8px;
  animation: none;
}
.fd-facts {
  display: grid;
  gap: 10px;
}
.fd-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
}
.fd-facts .icon {
  width: 30px;
  height: 30px;
}
.fd-facts .icon svg {
  width: 16px;
  height: 16px;
}
.scene.is-active .fd-facts li {
  animation: slideIn 500ms var(--ease) both;
  animation-delay: calc(var(--i) * 350ms + 600ms);
}
@media (max-width: 519px) {
  .fd-facts li {
    padding: 8px 10px;
    font-size: 13px;
  }
}
.cp-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.cp-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 360px;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
@media (max-width: 519px) {
  .cp-col {
    min-height: 500px;
    padding: 6px;
  }
}
.cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 22px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.cp-lock svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
}
.cp-card {
  overflow-wrap: anywhere;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--text-2);
}
.cp-card:first-of-type {
  margin-top: 86px;
}
.cp-mover {
  --col: calc((100% - 24px) / 4);
  position: absolute;
  top: 36px;
  left: 8px;
  width: calc(var(--col) - 16px);
  display: grid;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 2px solid var(--brand);
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  overflow-wrap: anywhere;
}
@media (max-width: 519px) {
  .cp-mover {
    left: 6px;
    width: calc(var(--col) - 12px);
    font-size: 10.5px;
  }
  .cp-card {
    font-size: 10.5px;
    padding: 5px 6px;
  }
}
.scene.is-active .cp-mover {
  animation:
    cpMove 5400ms var(--ease) 400ms forwards,
    cpDone 400ms var(--ease) 5900ms forwards;
}
@keyframes cpMove {
  0%,
  12% {
    left: 8px;
  }
  26%,
  40% {
    left: calc(8px + var(--col) + 8px);
  }
  54%,
  68% {
    left: calc(8px + 2 * (var(--col) + 8px));
  }
  82%,
  100% {
    left: calc(8px + 3 * (var(--col) + 8px));
  }
}
@keyframes cpDone {
  to {
    border-color: var(--ok-fg);
  }
}
.cp-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  justify-self: start;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok-fg);
  font-size: 10.5px;
  white-space: nowrap;
  opacity: 0;
}
.cp-verified svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.6;
}
.scene.is-active .cp-verified {
  animation: pop 400ms var(--ease) both 5900ms;
}
.cp-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.cp-lock-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cp-lock-note svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}
.cp-overdue {
  color: var(--ok-fg);
  font-weight: 600;
}
.gr-grid {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 14px;
  height: 100%;
}
@media (max-width: 519px) {
  .gr-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
}
.gr-summary {
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.gr-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.gr-tile {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: #4d7c0f;
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
}
.scene.is-active .gr-tile {
  animation: pop 500ms var(--ease) both 1700ms;
}
.msa-dots {
  display: flex;
  gap: 6px;
}
.msa-dots i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--brand);
}
.msa-dots i.on {
  background: var(--brand);
}
.gr-note {
  margin-top: 6px;
}
.gr-list ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin-top: 8px;
}
.gr-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.gr-bar {
  height: 6px;
  border-radius: 6px;
  background: var(--brand-soft);
  overflow: hidden;
}
.gr-bar span {
  display: block;
  height: 100%;
  width: calc(var(--w) * 1%);
  border-radius: 6px;
  background: var(--brand);
  transform-origin: left;
}
.scene.is-active .gr-bar span {
  animation: grow 700ms var(--ease) both;
  animation-delay: calc(var(--i) * 90ms + 200ms);
}
.gr-chip {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.gr-A,
.gr-B {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--ink);
}
.gr-C {
  background: #fef3c7;
  color: #92400e;
}
.tour-toast {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--night);
  color: #e8e9f5;
  font-size: 12.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 350ms var(--ease),
    transform 350ms var(--ease);
}
.tour-toast.show {
  opacity: 1;
  transform: none;
}
.tour-toast svg {
  width: 15px;
  height: 15px;
  color: #86efac;
  flex: none;
}
.tour-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.tour-tab {
  display: grid;
  gap: 6px;
  padding: 8px 8px 7px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: start;
  cursor: pointer;
  transition:
    border-color 250ms var(--ease),
    background-color 250ms var(--ease),
    color 250ms var(--ease);
}
.tour-tab:hover {
  border-color: var(--brand);
}
.tour-tab.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.tour-tab-bar {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.tour-tab-bar b {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
}
@media (max-width: 519px) {
  .tour-tab {
    font-size: 11.5px;
    padding: 7px 6px 6px;
  }
}
.tour-cursor {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  z-index: 10;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transition:
    transform 850ms var(--ease),
    opacity 300ms var(--ease);
}
.tour-cursor svg {
  width: 22px;
  height: 22px;
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(21, 23, 61, 0.3));
}
.tour-cursor.visible {
  opacity: 1;
}
.tour-cursor.click::after {
  content: "";
  position: absolute;
  inset-inline-start: -9px;
  top: -9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: clickRing 500ms var(--ease) forwards;
}
@keyframes clickRing {
  from {
    transform: scale(0.3);
    opacity: 1;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ---------- Contact page ---------- */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 28px;
}
.contact-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 820px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.back-link svg {
  width: 16px;
  height: 16px;
}
.back-link:hover {
  color: var(--brand);
}
.contact-section {
  padding: 8px 0 96px;
}
.contact-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 1000px) {
  .contact-grid {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
  .contact-side {
    position: sticky;
    top: 84px;
  }
}
.contact-side {
  display: grid;
  gap: 14px;
}
.hotline {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  padding: 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 140, 248, 0.35), transparent 55%), var(--night);
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.hotline::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(139, 140, 248, 0.35);
  animation: hotlineRing 3s ease-out infinite;
}
@keyframes hotlineRing {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}
.hotline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(134, 239, 172, 0.16);
  color: #86efac;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hotline-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #86efac;
  animation: live 1.8s ease-out infinite;
}
.hotline-title {
  color: #c9cbea;
  font-size: 14px;
  margin-top: 6px;
}
.hotline-number {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hotline-note {
  color: #a9acd6;
  font-size: 13.5px;
}
.hotline .btn {
  justify-self: start;
  margin-top: 8px;
}
.side-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.side-card > svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
  flex: none;
}
.side-card small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.side-card strong {
  font-size: 15px;
  word-break: break-all;
}
.side-steps {
  display: grid;
  gap: 10px;
}
.side-title {
  font-weight: 600;
}
.side-steps ol {
  display: grid;
  gap: 10px;
}
.side-steps li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.side-steps li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  flex: none;
}
.contact-main {
  min-width: 0;
}
.form-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.form-tabs button {
  border: 0;
  background: transparent;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 200ms var(--ease),
    color 200ms var(--ease);
}
.form-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow);
}
.form-panel {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: panelIn 400ms var(--ease);
}
@media (max-width: 559px) {
  .form-panel {
    padding: 18px;
  }
}
.form-panel h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.form-panel > p.muted {
  margin-bottom: 22px;
}
.inquiry {
  display: grid;
  gap: 18px;
}
.picker {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.picker legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pick-grid {
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .pick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pick,
.chip-pick,
.demo-toggle {
  position: relative;
  cursor: pointer;
}
.pick input,
.chip-pick input,
.demo-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pick-body {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 16px 14px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  transition:
    border-color 200ms var(--ease),
    background-color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}
.pick-body strong {
  font-size: 16px;
  padding-inline-end: 24px;
}
.pick-body > span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.pick-body .chip {
  position: absolute;
  top: -10px;
  left: 12px;
  font-style: normal;
}
.pick-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-fg);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 200ms var(--ease),
    transform 200ms var(--ease);
}
.pick-check svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}
.pick:hover .pick-body,
.chip-pick:hover span {
  border-color: var(--brand);
}
.pick input:checked + .pick-body {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.pick input:checked ~ .pick-check {
  opacity: 1;
  transform: none;
}
.pick input:focus-visible + .pick-body,
.chip-pick input:focus-visible + span,
.demo-toggle input:focus-visible + .switch {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-pick span {
  display: grid;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  transition:
    border-color 200ms var(--ease),
    background-color 200ms var(--ease);
}
.chip-pick strong {
  font-size: 14px;
}
.chip-pick small {
  font-size: 12px;
  color: var(--muted);
}
.chip-pick input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.chip-pick input:checked + span strong {
  color: var(--brand);
}
.demo-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
}
.demo-toggle strong {
  display: block;
  font-size: 14.5px;
}
.demo-toggle small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--border-strong);
  flex: none;
  transition: background-color 200ms var(--ease);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(21, 23, 61, 0.25);
  transition: transform 200ms var(--ease);
}
.demo-toggle input:checked + .switch {
  background: var(--brand);
}
.demo-toggle input:checked + .switch::after {
  transform: translateX(18px);
}
.fld-row {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .fld-row {
    grid-template-columns: 1fr 1fr;
  }
}
.fld {
  display: grid;
  gap: 6px;
  align-content: start;
}
.fld-l {
  font-size: 14px;
  font-weight: 600;
}
.req {
  color: var(--critical-fg);
  font-style: normal;
}
.opt {
  font-style: normal;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
}
.fld-i {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition:
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}
.fld-i:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
.fld-i[aria-invalid="true"] {
  border-color: var(--critical-fg);
}
textarea.fld-i {
  resize: vertical;
  min-height: 96px;
}
.fld-e {
  font-size: 13px;
  color: var(--critical-fg);
}
.fld-e:empty {
  display: none;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex: none;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.form-actions .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.form-status {
  font-size: 14px;
  color: var(--muted);
}
.form-status.error {
  color: var(--critical-fg);
}
.form-done,
.form-fallback {
  display: grid;
  justify-items: start;
  gap: 12px;
  outline: none;
}
.done-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok-fg);
  animation: pop 500ms var(--ease) both;
}
.done-mark svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}
.form-done h3,
.form-fallback h3 {
  font-size: 24px;
}
.form-done p,
.form-fallback p {
  color: var(--text-2);
}
.form-fallback pre {
  width: 100%;
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font: 13px/1.5 var(--mono);
  white-space: pre-wrap;
}
.notice {
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.notice summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  font-weight: 600;
}
.notice summary::-webkit-details-marker {
  display: none;
}
.notice dl {
  margin: 0;
  padding: 0 18px 18px;
}
.notice dt {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}
.notice dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .sync {
    animation: none !important;
  }
  .s-done {
    opacity: 1;
  }
}

/* ---- Language menu (decision 54): fifteen languages, each in its own name ---- */
.lang-menu {
  position: relative;
}
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
/* A bordered picker (flag, code, caret) so it reads as a language choice at a glance. */
.lang-menu summary.nav-lang {
  gap: 7px;
  height: 38px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
}
.lang-menu summary.nav-lang:hover {
  border-color: var(--brand);
}
.lang-caret {
  display: inline-grid;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.lang-caret svg {
  width: 16px;
  height: 16px;
}
.lang-menu[open] .lang-caret {
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .lang-caret {
    transition: none;
  }
}
.lang-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 60;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 210px;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.lang-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.lang-list a:hover,
.lang-list a[aria-current="true"] {
  background: var(--surface-2);
}
.lang-list a[aria-current="true"] {
  font-weight: 600;
}
.lang-list a > span:not(.lang-flag):not(.lang-code) {
  flex: 1;
}
.lang-code {
  color: var(--muted);
  font-size: 12px;
}
.lang-flag {
  display: inline-block;
  flex: none;
  width: 19px;
  height: 14px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
}

/* Script fonts by language (decision 54): the page font variable starts with the script font,
   IBM Plex Sans behind it for Latin text; code keeps the mono font. */
:root:lang(ar) {
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
}
.lang-list a:lang(ar) {
  font-family: "IBM Plex Sans Arabic", var(--font);
}
:root:lang(ur) {
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
}
.lang-list a:lang(ur) {
  font-family: "IBM Plex Sans Arabic", var(--font);
}
:root:lang(hi) {
  --font: "IBM Plex Sans Devanagari", "IBM Plex Sans", system-ui, sans-serif;
}
.lang-list a:lang(hi) {
  font-family: "IBM Plex Sans Devanagari", var(--font);
}
:root:lang(bn) {
  --font: "Hind Siliguri", "IBM Plex Sans", system-ui, sans-serif;
}
.lang-list a:lang(bn) {
  font-family: "Hind Siliguri", var(--font);
}
:root:lang(ko) {
  --font: "IBM Plex Sans KR", "IBM Plex Sans", system-ui, sans-serif;
}
.lang-list a:lang(ko) {
  font-family: "IBM Plex Sans KR", var(--font);
}
:root:lang(ja) {
  --font: "IBM Plex Sans JP", "IBM Plex Sans", system-ui, sans-serif;
}
.lang-list a:lang(ja) {
  font-family: "IBM Plex Sans JP", var(--font);
}
:root:lang(zh) {
  --font: "Noto Sans SC", "IBM Plex Sans", system-ui, sans-serif;
}
.lang-list a:lang(zh) {
  font-family: "Noto Sans SC", var(--font);
}
:root:lang(ja),
:root:lang(zh),
:root:lang(ko) {
  line-break: strict;
}

/* ---------- Standards catalogue (D-009) ---------- */
.catalog-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}
@media (min-width: 760px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.catalog-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
}
.catalog-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  margin: 0 0 14px;
}
.catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.catalog-list li {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.catalog-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.catalog-list li > span:last-child {
  color: var(--muted);
  font-size: 15px;
}
.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chip-ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.chip-muted {
  background: var(--surface-2);
  color: var(--muted);
}
@media (min-width: 1100px) {
  /* Social compliance and ISO are the long lists; food safety and legal stack beside them. */
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: min-content 1fr;
    align-items: start;
  }
  .catalog-group:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .catalog-group:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .catalog-group:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
  }
  .catalog-group:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }
}
