:root {
  color-scheme: dark;
  --bg: #030302;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.56);
  --soft: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d8ad55;
  --gold-2: #ffe39a;
  --gold-3: #8d6a2d;
  --gold-bright: #ffd45f;
  --green: #62e66b;
  --red: #ff5f57;
  --pink: #ff4f9a;
  --cyan: #67d9ff;
  --glass: rgba(24, 24, 24, 0.78);
  --glass-2: rgba(255, 255, 255, 0.07);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 26% -10%, rgba(216, 173, 85, 0.2), transparent 32%),
    radial-gradient(circle at 95% 10%, rgba(255, 227, 154, 0.11), transparent 26%),
    linear-gradient(180deg, #080806 0%, #000 46%, #050503 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
}

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

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.muted {
  color: var(--muted);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-card,
.brand-stage,
.panel,
.metric,
.table-wrap,
.card,
.warranty-card,
.modal-card {
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.095), rgba(255,255,255,0.038)),
    rgba(12, 12, 11, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 38px;
}

.brand-stage::after {
  content: "";
  position: absolute;
  inset: auto -25% -35% 25%;
  height: 360px;
  background: radial-gradient(circle, rgba(216,173,85,0.28), transparent 65%);
}

.auth-card {
  width: min(430px, 100%);
  border-radius: 28px;
  padding: 28px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #090806;
  font-weight: 950;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 18px 42px rgba(216,173,85,0.22);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 950;
}

.auth-card h2 {
  margin: 26px 0 8px;
  font-size: 32px;
  letter-spacing: -1px;
}

.public-shell {
  min-height: 100vh;
  padding: 18px clamp(16px, 4vw, 54px) 54px;
}

.public-nav {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto 42px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  background: rgba(8,8,7,0.74);
  backdrop-filter: blur(20px);
}

.public-nav-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  min-height: min(660px, calc(100vh - 120px));
}

.hero-copy h1,
.register-intro h1 {
  margin: 14px 0 18px;
  max-width: 760px;
  font-size: clamp(40px, 5.25vw, 66px);
  line-height: 0.96;
  letter-spacing: -1.8px;
  font-weight: 950;
}

.hero-copy p,
.register-intro p {
  max-width: 610px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-product {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(255,227,154,0.16);
  border-radius: 34px;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216,173,85,0.20), transparent 44%),
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
}

.hero-car-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  filter: saturate(1.05) contrast(1.03);
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
}

.mini-dashboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: -34px;
  padding: 0 12px;
}

.mini-dashboard div,
.feature-card,
.process-step,
.register-card {
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.065);
  backdrop-filter: blur(18px);
}

.mini-dashboard div {
  border-radius: 18px;
  padding: 16px;
}

.mini-dashboard span {
  display: block;
  color: rgba(255,255,255,0.46);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.mini-dashboard b {
  display: block;
  margin-top: 10px;
  color: var(--gold-2);
  font-size: clamp(20px, 2vw, 30px);
}

.hero-chart {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  height: 210px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.09);
  background:
    linear-gradient(180deg, rgba(255,227,154,0.22), rgba(216,173,85,0.025)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260'%3E%3Cpath d='M0 210 C85 175 120 235 190 166 C260 96 298 48 370 92 C440 134 450 202 520 176 C575 154 596 91 640 118 L640 260 L0 260 Z' fill='rgba(216,173,85,.28)'/%3E%3Cpath d='M0 210 C85 175 120 235 190 166 C260 96 298 48 370 92 C440 134 450 202 520 176 C575 154 596 91 640 118' fill='none' stroke='%23ffe39a' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/cover no-repeat;
  overflow: hidden;
}

.hero-chart::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 42%, rgba(255,239,187,0.75) 50%, transparent 58% 100%);
  transform: translateX(-120%) skewX(-18deg);
  animation: graphSweep 2.7s cubic-bezier(.2,.8,.2,1) 0.45s infinite;
  mix-blend-mode: screen;
}

.public-section {
  max-width: 1220px;
  margin: 82px auto 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-title h2 {
  max-width: 680px;
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -1.6px;
}

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

.feature-card {
  min-height: 180px;
  border-radius: 24px;
  padding: 24px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.visual-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 28px;
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.05);
  transform: scale(1.01);
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.84) 100%);
}

.visual-card div {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.visual-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.visual-card p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.45;
}

.insight-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.insight-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -1.8px;
}

.insight-copy p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.insight-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 30px;
  padding: 16px;
  background:
    radial-gradient(circle at 30% 0%, rgba(216,173,85,0.20), transparent 42%),
    rgba(255,255,255,0.055);
  box-shadow: var(--shadow);
}

.insight-chart.large {
  grid-row: span 3;
  min-height: 330px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 320'%3E%3Cpath d='M0 245 C62 212 98 260 154 190 C205 126 242 58 314 96 C384 132 392 220 452 170 C482 146 500 116 520 126 L520 320 L0 320 Z' fill='rgba(216,173,85,.26)'/%3E%3Cpath d='M0 245 C62 212 98 260 154 190 C205 126 242 58 314 96 C384 132 392 220 452 170 C482 146 500 116 520 126' fill='none' stroke='%23ffe39a' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/92% 78% no-repeat,
    rgba(0,0,0,0.22);
  background-size: 56px 56px, 56px 56px, 92% 78%, auto;
}

.insight-mini {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 18px;
  background: rgba(0,0,0,0.24);
}

.insight-mini span {
  color: rgba(255,255,255,0.48);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.insight-mini b {
  display: block;
  margin: 9px 0 12px;
  color: var(--gold-2);
  font-size: 24px;
}

.insight-mini i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

.process-band {
  margin-bottom: 44px;
}

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

.process-step {
  min-height: 120px;
  border-radius: 22px;
  padding: 18px;
}

.process-step b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #090806;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
}

