/* Krisiq marketing site. Tokens follow packages/tokens; every motion stops under prefers-reduced-motion. */

:root {
  --brand: #0a4641;
  --brand-deep: #073632;
  --brand-mid: #0f5349;
  --brand-soft: #e2ebe8;
  --brand-line: #2c6660;
  --mint: #a8e4d5;
  --amber: #e4923a;
  --amber-bright: #f6c27e;
  --amber-soft: #fbebd9;
  --amber-ink: #8a3f06;
  --ink: #14171c;
  --ink-2: #545a63;
  --ink-3: #6e747d;
  --ink-raised: #262b33;
  --ink-panel: #1a1f26;
  --on-ink: #c9ccd1;
  --on-ink-muted: #a7acb4;
  --on-brand: #e4e0d8;
  --on-brand-muted: #b6c8c6;
  --bg: #f2eee7;
  --surface: #ffffff;
  --sunken: #f7f5f0;
  --border: #e2e0da;
  --border-strong: #cfccc4;
  --danger: #b3261e;
  --positive: #1f8a5b;
  --sans: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 23, 28, 0.06), 0 12px 32px -12px rgba(20, 23, 28, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

[dir='rtl'] body {
  font-family: 'IBM Plex Sans Arabic', var(--sans);
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
}

.skip {
  position: absolute;
  inset-inline-start: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  inset-inline-start: 8px;
}

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.tiny {
  font-size: 13px;
  color: var(--ink-3);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  height: 42px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(10, 70, 65, 0.7);
}

.btn-primary:hover {
  background: var(--brand-mid);
}

.btn-amber {
  background: var(--amber);
  color: #1b1206;
  box-shadow: 0 10px 26px -10px rgba(228, 146, 58, 0.8);
}

.btn-amber:hover {
  background: #eaa055;
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: var(--surface);
}

.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.06);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 54, 50, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(242, 238, 231, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand .symbol {
  width: 26px;
  height: 28px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: 12px;
}

.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.scrolled .nav a:hover {
  background: rgba(20, 23, 28, 0.05);
}

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Over the dark top of the page the outline button turns light; on the scrolled (cream) header it is brand green. */
.site-header:not(.scrolled) .btn-outline {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.site-header:not(.scrolled) .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-header:not(.scrolled) .btn-primary {
  background: var(--amber);
  color: #1b1206;
  box-shadow: none;
}

/* Outline button: only the border carries the button shape (header sign-in). */
.btn-outline {
  border: 1.5px solid var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(10, 70, 65, 0.06);
}

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

.lang {
  position: relative;
}

.lang summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid currentColor;
  border-color: rgba(127, 127, 127, 0.35);
  font-size: 14px;
  font-weight: 600;
}

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

.lang-code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.caret {
  font-size: 11px;
  opacity: 0.7;
}

.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.lang li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 15px;
}

.lang li a:hover,
.lang li a[aria-current] {
  background: var(--brand-soft);
}

.lang li .lang-code {
  width: 26px;
  color: var(--ink-3);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 85% 30%, rgba(168, 228, 213, 0.16), transparent 60%),
    radial-gradient(60% 60% at 10% 100%, rgba(228, 146, 58, 0.12), transparent 60%),
    linear-gradient(180deg, var(--brand-deep), var(--brand) 70%);
  color: #fff;
  padding: 72px 0 96px;
  margin-top: -72px;
  padding-top: 144px;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
}

[lang='tr'] .eyebrow {
  text-transform: none;
  letter-spacing: 0.04em;
}

.eyebrow.on-dark {
  color: var(--mint);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--amber-bright);
}

[dir='rtl'] .hero h1,
[dir='rtl'] h2 {
  font-family: 'IBM Plex Sans Arabic', var(--sans);
  letter-spacing: 0;
}

.lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0;
}

.lead.on-dark {
  color: var(--on-brand);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cta-row.center {
  justify-content: center;
}

.hero-join {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--on-brand);
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
}

.hero-join:hover {
  color: #fff;
}

