:root {
  color-scheme: light;
  --bg: #f8f8f6;
  --bg-soft: #efeee9;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --text: #171714;
  --muted: rgba(23, 23, 20, .66);
  --soft-text: rgba(23, 23, 20, .5);
  --line: rgba(23, 23, 20, .12);
  --line-strong: rgba(23, 23, 20, .2);
  --gold: #9d761c;
  --gold-soft: rgba(157, 118, 28, .12);
  --green: #247a4b;
  --green-soft: rgba(36, 122, 75, .12);
  --rose: #b55a4d;
  --rose-soft: rgba(181, 90, 77, .12);
  --shadow: 0 30px 90px rgba(39, 34, 20, .12);
  --shadow-soft: 0 18px 50px rgba(39, 34, 20, .08);
  --header-bg: rgba(255, 255, 255, .78);
  --focus: 0 0 0 4px rgba(157, 118, 28, .22);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.theme-dark {
  color-scheme: dark;
  --bg: #080909;
  --bg-soft: #111211;
  --panel: #141513;
  --panel-strong: #1b1c19;
  --text: #f7f6f1;
  --muted: rgba(247, 246, 241, .66);
  --soft-text: rgba(247, 246, 241, .48);
  --line: rgba(247, 246, 241, .13);
  --line-strong: rgba(247, 246, 241, .24);
  --gold: #e0bd68;
  --gold-soft: rgba(224, 189, 104, .14);
  --green: #60c38e;
  --green-soft: rgba(96, 195, 142, .14);
  --rose: #ee8a80;
  --rose-soft: rgba(238, 138, 128, .14);
  --shadow: 0 30px 90px rgba(0, 0, 0, .38);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, .28);
  --header-bg: rgba(18, 19, 17, .76);
  --focus: 0 0 0 4px rgba(224, 189, 104, .24);
}

body.theme-light {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,248,246,.92) 52%, var(--bg) 100%),
    linear-gradient(120deg, rgba(157,118,28,.06), transparent 38%, rgba(36,122,75,.05));
}

body.theme-dark::before {
  background:
    linear-gradient(180deg, rgba(8,9,9,.82), rgba(8,9,9,.94) 58%, var(--bg) 100%),
    linear-gradient(120deg, rgba(224,189,104,.08), transparent 38%, rgba(96,195,142,.06));
}

#stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  width: min(1160px, calc(100vw - 28px));
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--header-bg);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 16px;
  font-weight: 850;
}

.brand img {
  border-radius: var(--radius-xs);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 220px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--header-bg);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav a {
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: color .2s ease, background .2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .55);
}

body.theme-dark .nav a:hover {
  background: rgba(255, 255, 255, .06);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  font-weight: 820;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.header-cta,
.btn-primary {
  border-color: transparent;
  background: var(--text);
  color: var(--bg);
}

.btn-ghost {
  background: rgba(255, 255, 255, .55);
}

body.theme-dark .btn-ghost {
  background: rgba(255, 255, 255, .06);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.hero {
  width: min(1200px, calc(100vw - 32px));
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: 32px 44px;
  margin: 0 auto;
  padding: 118px 0 70px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: 64px;
  line-height: .96;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 9px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  color: var(--muted);
  line-height: 1.58;
  text-wrap: pretty;
}

.hero-text {
  max-width: 590px;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.42;
}

.hero-tagline {
  max-width: 560px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 850;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

/* ── Hero feature strip: a genuine numbered sequence (01-05), styled as
   ledger tabs (top accent rule) rather than another identical bordered card. */
.hero-feature-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 0;
}

.hero-feature-cards article {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 16px;
  /* Inset shadow, not a border: respects the radius curvature cleanly
     (a literal border-top clips oddly against a rounded corner). */
  box-shadow: var(--shadow-soft), inset 0 3px 0 0 var(--gold);
}

.hero-feature-cards article:nth-child(2) { box-shadow: var(--shadow-soft), inset 0 3px 0 0 var(--green); }
.hero-feature-cards article:nth-child(3) { box-shadow: var(--shadow-soft), inset 0 3px 0 0 var(--rose); }
.hero-feature-cards article:nth-child(4) { box-shadow: var(--shadow-soft), inset 0 3px 0 0 var(--gold); }
.hero-feature-cards article:nth-child(5) { box-shadow: var(--shadow-soft), inset 0 3px 0 0 var(--green); }

.hero-feature-cards span {
  display: block;
  width: max-content;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.hero-feature-cards article:nth-child(2) span { background: var(--green-soft); color: var(--green); }
.hero-feature-cards article:nth-child(3) span { background: var(--rose-soft); color: var(--rose); }
.hero-feature-cards article:nth-child(5) span { background: var(--green-soft); color: var(--green); }

.hero-feature-cards strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.16;
}

.hero-feature-cards p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.product-stage {
  position: relative;
  min-height: 560px;
}

.desktop-frame {
  position: absolute;
  top: 38px;
  right: 0;
  width: 680px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.window-bar,
.sync-console__bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--soft-text);
  font-size: 13px;
}

.window-bar strong,
.sync-console__bar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.window-bar::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.sync-console__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sync-console__bar span:nth-child(1) { background: var(--green); }
.sync-console__bar span:nth-child(2) { background: var(--gold); }
.sync-console__bar span:nth-child(3) { background: var(--rose); }

.desktop-layout {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  min-height: 410px;
}

.desktop-layout aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 20px 14px;
}