.process-step span {
  display: block;
  margin-top: 18px;
  color: var(--soft);
  font-weight: 850;
}

.compact-auth {
  min-height: calc(100vh - 130px);
}

.register-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  max-width: 1160px;
  margin: 46px auto 0;
}

.setup-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.setup-steps span {
  border: 1px solid rgba(255,227,154,0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gold-2);
  background: rgba(216,173,85,0.08);
  font-size: 12px;
  font-weight: 900;
}

.register-card {
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.login-foot {
  margin: 20px 0 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.field label {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.filter-bar select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(0,0,0,0.32);
  padding: 0 16px;
  outline: none;
}

.field textarea {
  min-height: 100px;
  padding: 14px 16px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-bar select:focus {
  border-color: rgba(255, 227, 154, 0.66);
  box-shadow: 0 0 0 4px rgba(216,173,85,0.13);
}

.primary,
.ghost,
.danger,
.tiny {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 16px;
  padding: 0 18px;
  font-weight: 900;
}

.primary {
  color: #090806;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  box-shadow: 0 16px 36px rgba(216,173,85,0.18);
}

.ghost {
  color: var(--soft);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
}

.danger {
  color: #fff;
  border: 1px solid rgba(255, 95, 87, 0.38);
  background: rgba(255, 95, 87, 0.14);
}

.tiny {
  min-height: 34px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 12px;
}

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

.sidebar {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(216,173,85,0.16), transparent 42%),
    linear-gradient(180deg, rgba(25,25,24,0.94), rgba(8,8,7,0.92));
  box-shadow: var(--shadow);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.side-brand h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.8px;
  line-height: 1;
}

.side-brand span {
  color: rgba(255,255,255,0.48);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 2.4px;
}

.nav {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
}

.nav button {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  border-radius: 15px;
  padding: 9px 12px;
  color: rgba(255,255,255,0.58);
  text-align: left;
  background: transparent;
}

.nav button:hover {
  color: #fff;
  background: rgba(255,255,255,0.055);
}

.nav button.active {
  color: var(--gold-2);
  background:
    linear-gradient(145deg, rgba(216,173,85,0.2), rgba(216,173,85,0.055));
  box-shadow: inset 0 0 0 1px rgba(255,227,154,0.22);
}

.nav button > b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  color: inherit;
  background: rgba(255,255,255,0.06);
}

.nav small {
  display: block;
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  margin-top: 2px;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 7px;
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,0.09);
}

.sidebar-footer span,
.sidebar-footer small {
  color: var(--muted);
}

.sidebar-footer strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer .ghost {
  width: 100%;
  margin-top: 8px;
}

.main {
  min-width: 0;
  padding: 20px 14px 56px 0;
}

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

.eyebrow,
.panel-kicker,
.section-kicker {
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 7px 0 7px;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 0.98;
  letter-spacing: -1.8px;
  font-weight: 950;
}

.topbar p {
  margin: 0;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hero-metrics,
.metrics,
.category-metrics,
.warranty-metrics,
.owner-metrics {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

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

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

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

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

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

.owner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 16px;
  margin: 16px 0 34px;
}

.owner-close,
.owner-actions {
  min-height: 430px;
}

.owner-panel-title,
.dashboard-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.owner-panel-title h2 {
  margin: 5px 0 0;
}

.owner-panel-title > span,
.owner-panel-title > strong {
  color: var(--gold-2);
  font-weight: 950;
}

.owner-day-status {
  display: inline-flex;
  padding: 9px 14px;
  border: 1px solid rgba(216,173,85,.32);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(216,173,85,.1);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.owner-day-status.closed {
  color: var(--green);
  border-color: rgba(98,230,107,.3);
  background: rgba(98,230,107,.1);
}

.owner-day-status.review {
  color: var(--gold-bright);
}

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

.close-values > div {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}

.close-values small,
.attention-row small,
.attention-clear small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.close-values b {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.owner-close .primary {
  width: 100%;
  margin-top: 14px;
}

.attention-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.attention-row,
.attention-clear {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  color: #fff;
  text-align: left;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.05);
}

.attention-row small,
.attention-clear small {
  margin-top: 4px;
  line-height: 1.4;
}

.attention-row > strong {
  color: var(--gold-2);
  font-size: 18px;
}

.attention-row > i {
  color: var(--muted);
  font-size: 22px;
  font-style: normal;
}

.attention-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--gold-2);
  background: rgba(216,173,85,.12);
  font-weight: 950;
}

.attention-icon.warning { color: var(--gold-bright); background: rgba(255,212,95,.12); }
.attention-icon.danger { color: var(--red); background: rgba(255,95,87,.12); }

.attention-clear {
  grid-template-columns: 42px minmax(0, 1fr);
}

.attention-clear > b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(98,230,107,.12);
}

.dashboard-divider {
  margin: 12px 0 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.dashboard-divider > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.dashboard-divider > small {
  color: var(--muted);
  font-size: 11px;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border-radius: var(--radius-lg);
  padding: 18px;
}

.warranty-metric {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.09);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.warranty-metric:hover {
  transform: translateY(-2px);
  border-color: rgba(232,184,82,0.38);
}

.warranty-metric.selected {
  border-color: rgba(232,184,82,0.78);
  background: rgba(232,184,82,0.12);
  box-shadow: inset 0 0 0 1px rgba(232,184,82,0.12);
}

.warranty-metric.ready {
  border-color: rgba(92,224,123,0.26);
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% 25%;
  height: 150px;
  background: radial-gradient(circle, rgba(216,173,85,0.14), transparent 66%);
}

.metric.hero {
  min-height: 124px;
}

.metric label {
  display: block;
  color: rgba(255,255,255,0.48);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -1.1px;
  font-weight: 950;
}

.studio-pulse-band {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, .72fr));
  margin: 6px 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(216,173,85,.18), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
}