.code-chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 7px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin: 40px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
}

.hero-stats dt {
  font-size: 13px;
  color: var(--on-brand-muted);
}

.hero-stats dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
}

.hero-in {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s var(--ease) forwards;
  animation-delay: calc(var(--d) * 110ms + 120ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Phone mock */
.phone-wrap {
  position: relative;
  justify-self: center;
}

.phone {
  position: relative;
  width: 340px;
  border-radius: 38px;
  padding: 26px 20px 22px;
  background: var(--bg);
  color: var(--ink);
  border: 10px solid #0d1114;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-2.5deg);
}

[dir='rtl'] .phone {
  transform: rotate(2.5deg);
}

.phone-shadow {
  position: absolute;
  inset: auto 10% -26px;
  height: 40px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.35), transparent);
  filter: blur(6px);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.phone-over {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.phone-timer {
  font-family: var(--mono);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
}

.phone-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  margin: 12px 0 14px;
}

.phone-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.phone-options li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.3;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.phone-options .letter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sunken);
  font-family: var(--mono);
  font-weight: 600;
  display: grid;
  place-items: center;
}

.phone-options .bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background: var(--sunken);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s, opacity 0.4s;
}

.phone-options .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink-3);
  border-radius: 3px;
  transition: width 1.4s var(--ease);
}

.phone[data-state='pick'] li[data-opt='1'],
.phone[data-state='sim'] li[data-opt='1'],
.phone[data-state='score'] li[data-opt='1'] {
  border: 2px solid var(--brand);
  background: var(--brand-soft);
  padding: 9px 11px;
}

.phone[data-state='pick'] li[data-opt='1'] .letter,
.phone[data-state='sim'] li[data-opt='1'] .letter,
.phone[data-state='score'] li[data-opt='1'] .letter {
  background: var(--brand);
  color: #fff;
}

.phone[data-state='sim'] .bar,
.phone[data-state='score'] .bar {
  max-height: 6px;
  opacity: 1;
}

.phone[data-state='sim'] .bar i,
.phone[data-state='score'] .bar i {
  width: var(--w);
}

.phone[data-state='sim'] li[data-opt='1'] .bar i,
.phone[data-state='score'] li[data-opt='1'] .bar i {
  background: var(--brand);
}

.phone-sim {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
  opacity: 0.35;
  transition: opacity 0.3s;
}

.phone[data-state='sim'] .phone-sim,
.phone[data-state='score'] .phone-sim {
  opacity: 1;
}

.sim-count {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
}

.phone-score {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.phone[data-state='score'] .phone-score {
  opacity: 1;
  transform: none;
}

.phone-score strong {
  display: block;
  font-size: 15px;
}

.phone-score span {
  font-size: 13px;
  color: var(--on-brand-muted);
}

.ring {
  --p: 0;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--amber) calc(var(--p) * 1%), rgba(255, 255, 255, 0.15) 0);
  display: grid;
  place-items: center;
}

.ring span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  color: #fff !important;
}

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

.section {
  padding: 112px 0;
}

.section-white {
  background: var(--surface);
}

.section-ink {
  background: var(--ink-panel);
  color: #fff;
}

.section-ink .lead {
  color: var(--on-ink);
}

.section-ink .eyebrow {
  color: var(--mint);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Luck vs decision */
.luck-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: stretch;
}

