/* ============================================================
   Mahjong Ready — marketing site design system
   Porcelain product system: precise, bright, low-contrast.
   ============================================================ */

:root {
  color-scheme: light;

  /* Surfaces */
  --page: #f7faff;
  --page-2: #eef4ff;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --sage: #eaf8f3;
  --sage-deep: #d9eee9;
  --felt: #101a2c;
  --felt-deep: #0b1220;

  /* Ink */
  --ink: #111827;
  --ink-soft: #4f5b6f;
  --ink-faint: #7a879a;

  /* Lines */
  --line: #d9e2f2;
  --line-strong: #b9c7dc;

  /* Brand */
  --accent: #0050d8;
  --accent-bright: #1769ff;
  --accent-dark: #003aa6;
  --gold: #f59e0b;
  --gold-soft: #ffe4a8;
  --bam: #00906f;
  --dot: #2563eb;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 5px 16px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 2px 6px rgba(17, 24, 39, 0.05), 0 16px 38px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 8px 20px rgba(17, 24, 39, 0.07), 0 34px 90px rgba(17, 24, 39, 0.12);

  /* Shape */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Type */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(217, 226, 242, 0.44) 1px, transparent 1px),
    linear-gradient(180deg, rgba(217, 226, 242, 0.28) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, var(--page) 42%, #f2f7ff 100%);
  background-size: 58px 58px, 58px 58px, auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection { background: rgba(0, 80, 216, 0.16); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus { top: 0; }

/* ============================================================
   Header / navigation
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 250, 255, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(217, 226, 242, 0.95);
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.05);
}

.nav {
  width: min(1180px, calc(100% - 48px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-name { font-family: var(--sans); font-weight: 750; }

.brand-mark {
  width: 34px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  box-shadow: 0 2px 0 #c7d2e5, 0 4px 10px rgba(17, 24, 39, 0.08);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  transition: transform 0.35s var(--ease-spring);
}

.brand:hover .brand-mark { transform: translateY(-3px) rotate(-4deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links > a:not(.button) {
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links > a:not(.button):hover {
  color: var(--ink);
  background: rgba(238, 244, 255, 0.92);
}

.nav-links > a[aria-current] {
  color: var(--accent);
  background: rgba(0, 80, 216, 0.07);
}

.nav-links .button { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  place-items: center;
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

.nav-toggle[aria-expanded="true"] .bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::before { transform: rotate(-90deg) translateX(-6px); }
.nav-toggle[aria-expanded="true"] .bars::after { opacity: 0; }

/* ============================================================
   Buttons
   ============================================================ */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.005em;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 2px 6px rgba(0, 58, 166, 0.20), 0 8px 20px rgba(0, 58, 166, 0.16);
  transition: transform 0.18s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s, filter 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 4px 10px rgba(0, 58, 166, 0.23), 0 14px 30px rgba(0, 58, 166, 0.20);
}

.button:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.06s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 6px rgba(0, 58, 166, 0.18);
}

.button .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-spring);
}

.button:hover .arrow { transform: translateX(4px); }

.button.secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
  filter: none;
  border-color: var(--ink-faint);
  box-shadow: var(--shadow-md);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.ghost:hover { filter: none; background: rgba(255, 255, 255, 0.6); }

.button.on-dark {
  background: #fff;
  color: var(--accent-dark);
  border-color: #fff;
  box-shadow: 0 2px 8px rgba(10, 16, 12, 0.25), 0 12px 28px rgba(10, 16, 12, 0.28);
}

.button.on-dark:hover { filter: none; }

.button[disabled],
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

.button.large { min-height: 56px; padding: 0 32px; font-size: 16px; }

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 80, 216, 0.3);
  transition: border-color 0.2s;
}

.text-link:hover { border-bottom-color: var(--accent); }

/* ============================================================
   Layout & type
   ============================================================ */

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0;
  scroll-margin-top: 92px;
}

.section.tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 7px 14px;
  border: 1px solid rgba(0, 80, 216, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 80, 216, 0.12);
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

h1 {
  max-width: 740px;
  margin-bottom: 24px;
  font-size: clamp(46px, 6.5vw, 88px);
}

h1 em, h2 em {
  font-style: normal;
  color: var(--accent);
}