.desktop-layout aside b {
  margin-bottom: 12px;
  font-size: 15px;
}

.side-item {
  display: block;
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.side-item.active {
  background: var(--panel);
  color: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

.dashboard {
  padding: 22px;
}

.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.dash-head small {
  display: block;
  margin-bottom: 8px;
  color: var(--soft-text);
  font-weight: 760;
}

.dash-head h2 {
  margin: 0;
  font-size: 34px;
}

.dash-head em {
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  color: var(--green);
  padding: 8px 12px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.metrics article,
.event-stack article,
.plan-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.ai-points article {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.metrics article {
  min-height: 94px;
  padding: 14px;
}

.metrics span,
.event-stack span,
.portal-modules span,
.sync-console__stats span {
  display: block;
  color: var(--soft-text);
  font-size: 12px;
  font-weight: 800;
}

.metrics strong {
  display: block;
  margin-top: 12px;
  font-size: 23px;
}

.event-stack {
  display: grid;
  gap: 10px;
}

.event-stack article {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
}

.event-stack strong {
  margin-top: 4px;
  font-size: 16px;
}

.phone-frame {
  position: absolute;
  right: -18px;
  bottom: 8px;
  width: 205px;
  min-height: 342px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  padding: 18px;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 70px;
  height: 6px;
  margin: 0 auto 28px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
}

.phone-frame p {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 840;
}

.phone-frame h3 {
  font-size: 28px;
}

.phone-frame article {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 10px;
  background: var(--bg);
}

.phone-frame article span {
  display: block;
  margin-bottom: 5px;
  color: var(--soft-text);
  font-size: 12px;
  font-weight: 800;
}

.phone-frame article b {
  font-size: 14px;
}

.section {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 700px;
  font-size: 19px;
}

/* ── Ledger index: the "Funciones" section. A rule-divided reading list,
   not another bordered-card grid — columns on wide viewports for an
   editorial table-of-contents feel. */
.ledger-index {
  column-count: 1;
  column-gap: 48px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  break-inside: avoid;
}

.ledger-index > .ledger-row:last-child {
  border-bottom: 1px solid var(--line);
}

.ledger-row .feature-mark {
  margin-bottom: 0;
}

.ledger-row h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.ledger-row p {
  font-size: 15px;
  margin: 0;
  max-width: 60ch;
}

.role-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

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

.role-tab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--muted);
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.role-tab.active {
  border-color: rgba(157, 118, 28, .34);
  background: var(--text);
  color: var(--bg);
}

.role-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .62fr);
  gap: 22px;
  align-items: end;
  min-height: 290px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.role-panel.active {
  display: grid;
}

.role-panel > div > span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-panel h3 {
  max-width: 680px;
  font-size: 34px;
}

.role-panel p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 17px;
}

.role-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-panel li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.role-panel li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.feature-mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

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

.feature-mark--gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.feature-mark--green {
  background: var(--green-soft);
  color: var(--green);
}

.feature-mark--rose {
  background: var(--rose-soft);
  color: var(--rose);
}

.client-sites {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.client-copy h2,
.ai-section h2,
.dj-copy h2,
.platforms h2,
.plans h2,
.contact h2 {
  max-width: 820px;
}

.client-copy p {
  max-width: 660px;
  font-size: 19px;
}

/* ── Portal preview: one decisive showcase replacing the eight-card grid. */
.portal-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portal-hero {
  min-height: 278px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.78)),
    linear-gradient(135deg, var(--gold-soft), rgba(255,255,255,.2) 44%, var(--green-soft));
}