.pulse-primary,
.pulse-stat {
  min-width: 0;
  padding: 22px;
}

.pulse-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,.09);
}

.pulse-primary > span,
.pulse-stat > span,
.period-card > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.pulse-primary > strong {
  display: block;
  margin: 9px 0 7px;
  color: var(--gold-2);
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: .95;
  letter-spacing: -1.8px;
}

.pulse-primary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.pulse-primary p b {
  margin-right: 5px;
}

.pulse-stat strong {
  margin: 10px 0 5px;
  font-size: clamp(22px, 2.3vw, 32px);
  letter-spacing: -1px;
}

.pulse-stat small {
  color: var(--muted);
  font-size: 11px;
}

.period-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.period-card {
  min-width: 0;
  padding: 18px;
  color: #fff;
  text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.period-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,227,154,.34);
}

.period-card.active {
  border-color: rgba(255,227,154,.5);
  background: linear-gradient(145deg, rgba(216,173,85,.18), rgba(216,173,85,.055));
  box-shadow: inset 0 0 0 1px rgba(255,227,154,.08);
}

.period-card > strong {
  display: block;
  margin: 10px 0 16px;
  color: var(--gold-2);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -1.1px;
}

.period-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.period-card small {
  color: var(--muted);
}

.period-card small b {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 13px;
}

.panel,
.table-wrap {
  border-radius: var(--radius-lg);
}

.panel {
  padding: 22px;
}

.panel h2,
.table-wrap h2 {
  margin: 5px 0 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -1px;
}

.chart-panel {
  margin: 22px 0 26px;
}

.premium-chart-panel {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  background:
    radial-gradient(circle at 85% -20%, rgba(216,173,85,.14), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(8,8,7,.9);
}

.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.chart-heading h2 {
  margin-bottom: 5px;
}

.chart-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.chart-legend {
  display: flex;
  gap: 16px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 14px rgba(255,227,154,.5);
}

.chart-legend i.expense {
  background: var(--red);
  box-shadow: 0 0 14px rgba(255,95,87,.42);
}

.chart-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(0,0,0,0.12));
}

.chart {
  width: 100%;
  height: 340px;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  display: none;
  width: 160px;
  padding: 11px 12px;
  pointer-events: none;
  border: 1px solid rgba(255,227,154,.24);
  border-radius: 13px;
  background: rgba(10,10,9,.94);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  backdrop-filter: blur(16px);
}

.chart-tooltip.visible {
  display: grid;
  gap: 4px;
}

.chart-tooltip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.chart-tooltip b,
.chart-tooltip strong {
  color: var(--gold-2);
  font-size: 12px;
}

.chart-tooltip b.expense {
  color: var(--red);
}

.chart-tooltip strong {
  padding-top: 5px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #fff;
}

.chart-light {
  position: absolute;
  inset: 26px 28px 34px;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, transparent 38%, rgba(255,255,255,0) 44%, rgba(255,239,187,0.72) 49%, rgba(216,173,85,0.45) 52%, transparent 61%, transparent 100%);
  mix-blend-mode: screen;
  filter: blur(1px);
  transform: translateX(-120%);
  animation: graphSweep 2.45s cubic-bezier(.2,.8,.2,1) 0.35s 1 both;
}

@keyframes graphSweep {
  0% { opacity: 0; transform: translateX(-120%) skewX(-18deg); }
  16% { opacity: 1; }
  72% { opacity: 0.85; }
  100% { opacity: 0; transform: translateX(120%) skewX(-18deg); }
}

.dashboard-insights {
  display: grid;
  grid-template-columns: 1.18fr .9fr .9fr;
  gap: 14px;
  margin: 0 0 28px;
}

.insight-panel {
  min-width: 0;
}

.insight-panel h2 {
  margin-bottom: 18px;
}

.mix-list,
.signal-list,
.operation-list {
  display: grid;
  gap: 12px;
}

.mix-row {
  display: grid;
  grid-template-columns: 88px minmax(60px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.mix-row span {
  min-width: 0;
}

.mix-row span b,
.mix-row span small {
  display: block;
}

.mix-row span b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
}

.mix-row span small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.mix-row > div {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.mix-row > div i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
}

.mix-row > strong {
  color: var(--gold-2);
  font-size: 12px;
}

.signal-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.signal-list > div:last-child {
  border-bottom: 0;
}

.signal-list span,
.signal-list small {
  color: var(--muted);
  font-size: 11px;
}

.signal-list strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--gold-2);
  font-size: 18px;
  text-align: right;
}

.operation-list {
  gap: 8px;
}

.operation-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  color: var(--soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
}

.operation-list button:hover {
  border-color: rgba(255,227,154,.3);
  background: rgba(216,173,85,.08);
}

.operation-list strong {
  color: var(--gold-2);
  font-size: 18px;
}

.insight-empty {
  color: var(--muted);
  font-size: 12px;
}

.warning-text {
  color: var(--gold-bright) !important;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 190px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 24px;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(18px);
}

.filter-bar .toolbar,
.toolbar {
  margin: 0;
}

.filter-bar > span {
  color: var(--muted);
  white-space: nowrap;
  font-weight: 800;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search {
  flex: 1;
  min-width: min(420px, 100%);
}

.table-wrap {
  overflow: hidden;
}

.recent-block {
  padding: 28px;
}

.latest-row,
.row {
  display: grid;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.085);
}

.latest-row {
  grid-template-columns: 1fr auto;
  padding: 18px 0;
}

.latest-row small,
.transaction-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.latest-row > span {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}

.ledger-table,
.service-group {
  overflow-x: auto;
}

.transaction-head,
.transaction-row {
  display: grid;
  grid-template-columns: 110px 78px 150px 180px 125px minmax(190px, 1fr) 105px 120px 236px;
  gap: 14px;
  align-items: center;
  min-width: 1300px;
}

