:root {
  color-scheme: dark;
  --black: #000000;
  --graphite: #181818;
  --graphite-2: #232323;
  --graphite-3: #303030;
  --white: #ffffff;
  --muted: #a6a6a6;
  --line: #333333;
  --soft-line: #242424;
  --card: #141414;
  --card-line: #222222;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --page-glow: rgba(189, 245, 83, 0.1);
  --nav-bg: rgba(12, 16, 16, 0.9);
  --control-bg: rgba(0, 0, 0, 0.24);
  --overlay-bg: rgba(0, 0, 0, 0.78);
}

/* Product-led landing, unified cabinet and team workspace */
.hero-audience,
.catalog-filters,
.tool-meta,
.demo-scenarios,
.account-command-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-audience { margin-top: 22px; }

.hero-audience span,
.tool-meta span,
.team-plan {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--site-panel, var(--card)) 86%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  padding: 7px 11px;
}

.catalog-filters { margin: 24px 0 18px; }

.catalog-filters button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--site-panel, var(--card));
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 16px;
}

.catalog-filters button:hover,
.catalog-filters button:focus-visible,
.catalog-filters button.active {
  border-color: var(--site-accent);
  color: var(--white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-accent) 18%, transparent);
}

.tool-card[hidden] { display: none; }
.tool-meta { margin: 18px 0 4px; gap: 6px; }
.tool-meta span { padding: 5px 8px; font-size: 10px; }
.demo-scenarios { margin-bottom: 14px; }

.demo-scenarios button {
  flex: 1 1 210px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--site-panel, var(--card));
  color: var(--white);
  cursor: pointer;
  padding: 14px 16px;
  text-align: left;
}

.demo-scenarios button strong,
.demo-scenarios button span { display: block; }
.demo-scenarios button span { color: var(--muted); font-size: 12px; margin-top: 4px; }

.demo-scenarios button.active {
  border-color: var(--site-accent);
  background: color-mix(in srgb, var(--site-accent) 12%, var(--site-panel, var(--card)));
  box-shadow: inset 0 0 0 1px var(--site-accent);
}

.demo-impact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.demo-impact div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--site-panel, var(--card)) 88%, transparent);
  padding: 12px;
}

.demo-impact span,
.demo-impact strong { display: block; }
.demo-impact span { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.demo-impact strong { font-size: clamp(18px, 2vw, 25px); }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card h3 small { color: var(--muted); font-size: 14px; }
.price-card .primary-btn, .price-card .ghost-btn { margin-top: auto; }

.price-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  border-radius: 999px;
  background: var(--site-accent);
  color: #07110e;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.price-features {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
}

.price-features li { color: var(--muted); padding-left: 22px; position: relative; }
.price-features li::before { color: var(--site-accent); content: "✓"; font-weight: 900; left: 0; position: absolute; }
.pricing-note { color: var(--muted); font-size: 12px; margin: 18px auto 0; max-width: 820px; text-align: center; }
.account-command-bar { align-items: center; margin-top: 22px; }
.account-command-bar > span { color: var(--muted); margin-right: auto; }

.cabinet-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 18px;
  max-width: 1380px;
  padding: 0 24px;
}

.cabinet-overview article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--site-panel, var(--card));
  padding: 18px;
}

.cabinet-overview span,
.cabinet-overview strong,
.cabinet-overview small { display: block; }
.cabinet-overview span { color: var(--site-accent); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.cabinet-overview strong { margin: 8px 0 5px; }
.cabinet-overview small { color: var(--muted); }
.team-heading { align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; }

.team-create-form,
.team-invite-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 22px;
}

.team-invite-form { grid-template-columns: minmax(220px, 1fr) 180px auto; }

.team-create-form label,
.team-invite-form label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 750;
  gap: 7px;
}

.team-create-form input,
.team-invite-form input,
.team-invite-form select,
.team-member-actions select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--graphite);
  color: var(--white);
  font: inherit;
  padding: 9px 12px;
}

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

.team-metrics article { border: 1px solid var(--line); border-radius: 14px; background: var(--graphite); padding: 14px; }
.team-metrics span, .team-metrics strong { display: block; }
.team-metrics span { color: var(--muted); font-size: 11px; }
.team-metrics strong { font-size: 22px; margin-top: 6px; }
.team-member-list, .team-invitation-list { display: grid; gap: 8px; margin-top: 18px; }

.team-member-row,
.team-invitation-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.team-member-row strong, .team-member-row small,
.team-invitation-row strong, .team-invitation-row small { display: block; }
.team-member-row small, .team-invitation-row small { color: var(--muted); margin-top: 3px; }
.team-member-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.team-member-actions label { align-items: center; color: var(--muted); display: flex; font-size: 12px; gap: 6px; }

:root[data-theme="light"] .demo-scenarios button.active,
:root[data-theme="light"] .price-card.featured {
  background: color-mix(in srgb, var(--site-accent) 9%, white);
}

@media (max-width: 980px) {
  .pricing-grid, .cabinet-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-invite-form { grid-template-columns: 1fr 160px; }
  .team-invite-form button { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .pricing-grid, .cabinet-overview, .demo-impact, .team-metrics,
  .team-create-form, .team-invite-form { grid-template-columns: 1fr; }
  .cabinet-overview { padding: 0 14px; }
  .account-command-bar > * { width: 100%; }
  .team-heading, .team-member-row, .team-invitation-row { align-items: stretch; grid-template-columns: 1fr; }
  .team-heading { display: grid; }
}

/* Shared light/dark theme control */
.theme-toggle {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 850;
}

.theme-toggle:hover {
  border-color: var(--site-accent);
  transform: translateY(-2px);
}

.theme-toggle-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--site-accent);
  color: #111815;
  font-size: 1rem;
}

:root[data-theme="light"] body {
  background: var(--black);
  color: var(--white);
}

:root[data-theme="light"] .preview-window,
:root[data-theme="light"] .report-shell,
:root[data-theme="light"] .tool-card,
:root[data-theme="light"] .value-card,
:root[data-theme="light"] .workflow-step,
:root[data-theme="light"] .pricing-card,
:root[data-theme="light"] .faq-item,
:root[data-theme="light"] .closing-cta,
:root[data-theme="light"] .product-card,
:root[data-theme="light"] .admin-panel,
:root[data-theme="light"] .admin-access-card,
:root[data-theme="light"] .admin-metrics article {
  background: var(--site-panel);
  border-color: var(--site-line);
  color: var(--white);
  box-shadow: 0 16px 44px rgba(18, 35, 27, 0.07);
}