body.theme-dark .portal-hero {
  background:
    linear-gradient(180deg, rgba(20,21,19,.18), rgba(20,21,19,.9)),
    linear-gradient(135deg, rgba(224,189,104,.15), rgba(20,21,19,.18) 44%, rgba(96,195,142,.14));
}

.portal-hero small {
  color: var(--gold);
  font-weight: 900;
}

.portal-hero h3 {
  margin: 8px 0;
  font-size: 42px;
}

.portal-hero p {
  max-width: 430px;
  margin-bottom: 0;
  font-size: 17px;
}

.portal-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.portal-modules article {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 13px;
}

.portal-modules strong {
  margin-top: 5px;
}

.dj-sync {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 36px;
  align-items: center;
}

/* ── AI showcase: a real chat transcript beside a plain capability list —
   deliberately not a third repeat of the bordered-card-grid recipe. */
.ai-showcase {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

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

.ai-chat-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
}

.ai-chat-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.ai-bubble {
  width: min(86%, 420px);
  margin: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  line-height: 1.45;
}

.ai-bubble--user {
  margin-left: auto;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
}

.ai-bubble--assistant {
  background: var(--bg);
}

.ai-bubble--assistant strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

.ai-bubble--assistant p {
  margin: 0;
  font-size: 15px;
}

.ai-points {
  display: grid;
  gap: 10px;
  align-content: start;
}

.ai-points article {
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ai-points strong {
  color: var(--text);
  flex-shrink: 0;
}

.ai-points p {
  margin: 0;
  font-size: 14px;
}

.dj-copy p {
  max-width: 620px;
  font-size: 18px;
}

.sync-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.sync-tags span {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--muted);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 850;
}

/* ── Sync console: the brand's signature pattern — per-track status rows
   with a dot legend, not another card grid. */
