/*  AI Rez — marketing site design system
 *  Dark, premium, hospitality-tech.
 *  Brand tokens are lifted from the product itself:
 *    ink  #131C26, gold #D9A441 / #B8862B, cream #FAF9F6
 *  Everything here is hand-authored; Tailwind supplies layout utilities only.
 */

/* ------------------------------------------------------------------ tokens */
:root {
  --ink-950: #070B10;
  --ink-900: #0B1017;
  --ink-850: #0E141A;
  --ink-800: #131C26;
  --ink-700: #1A2431;
  --ink-600: #24303E;

  --gold: #D9A441;
  --gold-soft: #E9C57E;
  --gold-deep: #B8862B;
  --gold-glow: rgba(217, 164, 65, 0.28);

  --cream: #FAF9F6;
  --text: #E8E6E1;
  --muted: #929BA6;
  --faint: #6B7480;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-gold: rgba(217, 164, 65, 0.22);

  --surface: rgba(255, 255, 255, 0.032);
  --surface-2: rgba(255, 255, 255, 0.055);

  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --arabic: 'IBM Plex Sans Arabic', 'Noto Kufi Arabic', var(--sans);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-gold: 0 20px 60px -30px var(--gold-glow);

  --maxw: 1200px;
}

/* -------------------------------------------------------------------- base */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[dir='rtl'] body { font-family: var(--arabic); letter-spacing: 0; }
html[dir='rtl'] .eyebrow { letter-spacing: 0.06em; }

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink-900); }

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

/* --------------------------------------------------------------- structure */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; }

.section { padding-block: clamp(72px, 9vw, 130px); position: relative; }
.section-tight { padding-block: clamp(52px, 6vw, 84px); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}

/* ------------------------------------------------------------------- type */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-size: clamp(2.65rem, 6.4vw, 4.75rem);
  color: var(--cream);
  margin: 0;
}
.display-sm { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }

html[dir='rtl'] .display { font-family: var(--arabic); font-weight: 600; line-height: 1.24; }

h1, h2, h3, h4 { color: var(--cream); letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); font-weight: 600; line-height: 1.16; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.02rem; font-weight: 600; }

p { margin: 0; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--muted); line-height: 1.68; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.9rem; line-height: 1.6; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.gold { color: var(--gold); }
.serif-accent { font-family: var(--serif); font-style: italic; color: var(--gold-soft); }
html[dir='rtl'] .serif-accent { font-family: var(--arabic); font-style: normal; }

.balance { text-wrap: balance; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1), background 0.22s, border-color 0.22s, box-shadow 0.22s, color 0.22s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }
html[dir='rtl'] .btn svg.arrow { transform: scaleX(-1); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1A1206;
  box-shadow: 0 12px 34px -16px var(--gold-glow);
}
.btn-primary:hover { box-shadow: 0 20px 44px -18px var(--gold-glow); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--cream);
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--line-gold); background: var(--surface-2); }

.btn-quiet { padding-inline: 0; color: var(--gold); }
.btn-quiet:hover { color: var(--gold-soft); transform: none; }
.btn-sm { padding: 9px 17px; font-size: 0.86rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s; }
.link-arrow:hover svg { transform: translateX(4px); }
html[dir='rtl'] .link-arrow svg { transform: scaleX(-1); }
html[dir='rtl'] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* ------------------------------------------------------------------- cards */
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--line-gold), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card-hover:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-hover:hover::after { opacity: 1; }