.dist,
.matrix {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.dist svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.d {
  opacity: 0.85;
}

.d-a {
  fill: rgba(110, 116, 125, 0.18);
  stroke: var(--ink-3);
  stroke-width: 1.5;
}

.d-b {
  fill: rgba(10, 70, 65, 0.16);
  stroke: var(--brand);
  stroke-width: 2;
}

.d-c {
  fill: rgba(228, 146, 58, 0.14);
  stroke: var(--amber);
  stroke-width: 1.5;
}

.ev {
  stroke: var(--brand);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.axis {
  stroke: var(--border-strong);
}

.tick {
  font-size: 12px;
  fill: var(--ink-3);
  font-family: var(--sans);
}

.drop {
  fill: var(--amber);
  stroke: #fff;
  stroke-width: 3;
}

.cut {
  stroke: var(--border-strong);
  stroke-dasharray: 2 4;
}

.dot-good {
  fill: var(--brand);
}

.dot-bad {
  fill: var(--amber);
}

.dot-new {
  animation: settle 0.35s var(--ease);
  transform-box: fill-box;
  transform-origin: center bottom;
}

@keyframes settle {
  0% {
    transform: scale(1.5, 0.6);
  }
  100% {
    transform: none;
  }
}

[data-dots].fading circle {
  opacity: 0;
  transition: opacity 0.9s;
}

.d-a,
.d-c {
  opacity: 0.55;
}

.dist figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sw {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  display: inline-block;
}

.sw-a {
  background: var(--ink-3);
}

.sw-b {
  background: var(--brand);
}

.sw-c {
  background: var(--amber);
}

.sw-you {
  background: var(--brand);
}

.sw-idle {
  background: var(--border-strong);
}

.dist-readout {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.ro {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ro small {
  font-size: 12px;
  color: var(--ink-3);
}

.ro b {
  font-family: var(--mono);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.ro-outcome b,
.ro-score b {
  font-family: var(--sans);
  font-size: 15px;
}

.ro-outcome b.good {
  color: var(--positive);
}

.ro-outcome b.bad {
  color: var(--danger);
}

.ro-score b {
  color: var(--brand);
}

.matrix {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 10px;
}

.mx-y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: 0.06em;
}

.mx-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.cell {
  border-radius: 12px;
  padding: 14px;
  background: var(--sunken);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}

.cell b {
  font-size: 15px;
}

.cell span {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}

.cell.lit {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: scale(1.02);
}

.cell.lit span {
  color: var(--on-brand-muted);
}

.mx-x {
  grid-column: 2;
  grid-row: 2;
  display: none;
}

.mx-labels {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

/* Steps */
.steps {
  display: grid;
  gap: 24px;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.step-tabs button[aria-selected='true'] .step-no {
  color: var(--brand);
}

.step-tabs button:hover {
  border-color: var(--border-strong);
}

.step-tabs button {
  position: relative;
  text-align: start;
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px 18px;
  font: inherit;
  cursor: pointer;
  color: var(--ink-2);
  overflow: hidden;
}

.step-tabs button[aria-selected='true'] {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.step-no {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber-ink);
}

.step-name {
  font-weight: 600;
  font-size: 16px;
}

.step-progress {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--amber);
}

.step-tabs button[aria-selected='true'] .step-progress {
  animation: progress var(--step-ms, 4200ms) linear forwards;
}

.steps.paused .step-progress {
  animation: none !important;
  width: 0;
}

@keyframes progress {
  to {
    width: 100%;
  }
}

.step-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px;
  min-height: 300px;
}

.step-panel h3 {
  font-family: var(--serif);
  font-size: 30px;
  margin-bottom: 12px;
}

.step-panel p {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0;
}

.step-art {
  display: grid;
  place-items: center;
  min-height: 260px;
}

.step-panel:not([hidden]) .step-copy {
  animation: rise 0.6s var(--ease) both;
}

.step-panel:not([hidden]) .step-art {
  animation: rise 0.6s var(--ease) 0.08s both;
}

/* 1 · Case: the document writes itself, the numbers land, a stakeholder message arrives */
.case-art {
  position: relative;
  width: 320px;
  padding-bottom: 46px;
}

.doc {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 9px;
}

.doc > i {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  transform-origin: left;
  transform: scaleX(0);
  animation: grow 0.5s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--k) * 0.22s);
}

[dir='rtl'] .doc > i {
  transform-origin: right;
}

.doc > i.short {
  width: 62%;
}

.doc-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.doc-tiles span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 9px 6px;
  border-radius: 9px;
  text-align: center;
  opacity: 0;
  animation: pop 0.45s var(--ease) forwards;
  animation-delay: calc(1s + var(--k) * 0.15s);
}

.bubble {
  position: absolute;
  inset-inline-end: -18px;
  bottom: 0;
  max-width: 270px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 14px 10px 12px;
  border-radius: 14px 14px 4px 14px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  opacity: 0;
  animation: pop 0.5s var(--ease) 1.7s forwards;
}

.bubble-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 1.4s ease-in-out 2.2s infinite;
}