:root[data-theme="light"] .model-canvas,
:root[data-theme="light"] .preview-panel,
:root[data-theme="light"] .report-table,
:root[data-theme="light"] .compact-tool-list span,
:root[data-theme="light"] .activation-flow li,
:root[data-theme="light"] .admin-table-scroll,
:root[data-theme="light"] .admin-audit-item {
  background: var(--site-panel-2);
  border-color: var(--site-line);
  color: var(--white);
}

:root[data-theme="light"] .auth-fields input {
  background: #ffffff;
  color: #111815;
}

:root[data-theme="light"] .task-dialog,
:root[data-theme="light"] .account-dialog {
  background: var(--graphite);
  color: var(--white);
}

:root[data-theme="light"] dialog::backdrop {
  background: var(--overlay-bg);
}

:root[data-theme="light"] .site-footer,
:root[data-theme="light"] .site-footer a,
:root[data-theme="light"] .legal-links a {
  color: var(--site-muted);
}

@media (max-width: 680px) {
  .theme-toggle {
    right: 10px;
    bottom: 10px;
    min-width: 44px;
    padding: 0 10px;
  }

  .theme-toggle-label {
    display: none;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --black: #f4f7f5;
  --graphite: #ffffff;
  --graphite-2: #edf2ef;
  --graphite-3: #dce5e0;
  --white: #111815;
  --muted: #5c6b64;
  --line: #c6d1cb;
  --soft-line: #dfe7e3;
  --card: #ffffff;
  --card-line: #d9e2dd;
  --shadow: 0 24px 70px rgba(18, 35, 27, 0.12);
  --page-glow: rgba(111, 174, 28, 0.14);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --control-bg: rgba(16, 31, 23, 0.06);
  --overlay-bg: rgba(21, 31, 26, 0.48);
}

* {
  box-sizing: border-box;
}

/* The hidden attribute must win over component display rules such as
   .ghost-btn { display: inline-flex }, otherwise toggled buttons (Profile,
   Log out, Verify email, Delete task) stay visible in the wrong state. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.platform-page {
  min-height: 100vh;
  padding: 18px;
}

.platform-nav,
.platform-hero,
.product-card {
  background: var(--graphite);
  border: 1px solid var(--soft-line);
  border-radius: 28px;
}

.platform-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  padding: 18px;
}

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

.platform-main {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.platform-hero {
  display: grid;
  align-content: end;
  min-height: 360px;
  padding: clamp(24px, 5vw, 52px);
}

.platform-hero.compact-hero {
  min-height: 260px;
}

.platform-hero h1 {
  max-width: 980px;
}

.platform-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.35;
}

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

.bim-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
}

.product-card {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 300px;
  padding: clamp(20px, 3vw, 32px);
}

.wide-card {
  grid-row: span 2;
}

.product-card h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: 0.95;
}

.product-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.spec-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--black);
  font-size: 0.82rem;
  font-weight: 800;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
  padding: 18px;
  gap: 18px;
}

.sidebar,
.hero-panel,
.metric-card,
.toolbar,
.task-card,
.task-dialog {
  background: var(--graphite);
  border: 1px solid var(--soft-line);
  border-radius: 28px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  min-height: calc(100vh - 36px);
}

.brand,
.section-title,
.hero-panel,
.dialog-head,
.dialog-actions,
.task-main,
.task-footer,
.account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  justify-content: flex-start;
  min-height: 54px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
}

.brand strong,
.brand span,
.account-card strong,
.account-card span {
  display: block;
}

.brand span,
.account-card span,
.eyebrow,
.goal-text,
.task-meta,
.task-notes,
.empty-state,
.form-note {
  color: var(--muted);
}

.account-card,
.panel {
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.account-card strong {
  margin-top: 6px;
  word-break: break-word;
}

.account-actions {
  margin-top: 12px;
}

.account-wide {
  width: 100%;
  margin-top: 8px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--white);
}

.nav-item.active {
  background: var(--white);
  color: var(--black);
}

.section-title h2 {
  margin: 0;
  font-size: 0.92rem;
}

.goal-text {
  margin: 10px 0 0;
  line-height: 1.45;
}

.segmented,
.data-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}

.segmented {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--black);
}

.segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.active {
  background: var(--white);
  color: var(--black);
}

.file-label input {
  display: none;
}

.main-area {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hero-panel {
  min-height: 190px;
  padding: clamp(22px, 4vw, 38px);
}

h1 {
  margin: 6px 0 0;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.9;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 260px 180px;
  gap: 18px;
}

.metric-card {
  min-height: 210px;
  padding: 24px;
}

.metric-card.large {
  display: grid;
  align-content: space-between;
}

.metric-card h2 {
  margin: 10px 0 10px;
  max-width: 760px;
  font-size: clamp(1.8rem, 4vw, 4.3rem);
  line-height: 0.95;
}

.metric-card p {
  margin: 0;
}

.metric-card.stat,
.metric-card.mini {
  display: grid;
  place-items: center;
  text-align: center;
}

.metric-card.mini strong {
  font-size: 5rem;
  line-height: 1;
}

.progress-ring {
  --progress: 0%;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--white) var(--progress), var(--graphite-3) 0);
}

.progress-ring::before {
  content: "";
  position: absolute;
}

.progress-ring span {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--graphite);
  font-size: 2rem;
  font-weight: 900;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.search-box,
select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--black);
  color: var(--white);
}

.search-box input {
  border: 0;
  min-height: 42px;
  padding: 0;
  outline: 0;
}

select,
input,
textarea {
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

::placeholder {
  color: #777777;
}

.task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--card-line);
  border-radius: 24px;
  background: var(--card);
}

.settings-card h2 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1;
}

.settings-card .segmented,
.settings-card .data-actions {
  align-self: end;
}

.task-card {
  min-height: 160px;
  padding: 18px;
  border-radius: 24px;
  background: var(--card);
  border-color: var(--card-line);
  transition: border-color 0.15s ease;
}

.task-card:hover {
  border-color: var(--line);
}

.task-card.done {
  opacity: 0.58;
}

.task-check {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  accent-color: var(--white);
}

.task-content {
  min-width: 0;
  flex: 1;
}

.task-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.02;
  word-break: break-word;
}

.task-card.done .task-title {
  text-decoration: line-through;
}

.task-meta,
.task-notes {
  margin: 10px 0 0;
  line-height: 1.45;
}

.task-footer {
  margin-top: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  border: 0;
  border-radius: 14px;
  min-height: 42px;
  font-weight: 900;
}

.primary-btn {
  padding: 0 18px;
  background: var(--white);
  color: var(--black);
}

.secondary-btn {
  justify-self: start;
  padding: 0 16px;
  background: var(--white);
  color: var(--black);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
}

.ghost-btn.danger {
  color: var(--white);
}

.icon-btn {
  width: 42px;
  padding: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.2rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  text-align: center;
}

.task-dialog {
  width: min(590px, calc(100vw - 28px));
  border: 1px solid var(--line);
  padding: 0;
  color: var(--white);
  box-shadow: var(--shadow);
}

.task-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.task-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.task-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check-row {
  grid-template-columns: 22px 1fr;
  align-items: center;
  align-self: end;
  min-height: 44px;
}

.check-row input {
  min-height: auto;
  width: 20px;
  height: 20px;
}

.dialog-actions > div {
  display: flex;
  gap: 10px;
}

.dialog-actions.end {
  justify-content: end;
}

.form-note {
  margin: 0;
  min-height: 20px;
}

/* Checklist / subtasks editor inside the task dialog */
.subtasks-block {
  display: grid;
  gap: 10px;
}

.subtasks-title {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.ghost-btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.85rem;
}

.subtask-list {
  display: grid;
  gap: 8px;
}

.subtask-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}