.card-flat { background: var(--surface); }
.card-solid { background: linear-gradient(165deg, var(--ink-800), var(--ink-850)); }

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(217, 164, 65, 0.18), rgba(217, 164, 65, 0.04));
  border: 1px solid var(--line-gold);
  color: var(--gold);
  margin-bottom: 18px;
  flex: none;
}
.icon-tile svg { width: 21px; height: 21px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: rgba(217, 164, 65, 0.08);
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.badge-muted { border-color: var(--line); background: var(--surface); color: var(--muted); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill-live { position: relative; }
.pill-live .badge-dot { background: #5FD08A; }
.pill-live .badge-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #5FD08A;
  opacity: 0;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { opacity: 0.7; transform: scale(0.6); } 80%, 100% { opacity: 0; transform: scale(1.6); } }

/* ------------------------------------------------------------- backgrounds */
.mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.mesh::before,
.mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.mesh::before {
  width: 620px;
  height: 620px;
  top: -220px;
  inset-inline-start: -140px;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.30), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}
.mesh::after {
  width: 540px;
  height: 540px;
  bottom: -240px;
  inset-inline-end: -120px;
  background: radial-gradient(circle, rgba(63, 104, 158, 0.34), transparent 68%);
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 50px, 0) scale(1.14); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 40%, #000 20%, transparent 78%);
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

.above { position: relative; z-index: 2; }

.band-dark { background: linear-gradient(180deg, var(--ink-950), var(--ink-900)); }
.band-lift { background: linear-gradient(180deg, var(--ink-900), var(--ink-850) 50%, var(--ink-900)); }

/* --------------------------------------------------------------- navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.is-stuck {
  background: rgba(11, 16, 23, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 14px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; color: var(--cream); letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.brand-name { font-size: 1.02rem; }

.nav-links { display: none; align-items: center; gap: 4px; margin-inline-start: 22px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--cream); background: var(--surface); }
.nav-link[aria-current='page'] { color: var(--gold); }

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s;
}
.lang-toggle:hover { color: var(--gold); border-color: var(--line-gold); }
.lang-toggle svg { width: 15px; height: 15px; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--cream);
  cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 19px; height: 19px; }

.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(11, 16, 23, 0.97);
  backdrop-filter: blur(18px);
  padding: 18px 0 26px;
}
.nav-panel.is-open { display: block; }
@media (min-width: 1024px) { .nav-panel { display: none !important; } }
.nav-panel a {
  display: block;
  padding: 12px 4px;
  font-size: 1.02rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.nav-panel a:last-of-type { border-bottom: 0; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); background: var(--ink-950); padding-block: 64px 40px; }
.footer h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 16px;
}
.footer a { display: block; padding: 5px 0; color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------ charts */
.chart-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.chart-caption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* bar chart — a service curve */
.bars { display: flex; align-items: flex-end; gap: clamp(6px, 1.4vw, 14px); height: 190px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  height: 0;
  transition: height 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  min-height: 4px;
}
.bar-col.is-peak .bar { box-shadow: 0 0 24px -4px var(--gold-glow); }
.bar-col.is-muted .bar { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)); }
.bar-label { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.06em; }
.is-revealed .bar { height: var(--h); }

/* donut / gauge */
.donut { transform: rotate(-90deg); }
.donut circle { fill: none; stroke-linecap: round; }
.donut .track { stroke: rgba(255, 255, 255, 0.08); }
.donut .value { stroke: var(--gold); stroke-dasharray: var(--dash) 999; stroke-dashoffset: var(--dash); transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.is-revealed .donut .value { stroke-dashoffset: 0; }

/* line / area path draw */
.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1); }
.is-revealed .draw { stroke-dashoffset: 0; }
.fade-in-area { opacity: 0; transition: opacity 1.1s ease 0.5s; }
.is-revealed .fade-in-area { opacity: 1; }

/* horizontal meters */
.meter { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft)); transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.is-revealed .meter > span { width: var(--w); }
html[dir='rtl'] .meter > span { background: linear-gradient(270deg, var(--gold-deep), var(--gold-soft)); }

/* stat tile */
.stat { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.stat-num { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; color: var(--cream); letter-spacing: -0.02em; }
html[dir='rtl'] .stat-num { font-family: var(--arabic); font-weight: 700; }
.stat-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }

/* ------------------------------------------------------------------- steps */
.steps { display: grid; gap: 0; position: relative; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding-bottom: 34px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: '';
  position: absolute;
  inset-inline-start: 22px;
  top: 46px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-gold), transparent);
}
.step:last-child::before { display: none; }
.step-num {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  background: linear-gradient(150deg, rgba(217, 164, 65, 0.16), rgba(217, 164, 65, 0.03));
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.92rem; }
table.data th {
  text-align: start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { color: var(--cream); font-weight: 500; }
.tick { color: var(--gold); }
.cross { color: var(--faint); }

/* --------------------------------------------------------------- accordion */
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--cream);
  font-weight: 600;
  font-size: 1.04rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: '';
  margin-inline-start: auto;
  width: 11px;
  height: 11px;
  border-inline-end: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.28s;
  flex: none;
  margin-top: 6px;
}
.acc[open] summary::after { transform: rotate(-135deg); }
.acc-body { padding-bottom: 24px; color: var(--muted); max-width: 68ch; }

