:root {
  --background: #f7f9fb;
  --surface: #ffffff;
  --surface-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-high: #e6e8ea;
  --surface-highest: #e0e3e5;
  --on-surface: #191c1e;
  --on-surface-variant: #45464d;
  --muted: #64748b;
  --outline: #76777d;
  --outline-variant: #c6c6cd;
  --border: #e2e8f0;
  --primary: #0f172a;
  --on-primary: #ffffff;
  --secondary: #06b6d4;
  --secondary-strong: #00687a;
  --secondary-container: #57dffe;
  --secondary-soft: #e6fbff;
  --success: #16a34a;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --shadow-interactive: 0 4px 12px rgba(15, 23, 42, 0.08);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1440px;
  --gutter: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--on-surface);
  background: var(--background);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

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

main,
.topbar,
.footer {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

main {
  padding-bottom: 72px;
}

.topbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.brand-mark img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--primary);
}

.nav-cta {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 56px;
  padding: 48px 0 40px;
}

.hero-copy {
  padding: 8px 0;
}

.eyebrow {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--outline-variant);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--secondary-strong);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0.01em;
}

.hero-copy h1,
.section-heading h2,
.workflow-copy h2,
.cta h2 {
  margin: 16px 0 14px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: 3rem;
  font-weight: 700;
  line-height: 3.5rem;
}

.section-heading h2,
.workflow-copy h2,
.cta h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 2.5rem;
  letter-spacing: -0.01em;
}

.hero-copy p,
.section-heading p,
.workflow-copy p,
.cta p,
.feature-card p,
.step p,
.price-card p,
.footer p,
.proof p,
.stock-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5rem;
}

.hero-copy p {
  max-width: 58ch;
}

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

.btn {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-interactive);
}

.btn-primary:hover {
  background: #1e293b;
}

.btn-secondary {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary-strong);
  border-color: var(--secondary-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--outline-variant);
}

.btn-ghost:hover {
  background: var(--surface-low);
}

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

.hero-notes span {
  padding: 7px 10px;
  border: 1px solid var(--outline-variant);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--on-surface-variant);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
}

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

.screen {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-interactive);
  overflow: hidden;
}

.real-dashboard-screen {
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: 560px;
}

.screen-sidebar {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: var(--primary);
}

.real-dashboard-screen .screen-sidebar {
  align-items: stretch;
  gap: 22px;
  padding: 22px 18px;
}

.screen-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.screen-logo img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.screen-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-primary);
}

.screen-brand strong {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.screen-brand small {
  color: #cbd5e1;
  font-size: 0.75rem;
  line-height: 1rem;
}

.screen-nav {
  display: grid;
  gap: 6px;
}

.screen-nav span {
  min-height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
}

.screen-nav .is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--secondary);
}

.screen-line {
  width: 36px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
}

.screen-line.short {
  width: 24px;
}

.screen-line.active {
  background: var(--secondary);
}

.screen-main {
  padding: 28px;
  background: var(--surface-low);
}

.real-dashboard-screen .screen-main {
  padding: 0;
  overflow: hidden;
}

.screen-app-header {
  min-height: 78px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.screen-app-header h2 {
  margin: 4px 0 0;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.75rem;
  letter-spacing: 0;
}

.screen-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.screen-search {
  width: 180px;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
}

.dashboard-metric-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px;
}

.dashboard-metric-row article {
  padding: 14px;
}

.dashboard-metric-row article.warning {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.dashboard-metric-row small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1rem;
}

.dashboard-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.65fr);
  gap: 12px;
  margin: 0 22px 12px;
}

.dashboard-preview-grid.lower {
  grid-template-columns: minmax(0, 1fr) 210px;
  margin-bottom: 22px;
}

.dashboard-preview-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

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

.preview-panel-head h3 {
  margin: 4px 0 0;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35rem;
}

.preview-chip,
.preview-link {
  color: var(--secondary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1rem;
}

.preview-chip {
  padding: 5px 10px;
  border: 1px solid rgba(6, 182, 212, 0.32);
  border-radius: 9999px;
  background: var(--secondary-soft);
}

.empty-preview {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f1f5f9;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2rem;
}

.preview-table {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #eaf0f6;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1rem;
  text-transform: uppercase;
}

.table-preview .empty-preview {
  border-radius: 0 0 var(--radius) var(--radius);
}

.restock-preview .empty-preview {
  min-height: 64px;
}

.screen-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  letter-spacing: 0.01em;
}