.transaction-head,
.table-head,
.service-head {
  color: rgba(255,255,255,0.42);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.transaction-head {
  padding: 18px 22px;
}

.transaction-row {
  padding: 18px 22px;
  color: var(--soft);
  border-top: 1px solid rgba(255,255,255,0.075);
}

.transaction-row strong {
  color: #fff;
  min-width: 0;
}

.table-head,
.row {
  grid-template-columns: 1.05fr 1.05fr 1.4fr 0.8fr;
  padding: 16px 22px;
}

.row strong,
.row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.amount {
  color: var(--green);
  font-weight: 950;
}

.negative {
  color: var(--red);
}

.bill-btn {
  color: var(--gold-2);
  border: 1px solid rgba(255,227,154,0.32);
  background: rgba(216,173,85,0.1);
}

.edit-btn {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
}

.delete-btn {
  color: var(--red);
  border: 1px solid rgba(255,95,87,0.36);
  background: rgba(255,95,87,0.11);
}

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

.card,
.warranty-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 230px;
}

.card h3,
.warranty-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.8px;
}

.card p,
.warranty-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.icon-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px !important;
}

.phone-dot,
.car-dot {
  color: var(--gold-2);
}

.card-rule {
  height: 1px;
  margin: 26px 0 18px;
  background: rgba(255,255,255,0.09);
}

.customer-stat {
  display: grid;
  gap: 7px;
  min-width: 100px;
}

.customer-stat.right {
  margin-left: auto;
  text-align: right;
}

.customer-stat small,
.warranty-dates small {
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 950;
}

.customer-stat b {
  font-size: 30px;
  line-height: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.cyan-action {
  color: var(--gold-2);
  min-width: 170px;
  border-color: rgba(255,227,154,0.38);
  background: rgba(216,173,85,0.1);
}

.range-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
}

.range-tabs button {
  min-width: 72px;
  height: 40px;
  color: var(--muted);
  border-radius: 14px;
  background: transparent;
}

.range-tabs button.active {
  color: #090806;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
}

.service-group {
  margin-bottom: 22px;
}

.group-title {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.group-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  border: 1px solid rgba(255,227,154,0.2);
  border-radius: 18px;
  background: rgba(216,173,85,0.1);
  font-weight: 950;
}

.group-title small {
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 11px;
  font-weight: 950;
}

.group-title h2 {
  margin: 4px 0 0;
}

.service-head,
.service-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) minmax(210px, 1.25fr) 120px 130px 130px 145px 150px;
  gap: 16px;
  align-items: center;
  min-width: 1120px;
}

.service-head {
  padding-bottom: 15px;
}

.service-row {
  padding: 17px 0;
  color: var(--soft);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.service-row strong {
  color: #fff;
}

.inventory-pill {
  color: var(--green);
  border-color: rgba(98,230,107,.25);
  background: rgba(98,230,107,.08);
}

.warranty-card-head,
.warranty-progress-meta,
.warranty-dates {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  color: var(--gold-2);
  border: 1px solid rgba(255,227,154,0.32);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.warranty-progress-meta {
  margin-top: 22px;
  color: var(--muted);
}

.warranty-progress-meta b {
  color: var(--gold-2);
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  margin-top: 10px;
  background: rgba(255,255,255,0.07);
}

.progress-bar > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

.warranty-dates {
  margin-top: 22px;
}

.warranty-dates span {
  display: grid;
  gap: 5px;
}

.log-btn {
  flex: 1;
  min-width: 160px;
  color: var(--gold-2);
  border-color: rgba(255,227,154,0.34);
  background: rgba(216,173,85,0.09);
}

.whatsapp-btn {
  color: var(--green);
  text-decoration: none;
  border: 1px solid rgba(98,230,107,0.35);
  background: rgba(98,230,107,0.08);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #07110a;
  background: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.maintenance-history {
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}

.maintenance-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

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

.maintenance-history summary strong {
  color: var(--gold-2);
}

.maintenance-history-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.maintenance-history-list div {
  padding: 10px 12px;
  border-radius: 9px;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.045);
  font-size: 12px;
  line-height: 1.45;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,0.74);
  backdrop-filter: blur(18px);
}

.modal-card {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 30px;
  padding: 24px;
}

.modal-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.modal-title h2 {
  margin: 7px 0 0;
  font-size: 34px;
  letter-spacing: -1px;
}

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

.form-span {
  grid-column: 1 / -1;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}

.toggle-line input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.toggle-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.inventory-link-rows {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.inventory-link-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(105px, .65fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(0,0,0,.22);
}

.service-inventory-editor.disabled .inventory-link-rows,
.service-inventory-editor.disabled [data-add-inventory-link] {
  display: none;
}

.linked-usage-panel:not(.visible) {
  display: none;
}

.usage-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 50px;
  gap: 10px;
  align-items: center;
  margin-top: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
}

.usage-line small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.usage-line i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

textarea {
  resize: vertical;
}

.form-note {
  grid-column: 1 / -1;
  border: 1px solid rgba(255,227,154,0.22);
  border-radius: 18px;
  color: var(--gold-2);
  background: rgba(216,173,85,0.08);
  padding: 13px 14px;
  font-size: 13px;
  line-height: 1.5;
}

/* Public product story */
.landing-shell {
  padding: 18px 0 54px;
}

.landing-shell .public-nav {
  width: calc(100% - 32px);
  margin-bottom: 18px;
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.public-nav-links a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.public-nav-links a:hover {
  color: #fff;
}

.scroll-progress {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.04);
}

.scroll-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold-2);
  box-shadow: 0 0 14px rgba(255,227,154,.6);
}

.story-container {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

.story-hero {
  position: relative;
  width: 100%;
  min-height: min(690px, calc(100svh - 180px));
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(3,3,2,.96) 0%, rgba(3,3,2,.78) 34%, rgba(3,3,2,.2) 66%, rgba(3,3,2,.08) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.story-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(3,3,2,.94));
}