/* 2 · Data: two cards turn over, one of them is the critical one; the remaining looks count down */
.looks {
  display: grid;
  grid-template-columns: repeat(2, 150px);
  gap: 12px;
  perspective: 800px;
}

.looks .card {
  position: relative;
  min-height: 92px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--sunken);
  display: grid;
  gap: 7px;
  align-content: start;
  font-size: 13.5px;
  color: var(--ink-3);
}

.looks .card i {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  opacity: 0;
}

.looks .card i.short {
  width: 60%;
}

.looks .card.open {
  animation: flip 0.7s var(--ease) both;
  animation-delay: calc(0.3s + var(--k) * 0.6s);
}

.looks .card.open i {
  animation: fadein 0.3s forwards;
  animation-delay: calc(0.8s + var(--k) * 0.6s);
}

@keyframes flip {
  0% {
    transform: rotateY(0);
  }
  50% {
    transform: rotateY(90deg);
    background: var(--sunken);
  }
  51% {
    background: var(--surface);
    border: 1px solid var(--brand);
    color: var(--ink);
  }
  100% {
    transform: rotateY(0);
    background: var(--surface);
    border: 1px solid var(--brand);
    color: var(--ink);
  }
}

.looks .card.crit {
  animation-name: flip, critGlow;
  animation-duration: 0.7s, 1.2s;
  animation-delay: 0.9s, 1.6s;
  animation-fill-mode: both, both;
}

@keyframes critGlow {
  to {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(228, 146, 58, 0.18);
    background: var(--surface);
    color: var(--ink);
    border-style: solid;
  }
}

.looks .card em {
  position: absolute;
  top: -10px;
  inset-inline-end: 10px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  background: var(--amber);
  color: #1b1206;
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0;
  animation: pop 0.4s var(--ease) 1.8s forwards;
}

.looks small {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--mono);
  color: var(--amber-ink);
  opacity: 0;
  animation: fadein 0.4s 2.1s forwards;
}

/* 3 · Decision: the pointer goes to B, B is chosen, the rationale is typed */
.pick {
  position: relative;
  display: grid;
  gap: 9px;
  width: 340px;
}

.pick .opt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.3;
}

.pick .opt b {
  flex: none;
  font-family: var(--mono);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sunken);
}

.pick .opt.on {
  animation: chosen 0.3s var(--ease) 1.25s forwards;
}

.pick .opt.on b {
  animation: chosenLetter 0.3s var(--ease) 1.25s forwards;
}

@keyframes chosen {
  to {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
    background: var(--brand-soft);
  }
}

@keyframes chosenLetter {
  to {
    background: var(--brand);
    color: #fff;
  }
}

.pick .cursor {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(10, 70, 65, 0.25);
  border: 2px solid var(--brand);
  inset-inline-start: 70%;
  top: 150%;
  animation: point 1.3s var(--ease) 0.1s forwards;
}

@keyframes point {
  70% {
    top: 66px;
    inset-inline-start: 74%;
    transform: scale(1);
  }
  85% {
    top: 66px;
    inset-inline-start: 74%;
    transform: scale(0.75);
  }
  100% {
    top: 66px;
    inset-inline-start: 74%;
    transform: scale(1);
    opacity: 0;
  }
}

.why {
  min-height: 44px;
  font-size: 14px;
  color: var(--ink-2);
  border-inline-start: 3px solid var(--amber);
  padding-inline-start: 10px;
  font-style: italic;
  line-height: 1.45;
}

.why .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ink-2);
  vertical-align: -0.15em;
  margin-inline-start: 2px;
  animation: blink 0.9s steps(1) infinite;
}