.subtask-row .subtask-check {
  width: 20px;
  height: 20px;
  accent-color: var(--white);
}

.subtask-row .subtask-input {
  min-height: 40px;
}

.subtask-row.checked .subtask-input {
  color: var(--muted);
  text-decoration: line-through;
}

.onboarding-dialog {
  width: min(760px, calc(100vw - 24px));
}

.onboarding-grid {
  display: grid;
  gap: 10px;
}

.onboarding-step {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--black);
  color: var(--white);
  text-align: left;
}

.onboarding-step strong {
  font-size: 1.2rem;
}

.onboarding-step span {
  color: var(--muted);
}

/* Bottom tab bar + floating add button (mobile app shell). Hidden on desktop;
   the max-width: 860px media query below turns them on. This must stay above
   the media queries so the responsive rules win the cascade. */
.tabbar,
.fab {
  display: none;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 270px minmax(0, 1fr);
  }

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

  .metric-card.large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .platform-page {
    padding: 10px;
  }

  .platform-nav {
    display: grid;
    gap: 14px;
    border-radius: 22px;
  }

  .platform-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .platform-hero {
    min-height: 300px;
    border-radius: 22px;
  }

  .platform-hero.compact-hero {
    min-height: 240px;
  }

  .product-grid,
  .bim-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 240px;
    border-radius: 22px;
  }

  .wide-card {
    grid-row: auto;
  }

  .app-shell {
    display: block;
    padding: 10px;
  }

  .sidebar {
    position: static;
    min-height: auto;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  /* Keep the account card and goal reachable on phones instead of hiding the
     whole sidebar. Settings now owns profile, notifications, data and legal. */
  .brand {
    display: none;
  }

  /* Primary navigation moves to the fixed bottom tab bar on mobile. */
  .nav-list {
    display: none;
  }

  .main-area {
    gap: 10px;
  }

  .hero-panel {
    display: grid;
    min-height: 170px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* The FAB replaces the inline add button on mobile. */
  #openTaskModal {
    display: none;
  }

  .dashboard-grid,
  .toolbar,
  .task-list,
  .settings-page {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 170px;
  }

  .task-main,
  .task-footer {
    align-items: flex-start;
  }

  /* Room so fixed bottom bar never covers the last task. */
  body {
    padding-bottom: 86px;
  }

  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    gap: 4px;
    padding: 6px;
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: 22px;
  }

  .tab {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-height: 52px;
    padding: 6px 4px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
  }

  .tab svg {
    width: 21px;
    height: 21px;
  }

  .tab.active {
    background: var(--white);
    color: var(--black);
  }

  .fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 18px;
    bottom: 84px;
    z-index: 41;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    font-size: 2rem;
    line-height: 1;
    box-shadow: var(--shadow);
  }

  .toast {
    bottom: 92px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .hero-actions,
  .form-grid,
  .dialog-actions,
  .dialog-actions > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    width: 100%;
  }
}

/* Toast / undo snackbar */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: min(440px, calc(100vw - 24px));
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--graphite-2);
  box-shadow: var(--shadow);
  z-index: 60;
}

.toast-action {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  min-height: 34px;
  padding: 0 14px;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
}

/* Sidebar legal links */
.legal-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.legal-links a:hover {
  color: var(--white);
}

/* Standalone legal/document pages (privacy, terms, delete-data) */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 18px 96px;
}

.doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.doc-back {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.doc-back:hover {
  color: var(--white);
}

.doc-lang {
  margin: 0;
  width: 124px;
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1;
  margin: 0 0 6px;
}

.doc h2 {
  font-size: 1.15rem;
  margin: 30px 0 8px;
}

.doc p,
.doc li {
  color: var(--muted);
  line-height: 1.6;
}

.doc a {
  color: var(--white);
}

.doc .updated {
  font-size: 0.85rem;
}

.doc ul {
  padding-left: 20px;
}

/* Public INPLUG site */
:root {
  --site-bg: #080b0b;
  --site-panel: #101616;
  --site-panel-2: #151d1c;
  --site-line: #26312f;
  --site-muted: #9faeaa;
  --site-accent: #bdf553;
  --site-accent-strong: #d3ff7a;
}

:root[data-theme="light"] {
  --site-bg: #f4f7f5;
  --site-panel: #ffffff;
  --site-panel-2: #edf3ef;
  --site-line: #c8d5ce;
  --site-muted: #5e6f67;
  --site-accent: #9bd52f;
  --site-accent-strong: #86c01d;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--site-accent);
  color: #08100d;
  font-weight: 900;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 18px;
}

.platform-page {
  background:
    radial-gradient(circle at 86% 7%, var(--page-glow), transparent 24rem),
    var(--site-bg);
}

.platform-page a {
  color: inherit;
  text-decoration: none;
}

.platform-page .platform-nav {
  position: sticky;
  top: 12px;
  z-index: 30;
  width: min(1440px, 100%);
  margin: 0 auto;
  min-height: 76px;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  background: var(--nav-bg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.site-brand {
  color: var(--white);
}

.platform-page .brand-mark {
  border-radius: 12px;
  background: var(--site-accent);
  color: #0a120e;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.site-nav-links a,
.site-footer a {
  color: var(--site-muted);
  font-size: 0.9rem;
  font-weight: 750;
  transition: color 0.15s ease;
}

.site-nav-links a:hover,
.site-footer a:hover {
  color: var(--white);
}

.site-lang-switch {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  background: var(--control-bg);
}

.site-lang-switch button {
  min-width: 36px;
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--site-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.site-lang-switch button.active {
  background: var(--site-panel-2);
  color: var(--white);
}

.platform-page .primary-btn,
.platform-page .ghost-btn {
  border-radius: 10px;
  min-height: 46px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.platform-page .primary-btn {
  background: var(--site-accent);
  color: #08100d;
}

.platform-page .primary-btn:hover,
.platform-page .ghost-btn:hover {
  transform: translateY(-2px);
}

.platform-page .primary-btn:hover {
  background: var(--site-accent-strong);
}

.platform-page .ghost-btn {
  border-color: var(--site-line);
  background: var(--control-bg);
}

.platform-page .ghost-btn:hover {
  border-color: #596863;
}

.platform-page :focus-visible {
  outline: 3px solid var(--site-accent);
  outline-offset: 3px;
}

.site-main {
  width: min(1440px, 100%);
  margin: 18px auto 0;
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  align-items: center;
  gap: clamp(40px, 6vw, 92px);
  min-height: 720px;
  padding: clamp(56px, 7vw, 110px) clamp(18px, 4vw, 64px);
  overflow: hidden;
}

.site-hero-copy {
  position: relative;
  z-index: 2;
}

.site-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  color: var(--site-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-kicker > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--site-accent);
  box-shadow: 0 0 18px rgba(189, 245, 83, 0.8);
}

.site-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.3rem, 6.3vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.site-lead {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--site-muted);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}

.site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.site-cta {
  min-height: 54px !important;
  padding: 0 24px !important;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--site-muted);
  font-size: 0.85rem;
  list-style: none;
}

.hero-proof li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--site-accent);
  font-weight: 900;
}

.product-preview {
  position: relative;
  min-width: 0;
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.preview-window {
  overflow: hidden;
  border: 1px solid #34413e;
  border-radius: 18px;
  background: #0c1110;
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.55), 0 0 80px rgba(189, 245, 83, 0.06);
}

.preview-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--site-line);
  color: #dbe4e1;
  font-size: 0.77rem;
}

.preview-dots {
  color: #53605d;
  font-size: 0.54rem;
  letter-spacing: 0.28em;
}

.preview-status {
  justify-self: end;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(189, 245, 83, 0.12);
  color: var(--site-accent);
  font-weight: 900;
}

.preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  min-height: 450px;
}

.model-canvas {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(189, 245, 83, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 245, 83, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 55% 45%, #1d2c29, #0b0f0f 65%);
  background-size: 24px 24px, 24px 24px, auto;
}

.model-floor,
.model-core {
  position: absolute;
  border: 2px solid rgba(189, 245, 83, 0.6);
  background: rgba(189, 245, 83, 0.045);
  transform: skewY(-13deg) rotate(-8deg);
  box-shadow: inset 0 0 24px rgba(189, 245, 83, 0.05);
}

.model-floor::before,
.model-floor::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(189, 245, 83, 0.35);
}

.model-floor::before {
  left: 34%;
  top: 0;
  bottom: 0;
}

.model-floor::after {
  left: 0;
  right: 0;
  top: 55%;
}

.floor-a { width: 64%; height: 34%; left: 16%; top: 46%; }
.floor-b { width: 56%; height: 30%; left: 22%; top: 31%; }
.floor-c { width: 48%; height: 26%; left: 28%; top: 18%; }
.model-core { width: 18%; height: 52%; left: 45%; top: 20%; }

.preview-panel {
  padding: 28px 24px;
  border-left: 1px solid var(--site-line);
  background: #111716;
}

.preview-panel h2 {
  margin: 10px 0 34px;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  line-height: 1;
}

.preview-metric {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 0.82rem;
}

.preview-metric strong {
  color: var(--white);
  font-size: 1rem;
}

.preview-progress {
  height: 6px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 3px;
  background: #2a3331;
}

.preview-progress span {
  display: block;
  height: 100%;
  background: var(--site-accent);
}

.preview-button {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin-top: 28px;
  border-radius: 8px;
  background: var(--site-accent);
  color: #08100d;
  font-size: 0.78rem;
  font-weight: 900;
}

.floating-result {
  position: absolute;
  right: -18px;
  bottom: -28px;
  display: grid;
  gap: 5px;
  width: min(250px, 54%);
  padding: 18px;
  border: 1px solid #3a4744;
  border-radius: 14px;
  background: rgba(19, 27, 25, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
}

.floating-result span,
.floating-result small {
  color: var(--site-muted);
  font-size: 0.72rem;
}

.floating-result strong {
  color: var(--site-accent);
}

.outcome-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
}

.outcome-strip article {
  padding: 36px clamp(20px, 4vw, 52px);
}

.outcome-strip article + article {
  border-left: 1px solid var(--site-line);
}

.outcome-strip strong,
.workflow-grid > li > span {
  color: var(--site-accent);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.outcome-strip h2 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}

.outcome-strip p,
.site-product-card p:not(.eyebrow),
.workflow-grid p,
.report-copy p:not(.eyebrow),
.price-card p:not(.eyebrow),
.faq-list p,
.closing-cta > p:not(.eyebrow) {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.55;
}

.site-section,
.report-section,
.closing-cta {
  padding: clamp(76px, 10vw, 150px) clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--site-line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  margin-bottom: clamp(42px, 7vw, 82px);
}

.section-heading h2,
.report-copy h2,
.closing-cta h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2.4rem, 5.2vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.platform-page .eyebrow {
  color: var(--site-accent);
  letter-spacing: 0.09em;
}

.site-product-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
}

.site-product-card,
.price-card {
  display: grid;
  align-content: space-between;
  gap: 36px;
  min-height: 460px;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--site-line);
  border-radius: 16px;
  background: var(--site-panel);
}

.site-product-card.featured,
.price-card.featured {
  background:
    radial-gradient(circle at 95% 5%, rgba(189, 245, 83, 0.12), transparent 19rem),
    var(--site-panel-2);
}

.site-product-card h3,
.price-card h3 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 8px 11px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  color: #c8d3d0;
  font-size: 0.8rem;
  font-weight: 800;
}

.tool-catalog-section .section-heading {
  max-width: 980px;
}

.tool-catalog-section .section-heading > p:last-child {
  color: var(--site-muted);
  line-height: 1.7;
}