.story-hero-content {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  width: min(1220px, calc(100% - 40px));
  margin: auto;
  padding: 30px 0 50px;
}

.story-hero-content h1 {
  max-width: 760px;
  margin: 14px 0 22px;
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: .96;
  letter-spacing: 0;
}

.story-hero-content > p {
  max-width: 650px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.7);
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.6;
}

.glass-button {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  background: rgba(8,8,7,.52);
  backdrop-filter: blur(16px);
  font-weight: 900;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-weight: 850;
}

.hero-proof span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: var(--gold-2);
}

.hero-live-card {
  position: absolute;
  right: max(24px, calc((100vw - 1220px) / 2));
  bottom: 70px;
  width: min(310px, calc(100% - 48px));
  padding: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(8,8,7,.64);
  box-shadow: 0 24px 60px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
}

.hero-live-card span,
.hero-live-card small {
  display: block;
  color: rgba(255,255,255,.56);
  font-size: 10px;
  font-weight: 850;
}

.hero-live-card strong {
  display: block;
  margin: 8px 0 12px;
  color: var(--gold-2);
  font-size: 31px;
}

.hero-live-card small b {
  color: #fff;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.44);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.scroll-cue i {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--gold-2);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  50% { transform: scaleX(.45); opacity: .45; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.2,.8,.2,1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-intro {
  padding: 128px 0 100px;
  text-align: center;
}

.story-intro h2,
.section-heading h2,
.owner-story-copy h2,
.system-story h2,
.story-cta h2 {
  max-width: 980px;
  margin: 12px auto 22px;
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1;
  letter-spacing: 0;
}

.story-intro > p {
  max-width: 820px;
  margin: auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.story-intro-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.story-intro-points span {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: var(--soft);
  font-size: 12px;
}

.workflow-story {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(460px, 1.18fr);
  column-gap: clamp(34px, 7vw, 100px);
  padding: 70px 0 130px;
}

#workflow,
#operations,
#aftercare {
  scroll-margin-top: 96px;
}

.workflow-copy {
  display: contents;
}

.workflow-copy > .eyebrow,
.workflow-copy > h2,
.workflow-step {
  grid-column: 1;
}

.workflow-copy > .eyebrow { grid-row: 1; align-self: end; }
.workflow-copy > h2 { grid-row: 2; margin: 12px 0 48px; font-size: clamp(38px, 4.5vw, 62px); line-height: 1; letter-spacing: 0; }
.workflow-step[data-flow-step="0"] { grid-row: 3; }
.workflow-step[data-flow-step="1"] { grid-row: 4; }
.workflow-step[data-flow-step="2"] { grid-row: 5; }
.workflow-step[data-flow-step="3"] { grid-row: 6; }
.workflow-step[data-flow-step="4"] { grid-row: 7; }

.workflow-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  min-height: 42vh;
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.38);
  transition: color 260ms ease;
}

.workflow-step.active {
  color: #fff;
}

.workflow-step > b {
  color: var(--gold-2);
  font-size: 12px;
}

.workflow-step h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.workflow-step p {
  margin: 0;
  color: currentColor;
  line-height: 1.65;
}

.workflow-visual {
  position: sticky;
  top: 98px;
  grid-column: 2;
  grid-row: 2 / 8;
  align-self: start;
  height: min(560px, calc(100vh - 150px));
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: #0a0a09;
  box-shadow: var(--shadow);
}

.workflow-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
}

.workflow-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.84));
}

.flow-screen {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  opacity: 0;
  transform: translateY(18px) scale(.98);
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 18px;
  background: rgba(9,9,8,.78);
  backdrop-filter: blur(20px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.workflow-visual[data-active-flow="0"] .flow-state-0,
.workflow-visual[data-active-flow="1"] .flow-state-1,
.workflow-visual[data-active-flow="2"] .flow-state-2,
.workflow-visual[data-active-flow="3"] .flow-state-3,
.workflow-visual[data-active-flow="4"] .flow-state-4 {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.flow-screen > span {
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.flow-screen h3 {
  margin: 8px 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0;
}

.flow-screen p {
  margin: 5px 0;
  color: var(--muted);
}

.flow-screen > strong {
  display: block;
  margin-top: 16px;
  color: var(--gold-2);
  font-size: 30px;
}

.flow-screen button,
.maintenance-card button {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border-radius: 13px;
  color: #080706;
  background: var(--gold-2);
  font-weight: 900;
}

.flow-state-2 > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.flow-state-2 > div p,
.flow-state-2 > div b {
  margin: 0;
}

.flow-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.flow-actions i {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--soft);
  font-size: 10px;
  font-style: normal;
}

.flow-progress,
.maintenance-card > i,
.stock-demo > i {
  display: block;
  height: 7px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}

.flow-progress i,
.maintenance-card > i b,
.stock-demo > i b {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold-2);
}

.operations-story {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 720px;
  background: #0b0b0a;
}

.operations-media {
  min-height: 620px;
  overflow: hidden;
}

.operations-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operations-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 110px);
}