/* 4 · Simulation: scenario lines fan out, the three spreads build up, the counter runs to 10.000 */
.sim {
  position: relative;
  width: 360px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.fan {
  position: relative;
  height: 170px;
}

.fan i {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--brand), rgba(10, 70, 65, 0.05));
  transform-origin: 0 50%;
  transform: rotate(calc((var(--k) - 13.5) * 1.35deg)) scaleX(0);
  opacity: 0.6;
  animation: fanOut 0.9s var(--ease) forwards;
  animation-delay: calc(var(--k) * 35ms);
}

[dir='rtl'] .fan i {
  transform-origin: 100% 50%;
  background: linear-gradient(270deg, var(--brand), rgba(10, 70, 65, 0.05));
}

@keyframes fanOut {
  to {
    transform: rotate(calc((var(--k) - 13.5) * 1.35deg)) scaleX(1);
  }
}

.hists {
  display: grid;
  gap: 10px;
}

.hist {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 46px;
  padding-inline-start: 22px;
  position: relative;
}

.hist b {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.hist i {
  width: 9px;
  border-radius: 2px 2px 0 0;
  background: var(--ink-3);
  height: 0;
  animation: bar 0.8s var(--ease) forwards;
  animation-delay: calc(0.7s + var(--j) * 70ms);
}

.hist.h-1 i {
  background: var(--brand);
}

.hist.h-2 i {
  background: var(--amber);
}

@keyframes bar {
  to {
    height: calc(var(--h) * 2.6px);
  }
}

.sim-count {
  grid-column: 1 / -1;
  justify-self: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 26px;
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}

/* 5 · Score: the ring fills to the score, the lessons arrive */
.result {
  display: grid;
  gap: 12px;
  width: 340px;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--brand);
  color: #fff;
  padding: 20px 22px;
  border-radius: 18px;
}

.result-card b {
  display: block;
}

.result-card span {
  font-size: 14px;
  color: var(--on-brand-muted);
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.chips li {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 0;
  animation: pop 0.45s var(--ease) forwards;
  animation-delay: calc(1.5s + var(--k) * 0.35s);
}

.chip-trap {
  border-color: var(--amber-soft) !important;
  background: var(--amber-soft) !important;
  color: var(--amber-ink);
}

.chip-signal {
  color: var(--ink-2);
}

@keyframes grow {
  to {
    transform: scaleX(1);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}

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

.format-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

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

.format-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

.format-wide {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.format-wide p {
  color: var(--on-brand);
}

.format-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.ficon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.format-wide .ficon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--mint);
}

.ficon svg,
.check svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fmeta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.format-wide .fmeta {
  background: rgba(246, 194, 126, 0.16);
  color: var(--amber-bright);
}

/* Season */
.season {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  grid-template-areas: 'tabs chart' 'points points';
  gap: 28px;
}

.company-tabs {
  grid-area: tabs;
  display: grid;
  gap: 10px;
  align-content: start;
}

.company-tabs button {
  text-align: start;
  font: inherit;
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.25s;
}

.company-tabs button span {
  font-size: 14px;
  color: var(--ink-2);
}

.company-tabs button[aria-selected='true'] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.company-tabs button[aria-selected='true'] span {
  color: var(--on-brand-muted);
}

.season-chart {
  grid-area: chart;
  margin: 0;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 28px 20px;
}

.season-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.grid {
  stroke: var(--border);
}

.line-idle {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.line-you {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.season-chart.in .line-you {
  animation: draw 2.4s var(--ease) forwards;
}

@keyframes fadein {
  to {
    opacity: 1;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.flag {
  opacity: 0;
}

.season-chart.in .flag {
  animation: fadein 0.5s var(--ease) forwards;
  animation-delay: calc(1.2s + var(--k) * 0.6s);
}

.flag circle {
  fill: var(--amber);
  stroke: var(--bg);
  stroke-width: 3;
}

.flag text {
  font-size: 12px;
  font-weight: 600;
  fill: var(--amber-ink);
  font-family: var(--sans);
}

.season-chart figcaption {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
  align-items: center;
}

.season-chart figcaption .tiny {
  margin-inline-start: auto;
}

.season-points {
  grid-area: points;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.season-points li {
  border-top: 2px solid var(--brand);
  padding-top: 14px;
  display: grid;
  gap: 4px;
}

.season-points span {
  color: var(--ink-2);
  font-size: 15px;
}

/* Card */
.card-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.pcard {
  background: linear-gradient(160deg, var(--brand-mid), var(--brand-deep));
  color: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 60px -30px rgba(7, 54, 50, 0.7);
  position: relative;
  overflow: hidden;
}

.pcard::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 28px;
  width: 28px;
  height: 3px;
  background: var(--amber);
  border-radius: 0 0 2px 2px;
}

.pcard-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pcard-head strong {
  display: block;
  font-size: 18px;
}

.pcard-head span {
  font-size: 13px;
  color: var(--on-brand-muted);
}

.pavatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--mint) !important;
}

.pscore {
  margin-inline-start: auto;
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 600;
  color: #fff !important;
}

.pscore small {
  font-size: 14px;
  color: var(--on-brand-muted);
}

.pcard-role {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
  color: var(--on-brand);
}

.role-badge {
  font-family: var(--mono);
  font-weight: 600;
  background: var(--amber);
  color: #1b1206;
  border-radius: 8px;
  padding: 4px 8px;
}

.pskills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pskills li {
  display: grid;
  grid-template-columns: 1fr 1.2fr 28px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--on-brand);
}

.pbar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.pbar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mint);
  border-radius: 3px;
  transition: width 1.4s var(--ease) 0.3s;
}