.sync-console {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sync-console__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.sync-console__stats article {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 14px;
}

.sync-console__stats strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.sync-rows {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.sync-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 12px;
}

.sync-dot {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
}

.sync-dot--new {
  background: var(--green);
}

.sync-dot--changed {
  background: var(--gold);
}

.sync-dot--missing {
  background: var(--rose);
}

.sync-row strong,
.sync-row small {
  display: block;
}

.sync-row small {
  margin-top: 3px;
  color: var(--soft-text);
}

.sync-row em {
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.sync-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px;
}

.sync-plan span {
  color: var(--soft-text);
  font-size: 12px;
  font-weight: 800;
}

.platforms {
  text-align: center;
}

.platforms .section-heading {
  margin-left: auto;
  margin-right: auto;
}

.platforms .section-heading p {
  margin-left: auto;
  margin-right: auto;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.store-badge span {
  position: absolute;
  top: -10px;
  right: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--gold);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
}

.store-badge img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

.plans,
.faq {
  padding-top: 74px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-grid article {
  min-height: 230px;
  padding: 24px;
}

.plan-grid article.featured {
  border-color: rgba(157, 118, 28, .42);
  background: linear-gradient(180deg, var(--panel), var(--gold-soft));
}

body.theme-dark .plan-grid article.featured {
  background: linear-gradient(180deg, var(--panel), rgba(224, 189, 104, .1));
}

.plan-grid strong {
  color: var(--gold);
  font-size: 14px;
}

/* ── FAQ: a native accordion reading list instead of a fourth card grid. */
.faq-list {
  display: grid;
  gap: 0;
  max-width: 760px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 18px;
  font-weight: 400;
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 65ch;
  margin: 14px 0 0;
  font-size: 16px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(380px, 1fr);
  gap: 38px;
  align-items: start;
}

.contact > div p {
  max-width: 580px;
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  padding: 12px 13px;
  resize: vertical;
}

.contact-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.form-help,
.form-error {
  color: var(--soft-text);
  font-size: 12px;
}

.form-error {
  margin: 0;
  color: var(--rose);
  font-weight: 820;
}

footer {
  width: min(1160px, calc(100vw - 32px));
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 34px 0 96px;
  border-top: 1px solid var(--line);
  color: var(--soft-text);
  font-size: 14px;
}

footer span:first-child {
  color: var(--text);
  font-weight: 900;
}

.theme-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--text);
  padding: 0 16px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.theme-fab__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .header-cta:hover,
  .btn:hover {
    transform: none;
  }

  .faq-item summary::after {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .site-header {
    width: calc(100vw - 24px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 118px;
  }

  .hero-copy {
    max-width: 860px;
  }

  .product-stage {
    min-height: 620px;
  }

  .desktop-frame {
    left: 0;
    right: auto;
    width: min(780px, 100%);
  }

  .phone-frame {
    right: 26px;
  }

  .client-sites,
  .ai-showcase,
  .dj-sync,
  .contact {
    grid-template-columns: 1fr;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-feature-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ledger-index {
    column-count: 1;
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
    min-height: 56px;
  }

  .nav {
    left: 12px;
    right: 12px;
    min-width: 0;
  }

  .hero {
    width: min(100% - 24px, 680px);
    min-height: auto;
    padding: 106px 0 48px;
  }

  h1 {
    font-size: 52px;
    line-height: 1;
  }

  h2 {
    font-size: 42px;
    line-height: 1.04;
  }

  .hero-text {
    font-size: 19px;
  }

  .plan-grid,
  .metrics,
  .sync-console__stats {
    grid-template-columns: 1fr;
  }

  .hero-feature-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-feature-cards article {
    min-height: 126px;
    padding: 12px;
  }

  .hero-feature-cards span {
    margin-bottom: 12px;
  }

  .hero-feature-cards strong {
    font-size: 14px;
  }

  .hero-feature-cards p {
    font-size: 12px;
    line-height: 1.3;
  }

  .product-stage {
    min-height: auto;
  }

  .desktop-frame,
  .phone-frame {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .desktop-frame {
    margin-bottom: 12px;
  }

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

  .desktop-layout aside {
    display: none;
  }

  .dashboard {
    padding: 16px;
  }

  .dash-head {
    flex-direction: column;
  }

  .dash-head h2 {
    font-size: 30px;
  }

  .phone-frame {
    min-height: auto;
  }

  .section {
    width: min(100% - 24px, 680px);
    padding: 62px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .plan-grid article {
    min-height: auto;
  }

  .role-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 20px;
  }

  .role-panel h3 {
    font-size: 26px;
  }

  .role-panel ul {
    grid-template-columns: 1fr;
  }

  .client-sites {
    gap: 24px;
  }

  .portal-modules {
    grid-template-columns: 1fr;
  }

  .ai-showcase,
  .dj-sync {
    gap: 22px;
  }

  .store-badges {
    align-items: stretch;
  }

  .store-badge {
    width: 100%;
  }

  .contact-form {
    padding: 16px;
  }

  footer {
    width: min(100% - 24px, 680px);
    flex-direction: column;
    padding-bottom: 104px;
  }

  .theme-fab {
    right: 12px;
    bottom: 12px;
    min-height: 48px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: calc(100vw - 16px);
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .nav a {
    padding: 7px 10px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 20px;
  }

  .hero {
    width: calc(100vw - 18px);
  }

  .section {
    width: calc(100vw - 18px);
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .window-bar strong,
  .sync-console__bar strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sync-row {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .sync-row em {
    grid-column: 2;
    width: max-content;
  }

  .theme-fab span[data-theme-label] {
    display: none;
  }

  .theme-fab {
    width: 52px;
    justify-content: center;
    padding: 0;
  }
}