.operations-copy h2,
.aftercare-overlay h2 {
  margin: 12px 0 20px;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.operations-copy > p,
.aftercare-overlay > p,
.owner-story-copy > p,
.story-cta > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.stock-demo {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.stock-demo > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.stock-demo span,
.stock-demo small {
  color: var(--muted);
  font-size: 11px;
}

.stock-demo strong {
  color: var(--gold-2);
  font-size: 24px;
}

.stock-demo > i {
  margin: 14px 0;
}

.stock-demo > i b {
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
}

.finance-story {
  padding: 130px 0;
}

.section-heading {
  text-align: center;
}

.finance-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 70px 0 54px;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.finance-columns article {
  min-height: 280px;
  padding: 34px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.finance-columns article:last-child {
  border-right: 0;
}

.finance-columns span,
.system-points b {
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.finance-columns h3 {
  margin: 20px 0 12px;
  font-size: 28px;
  letter-spacing: 0;
}

.finance-columns p,
.system-points p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.finance-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr);
  gap: 14px;
}

.finance-chart,
.finance-kpis {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
}

.finance-chart {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 28px;
}

.finance-chart > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.finance-chart > strong {
  display: block;
  margin-top: 10px;
  color: var(--gold-2);
  font-size: 42px;
}

.finance-chart svg {
  position: absolute;
  inset: auto 24px 18px;
  width: calc(100% - 48px);
}

.finance-chart .area { fill: rgba(216,173,85,.14); }
.finance-chart .income-line { fill: none; stroke: var(--gold-2); stroke-width: 4; }
.finance-chart .expense-line { fill: none; stroke: var(--red); stroke-width: 3; }

.finance-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.finance-kpis div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.finance-kpis span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.finance-kpis b {
  margin-top: 8px;
  font-size: 21px;
}

.aftercare-story {
  position: relative;
  min-height: min(820px, 88vh);
  overflow: hidden;
}

.aftercare-story > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aftercare-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,4,3,.96), rgba(4,4,3,.82) 42%, rgba(4,4,3,.16) 75%);
}

.aftercare-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  width: min(1220px, calc(100% - 40px));
  margin: auto;
  padding: 70px 0;
}

.aftercare-overlay > h2,
.aftercare-overlay > p {
  max-width: 650px;
}

.maintenance-card {
  width: min(470px, 100%);
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(8,8,7,.7);
  backdrop-filter: blur(18px);
}

.maintenance-card > span,
.maintenance-card > p {
  color: var(--muted);
  font-size: 11px;
}

.maintenance-card h3 {
  margin: 8px 0;
  font-size: 24px;
  letter-spacing: 0;
}

.owner-story {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(520px, 1.24fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding: 140px 0;
}

.owner-story-copy h2 {
  margin-inline: 0;
}

.owner-dashboard-demo {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(216,173,85,.16), transparent 42%),
    rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}

.demo-head,
.demo-head > div,
.demo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demo-head > span {
  font-size: 20px;
  font-weight: 900;
}

.demo-head i {
  padding: 7px 9px;
  color: var(--muted);
  border-radius: 9px;
  font-size: 10px;
  font-style: normal;
}

.demo-head i.active {
  color: #080706;
  background: var(--gold-2);
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  overflow: hidden;
}

.demo-metrics > div {
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,.09);
}

.demo-metrics span,
.demo-actions span {
  color: var(--muted);
  font-size: 10px;
}

.demo-metrics b {
  display: block;
  margin-top: 7px;
  color: var(--gold-2);
  font-size: 22px;
}

.demo-line {
  height: 240px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 220'%3E%3Cpath d='M0 186 C82 164 122 208 198 122 C274 38 340 94 408 75 C488 53 526 192 594 142 C644 105 666 52 700 64 L700 220 L0 220Z' fill='rgba(216,173,85,.18)'/%3E%3Cpath d='M0 186 C82 164 122 208 198 122 C274 38 340 94 408 75 C488 53 526 192 594 142 C644 105 666 52 700 64' fill='none' stroke='%23ffe39a' stroke-width='4'/%3E%3Cpath d='M0 205 C140 201 190 183 270 198 C352 213 430 174 518 192 C594 207 640 183 700 190' fill='none' stroke='%23ff5f57' stroke-width='3'/%3E%3C/svg%3E") center/96% 88% no-repeat;
  background-size: 100% 55px, 96% 88%;
}

.demo-actions {
  margin-top: 14px;
}

.demo-actions span {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.demo-actions b {
  float: right;
  color: var(--gold-2);
}

.system-story {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(40px, 7vw, 100px);
  padding: 40px 0 130px;
}

.system-story h2 {
  margin-inline: 0;
}

.system-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.1);
}

.system-points article {
  min-height: 190px;
  padding: 28px 22px 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.system-points article:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.system-points article:nth-child(even) {
  padding-left: 28px;
}

.system-points p {
  margin-top: 13px;
}

.story-cta {
  padding: 100px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}

.story-cta > span {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.story-cta > p {
  max-width: 620px;
  margin: auto;
}

.story-cta .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1220px, calc(100% - 40px));
  margin: auto;
  padding: 30px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 11px;
}

.public-footer b {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .flow-screen,
  .scroll-cue i {
    transition: none;
    animation: none;
  }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  border: 1px solid rgba(98,230,107,0.35);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--green);
  background: rgba(11, 45, 16, 0.92);
  box-shadow: var(--shadow);
}

.invoice-shell {
  display: grid;
  place-items: start center;
  padding: 26px;
  border: 1px solid rgba(216,173,85,0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216,173,85,0.2), transparent 42%),
    rgba(0,0,0,0.5);
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title-row h3 {
  margin: 0;
}

.stock-alert {
  border-color: rgba(255, 116, 79, 0.34) !important;
}

.warning-pill {
  color: var(--gold-bright) !important;
  border-color: rgba(255, 214, 102, 0.3) !important;
  background: rgba(255, 214, 102, 0.08) !important;
}

.danger-pill {
  color: var(--red) !important;
  border-color: rgba(255, 92, 92, 0.3) !important;
  background: rgba(255, 92, 92, 0.08) !important;
}

.invoice-picker {
  display: grid;
  grid-template-columns: 90px minmax(260px, 520px);
  gap: 12px;
  align-items: center;
  width: min(960px, 100%);
  margin: 0 auto 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
}

.invoice-picker label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.invoice-picker select {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  color: #fff;
  background: rgba(0,0,0,0.34);
  padding: 0 14px;
}