.pcard.in .pbar i {
  width: var(--w);
}

.pskills b {
  font-family: var(--mono);
  text-align: end;
}

.pcard-foot {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--on-brand-muted);
}

.dots {
  display: flex;
  gap: 4px;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.checks li {
  display: flex;
  gap: 16px;
}

.checks strong {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}

.checks span {
  color: var(--ink-2);
}

.check {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}

/* League */
.league-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ladder li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink-raised);
  border: 1px solid #2e333b;
  transition: background 0.5s, border-color 0.5s, transform 0.5s var(--ease);
}

.ladder li span {
  font-weight: 600;
}

.ladder li small {
  color: var(--on-ink-muted);
  font-size: 13px;
}

.ladder li.on {
  background: var(--brand);
  border-color: var(--mint);
  transform: translateX(8px);
}

[dir='rtl'] .ladder li.on {
  transform: translateX(-8px);
}

.ladder li[data-rung='5'] {
  border-color: rgba(228, 146, 58, 0.5);
}

.ladder li[data-rung='5'] span {
  color: var(--amber-bright);
}

.group {
  background: var(--ink-raised);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid #2e333b;
}

.group-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--on-ink-muted);
  padding: 0 8px 10px;
  border-bottom: 1px solid #2e333b;
}

.group-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid #2e333b;
  align-items: center;
}

.group-row .rank,
.group-row .pts {
  font-family: var(--mono);
  font-weight: 600;
}

.group-row.me {
  background: rgba(168, 228, 213, 0.08);
  border-radius: 10px;
  border-bottom-color: transparent;
}

.group-row.me .who {
  color: var(--mint);
  font-weight: 600;
}

.group .tiny {
  color: var(--on-ink-muted);
  margin: 12px 8px 0;
}

/* Organisations */
.orgs-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.org-cards {
  display: grid;
  gap: 14px;
}

.org-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  background: var(--sunken);
}

.org-card p {
  margin: 0;
  color: var(--ink-2);
}

.projector {
  background: var(--brand);
  color: #fff;
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
  box-shadow: 0 30px 60px -30px rgba(7, 54, 50, 0.7);
  position: relative;
  overflow: hidden;
}

.proj-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-brand-muted);
}

.proj-code {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: 0.18em;
  direction: ltr;
}