.tool-catalog {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.tool-card {
  grid-column: span 4;
  position: relative;
  min-height: 270px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 16px;
  background: var(--site-panel);
}

.tool-card:nth-child(4),
.tool-card:nth-child(5) {
  grid-column: span 6;
}

.tool-card.featured {
  border-color: rgba(189, 245, 83, 0.56);
  background:
    radial-gradient(circle at 94% 2%, rgba(189, 245, 83, 0.18), transparent 46%),
    var(--site-panel-2);
}

.tool-card.future {
  border-style: dashed;
}

.tool-card h3 {
  margin: 8px 0 10px;
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.tool-card > p:last-of-type {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.65;
}

.tool-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 13px;
  color: #102018;
  background: var(--site-accent);
  font-size: 24px;
  font-weight: 900;
}

.tool-icon.tasks {
  background: #d7e9ff;
}

.tool-icon.dimensions {
  background: #f2e5ff;
}

.tool-icon.future {
  color: var(--site-muted);
  background: #202724;
}

.tool-badge {
  display: inline-flex;
  margin-top: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #17210f;
  background: var(--site-accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.compact-tool-list span {
  padding: 7px 10px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  color: #dce5e2;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
}

.activation-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activation-flow li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.activation-flow li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--site-accent);
  color: #08100d;
  font-size: 0.72rem;
  font-weight: 900;
}

.activation-flow strong,
.activation-flow small {
  display: block;
}

.activation-flow small {
  margin-top: 5px;
  color: var(--site-muted);
  line-height: 1.35;
}

.site-product-card .primary-btn,
.site-product-card .ghost-btn,
.price-card .primary-btn,
.price-card .ghost-btn {
  justify-self: start;
}

.workflow-section {
  background: #0b0f0f;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 38px;
  padding: 0;
  list-style: none;
}

.workflow-grid li {
  min-height: 260px;
  padding: 28px;
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
}

.workflow-grid li + li {
  border-left: 1px solid var(--site-line);
}

.workflow-grid h3 {
  margin: 64px 0 12px;
  font-size: 1.45rem;
}

.text-link {
  color: var(--site-accent) !important;
  font-weight: 900;
}

.report-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.report-copy p:not(.eyebrow) {
  max-width: 600px;
  margin-top: 24px;
}

.report-table {
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: var(--site-panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.report-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.6fr 0.8fr;
  gap: 16px;
  padding: 18px 20px;
  border-top: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 0.86rem;
}

.report-row:first-child {
  border-top: 0;
}

.report-row strong {
  color: var(--white);
}

.report-row em {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(189, 245, 83, 0.1);
  color: var(--site-accent);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.report-row em.warning {
  background: rgba(255, 188, 67, 0.1);
  color: #ffc45b;
}

.report-head {
  background: #151c1b;
  color: #70807c;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-card {
  min-height: 370px;
}

.price-card p:not(.eyebrow) {
  max-width: 520px;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 8vw, 130px);
}

.faq-section .section-heading {
  display: block;
  margin: 0;
}

.faq-section .section-heading h2 {
  margin-top: 14px;
}

.faq-list {
  border-top: 1px solid var(--site-line);
}

.faq-list details {
  border-bottom: 1px solid var(--site-line);
}

.faq-list summary {
  position: relative;
  padding: 24px 44px 24px 0;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 800;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  color: var(--site-accent);
  font-size: 1.5rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  padding: 0 50px 26px 0;
}

.closing-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(189, 245, 83, 0.14), transparent 28rem),
    #0b0f0f;
}

.closing-cta h2 {
  margin-top: 20px;
}

.closing-cta > p:not(.eyebrow) {
  margin-top: 22px;
}

.closing-cta .primary-btn {
  margin-top: 32px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 36px clamp(18px, 4vw, 64px);
  color: var(--site-muted);
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.bim-public-main {
  width: min(1440px, 100%);
  margin: 18px auto 0;
}

.account-dialog {
  width: min(900px, calc(100vw - 28px));
  background: #0d1211;
}

.account-dialog .task-form {
  padding: 0;
}

.account-dialog .dialog-head {
  padding: 24px 26px;
  border-bottom: 1px solid var(--site-line);
}

.account-dialog .dialog-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(340px, 1.25fr);
}

.auth-promise {
  padding: 34px 30px;
  border-right: 1px solid var(--site-line);
  background:
    radial-gradient(circle at 0 100%, rgba(189, 245, 83, 0.12), transparent 18rem),
    #111817;
}

.auth-step {
  color: var(--site-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.auth-promise h3 {
  margin: 56px 0 14px;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.auth-promise p,
.auth-security {
  color: var(--site-muted);
  line-height: 1.55;
}

.auth-promise ul {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  color: #dbe3e1;
  font-size: 0.86rem;
  list-style: none;
}

.auth-promise li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--site-accent);
  font-weight: 900;
}

.auth-fields {
  display: grid;
  gap: 15px;
  padding: 34px 30px;
}

.auth-fields label:not(.auth-consent) {
  display: grid;
  gap: 7px;
  font-weight: 750;
}

.auth-fields small {
  color: var(--site-muted);
  font-size: 0.75rem;
}

.auth-fields input {
  border-color: var(--site-line);
  background: #080b0b;
}

.auth-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--site-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.auth-consent input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--site-accent);
}

.auth-consent a {
  color: var(--white);
  text-decoration: underline;
}

.auth-actions {
  margin-top: 4px;
}

.auth-security {
  margin: 0;
  font-size: 0.72rem;
}

