/* LuckLogic marketing site. One stylesheet, no build step. */

:root {
  --bg: #0b0d10;
  --bg-2: #0d1014;
  --surface: #12151a;
  --surface-2: #1a1f27;
  --border: #1f242c;
  --border-2: #2a313b;
  --text: #e6e8eb;
  --text-strong: #f3f4f6;
  --text-muted: #a4acb6;
  --text-dim: #8b939e;
  --text-faint: #6b7482;
  --accent: #f2b33d;
  --accent-dim: #3d3320;
  --accent-bg: #1a1710;
  --good: #3dd68c;
  --good-dim: #1e3a2c;
  --bad: #f0636b;
  --bad-dim: #3a2226;
  --code-key: #f2b33d;
  --code-str: #9ece6a;
  --code-fn: #7dcfff;
  --code-cmt: #5c6673;
  --code-txt: #c9d1d9;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

img,
svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

code,
pre,
kbd {
  font-family: var(--mono);
}

.mono {
  font-family: var(--mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 32px;
}
.container--wide {
  max-width: 1360px;
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  transition:
    filter 0.15s,
    border-color 0.15s;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  color: var(--bg);
}
.btn--ghost {
  border-color: var(--border-2);
  color: var(--text);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: #3a424d;
}
.btn--danger {
  min-height: 32px;
  font-size: 13px;
  border-color: var(--border-2);
  color: var(--bad);
}
.btn--danger:hover {
  border-color: var(--bad);
}
.btn--lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}
.btn--sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn--block {
  width: 100%;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover {
  color: var(--text);
}
.brand__tld {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  background: var(--accent-bg);
  border-radius: 4px;
  padding: 2px 6px;
}
.brand__section {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-faint);
  margin-left: 2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.nav__links a {
  font-size: 14px;
  color: var(--text-muted);
}
.nav__links a:hover,
.nav__links a[aria-current='page'] {
  color: var(--text-strong);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 760px) {
  .nav__links {
    order: 3;
    width: 100%;
    gap: 20px;
  }
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}
.h2 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
}
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
}
.muted {
  color: var(--text-muted);
}
.dim {
  color: var(--text-dim);
}

/* ---------- Cards and surfaces ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card--pad {
  padding: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.18);
  flex: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  padding: 2px 7px;
  border: 1px solid #262c35;
  color: var(--text-muted);
  background: var(--bg);
  white-space: nowrap;
}
.tag--good {
  color: var(--good);
  border-color: var(--good-dim);
}
.tag--accent {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.tag--bad {
  color: var(--bad);
  border-color: var(--bad-dim);
}
.tag .dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

/* ---------- Code blocks ---------- */