.proj-code .cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--amber);
  vertical-align: -0.1em;
  animation: blink 1s steps(1) infinite;
}

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

.proj-hint {
  font-size: 14px;
  color: var(--on-brand);
}

.proj-count {
  margin-top: 8px;
  font-size: 15px;
}

.proj-count span {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 22px;
}

.proj-avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  max-width: 320px;
}

.proj-avatars i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-mid);
  border: 2px solid var(--mint);
  animation: pop 0.4s var(--ease) both;
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.principles article {
  border-top: 1px solid var(--border-strong);
  padding-top: 18px;
}

.pnum {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber-ink);
}

.principles h3 {
  margin-top: 10px;
}

.principles p {
  color: var(--ink-2);
  margin: 0;
  font-size: 16px;
}

/* FAQ */
.faq {
  max-width: 860px;
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--sunken);
  padding: 0 22px;
}

.faq details[open] {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 5px;
}

.plus::before,
.plus::after {
  content: '';
  position: absolute;
  inset: 7px 0 auto;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
  transition: transform 0.25s;
}

.plus::after {
  transform: rotate(90deg);
}

details[open] .plus::after {
  transform: rotate(0);
}

.faq p {
  margin: 0 0 20px;
  color: var(--ink-2);
}

/* Closing */
.closing {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(168, 228, 213, 0.14), transparent 60%),
    var(--brand-deep);
  color: #fff;
  padding: 112px 0;
  text-align: center;
}

.closing-inner {
  display: grid;
  justify-items: center;
}

.closing .symbol {
  width: 46px;
  height: 50px;
  color: var(--on-brand);
  margin-bottom: 22px;
}

.closing .lead {
  margin-inline: auto;
}

/* Footer */
.site-footer {
  background: var(--ink-panel);
  color: var(--on-ink);
  padding: 40px 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
}

.footer-brand p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--on-ink-muted);
}

.footer-brand .brand {
  color: #fff;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-inline-start: auto;
}

.site-footer nav a {
  text-decoration: none;
  font-size: 15px;
}

.site-footer nav a:hover {
  color: #fff;
}

.footer-bottom {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid #2e333b;
}

.site-footer .tiny {
  color: var(--on-ink-muted);
  margin: 0;
}

.footer-vendor {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.footer-vendor:hover {
  opacity: 0.85;
}

.footer-vendor-label {
  font-size: 12px;
  color: var(--on-ink-muted);
}

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

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

@media (max-width: 1080px) {
  .nav {
    display: none;
  }
  .hero-grid,
  .luck-grid,
  .card-grid,
  .league-grid,
  .orgs-grid {
    grid-template-columns: 1fr;
  }
  .season {
    grid-template-columns: 1fr;
    grid-template-areas: 'tabs' 'chart' 'points';
  }
  .company-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .principles,
  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .header-actions .btn-primary {
    display: none;
  }
  .section {
    padding: 80px 0;
  }
  .hero {
    padding-top: 112px;
  }
  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  .phone {
    width: 300px;
  }
  .step-tabs {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }
  .season-points,
  .principles,
  .format-grid {
    grid-template-columns: 1fr;
  }
  .step-panel {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-in,
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .line-you {
    stroke-dashoffset: 0;
  }
  .flag {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doc > i {
    transform: none;
  }
  .doc-tiles span,
  .bubble,
  .looks .card i,
  .looks .card em,
  .looks small,
  .chips li {
    opacity: 1;
  }
  .looks .card.open {
    background: var(--surface);
    border: 1px solid var(--brand);
    color: var(--ink);
  }
  .looks .card.crit {
    border-color: var(--amber);
  }
  .hist i {
    height: calc(var(--h) * 2.6px);
  }
  .fan i {
    transform: rotate(calc((var(--k) - 13.5) * 1.35deg)) scaleX(1);
  }
  .pick .cursor {
    display: none;
  }
  .pick .opt.on {
    border-color: var(--brand);
    background: var(--brand-soft);
  }
}