h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.6vw, 60px);
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.lede {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
  text-wrap: pretty;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 48px;
}

.section-head .lede { max-width: 420px; margin-bottom: 8px; }

/* ============================================================
   Scroll reveal
   ============================================================ */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.84fr);
  gap: 56px;
  align-items: center;
  scroll-margin-top: 92px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 14px;
  box-shadow: 0 1px 2px rgba(31, 36, 28, 0.04);
}

.pill svg { width: 14px; height: 14px; color: var(--bam); flex: none; }

/* ============================================================
   Mahjong tile component
   ============================================================ */

.mj-tile {
  --tile-w: 50px;
  position: relative;
  width: var(--tile-w);
  height: calc(var(--tile-w) * 1.38);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  border: 1px solid #d6cfb8;
  border-radius: 7px;
  background: linear-gradient(180deg, #fffef8 0%, #faf6e9 62%, #f1ebd8 100%);
  box-shadow:
    0 3px 0 #cfc7ab,
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 7px 16px rgba(31, 36, 28, 0.13);
  font-family: var(--serif);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

button.mj-tile { cursor: pointer; }

.tile-num {
  font-size: calc(var(--tile-w) * 0.46);
  font-weight: 620;
  line-height: 1;
  color: var(--ink);
}

.tile-suit {
  display: grid;
  place-items: center;
  height: calc(var(--tile-w) * 0.42);
  font-size: calc(var(--tile-w) * 0.36);
  line-height: 1;
}

.tile-suit svg { width: calc(var(--tile-w) * 0.36); height: calc(var(--tile-w) * 0.36); }

.suit-crak .tile-suit, .suit-crak .tile-num { color: var(--accent); }
.suit-crak .tile-num { color: var(--ink); }
.suit-bam .tile-suit { color: var(--bam); }
.suit-dot .tile-suit { color: var(--dot); }
.suit-wind .tile-num { color: var(--ink); }
.suit-wind .tile-suit { color: var(--ink-soft); }

.mj-tile.is-mini {
  --tile-w: 34px;
  border-radius: 7px;
  box-shadow: 0 2px 0 #cfc7ab, 0 4px 9px rgba(31, 36, 28, 0.12);
}

/* ============================================================
   Hero demo — interactive Charleston pass
   ============================================================ */

.demo-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, var(--page-2));
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.demo-bar .demo-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.demo-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bam);
  box-shadow: 0 0 0 3px rgba(0, 144, 111, 0.16);
  animation: demo-pulse 2.4s ease-in-out infinite;
}

@keyframes demo-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 144, 111, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(0, 144, 111, 0.06); }
}

.demo-hint-btn {
  border: 0;
  background: none;
  padding: 4px 2px;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  border-bottom: 1.5px dashed rgba(0, 80, 216, 0.4);
}

.demo-hint-btn:hover { border-bottom-style: solid; }

.demo-body { padding: 20px 20px 22px; }

.demo-prompt {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

.demo-prompt b { color: var(--ink); }

.demo-rack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  row-gap: 14px;
  max-width: 330px;
  margin: 0 auto;
  padding: 18px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(217, 226, 242, 0.56) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbff, #eef4ff);
  background-size: 42px 100%, auto;
}

.demo-rack .mj-tile {
  transition:
    transform 0.28s var(--ease-spring),
    box-shadow 0.28s var(--ease-out),
    border-color 0.2s,
    opacity 0.35s var(--ease-out);
}

.demo-rack .mj-tile:hover { transform: translateY(-4px); }

.demo-rack .mj-tile[aria-pressed="true"] {
  transform: translateY(-9px);
  border-color: var(--accent);
  box-shadow:
    0 3px 0 #a6bce6,
    0 0 0 2.5px rgba(0, 80, 216, 0.28),
    0 14px 26px rgba(17, 24, 39, 0.16);
}

.demo-rack .mj-tile[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>') center / 11px no-repeat;
  box-shadow: 0 2px 6px rgba(124, 36, 36, 0.4);
}

.demo-rack .mj-tile.is-hinted {
  border-color: var(--gold);
  box-shadow:
    0 3px 0 #cfc7ab,
    0 0 0 2.5px rgba(245, 158, 11, 0.36),
    0 10px 20px rgba(245, 158, 11, 0.18);
}