.code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.code__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
}
.code pre {
  margin: 0;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--code-txt);
  overflow-x: auto;
  tab-size: 2;
}
.k {
  color: var(--code-key);
}
.s {
  color: var(--code-str);
}
.f {
  color: var(--code-fn);
}
.c {
  color: var(--code-cmt);
}
.p {
  color: var(--code-txt);
}
code.inline {
  font-size: 0.9em;
  color: var(--text-strong);
  background: var(--surface-2);
  border: 1px solid #262c35;
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tab {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.tab:hover {
  color: var(--text);
}
.tab[aria-selected='true'] {
  border-color: var(--border-2);
  background: var(--surface-2);
  color: var(--text-strong);
}
[role='tabpanel'][hidden] {
  display: none;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th {
  text-align: left;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--code-txt);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
td code {
  font-size: 13px;
  color: var(--text-strong);
}

/* ---------- Forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--code-txt);
}
.input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--text-strong);
  font-family: var(--mono);
  font-size: 14px;
  outline: 0;
}
.input:focus {
  border-color: var(--accent);
}
select.input {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b939e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.input--sans {
  font-family: var(--sans);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer__grid {
  padding-block: 48px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer__about {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 260px;
}
.footer__cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col strong {
  font-size: 13px;
  font-weight: 600;
}
.footer__col a {
  font-size: 14px;
  color: var(--text-dim);
}
.footer__col a:hover {
  color: var(--text);
}
.footer__bar {
  border-top: 1px solid var(--border);
}
.footer__bar .container {
  padding-block: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--good);
}

/* ---------- Page layout ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.section {
  padding-block: 96px;
}
.section--tight {
  padding-block: 24px 96px;
}
.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
  margin-bottom: 40px;
}
@media (max-width: 640px) {
  .section {
    padding-block: 64px;
  }
}

/* ---------- Home: hero ---------- */

.hero {
  padding-block: 112px 72px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.hero .h1 {
  max-width: 900px;
}
.hero .lead {
  max-width: 740px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero__install {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.hero__install .k {
  color: var(--text-dim);
}
@media (max-width: 640px) {
  .hero {
    padding-block: 64px 48px;
  }
}

/* ---------- Home: code showcase ---------- */

.showcase {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}
.showcase__request {
  flex: 1 1 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.showcase__response {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.showcase__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.showcase__file {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}
.showcase pre {
  margin: 0;
  padding: 20px 22px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--code-txt);
  overflow-x: auto;
}
.showcase__note {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.showcase__note code {
  color: var(--text);
}

/* ---------- Home: feature grid ---------- */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Home: trust strip ---------- */

.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust .container {
  display: flex;
  flex-wrap: wrap;
}
.trust__item {
  flex: 1 1 280px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border);
}
.trust__item:first-child {
  padding-left: 0;
}
.trust__item:last-child {
  padding-right: 0;
  border-right: 0;
}
.trust__value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.trust__label {
  font-size: 14px;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .trust__item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-inline: 0;
  }
  .trust__item:last-child {
    border-bottom: 0;
  }
}

/* ---------- Home: steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.step {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
}
.step h3 {
  font-size: 17px;
}
.step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.step code {
  font-size: 12.5px;
  color: var(--code-txt);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}

/* ---------- CTA band ---------- */

.cta {
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}
.cta__text h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .cta {
    padding: 32px 24px;
  }
}

/* ---------- Pricing ---------- */

.pricing-hero {
  padding-block: 96px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.pricing-hero .h1 {
  max-width: 820px;
  font-size: clamp(36px, 4.4vw, 56px);
}
.pricing-hero .lead {
  max-width: 640px;
  font-size: 18px;
}
.tiers {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}
.tier {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tier--featured {
  border-color: var(--accent);
}
.tier__badge {
  position: absolute;
  top: -11px;
  left: 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border-radius: 4px;
  padding: 3px 8px;
}
.tier__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier__head h2 {
  font-size: 18px;
  font-weight: 600;
}
.tier__head span {
  font-size: 14px;
  color: var(--text-dim);
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tier__price strong {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}
.tier__price span {
  font-size: 14px;
  color: var(--text-dim);
}
.tier__volume {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.checks {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--code-txt);
}
.check svg {
  flex: none;
  margin-top: 3px;
  color: var(--good);
}
.included {
  padding: 28px 32px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.included strong {
  font-size: 15px;
  color: var(--text-strong);
}
.included__list {
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
}
.faq {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.faq__intro {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__list {
  flex: 2 1 520px;
}
.faq__item {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq__item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq__item dt {
  font-size: 16px;
  font-weight: 600;
}
.faq__item dd {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Docs ---------- */

.docs-search {
  flex: 1 1 280px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-faint);
}
.docs-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.docs-search kbd {
  font-size: 11px;
  border: 1px solid #262c35;
  border-radius: 4px;
  padding: 1px 5px;
}
.docs {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  flex: 1;
}
.docs__side {
  flex: 0 1 220px;
  padding: 40px 24px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid var(--border);
}
.docs__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs__group strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.docs__group a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  margin-left: -10px;
}
.docs__group a:hover {
  color: var(--text);
  background: var(--surface);
}
.docs__group a[aria-current='page'] {
  color: var(--text-strong);
  background: var(--surface-2);
}
.docs__main {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 760px;
  padding: 40px 0 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.docs__main p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--code-txt);
}
.docs__main h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  scroll-margin-top: 24px;
}
.docs__main h2 .num {
  font-family: var(--mono);
  color: var(--text-faint);
  font-weight: 500;
  font-size: 16px;
  margin-right: 10px;
}
.docs__main h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-strong);
}
.docs__main a.link {
  color: var(--accent);
  border-bottom: 1px solid #5c4a20;
}
.docs__title {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.docs__title h1 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}
.docs__title .lead {
  font-size: 18px;
}
.docs__crumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}
.docs__crumb span {
  color: #3a424d;
  margin-inline: 6px;
}
.docs__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.callout {
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  border-color: var(--accent-dim);
  background: #15130d;
}
.callout svg {
  flex: none;
  margin-top: 2px;
}
.callout p {
  font-size: 14px !important;
}
.docs__table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
}
.docs__table th,
.docs__table td {
  padding-inline: 12px;
}
.docs__table td {
  white-space: normal;
}
.docs__next {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.docs__next .grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.docs__next a {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.docs__next a strong {
  font-size: 15px;
}
.docs__next a span {
  font-size: 13px;
  color: var(--text-dim);
}
.docs__toc {
  flex: 0 1 200px;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.docs__toc strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.docs__toc a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
}
.docs__toc a:hover {
  color: var(--text);
}
.docs__toc hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 12px 0;
  width: 100%;
}
@media (max-width: 1100px) {
  .docs__toc {
    display: none;
  }
}
@media (max-width: 900px) {
  .docs__side {
    flex-basis: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 40px;
  }
  .docs__main {
    padding-top: 8px;
  }
}

/* ---------- App (dashboard) ---------- */

.app {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.app__side {
  flex: 0 1 240px;
  border-right: 1px solid var(--border);
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.app__side .brand {
  padding: 6px 10px;
  font-size: 16px;
}
.workspace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.workspace small {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
}
.app__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 6px;
}
.app__nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.app__nav a[aria-current='page'] {
  color: var(--text-strong);
  background: var(--surface-2);
}
.env {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.env__switch {
  display: flex;
  gap: 4px;
}
.env__switch button {
  flex: 1;
  min-height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.env__switch button[aria-pressed='true'] {
  border-color: var(--border-2);
  background: var(--surface-2);
  color: var(--text-strong);
}
.app__main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app__bar {
  min-height: 56px;
  border-bottom: 1px solid var(--border);
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.crumb {
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  align-items: center;
}
.crumb a {
  color: var(--text-dim);
}
.crumb span {
  color: #3a424d;
}
.crumb strong {
  color: var(--text);
  font-weight: 400;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid #262c35;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.app__content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.campaign-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.campaign-head h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.campaign-head__title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lbl {
  font-size: 13px;
  color: var(--text-dim);
}
.tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.tile {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tile__value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.panels {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}
.panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.panel--prizes {
  flex: 1 1 380px;
}
.panel--batch {
  flex: 1 1 420px;
}
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.panel__head h2 {
  font-size: 16px;
  font-weight: 600;
}
.panel__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.prizes {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prize {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prize__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
}
.prize__row strong {
  font-weight: 500;
}
.meter {
  height: 8px;
  border-radius: 4px;
  background: var(--accent-dim);
  overflow: hidden;
}
.meter--neutral {
  background: var(--surface-2);
}
.meter__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.2s;
}
.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.note strong {
  font-size: 14px;
  font-weight: 500;
  display: block;
}
.gauge {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gauge__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}
.gauge__band {
  font-family: var(--mono);
  font-weight: 500;
}
.gauge[data-band='strong'] .gauge__band,
.gauge[data-band='strong'] .meter__fill {
  color: var(--good);
  background-color: var(--good);
}
.gauge[data-band='adequate'] .gauge__band,
.gauge[data-band='adequate'] .meter__fill {
  color: var(--accent);
  background-color: var(--accent);
}
.gauge[data-band='weak'] .gauge__band,
.gauge[data-band='weak'] .meter__fill {
  color: var(--bad);
  background-color: var(--bad);
}
.gauge .gauge__band {
  background: none !important;
}
.panel__actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.list-card {
  overflow: hidden;
}
.list-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.list-card__head h2 {
  font-size: 16px;
  font-weight: 600;
}
.list-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.list-card__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.list-card__filters .input {
  min-height: 32px;
  width: auto;
  font-size: 13px;
}
.list-card td {
  white-space: nowrap;
  vertical-align: middle;
}
.list-card__foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.list-card__foot a {
  font-size: 13px;
  color: var(--accent);
}
@media (max-width: 900px) {
  .app__side {
    flex-basis: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .env {
    margin-top: 0;
  }
  .app__bar,
  .app__content {
    padding-inline: 16px;
  }
}

/* ---------- Additions for the revised content ---------- */

.hero__tagline {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-strong);
}
.split {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.split__text {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.split__text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}
.split__aside {
  flex: 1 1 420px;
  min-width: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.stack__row {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack__row + .stack__row {
  border-top: 1px solid var(--border);
}
.stack__row--ll {
  background: var(--bg-2);
}
.stack__label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stack__row--ll .stack__label {
  color: var(--accent);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--surface);
}
.chip--accent {
  border-color: var(--accent-dim);
  background: var(--accent-bg);
  color: var(--accent);
}
.stack__arrow {
  display: flex;
  justify-content: center;
  color: var(--text-faint);
  padding: 4px 0;
  background: var(--bg-2);
}
.feature--wide {
  grid-column: span 2;
}
@media (max-width: 640px) {
  .feature--wide {
    grid-column: span 1;
  }
}
.feature ul {
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.feature .lines {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-strong);
  font-weight: 500;
}
.steps--six {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.step ul {
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.step .soon {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.grid--small {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature--small {
  padding: 22px 24px;
  gap: 8px;
}
.feature--small h3 {
  font-size: 16px;
}
.feature--small p {
  font-size: 14px;
}
.owm-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px;
}
.owm-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--code-txt);
}
.owm-list svg {
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}
.moments {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.moments__track {
  position: relative;
  height: 56px;
  border-bottom: 1px solid var(--border-2);
}
.moments__tick {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 18px;
  background: var(--accent);
  border-radius: 1px;
}
.moments__tick--main {
  height: 40px;
  width: 3px;
  background: var(--text-strong);
}
.moments__tick--claimed {
  background: var(--text-faint);
}
.moments__legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
}
.moments__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.moments__legend i {
  width: 10px;
  height: 3px;
  border-radius: 1px;
  background: var(--accent);
}
.moments__axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
}
.link-arrow:hover {
  color: var(--text-strong);
}
.tree {
  padding: 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--code-txt);
}
.tree ul {
  list-style: none;
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid var(--border-2);
}
.tree > ul {
  padding-left: 0;
  border-left: 0;
}
.tree li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tree li > ul {
  flex-basis: 100%;
}
.tree strong {
  color: var(--text-strong);
  font-weight: 600;
}
.tree .tag {
  margin-left: auto;
}
.nos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.nos .card {
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.why {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.why p {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}
.why__lines {
  display: flex;
  gap: 16px 40px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.footer__cols .footer__col {
  min-width: 140px;
}

/* pricing additions */
.tiers--five {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.tier .checks {
  font-size: 14px;
}
.tier__note {
  font-size: 13px;
  color: var(--text-dim);
}
.tier__incl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.band {
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.band h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.band p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 6px;
}

/* docs additions */
.sdk-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lifecycle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 20px;
}
.lifecycle span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-strong);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--surface-2);
}
.lifecycle svg {
  color: var(--text-faint);
  flex: none;
}
.lifecycle .alt {
  border-style: dashed;
  color: var(--text-dim);
  background: transparent;
}
.outcomes {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.outcome {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.outcome code {
  font-size: 13px;
  color: var(--accent);
}
.outcome span {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.events code {
  font-size: 12.5px;
  color: var(--text-strong);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 5px 9px;
  background: var(--surface);
}
.docs__main ul.plain {
  padding-left: 20px;
  color: var(--code-txt);
  line-height: 1.7;
}

/* security page */
.sec-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.sec-item {
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  color: var(--text);
}
.sec-item svg {
  flex: none;
  color: var(--accent);
}

/* app additions */
.status-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  padding: 2px 7px;
  border: 1px solid #262c35;
  color: var(--text-muted);
  background: var(--bg);
}
.status-tag--pending {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.status-tag--approved {
  color: #7dcfff;
  border-color: #1f3a4d;
}
.status-tag--fulfilled {
  color: var(--good);
  border-color: var(--good-dim);
}
.status-tag--rejected,
.status-tag--revoked {
  color: var(--bad);
  border-color: var(--bad-dim);
}
.status-tag--expired {
  color: var(--text-faint);
}
.list-card td a {
  color: var(--text-strong);
  font-weight: 500;
}
.list-card td a:hover {
  color: var(--accent);
}
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

/* ---------- Layout fixes after first render ---------- */

.grid--features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .grid--features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid--features {
    grid-template-columns: 1fr;
  }
}

.tiers--four {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tier--wide {
  margin-top: 16px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}
.tier--wide .tier__head {
  flex: 1 1 260px;
}
.tier--wide .tier__price strong {
  font-size: 32px;
}
.tier--wide .checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 20px;
}
.tier--wide .tier__cta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

@media (min-width: 901px) {
  .app__side {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    align-self: flex-start;
  }
}

/* ==========================================================================
   Homepage v2: promotion infrastructure
   ========================================================================== */

.hero--v2 .h1 {
  max-width: 980px;
}
.hero__kicker {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.hero__entry {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.hero__entry .lbl {
  margin-right: 4px;
}

/* Who does what */
.ownership {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 760px) {
  .ownership {
    grid-template-columns: 1fr;
  }
}
.ownership__col {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ownership__col--ll {
  border-color: var(--accent-dim);
  background: linear-gradient(var(--surface), var(--surface)) padding-box;
}
.ownership__col ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}
.ownership__col li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--code-txt);
}
.ownership__col li svg {
  flex: none;
  margin-top: 4px;
  color: var(--text-dim);
}
.ownership__col--ll li svg {
  color: var(--accent);
}

/* Workflow */
.flow {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: flow;
}
.flow__step {
  position: relative;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-increment: flow;
}
.flow__step::before {
  content: counter(flow, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
}
.flow__step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
}
.flow__step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.flow__who {
  margin-top: auto;
  align-self: flex-start;
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  padding: 2px 7px;
  border: 1px solid #262c35;
  color: var(--text-muted);
  background: var(--bg);
  white-space: nowrap;
}
.who--ll {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.who--brand {
  color: #7dcfff;
  border-color: #1f3a4d;
}
.who--staff {
  color: var(--good);
  border-color: var(--good-dim);
}
.flow__legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: center;
}

/* Example campaign */
.campaign-card {
  overflow: hidden;
}
.campaign-card__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.campaign-card__head h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
}
.tiers-table td {
  white-space: normal;
  vertical-align: middle;
}
.tiers-table td:first-child {
  white-space: nowrap;
}
.tiers-table .qty {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.tiers-table th.num {
  text-align: right;
}
.prize-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prize-name strong {
  color: var(--text-strong);
  font-weight: 600;
}
.prize-name span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}
.level {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.level--low {
  color: var(--good);
}
.level--mid {
  color: var(--accent);
}
.level--high {
  color: var(--bad);
}

/* Prize windows timeline */
.windows {
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.windows__row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
@media (max-width: 640px) {
  .windows__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.windows__label {
  font-size: 14px;
  color: var(--code-txt);
}
.windows__label small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}
.windows__track {
  position: relative;
  height: 28px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / 12 - 1px),
    var(--border) calc(100% / 12 - 1px),
    var(--border) calc(100% / 12)
  );
  overflow: hidden;
}
.windows__bar {
  position: absolute;
  top: 5px;
  bottom: 5px;
  border-radius: 4px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
}
.windows__bar--dots {
  background-image: radial-gradient(circle, var(--accent) 1.5px, transparent 2px);
  background-size: 9px 100%;
  background-position: center;
}
.windows__bar--sparse {
  background-image: radial-gradient(circle, var(--accent) 2px, transparent 2.5px);
  background-size: 34px 100%;
  background-position: center;
}
.windows__bar--few {
  background-image: radial-gradient(circle, var(--accent) 2.5px, transparent 3px);
  background-size: 22% 100%;
  background-position: center;
}
.windows__bar--one {
  background: var(--accent);
}
.windows__axis {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
}
.windows__axis div {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}
@media (max-width: 640px) {
  .windows__axis {
    grid-template-columns: 1fr;
  }
  .windows__axis > span {
    display: none;
  }
}

/* Callout: codes are not winners */
.truth {
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-color: var(--accent-dim);
  background: #15130d;
  flex-wrap: wrap;
}
.truth__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.truth__text {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.truth__text h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.truth__text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--code-txt);
}

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.rule {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rule h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-strong);
}
.rule p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.entry-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.entry-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--code-txt);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.entry-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.entry-list code {
  font-size: 12px;
  color: var(--text-faint);
}
.soon-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px dashed var(--border-2);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* Integration options */
.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 960px) {
  .options {
    grid-template-columns: 1fr;
  }
}
.option {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.option__who {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.option h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.option p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.option pre {
  margin: 4px 0 0;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--code-txt);
  overflow-x: auto;
}

/* Result states preview */
.states {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}
.states__intro {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}
.states__intro h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.states__intro p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.states__intro .tabs {
  gap: 6px;
}
.states__intro .tab {
  border-color: var(--border-2);
}
.states__preview {
  flex: 1 1 380px;
  min-width: 0;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
}
.widget {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  background: #fbf7ef;
  color: #1d1a14;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  align-items: center;
}
.widget__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b2361e;
}
.widget__badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  background: #b2361e;
  color: #fff;
}
.widget__badge--muted {
  background: #e8e1d3;
  color: #6d6658;
}
.widget h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.widget p {
  font-size: 14px;
  line-height: 1.5;
  color: #4e483d;
}
.widget__btn {
  margin-top: 4px;
  min-height: 44px;
  width: 100%;
  border-radius: 10px;
  background: #1d1a14;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.widget__btn--ghost {
  background: transparent;
  color: #1d1a14;
  border: 1.5px solid #1d1a14;
}
.widget__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: #8a8373;
}

/* Brand portal */
.portal {
  overflow: hidden;
}
.portal__bar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-2);
}
.portal__bar strong {
  font-size: 14px;
  color: var(--text-strong);
}
.portal__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.portal__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.portal__tiles .tile {
  padding: 14px 16px;
  gap: 4px;
}
.portal__tiles .tile__value {
  font-size: 24px;
}
.portal table td,
.portal table th {
  padding: 10px 12px;
}
.portal td.n {
  font-family: var(--mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.portal th.n {
  text-align: right;
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 960px) {
  .roles {
    grid-template-columns: 1fr;
  }
}
.role {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.role h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 10px;
}
.role ul {
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Verify */
.verify {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
}
.verify__text {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.verify__text > p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}
.verify__steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: v;
}
.verify__steps li {
  counter-increment: v;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--code-txt);
  line-height: 1.55;
}
.verify__steps li::before {
  content: counter(v);
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-strong);
}
.verify__device {
  flex: 0 1 340px;
  margin: 0 auto;
}
.phone {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 36px;
  border: 1px solid var(--border-2);
  background: #07090b;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.phone__screen {
  border-radius: 26px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__top {
  padding: 16px 18px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.phone__top strong {
  font-size: 14px;
  color: var(--text-strong);
}
.phone__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone__valid {
  border-radius: 12px;
  padding: 16px;
  background: #0f2219;
  border: 1px solid var(--good-dim);
  display: flex;
  gap: 12px;
  align-items: center;
}
.phone__valid svg {
  flex: none;
  color: var(--good);
}
.phone__valid strong {
  display: block;
  color: var(--good);
  font-size: 15px;
}
.phone__valid span {
  font-size: 12px;
  color: var(--text-muted);
}
.phone__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.phone__row span:first-child {
  color: var(--text-dim);
}
.phone__row span:last-child {
  color: var(--text-strong);
  text-align: right;
}
.phone__check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--code-txt);
}
.phone__check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fulfil-log td {
  white-space: nowrap;
}

/* Security */
.sec-hero {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.sec-hero__text {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sec-hero__text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}
.sec-list {
  flex: 1.4 1 520px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.sec-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sec-card h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-strong);
  display: flex;
  gap: 10px;
  align-items: center;
}
.sec-card h3 svg {
  flex: none;
  color: var(--accent);
}
.sec-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Reconciliation */
.recon-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.recon-tiles .tile {
  padding: 16px 18px;
  gap: 4px;
}
.recon-tiles .tile__value {
  font-size: 24px;
}
.recon-table td.n,
.recon-table th.n {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.recon-table th.n {
  font-family: var(--sans);
}
.recon-table tfoot td {
  border-top: 1px solid var(--border-2);
  font-weight: 600;
  color: var(--text-strong);
}
.recon-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--good);
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.recon-check code {
  color: var(--text-strong);
  font-size: 13px;
}

/* Pricing teaser */
.price-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.price-mini {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-mini strong {
  font-size: 15px;
  color: var(--text-strong);
}
.price-mini b {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.price-mini span {
  font-size: 13px;
  color: var(--text-dim);
}
.price-mini--featured {
  border-color: var(--accent);
}

@media (max-width: 860px) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .flow {
    grid-template-columns: 1fr;
  }
}
.tiers-table {
  min-width: 760px;
}

/* ==========================================================================
   v3: focused homepage, product pages, dropdown navigation
   ========================================================================== */

.menu {
  position: relative;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.menu[open] summary,
.menu summary:hover,
.menu--current summary {
  color: var(--text-strong);
}
.menu__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: -16px;
  z-index: 20;
  min-width: 280px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__links .menu__panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 500;
}
.nav__links .menu__panel a:hover {
  background: var(--surface-2);
  color: var(--text-strong);
}
.menu__panel a span {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-dim);
}
.menu__panel a .soon {
  display: inline;
  margin-left: 6px;
}
@media (max-width: 760px) {
  .menu__panel {
    position: static;
    box-shadow: none;
    margin-top: 4px;
  }
}
.nav__talk {
  font-size: 14px;
  color: var(--text-muted);
  padding: 0 8px;
}

.soon {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px dashed var(--border-2);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
  vertical-align: middle;
  letter-spacing: 0;
  text-transform: none;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--good);
  border: 1px solid var(--good-dim);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}

.hero__talk {
  font-size: 14px;
  color: var(--text-dim);
}
.hero__talk a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-2);
}

/* What LuckLogic replaces */
.replace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .replace {
    grid-template-columns: 1fr;
  }
}
.replace__build {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.replace__build ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.replace__build li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--text-faint);
}
.replace__build li svg {
  flex: none;
  margin-top: 4px;
  color: var(--text-faint);
}
.steps4 {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  counter-reset: s4;
}
@media (max-width: 560px) {
  .steps4 {
    grid-template-columns: 1fr;
  }
}
.steps4 li {
  counter-increment: s4;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.steps4 li::before {
  content: counter(s4, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.steps4 h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
}
.steps4 p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* API-first hierarchy */
.tiered {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .tiered {
    grid-template-columns: 1fr;
  }
}
.tiered__core {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-color: var(--accent-dim);
}
.tiered__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tiered__side .option {
  flex: 1;
}
.option__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}
.benefit {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefit h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
}
.benefit p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Teasers */
.teasers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 860px) {
  .teasers {
    grid-template-columns: 1fr;
  }
}
.teaser {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.teaser h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.teaser p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.teaser .link-arrow {
  margin-top: auto;
}

/* Product page hero */
.page-hero {
  padding-block: 96px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.page-hero .h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  max-width: 880px;
}
.page-hero .lead {
  max-width: 720px;
}
.page-hero__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.preview-note {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.menu__panel a b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.tiered > *,
.replace > * {
  min-width: 0;
}
.tier__price {
  flex-wrap: wrap;
}
.tier__price--from strong {
  font-size: 32px;
}