.screen-top h2 {
  margin: 8px 0 0;
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 600;
  line-height: 2.5rem;
  letter-spacing: 0;
}

.status-pill {
  padding: 8px 12px;
  border: 1px solid rgba(6, 182, 212, 0.32);
  border-radius: 9999px;
  background: var(--secondary-soft);
  color: var(--secondary-strong);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  white-space: nowrap;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.metric-row article,
.sales-list,
.stock-card,
.feature-card,
.workflow-steps,
.stats article,
.testimonial,
.price-card,
.cta,
.proof {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.metric-row article {
  padding: 16px;
  border-left: 2px solid var(--secondary);
}

.metric-row span,
.sales-list span {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.metric-row strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.75fr);
  gap: 12px;
  margin-top: 12px;
}

.sales-list {
  padding: 0;
  overflow: hidden;
}

.list-head,
.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.list-head {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  color: var(--on-surface-variant);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.list-head strong,
.list-item strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.list-item + .list-item {
  border-top: 1px solid var(--border);
}

.list-item:hover {
  background: #f0fdff;
}

.stock-card {
  padding: 16px;
  border-color: #fde68a;
  background: var(--warning-soft);
}

.stock-bar {
  height: 8px;
  margin: 20px 0 16px;
  overflow: hidden;
  border-radius: 9999px;
  background: #fde68a;
}

.stock-bar::before {
  content: "";
  display: block;
  width: var(--stock);
  height: 100%;
  background: var(--warning);
}

.stock-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.section {
  margin-top: 32px;
}

.proof {
  padding: 18px 20px;
}

.proof p {
  max-width: 860px;
  margin: 0;
  font-weight: 500;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

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

.feature-card {
  padding: 20px;
}

.feature-card h3,
.step h3,
.price-card h3 {
  margin: 16px 0 8px;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.feature-card p,
.step p,
.price-card p {
  margin-bottom: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(6, 182, 212, 0.32);
  border-radius: var(--radius);
  background: var(--secondary-soft);
  color: var(--secondary-strong);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.workflow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.workflow-copy {
  padding: 12px 0;
}

.workflow-steps {
  padding: 0;
  overflow: hidden;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 0;
}

.step + .step {
  border-top: 1px solid var(--border);
}

.step span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  font-weight: 600;
}

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

.stats article {
  padding: 18px;
  border-left: 2px solid var(--secondary);
}

.stats strong,
.price-card strong {
  display: block;
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0;
}

.stats strong {
  margin-bottom: 6px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.testimonial {
  padding: 28px;
  background: var(--primary);
  color: var(--on-primary);
}

.testimonial blockquote {
  max-width: 820px;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
  letter-spacing: -0.01em;
}

.testimonial-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.testimonial-meta span {
  display: block;
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 0.875rem;
}

.testimonial .btn-secondary {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

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

.price-card {
  padding: 24px;
  position: relative;
}

.price-card strong {
  margin: 10px 0 12px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
}

.price-card ul {
  padding-left: 18px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.price-card li + li {
  margin-top: 10px;
}

.price-card.featured {
  border-color: rgba(6, 182, 212, 0.38);
  background: var(--secondary-soft);
  box-shadow: var(--shadow-interactive);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(6, 182, 212, 0.32);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--secondary-strong);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
}

.cta {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 28px;
  align-items: center;
}

.cta-form {
  display: grid;
  gap: 12px;
}

.cta-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--on-surface);
  font: inherit;
  font-size: 0.875rem;
  outline: none;
}

.cta-form input::placeholder {
  color: var(--muted);
}

.cta-form input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.footer {
  padding: 4px 0 28px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 280px),
    var(--background);
}

.auth-topbar {
  min-height: 76px;
}

.auth-shell {
  min-height: calc(100vh - 104px);
  padding: 40px 0 64px;
  display: grid;
  grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.auth-card,
.auth-aside {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.auth-card {
  padding: 32px;
  box-shadow: var(--shadow-interactive);
}

.auth-heading h1 {
  margin: 16px 0 10px;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  line-height: 2.5rem;
  letter-spacing: -0.02em;
}

.auth-heading p,
.auth-switch {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.auth-heading p {
  margin: 0;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.password-reset-form [data-reset-email-step],
.password-reset-form [data-reset-otp-step] {
  display: grid;
  gap: 16px;
}

.password-reset-form [hidden] {
  display: none;
}

.password-reset-form [data-reset-email-step] > .btn {
  width: 100%;
}

.notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  background: #f0fdf4;
  color: #166534;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.notice.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.toast-region {
  width: min(380px, calc(100vw - 32px));
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: var(--radius);
  background: #fff;
  color: #7f1d1d;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  animation: toast-enter 180ms ease-out;
  pointer-events: auto;
}

.app-toast.is-success {
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  color: #166534;
}

.app-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-toast p {
  margin: 3px 0 0;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.25rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.app-toast button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: currentColor;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.stepper span {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface-low);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
}

.stepper span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 9999px;
  background: var(--outline-variant);
}

.stepper .is-active {
  border-color: rgba(6, 182, 212, 0.36);
  background: var(--secondary-soft);
  color: var(--secondary-strong);
}

.stepper .is-active::before {
  background: var(--secondary);
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step:not(.is-active) {
  display: none;
}

.form-step legend {
  margin: 0 0 16px;
  padding: 0;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5rem;
}

.form-step .field + .field,
.form-step .field + .check-field,
.form-step .check-field + .form-actions {
  margin-top: 16px;
}

.form-step > .btn {
  width: 100%;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--on-surface-variant);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  letter-spacing: 0.01em;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--on-surface);
  font: inherit;
  font-size: 0.875rem;
  outline: none;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.check-field {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.check-field input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--secondary);
}

.terms-field {
  align-items: flex-start;
}

.text-link,
.auth-switch a {
  color: var(--secondary-strong);
  font-weight: 700;
}

.text-link:hover,
.auth-switch a:hover {
  color: var(--primary);
}

.auth-switch {
  margin: 22px 0 0;
}

.auth-aside {
  min-height: 520px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(6, 182, 212, 0.12), rgba(6, 182, 212, 0)),
    var(--primary);
  color: var(--on-primary);
  overflow: hidden;
}

.auth-aside-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-aside h2 {
  max-width: 560px;
  margin: 40px 0 16px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 2.5rem;
  letter-spacing: -0.02em;
}

.auth-dashboard-link {
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
}

.auth-metrics,
.auth-checklist {
  display: grid;
  gap: 12px;
}

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

.auth-metrics article,
.auth-checklist span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
}

.auth-metrics article {
  padding: 16px;
}

.auth-metrics span {
  display: block;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
}

.auth-metrics strong {
  display: block;
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.auth-checklist span {
  padding: 14px 16px;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
}

@media (max-width: 1060px) {
  .hero,
  .workflow,
  .cta,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 32px;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

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

  .auth-shell {
    align-items: stretch;
  }

  .auth-aside {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .toast-region {
    width: auto;
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .topbar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  .hero {
    gap: 24px;
    padding: 24px 0 32px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .section-heading h2,
  .workflow-copy h2,
  .cta h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .screen {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .screen-sidebar {
    min-height: 64px;
    flex-direction: row;
    justify-content: flex-start;
  }

  .real-dashboard-screen .screen-sidebar {
    gap: 14px;
    overflow-x: auto;
  }

  .screen-brand {
    flex: 0 0 auto;
  }

  .screen-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .screen-nav span {
    white-space: nowrap;
  }

  .screen-main {
    padding: 18px;
  }

  .real-dashboard-screen .screen-main {
    padding: 0;
  }

  .screen-top {
    flex-direction: column;
  }

  .screen-app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .screen-search {
    width: 100%;
  }

  .dashboard-metric-row,
  .dashboard-preview-grid,
  .dashboard-preview-grid.lower {
    grid-template-columns: 1fr;
    margin-right: 16px;
    margin-left: 16px;
  }

  .screen-top h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .metric-row,
  .workbench,
  .feature-grid,
  .pricing-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .testimonial {
    padding: 22px;
  }

  .testimonial blockquote {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .testimonial-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta {
    padding: 22px;
  }

  .auth-shell {
    min-height: auto;
    padding: 24px 0 48px;
  }

  .auth-card,
  .auth-aside {
    padding: 22px;
  }

  .auth-heading h1,
  .auth-aside h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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