@media (max-width: 1100px) {
  .site-nav-links {
    display: none;
  }

  .site-hero {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }

  .product-preview {
    max-width: 850px;
  }

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

@media (max-width: 860px) {
  .platform-page .brand {
    display: flex;
  }

  .platform-page .platform-nav {
    position: relative;
    top: 0;
    display: flex;
  }

  .platform-page .platform-actions {
    display: flex;
  }

  .platform-page .site-lang-switch {
    display: none;
  }

  .platform-page .platform-nav > .platform-actions .primary-btn {
    min-width: auto;
  }

  .site-hero {
    min-height: auto;
    padding: 74px 8px 78px;
  }

  .site-hero h1 {
    font-size: clamp(3rem, 13vw, 5.6rem);
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .model-canvas {
    min-height: 320px;
  }

  .preview-panel {
    border-top: 1px solid var(--site-line);
    border-left: 0;
  }

  .outcome-strip,
  .section-heading,
  .site-product-grid,
  .pricing-grid,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .outcome-strip article + article {
    border-top: 1px solid var(--site-line);
    border-left: 0;
  }

  .section-heading {
    gap: 18px;
  }

  .site-product-card,
  .price-card {
    min-height: 360px;
  }

  .tool-card,
  .tool-card:nth-child(4),
  .tool-card:nth-child(5) {
    grid-column: span 12;
    min-height: auto;
  }

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

  .workflow-grid li:nth-child(3) {
    border-left: 0;
  }

  .faq-section .section-heading {
    margin-bottom: 34px;
  }

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

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

  .auth-promise {
    border-right: 0;
    border-bottom: 1px solid var(--site-line);
  }

  .auth-promise h3 {
    margin-top: 28px;
  }

  body:has(#platformHome:not([hidden])),
  body:has(#bimPage:not([hidden])) {
    padding-bottom: 0;
  }
}

@media (max-width: 560px) {
  .platform-page .platform-nav {
    align-items: center;
  }

  .platform-page .platform-nav .brand span {
    display: none;
  }

  .platform-page .platform-nav > .platform-actions {
    flex: 0 0 auto;
  }

  .platform-page .platform-nav > .platform-actions .primary-btn {
    width: auto;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .site-hero-actions,
  .site-hero-actions .primary-btn,
  .site-hero-actions .ghost-btn {
    width: 100%;
  }

  .product-preview {
    transform: none;
  }

  .preview-topbar {
    grid-template-columns: 1fr auto;
  }

  .preview-topbar strong {
    display: none;
  }

  .floating-result {
    right: 10px;
    bottom: -24px;
    width: 70%;
  }

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

  .workflow-grid li + li {
    border-left: 0;
  }

  .workflow-grid li {
    min-height: 220px;
  }

  .report-table {
    overflow-x: auto;
  }

  .report-row {
    min-width: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 700px) {
  .activation-flow {
    grid-template-columns: 1fr;
  }
}

/* INPLUG ADMIN — license control */
.license-device-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.license-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.license-device-row span {
  display: grid;
  gap: 4px;
}

.license-device-row small {
  color: var(--muted);
}

.license-device-row .ghost-btn {
  padding: 9px 12px;
}

.admin-main {
  gap: 18px;
}

.admin-hero h1 {
  max-width: 1050px;
}

.admin-access-card,
.admin-panel {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--soft-line);
  border-radius: 28px;
  background: var(--graphite);
}

.admin-access-card {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.admin-access-card h2,
.admin-panel h2 {
  margin: 6px 0 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 0.95;
}

.admin-access-card p:not(.eyebrow) {
  margin: 0 0 8px;
  color: var(--muted);
}

#adminWorkspace {
  display: grid;
  gap: 18px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-metrics article {
  display: grid;
  align-content: space-between;
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  background: var(--graphite);
}

.admin-metrics span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-metrics strong {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-toolbar .platform-actions {
  justify-content: flex-end;
}

.admin-toolbar input {
  width: min(290px, 38vw);
}

.admin-toolbar select {
  width: 190px;
}

.admin-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--soft-line);
  border-radius: 22px;
  background: var(--black);
}

.admin-license-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.admin-license-table th,
.admin-license-table td {
  padding: 16px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
}

.admin-license-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-license-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-license-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.admin-user-cell,
.admin-license-table td:nth-child(2),
.admin-license-table td:nth-child(3) {
  display: grid;
  gap: 7px;
}

.admin-user-cell span,
.admin-user-cell small,
.admin-license-table td small,
.admin-empty {
  color: var(--muted);
}

.admin-status {
  display: inline-flex;
  justify-self: start;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.75rem;
  font-weight: 900;
}

.admin-status.status-active,
.admin-status.status-approved {
  border-color: #29623c;
  color: #9de5b1;
}

.admin-status.status-pending,
.admin-status.status-trial {
  border-color: #6d571e;
  color: #f4d87c;
}

.admin-status.status-rejected,
.admin-status.status-revoked {
  border-color: #6b2929;
  color: #f4a1a1;
}

.admin-status.status-suspended,
.admin-status.status-expired {
  color: #bdbdbd;
}

.admin-device {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
}

.admin-device:last-child {
  border-bottom: 0;
}

.admin-device span,
.admin-device small {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-license-controls {
  display: grid;
  min-width: 260px;
  gap: 8px;
}

.admin-control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-control-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-license-controls input,
.admin-license-controls select {
  min-height: 40px;
}

.admin-apply-btn {
  width: 100%;
}

.admin-empty-row {
  padding: 40px !important;
  color: var(--muted);
  text-align: center !important;
}

.admin-audit-list {
  display: grid;
  gap: 8px;
}

.admin-audit-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  padding: 14px 16px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: var(--black);
}

.admin-audit-list article div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-audit-list span,
.admin-audit-list time,
.admin-audit-list p {
  color: var(--muted);
}

.admin-audit-list time {
  font-size: 0.78rem;
}

.admin-audit-list p {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 980px) {
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar .platform-actions {
    justify-content: flex-start;
  }

  .admin-toolbar input,
  .admin-toolbar select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-metrics article {
    min-height: 120px;
  }

  .admin-toolbar .platform-actions,
  .admin-toolbar .platform-actions > * {
    width: 100%;
  }

  .admin-access-card,
  .admin-panel {
    border-radius: 22px;
  }
}

@media (min-width: 760px) and (max-height: 800px) {
  .account-dialog .dialog-head {
    padding: 16px 24px;
  }

  .account-dialog .dialog-head h2 {
    margin-top: 4px;
    font-size: 2.35rem;
  }

  .auth-promise,
  .auth-fields {
    padding: 20px 26px;
  }

  .auth-promise h3 {
    margin-top: 24px;
    font-size: 2.15rem;
  }

  .auth-promise ul {
    margin-top: 20px;
    gap: 8px;
  }

  .auth-fields {
    gap: 9px;
  }

  .auth-fields label:not(.auth-consent) {
    gap: 4px;
  }

  .auth-fields input {
    min-height: 42px;
  }

  .auth-security {
    margin: 0;
    font-size: .75rem;
  }
}

/* Final cascade overrides for the three-plan comparison. */
.pricing-section .pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-section .price-card {
  display: flex;
  min-height: 520px;
}

@media (max-width: 980px) {
  .pricing-section .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pricing-section .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-07: unified account entry, nested product tools and contrast/overflow audit */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
li,
td,
th,
label,
button,
a,
span,
strong,
small {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  word-break: normal;
}

.site-hero h1 {
  font-size: clamp(3.3rem, 5.6vw, 6.8rem);
}

.platform-page,
.site-main,
.site-hero,
.site-hero-copy,
.product-preview,
.site-product-grid,
.tool-catalog,
.tool-card,
.price-card,
.app-shell,
.main,
.hero-panel,
.bim-public-main,
.admin-main,
.admin-panel,
.account-dialog,
.task-dialog {
  min-width: 0;
  max-width: 100%;
}

.platform-page .platform-nav > *,
.platform-actions,
.account-command-bar > *,
.admin-toolbar > * {
  min-width: 0;
}

.account-entry-btn {
  white-space: nowrap;
}

.account-switch-btn {
  white-space: nowrap;
}

#products .tool-catalog-section {
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(48px, 7vw, 82px);
  border-top: 1px solid var(--site-line);
}

#products .tool-catalog-section .section-heading {
  margin-bottom: 34px;
}

.tool-catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card,
.tool-card:nth-child(4),
.tool-card:nth-child(5) {
  grid-column: auto;
}

.tool-icon.export {
  background: #ffe3a7;
}

.feature-list li,
.compact-tool-list span,
.auth-promise ul {
  color: var(--white);
}

.closing-cta,
.workflow-section {
  background:
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--site-accent) 14%, transparent), transparent 28rem),
    var(--site-panel-2);
}