.demo-rack .mj-tile.is-passed {
  opacity: 0;
  transform: translateY(-26px) scale(0.84);
  pointer-events: none;
}

.demo-table {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.demo-tray {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tray-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tray-slots { display: flex; gap: 6px; }

.tray-slot {
  width: 36px;
  height: 49px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 254, 250, 0.5);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background-color 0.2s;
}

.tray-slot.is-filled {
  border-style: solid;
  border-color: var(--line);
  background: transparent;
}

.tray-slot .mj-tile { animation: tray-drop 0.32s var(--ease-spring); }

.tray-slot.slot-good .mj-tile { border-color: var(--bam); box-shadow: 0 2px 0 #a9bfa2, 0 0 0 2px rgba(63, 113, 80, 0.35), 0 4px 9px rgba(31, 36, 28, 0.12); }
.tray-slot.slot-bad .mj-tile { border-color: var(--gold); box-shadow: 0 2px 0 #cfc0a0, 0 0 0 2px rgba(176, 141, 62, 0.45), 0 4px 9px rgba(31, 36, 28, 0.12); }

@keyframes tray-drop {
  from { transform: translateY(-14px) scale(1.08); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.demo-actions { display: flex; gap: 10px; }

.demo-actions .button { min-height: 44px; padding: 0 20px; font-size: 14px; }

.demo-coach {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.demo-coach.is-hidden { display: none; }

.demo-coach.grade-good { border-color: rgba(0, 144, 111, 0.38); background: #f0fbf8; }
.demo-coach.grade-mixed { border-color: rgba(245, 158, 11, 0.38); background: #fff8e8; }

.coach-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  flex: none;
}

.demo-coach b { color: var(--ink); }

.demo-score {
  display: inline-block;
  margin: 0 0 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.grade-good .demo-score { background: rgba(0, 144, 111, 0.12); color: #006b54; }
.grade-mixed .demo-score { background: rgba(245, 158, 11, 0.15); color: #855a02; }

.demo-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 12.5px;
}

.demo-foot svg { width: 14px; height: 14px; flex: none; }

/* Floating decorative tiles behind hero demo */
.hero-board { position: relative; }

.float-tile {
  position: absolute;
  z-index: -1;
  opacity: 0.85;
  animation: float-drift 7s ease-in-out infinite;
}

.float-tile.ft-1 { top: -26px; right: -18px; transform: rotate(9deg); animation-delay: -2s; }
.float-tile.ft-2 { bottom: -22px; left: -24px; transform: rotate(-8deg); animation-delay: -4.5s; }

@keyframes float-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

/* ============================================================
   Marquee proof strip
   ============================================================ */

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  padding: 18px 0;
  scroll-margin-top: 92px;
}

.marquee {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee-scroll 36s linear infinite;
}

.proof-strip:hover .marquee { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 550;
}

.marquee-group .sep {
  color: var(--accent);
  font-size: 11px;
}

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

/* ============================================================
   How it works — steps
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  position: relative;
  min-height: 340px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 0 16px;
  border: 1px solid rgba(0, 80, 216, 0.22);
  border-radius: 6px;
  background: rgba(0, 80, 216, 0.06);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 620;
}

.step-card p { color: var(--ink-soft); font-size: 15px; }

.mock-chat { display: grid; gap: 9px; }

.bubble {
  max-width: 94%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px 10px 10px 4px;
  background: var(--panel-soft);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.bubble.right {
  margin-left: auto;
  border-radius: 10px 10px 4px 10px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tile-row {
  display: flex;
  gap: 7px;
  align-items: flex-end;
}

.tile-row .mj-tile { --tile-w: 42px; }

.tile-row .mj-tile.is-lifted {
  transform: translateY(-7px);
  border-color: var(--accent);
  box-shadow: 0 3px 0 #a6bce6, 0 0 0 2px rgba(0, 80, 216, 0.28), 0 10px 18px rgba(17, 24, 39, 0.13);
}

/* ============================================================
   Metrics band + panelist proof
   ============================================================ */

.metrics-band {
  position: relative;
  background:
    linear-gradient(90deg, rgba(217, 226, 242, 0.58) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #edf4ff);
  background-size: 54px 100%, auto;
  color: var(--ink);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.metrics-band .section { padding: 96px 0; }

.metrics-band h2, .metrics-band .lede { color: var(--ink); }
.metrics-band .lede { color: var(--ink-soft); }

.metrics-band .eyebrow {
  border-color: rgba(0, 80, 216, 0.18);
  background: rgba(255, 255, 255, 0.80);
  color: var(--accent);
}

.metrics-band .eyebrow::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(0, 80, 216, 0.12); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.metric {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.metric:hover {
  background: #fff;
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.metric b {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.metric span { color: var(--ink-soft); font-size: 15px; }

.panelist-proof { padding-top: 92px; }

.proof-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1.25fr);
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}

.proof-head h2 { margin-bottom: 0; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.proof-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.90)),
    var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease-out), border-color 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out);
}

.proof-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.proof-card span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.proof-card h3 {
  max-width: 230px;
  font-size: 20px;
}

.proof-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ============================================================
   Practice system — tabs
   ============================================================ */

.feature-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}

.feature-tabs {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 94px;
}

.feature-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.feature-tab svg { width: 19px; height: 19px; flex: none; color: var(--ink-faint); transition: color 0.2s; }

.feature-tab:hover {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  transform: translateX(3px);
}

.feature-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--panel);
  color: var(--ink);
  font-weight: 650;
  box-shadow: var(--shadow-sm), -3px 0 0 0 var(--accent);
}

.feature-tab[aria-selected="true"] svg { color: var(--accent); }

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

.feature-panel {
  animation: panel-in 0.45s var(--ease-out);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.feature-panel .panel-lede {
  margin: 2px 0 18px;
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 560px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 24px;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.feature-card .card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page-2);
  color: var(--accent);
}

.feature-card .card-icon svg { width: 20px; height: 20px; }

.feature-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 0; }

/* ============================================================
   Screenshots carousel
   ============================================================ */

.carousel-wrap { position: relative; }

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(230px, 24vw, 290px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 26px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar { display: none; }

.shot {
  scroll-snap-align: start;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
  font: inherit;
}

.shot-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 9px;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.shot:hover .shot-frame {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.shot-frame img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--page);
}

.shot-caption { padding: 14px 6px 0; }

.shot-caption b {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.shot-caption span { color: var(--ink-soft); font-size: 13.5px; }

.carousel-nav {
  position: absolute;
  top: -76px;
  right: 0;
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, opacity 0.2s;
}

.carousel-btn svg { width: 18px; height: 18px; }

.carousel-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.carousel-btn:active { transform: scale(0.94); }

.carousel-btn[disabled] { opacity: 0.35; cursor: default; transform: none; box-shadow: none; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.carousel-dots .dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 0.3s var(--ease-out), background-color 0.3s;
}

.carousel-dots .dot.is-active {
  width: 22px;
  background: var(--accent);
}

/* Lightbox */
.lightbox {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background: transparent;
  max-width: min(420px, calc(100vw - 40px));
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  margin: 14px auto 0;
  text-align: center;
  color: #f4f3e9;
  font-size: 15px;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s var(--ease-spring);
}

.lightbox-close:hover { transform: scale(1.1) rotate(90deg); }

/* ============================================================
   Trust section
   ============================================================ */

.trust-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: stretch;
}

.legal-box {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(0, 80, 216, 0.12) 3px, transparent 3px),
    linear-gradient(180deg, #ffffff, var(--panel-soft));
  box-shadow: var(--shadow-sm);
}

.legal-box p { color: var(--ink-soft); }

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

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
  font-size: 15px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>') center / 11px no-repeat;
}

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  position: relative;
  background:
    linear-gradient(90deg, rgba(217, 226, 242, 0.50) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #edf4ff);
  background-size: 48px 100%, auto;
  color: var(--ink);
  overflow: hidden;
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.cta-band .section {
  padding: 88px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}

.cta-band h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 54px);
}

.cta-band p { margin: 0; color: var(--ink-soft); font-size: 17px; max-width: 480px; }

.cta-tiles {
  position: absolute;
  right: 4%;
  bottom: -34px;
  display: flex;
  gap: 10px;
  opacity: 0.16;
  pointer-events: none;
}

.cta-tiles .mj-tile { --tile-w: 74px; transform: rotate(-7deg); }
.cta-tiles .mj-tile:nth-child(2) { transform: rotate(4deg) translateY(-14px); }
.cta-tiles .mj-tile:nth-child(3) { transform: rotate(12deg); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: #0b1220;
  color: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 28px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.6fr);
  gap: 32px;
}