.invoice-paper {
  position: relative;
  overflow: hidden;
  width: min(960px, 100%);
  min-height: 1180px;
  color: #171512;
  border-radius: 12px;
  padding: 42px;
  background:
    radial-gradient(circle at 16% 12%, rgba(216,173,85,0.10), transparent 28%),
    radial-gradient(circle at 82% 64%, rgba(216,173,85,0.08), transparent 30%),
    #fbf8ef;
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
}

.invoice-gold-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, #7e6128, #f0cd75, #8a6926);
}

.invoice-header,
.invoice-brand,
.invoice-bottom,
.invoice-footer {
  display: flex;
}

.invoice-header {
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 34px;
}

.invoice-kicker,
.invoice-info-card > span,
.invoice-note span {
  color: #8a6926;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 11px;
  font-weight: 950;
}

.invoice-kicker {
  margin: 0 0 26px;
}

.invoice-brand {
  align-items: center;
  gap: 22px;
}

.invoice-logo {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #f1ce72;
  background: #050505;
  border-radius: 20px;
  font-size: 40px;
  font-weight: 950;
}

.invoice-brand h2,
.invoice-title h2 {
  margin: 0;
  color: #151515;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -1.4px;
}

.invoice-brand p,
.invoice-title p {
  color: #7a7974;
  margin: 8px 0 0;
  font-weight: 750;
}

.invoice-title {
  text-align: right;
  text-transform: uppercase;
}

.invoice-title h2 {
  font-size: 42px;
}

.invoice-title p {
  color: #8a6926;
  letter-spacing: 4px;
  font-size: 12px;
}

.invoice-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.invoice-info-card,
.invoice-note,
.invoice-total {
  border: 1px solid #e5ddcd;
  border-radius: 22px;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 18px 50px rgba(95, 74, 32, 0.08);
}

.invoice-info-card,
.invoice-note,
.invoice-total {
  padding: 24px;
}

.invoice-info-card h3 {
  margin: 12px 0 16px;
  color: #151515;
  font-size: 27px;
  letter-spacing: -0.8px;
}

.invoice-info-card dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px 18px;
  margin: 0;
}

.invoice-info-card dt {
  color: #75736e;
  font-size: 13px;
  font-weight: 850;
}

.invoice-info-card dd {
  margin: 0;
  color: #2a2926;
  font-weight: 850;
}

.invoice-table {
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e5ddcd;
  border-radius: 20px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.34);
}

.invoice-table th,
.invoice-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #ddd3bd;
  text-align: left;
}

.invoice-table th {
  color: #caa653;
  background: #101014;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.invoice-table td {
  color: #25231f;
}

.invoice-table small {
  color: #77736b;
  font-weight: 700;
}

.invoice-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.8fr);
  gap: 28px;
  margin-top: 34px;
}

.invoice-note p {
  margin: 12px 0 18px;
  color: #66625a;
  line-height: 1.55;
  font-weight: 650;
}

.invoice-total {
  align-self: start;
  background: linear-gradient(145deg, rgba(255,255,255,0.74), rgba(250,241,216,0.74));
  border-color: #e2c982;
}

.invoice-total p,
.invoice-total h3 {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 14px;
}

.invoice-total p {
  color: #69665f;
  font-weight: 800;
}

.invoice-total h3 {
  color: #151515;
  font-size: 19px;
}

.invoice-total h3 b {
  color: #8a6926;
  font-size: 34px;
  line-height: 0.9;
}

.invoice-total hr {
  border: 0;
  height: 1px;
  margin: 18px 0;
  background: #dccca6;
}

.invoice-footer {
  justify-content: space-between;
  gap: 20px;
  margin-top: 220px;
  padding-top: 20px;
  border-top: 1px solid #ded8cb;
  color: #8b8a85;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 11px;
  font-weight: 950;
}