.auth-promise {
  background:
    radial-gradient(circle at 0 100%, color-mix(in srgb, var(--site-accent) 12%, transparent), transparent 18rem),
    var(--site-panel-2);
  color: var(--white);
}

.account-dialog,
.task-dialog,
.account-dialog .dialog-head,
.task-dialog .dialog-head {
  color: var(--white);
}

input,
select,
textarea,
.auth-fields input,
.team-create-form input,
.team-invite-form input,
.team-invite-form select,
.team-member-actions select {
  border-color: var(--line);
  background: var(--graphite);
  color: var(--white);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.report-head {
  background: var(--site-panel-2);
  color: var(--site-muted);
}

.admin-table-scroll,
.table-scroll,
.report-table {
  max-width: 100%;
  overscroll-behavior-inline: contain;
}

:root[data-theme="light"] .preview-window {
  border-color: var(--site-line);
  background: var(--site-panel);
  box-shadow: 0 28px 80px rgba(18, 35, 27, 0.16);
}

:root[data-theme="light"] .preview-topbar,
:root[data-theme="light"] .preview-panel {
  background: var(--site-panel);
  color: var(--white);
}

:root[data-theme="light"] .model-canvas {
  background:
    linear-gradient(rgba(104, 149, 34, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 149, 34, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 55% 45%, #e6eee9, #f8fbf9 68%);
  background-size: 24px 24px, 24px 24px, auto;
}

:root[data-theme="light"] .preview-metric strong {
  color: var(--white);
}

:root[data-theme="light"] .floating-result {
  border-color: var(--site-line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--white);
  box-shadow: 0 20px 54px rgba(18, 35, 27, 0.16);
}

:root[data-theme="light"] .tool-icon.future {
  background: #dce7e1;
}

:root[data-theme="light"] .admin-status.status-active,
:root[data-theme="light"] .admin-status.status-approved {
  color: #17652e;
}

:root[data-theme="light"] .admin-status.status-pending,
:root[data-theme="light"] .admin-status.status-trial {
  color: #775500;
}

:root[data-theme="light"] .admin-status.status-rejected,
:root[data-theme="light"] .admin-status.status-revoked {
  color: #9a2828;
}

@media (max-width: 1100px) {
  .tool-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .platform-page {
    padding-inline: 10px;
  }

  .platform-page .platform-nav {
    gap: 8px;
    padding: 10px;
  }

  .platform-page .platform-nav .brand {
    flex: 1 1 auto;
    overflow: hidden;
  }

  .platform-page .platform-nav .brand strong {
    font-size: 0.86rem;
  }

  .account-entry-btn {
    min-height: 42px !important;
    padding-inline: 11px !important;
    font-size: 0.75rem !important;
  }

  .site-hero h1,
  .section-heading h2,
  .report-copy h2,
  .closing-cta h2 {
    hyphens: auto;
    letter-spacing: -0.035em;
  }

  .tool-catalog {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 22px;
  }

  .auth-promise,
  .auth-fields,
  .account-dialog .dialog-head,
  .task-dialog .dialog-head {
    padding-inline: 20px;
  }

  .dialog-actions,
  .account-command-bar,
  .admin-toolbar .platform-actions {
    flex-wrap: wrap;
  }

  .dialog-actions > *,
  .dialog-actions > div,
  .dialog-actions button {
    max-width: 100%;
  }
}

/* 2026-07: concise product landing */
.site-hero {
  min-height: 640px;
}

.site-hero h1 {
  font-size: clamp(3rem, 5.2vw, 6.2rem);
}

.ribbon-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 360px;
  padding: 22px;
  gap: 12px;
  background:
    linear-gradient(rgba(189, 245, 83, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 245, 83, 0.035) 1px, transparent 1px),
    var(--site-panel);
  background-size: 24px 24px;
}

.ribbon-group {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: var(--site-panel-2);
}

.ribbon-group.accent {
  border-color: color-mix(in srgb, var(--site-accent) 65%, var(--site-line));
}

.ribbon-group > span {
  margin-bottom: 6px;
  color: var(--site-accent);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.ribbon-group > strong {
  display: grid;
  min-height: 64px;
  padding: 12px;
  place-items: center;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  color: var(--white);
  background: var(--control-bg);
  text-align: center;
  font-size: .85rem;
}

#products .section-heading,
.pricing-section .section-heading {
  display: block;
  margin-bottom: 30px;
}

#products .section-heading h2:empty {
  display: none;
}

.site-product-card {
  min-height: 420px;
  gap: 24px;
}

.product-card-visual {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--site-line);
  border-radius: 13px;
  background: var(--control-bg);
}

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

.bim-visual span {
  display: grid;
  min-height: 54px;
  padding: 10px;
  place-items: center;
  border-radius: 9px;
  color: #0a120d;
  background: var(--site-accent);
  text-align: center;
  font-size: .78rem;
  font-weight: 900;
}

.tasks-visual span {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 11px;
  border-bottom: 1px solid var(--site-line);
  color: var(--white);
  font-size: .78rem;
}

.tasks-visual span:last-child {
  border-bottom: 0;
}

.tasks-visual b {
  color: var(--site-accent);
}

.tasks-visual i {
  color: var(--site-muted);
  font-size: .68rem;
  font-style: normal;
}

.pricing-section .section-heading h2 {
  font-size: clamp(2.4rem, 4vw, 4.8rem);
}

.bim-tool-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 6px;
}