.footer-inner a {
  display: block;
  width: fit-content;
  margin: 9px 0;
  color: rgba(244, 243, 233, 0.68);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s, transform 0.2s var(--ease-out);
}

.footer-inner a:hover { color: var(--gold-soft); transform: translateX(2px); }

.footer-inner p { color: rgba(244, 243, 233, 0.62); font-size: 14.5px; max-width: 300px; }

.footer-title {
  margin-bottom: 12px;
  color: #f4f3e9;
  font-weight: 700;
  font-size: 15px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: #f4f3e9;
}

.footer-brand .brand-mark { box-shadow: none; border-color: rgba(244, 243, 233, 0.25); }

.footer-bottom {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(244, 243, 233, 0.12);
  color: rgba(244, 243, 233, 0.45);
  font-size: 13px;
}

/* ============================================================
   Doc pages (privacy, support, app store)
   ============================================================ */

.doc-page {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 104px;
}

.doc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 52px);
}

.doc-card h1 { font-size: clamp(38px, 5.4vw, 62px); }

.doc-card h2 {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.doc-card p, .doc-card li { color: var(--ink-soft); font-size: 16.5px; }

.doc-card li { margin-bottom: 6px; }

.doc-meta {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.detail-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}

.detail-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.detail-card b { display: block; margin-bottom: 6px; }
.detail-card p { margin-bottom: 0; }

.metadata-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.metadata-table th, .metadata-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15.5px;
}