/* ------------------------------------------------------------------ quotes */
.pull {
  border-inline-start: 2px solid var(--gold);
  padding-inline-start: 22px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: var(--cream);
  letter-spacing: -0.015em;
}
html[dir='rtl'] .pull { font-family: var(--arabic); font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.75; }

/* code / terminal */
.term {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.85;
  background: var(--ink-950);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--muted);
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}
.term .c-gold { color: var(--gold); }
.term .c-dim { color: var(--faint); }

/* --------------------------------------------------------------- animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }
.reveal[data-delay='4'] { transition-delay: 0.32s; }
.reveal[data-delay='5'] { transition-delay: 0.4s; }

.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

.shimmer {
  background: linear-gradient(100deg, var(--cream) 20%, var(--gold-soft) 44%, var(--cream) 64%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 38s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
html[dir='rtl'] .marquee-track { animation-direction: reverse; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .bar { height: var(--h); }
  .meter > span { width: var(--w); }
}

/* ---------------------------------------------------------------- utilities */
.grid-2 { display: grid; gap: 22px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 22px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(34px, 5vw, 68px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; } }

.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 9px; }
.stack-lg > * + * { margin-top: 26px; }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--muted); }
.list-check li::before {
  content: '';
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  background: rgba(217, 164, 65, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9A441' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.cta-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-gold);
  background:
    radial-gradient(ellipse 80% 140% at 50% 0%, rgba(217, 164, 65, 0.16), transparent 70%),
    linear-gradient(165deg, var(--ink-800), var(--ink-850));
  padding: clamp(38px, 6vw, 68px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.anchor-offset { scroll-margin-top: 96px; }

/* -------------------------------------------------------------------- forms
 * Used by the walkthrough request form. Native controls throughout — the form
 * has to submit and read correctly with no JavaScript, so nothing here is a
 * styled <div> pretending to be an input. */
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }

.label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.label .req { color: var(--gold); font-size: 12px; letter-spacing: 0; }
.label .opt { color: var(--faint); letter-spacing: 0.08em; text-transform: none; font-size: 10px; }

.input,
.select,
.textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder,
.textarea::placeholder { color: var(--faint); }

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--line-strong); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--line-gold);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.14);
}
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.textarea { min-height: 132px; resize: vertical; }

/* native <select> keeps its own menu; only the arrow is ours */
.select {
  padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9A441' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
}
html[dir='rtl'] .select { background-position: left 15px center; }
.select option { background: var(--ink-850); color: var(--text); }

.field-hint { font-size: 0.82rem; color: var(--faint); line-height: 1.55; }

.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  padding: clamp(24px, 3.4vw, 38px);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-note { font-size: 0.82rem; color: var(--faint); line-height: 1.55; max-width: 46ch; }

/* an unstyled honeypot-shaped wrapper, kept out of sight and out of the tab order */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- article */
.article-body > * + * { margin-top: 22px; }
.article-body p { color: var(--muted); font-size: 1.03rem; line-height: 1.82; }
.article-body h2 {
  margin-top: 56px;
  font-size: clamp(1.38rem, 2.4vw, 1.85rem);
  line-height: 1.24;
}
.article-body h3 { margin-top: 36px; }
.article-body strong { color: var(--cream); font-weight: 600; }
.article-body em { color: var(--text); }
.article-body a { color: var(--gold); font-weight: 500; }
.article-body a:hover { color: var(--gold-soft); }
.article-body .pull { margin-block: 42px; }
.article-body .chart-frame,
.article-body .table-wrap { margin-block: 38px; }
.article-body ul.list-check { margin-block: 6px; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.post-meta > span + span::before {
  content: '·';
  color: var(--gold);
  margin-inline-end: 14px;
}

.post-card-title { display: block; margin-top: 14px; }
.post-card-title:hover { color: var(--gold-soft); }