.bim-tool-groups section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 180px;
  padding: 16px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: var(--control-bg);
}

.bim-tool-groups section > span {
  color: var(--site-accent);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.bim-tool-groups a,
.bim-tool-groups strong {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--white);
  background: var(--site-panel-2);
  font-size: .8rem;
  text-decoration: none;
}

.bim-tool-groups a:hover {
  color: var(--site-accent);
}

@media (max-width: 760px) {
  .ribbon-preview,
  .bim-tool-groups {
    grid-template-columns: 1fr;
  }

  .ribbon-preview {
    min-height: auto;
  }

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

  .ribbon-group > span {
    grid-column: 1 / -1;
  }

  .bim-tool-groups section {
    min-height: 0;
  }
}

/* 2026-07: account hub, downloads, analytics and typography fit */
h1,
h2,
h3,
p,
li,
td,
th,
label,
button,
a,
span,
strong,
small {
  overflow-wrap: normal;
  word-break: normal;
}

h1,
h2,
h3 {
  hyphens: none;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

code,
.download-meta,
.admin-user-cell span {
  overflow-wrap: anywhere;
}

.primary-btn,
.ghost-btn,
.site-cta {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.site-hero {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
}

.site-hero-copy {
  max-width: 720px;
}

.site-hero h1 {
  max-width: 700px;
  font-size: clamp(3rem, 4.8vw, 5.8rem);
  line-height: .96;
}

.site-product-card h3 {
  max-width: 100%;
  font-size: clamp(2rem, 3.3vw, 3.8rem);
  line-height: 1;
}

.account-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin: 16px 0;
}

.account-hub-grid > .product-card {
  min-width: 0;
  min-height: 360px;
}

.account-activity-list {
  display: grid;
  align-content: start;
  gap: 0;
  max-height: 250px;
  overflow: auto;
  border-top: 1px solid var(--site-line);
}

.account-activity-list article {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--site-line);
}

.account-activity-list strong,
.account-activity-list time {
  display: block;
}

.account-activity-list time {
  margin-top: 3px;
  color: var(--site-muted);
  font-size: .76rem;
}

.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--site-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--site-accent) 65%, transparent);
}

.download-center-card {
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--site-accent) 12%, transparent), transparent 18rem),
    var(--site-panel);
}

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

.release-summary span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  color: var(--site-muted);
  font-size: .78rem;
}

.release-summary b {
  color: var(--white);
}

.release-history {
  padding: 13px 0 0;
  border-top: 1px solid var(--site-line);
}

.release-history summary {
  cursor: pointer;
  color: var(--white);
  font-weight: 800;
}

.release-history div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.release-history a {
  padding: 7px 11px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  color: var(--site-muted);
  text-decoration: none;
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.analytics-metrics article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: var(--control-bg);
}

.analytics-metrics span,
.analytics-metrics strong {
  display: block;
}

.analytics-metrics span {
  color: var(--site-muted);
  font-size: .76rem;
}

.analytics-metrics strong {
  margin-top: 8px;
  color: var(--site-accent);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

@media (max-width: 1100px) {
  .site-hero {
    grid-template-columns: 1fr;
  }

  .site-hero-copy {
    max-width: 880px;
  }

  .site-hero h1 {
    max-width: 860px;
    font-size: clamp(3rem, 8vw, 5.6rem);
  }

  .account-hub-grid {
    grid-template-columns: 1fr;
  }

  .analytics-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-hero h1 {
    font-size: clamp(2.55rem, 11vw, 4rem);
    line-height: .98;
  }

  .site-product-card h3 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .site-hero-actions,
  .platform-actions {
    align-items: stretch;
  }

  .site-hero-actions > *,
  .download-center-card .platform-actions > * {
    width: 100%;
  }

  .release-summary,
  .analytics-metrics {
    grid-template-columns: 1fr;
  }

  .account-hub-grid > .product-card {
    min-height: 0;
    padding: 22px;
  }
}

/* Final cascade: card typography follows the card, not the viewport. */
button,
input,
select,
textarea,
summary {
  font: inherit;
}

.site-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.site-product-card,
.price-card {
  container-type: inline-size;
  min-width: 0;
  width: 100%;
}

.site-product-card {
  grid-template-rows: auto auto auto;
}

.site-product-card h3,
.price-card h3 {
  max-width: 100%;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.02;
}

.site-product-card .primary-btn,
.site-product-card .ghost-btn,
.price-card .primary-btn,
.price-card .ghost-btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding-inline: 14px;
  justify-content: center;
  align-self: end;
}

.bim-tool-groups a,
.bim-tool-groups strong {
  display: flex;
  align-items: center;
  min-height: 38px;
  font-weight: 800;
}

.activation-flow li {
  align-items: flex-start;
}

.activation-flow strong,
.activation-flow small {
  display: block;
  line-height: 1.3;
}

.release-summary span,
.tasks-visual span,
.bim-visual span,
.price-features li {
  line-height: 1.35;
}

.pricing-section .price-card {
  min-height: 480px;
}

.pricing-section .price-features {
  margin-bottom: 22px;
}

.wide-card > .platform-actions,
.download-center-card > .platform-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.wide-card > .platform-actions > *,
.download-center-card > .platform-actions > * {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  justify-content: center;
  align-items: center;
}

@container (max-width: 420px) {
  .site-product-card h3,
  .price-card h3 {
    font-size: clamp(1.75rem, 11cqw, 2.35rem);
    letter-spacing: -0.035em;
  }

  .site-product-card,
  .price-card {
    gap: 22px;
    padding: 22px;
  }

  .tasks-visual span {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .tasks-visual i {
    grid-column: 2;
  }

  .price-badge {
    position: static;
    align-self: flex-start;
    width: fit-content;
  }
}

@media (max-width: 1050px) {
  .site-product-grid,
  .pricing-section .pricing-grid {
    grid-template-columns: 1fr;
  }

  .site-product-card,
  .pricing-section .price-card {
    min-height: 0;
  }

  .wide-card > .platform-actions,
  .download-center-card > .platform-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-section {
    padding-inline: 12px;
  }

  .site-product-card,
  .price-card {
    gap: 22px;
    padding: 20px;
  }

  .product-card-visual {
    width: 100%;
  }
}