.metadata-table tr:last-child th,
.metadata-table tr:last-child td { border-bottom: 0; }

.metadata-table th {
  width: 32%;
  background: var(--sage);
  color: var(--ink);
  font-weight: 650;
}

.metadata-table td { color: var(--ink-soft); }

/* FAQ accordion */
.faq { margin-top: 26px; display: grid; gap: 12px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq details[open] {
  border-color: var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

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

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

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 17px;
  font-weight: 500;
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: rgba(155, 47, 47, 0.08);
}

.faq details > p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 52px; }
  .hero > div:first-child { text-align: left; }
  .hero-board { max-width: 560px; }

  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }

  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 0; }

  .feature-layout { grid-template-columns: 1fr; }

  .feature-tabs {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .feature-tabs::-webkit-scrollbar { display: none; }

  .feature-tab { white-space: nowrap; }
  .feature-tab:hover { transform: none; }

  .trust-section { grid-template-columns: 1fr; }

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

  .carousel-nav { display: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }

  .nav { flex-wrap: wrap; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px 0 16px;
  }

  .nav-links.is-open { display: flex; animation: panel-in 0.3s var(--ease-out); }

  .nav-links > a:not(.button) { padding: 13px 14px; border-radius: 12px; font-size: 16px; }

  .nav-links .button { margin: 10px 0 0; width: 100%; }
}

@media (max-width: 680px) {
  .section, .hero, .nav, .footer-inner, .footer-bottom, .doc-page {
    width: min(100% - 32px, 1180px);
  }

  .section { padding: 82px 0; }

  .section-head { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }

  .hero { padding-top: 40px; }

  .hero-actions .button { flex: 1 1 auto; }

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

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

  .footer-inner { grid-template-columns: 1fr; gap: 22px; }

  .footer-bottom { flex-direction: column; gap: 6px; }

  .cta-band .section { flex-direction: column; align-items: flex-start; }

  .cta-tiles { display: none; }

  .demo-rack .mj-tile { --tile-w: 44px; }

  .demo-table { flex-direction: column; align-items: stretch; gap: 14px; }

  .demo-tray { justify-content: center; }

  .demo-actions { justify-content: stretch; }
  .demo-actions .button { flex: 1; }

  .metadata-table th { width: 38%; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

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

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

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

  .marquee { animation: none; flex-wrap: wrap; width: auto; }

  .demo-rack .mj-tile[aria-pressed="true"] { transform: none; }

  .demo-rack .mj-tile.is-passed { opacity: 0.25; transform: none; }
}