@media (max-width: 1180px) {
  .workflow-story {
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    column-gap: 42px;
  }

  .owner-story,
  .system-story {
    grid-template-columns: 1fr;
  }

  .owner-story-copy h2,
  .system-story h2 {
    max-width: 820px;
  }

  .owner-dashboard-demo {
    width: 100%;
  }

  .public-hero,
  .register-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-product {
    min-height: 440px;
  }

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

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

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

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

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .sidebar-footer {
    display: none;
  }

  .main {
    padding: 0 0 56px;
  }

  .hero-metrics,
  .category-metrics,
  .metrics,
  .owner-metrics,
  .warranty-metrics,
  .cards,
  .warranty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .studio-pulse-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pulse-primary {
    grid-column: 1 / -1;
  }

  .pulse-stat {
    border-top: 1px solid rgba(255,255,255,.09);
  }

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

  .dashboard-insights .insight-panel:first-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .public-shell.landing-shell {
    padding: 12px 0 40px;
  }

  .landing-shell .public-nav {
    position: sticky;
    top: 8px;
    display: flex;
    width: calc(100% - 24px);
    margin-bottom: 12px;
  }

  .landing-shell .public-nav-actions {
    width: auto;
  }

  .public-nav-links {
    display: none;
  }

  .login-brand {
    font-size: 14px;
  }

  .landing-shell .public-nav-actions .ghost {
    display: none;
  }

  .story-hero {
    min-height: 690px;
    background-position: 62% center;
    background-image:
      linear-gradient(90deg, rgba(3,3,2,.95), rgba(3,3,2,.68) 72%, rgba(3,3,2,.38)),
      var(--hero-image);
  }

  .story-hero-content {
    justify-content: flex-start;
    padding-top: 64px;
    padding-bottom: 170px;
  }

  .story-hero-content h1 {
    font-size: clamp(42px, 13vw, 56px);
    line-height: .98;
  }

  .story-hero-content > p {
    font-size: 15px;
  }

  .hero-live-card {
    right: 20px;
    bottom: 58px;
    width: calc(100% - 40px);
  }

  .hero-proof {
    display: none;
  }

  .scroll-cue span {
    display: none;
  }

  .story-intro {
    padding: 92px 0 72px;
    text-align: left;
  }

  .story-intro h2,
  .section-heading h2,
  .owner-story-copy h2,
  .system-story h2,
  .story-cta h2 {
    font-size: clamp(36px, 10.5vw, 48px);
    text-align: left;
  }

  .story-intro > p {
    font-size: 16px;
  }

  .story-intro-points {
    justify-content: flex-start;
  }

  .workflow-story {
    display: flex;
    flex-direction: column;
    padding: 48px 0 90px;
  }

  .workflow-copy {
    display: contents;
  }

  .workflow-copy > .eyebrow { order: 1; }
  .workflow-copy > h2 { order: 2; margin-bottom: 30px; font-size: 42px; }
  .workflow-visual {
    order: 3;
    position: sticky;
    top: 78px;
    z-index: 3;
    width: 100%;
    height: 48vh;
    min-height: 350px;
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .workflow-step {
    order: 4;
    min-height: 52vh;
    padding: 40px 0;
  }

  .flow-screen {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }

  .flow-screen h3 {
    font-size: 25px;
  }

  .operations-story {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .operations-media {
    min-height: 420px;
  }

  .operations-copy {
    padding: 58px 20px 72px;
  }

  .operations-copy h2,
  .aftercare-overlay h2 {
    font-size: 42px;
  }

  .finance-story {
    padding: 92px 0;
  }

  .section-heading {
    text-align: left;
  }

  .finance-columns,
  .finance-visual,
  .owner-story,
  .system-story {
    grid-template-columns: 1fr;
  }

  .finance-columns {
    margin-top: 44px;
  }

  .finance-columns article {
    min-height: 0;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .finance-chart {
    min-height: 320px;
  }

  .finance-kpis {
    min-height: 260px;
  }

  .aftercare-story {
    min-height: 900px;
  }

  .aftercare-story > img {
    object-position: 60% center;
  }

  .aftercare-story::after {
    background: linear-gradient(180deg, rgba(4,4,3,.45), rgba(4,4,3,.88) 46%, rgba(4,4,3,.98));
  }

  .aftercare-overlay {
    justify-content: flex-end;
    padding-bottom: 56px;
  }

  .owner-story {
    gap: 36px;
    padding: 92px 0;
  }

  .owner-story-copy h2,
  .system-story h2 {
    margin-inline: 0;
  }

  .owner-dashboard-demo {
    padding: 14px;
  }

  .demo-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-metrics {
    grid-template-columns: 1fr;
  }

  .demo-metrics > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .demo-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .system-story {
    gap: 32px;
    padding-bottom: 92px;
  }

  .system-points {
    grid-template-columns: 1fr;
  }

  .system-points article,
  .system-points article:nth-child(odd),
  .system-points article:nth-child(even) {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
  }

  .story-cta {
    padding: 76px 0;
    text-align: left;
  }

  .story-cta .hero-actions {
    justify-content: flex-start;
  }

  .public-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-shell {
    padding: 12px 12px 40px;
  }

  .public-nav {
    position: static;
    display: grid;
    margin-bottom: 26px;
  }

  .public-nav-actions,
  .hero-actions {
    width: 100%;
  }

  .public-nav-actions button,
  .hero-actions button {
    flex: 1;
  }

  .hero-copy h1,
  .register-intro h1 {
    font-size: clamp(36px, 11vw, 48px);
    letter-spacing: -1.6px;
  }

  .hero-product {
    min-height: 390px;
    padding: 14px;
  }

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

  .hero-chart {
    left: 14px;
    right: 14px;
    bottom: 14px;
    height: 180px;
  }

  .feature-grid,
  .visual-grid,
  .insight-board,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .visual-card,
  .visual-card img {
    min-height: 280px;
  }

  .insight-chart.large {
    min-height: 230px;
  }

  .section-title {
    display: grid;
  }

  .app-shell {
    padding: 12px;
    gap: 14px;
  }

  .side-brand {
    padding: 18px;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .nav button {
    min-height: 52px;
    padding: 10px;
  }

  .nav small {
    display: none;
  }

  .topbar {
    display: grid;
  }

  .topbar h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero-metrics,
  .category-metrics,
  .metrics,
  .owner-metrics,
  .warranty-metrics,
  .cards,
  .warranty-grid,
  .form-grid,
  .invoice-info-grid,
  .invoice-bottom {
    grid-template-columns: 1fr;
  }

  .owner-grid,
  .close-values,
  .inventory-link-row {
    grid-template-columns: 1fr;
  }

  .studio-pulse-band,
  .period-overview,
  .dashboard-insights {
    grid-template-columns: 1fr;
  }

  .pulse-primary,
  .dashboard-insights .insight-panel:first-child {
    grid-column: auto;
  }

  .pulse-stat {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.09);
  }

  .period-card > div {
    justify-content: flex-start;
    gap: 34px;
  }

  .chart-heading {
    display: grid;
  }

  .chart-legend {
    padding-top: 0;
  }

  .dashboard-divider {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .chart {
    height: 320px;
  }

  .table-head {
    display: none;
  }

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

  .invoice-shell {
    padding: 12px;
    border-radius: 24px;
    overflow-x: auto;
  }

  .invoice-picker {
    grid-template-columns: 1fr;
  }

  .invoice-paper {
    min-width: 720px;
    padding: 32px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body {
    background: #fff !important;
  }

  body * {
    visibility: hidden !important;
  }

  .invoice-paper,
  .invoice-paper * {
    visibility: visible !important;
  }

  .invoice-paper {
    position: absolute;
    inset: 0 auto auto 0;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 14mm;
    border-radius: 0;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .invoice-footer {
    margin-top: 38mm;
  }
}
