:root {
  color-scheme: light;
  --bg: #f4efe7;
  --bg-2: #e8efe9;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #141b1f;
  --muted: #5f666d;
  --border: rgba(20, 27, 31, 0.1);
  --shadow: 0 20px 60px rgba(28, 39, 48, 0.12);
  --shadow-soft: 0 10px 30px rgba(28, 39, 48, 0.08);
  --accent: #214f51;
  --accent-2: #b26a40;
  --accent-3: #77855b;
  --gold: #9f7f3d;
  --warm: #d8b18a;
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(33, 79, 81, 0.14), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(178, 106, 64, 0.16), transparent 22%),
    radial-gradient(circle at 80% 80%, rgba(119, 133, 91, 0.16), transparent 20%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 90%);
  opacity: 0.35;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

ol,
ul {
  margin: 0;
  padding-left: 1.2rem;
}

code {
  background: rgba(20, 27, 31, 0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.4rem;
  border-radius: 0.5rem;
  font-size: 0.92rem;
}

.page-shell {
  position: relative;
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.page-shell.wide {
  width: min(1480px, calc(100% - 24px));
}

.workspace {
  display: grid;
  gap: 20px;
  align-items: start;
}

.workspace-app {
  grid-template-columns: 280px minmax(0, 1fr);
}

.workspace-public {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.mark-wrap {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(33, 79, 81, 0.12), rgba(178, 106, 64, 0.12));
  border: 1px solid rgba(20, 27, 31, 0.08);
  overflow: hidden;
}

.mark-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.brand-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-link .brand-logo-wide {
  width: clamp(180px, 22vw, 260px);
  height: auto;
  object-fit: contain;
}

.sidebar-brand strong,
.brand-link span {
  display: block;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.2rem;
}

.sidebar-brand span,
.sidebar-user span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.sidebar-user {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.65);
}

.sidebar-user strong {
  display: block;
  margin-bottom: 4px;
}

.sidebar-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

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

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: all 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: rgba(33, 79, 81, 0.18);
  background: rgba(33, 79, 81, 0.08);
}

.sidebar-footer {
  margin-top: auto;
}

.topbar,
.site-header,
.flash,
.panel,
.hero,
.brand-strip,
.auth-shell,
.feature-card,
.plan-card,
.metric-card {
  animation: rise 360ms ease both;
}

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

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-brand-icon {
  width: 58px;
  height: 58px;
  padding: 5px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 27, 31, 0.08);
  box-shadow: var(--shadow-soft);
}

.topbar-title .eyebrow,
.site-header .eyebrow,
.panel .eyebrow,
.hero .eyebrow,
.auth-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 700;
}

.topbar-title h1 {
  margin-top: 8px;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.topbar-actions,
.hero-actions,
.auth-links,
.hero-pills,
.timeline-route,
.sidebar-user-meta,
.form-actions,
.panel-head,
.card-head,
.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.25rem;
}

.brand-link img {
  width: 42px;
  height: 42px;
}

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

.site-header-nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 160ms ease;
}

.site-header-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(20, 27, 31, 0.08);
}

.main-content {
  min-width: 0;
}

.main-app {
  display: grid;
  gap: 20px;
}

.main-public {
  padding-bottom: 28px;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 27, 31, 0.08);
  box-shadow: var(--shadow-soft);
}

.flash strong {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.hero-copy,
.hero-panel,
.brand-strip,
.auth-card,
.panel,
.feature-card,
.plan-card,
.metric-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(24px, 4vw, 42px);
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  margin-top: 16px;
}

.hero-text {
  max-width: 58ch;
  margin-top: 18px;
  font-size: 1.04rem;
}

.hero-actions {
  margin-top: 28px;
}

.hero-pills {
  margin-top: 18px;
}

.hero-panel {
  padding: 24px;
  display: grid;
  gap: 18px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 239, 231, 0.92));
  border-color: rgba(20, 27, 31, 0.08);
  overflow: hidden;
}

.hero-banner {
  min-height: 252px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 27, 31, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-icon-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-icon-row img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  padding: 12px;
  border-radius: 22px;
  background: rgba(247, 244, 239, 0.92);
  border: 1px solid rgba(20, 27, 31, 0.08);
  box-shadow: 0 12px 24px rgba(28, 39, 48, 0.12);
}

.hero-stat {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(20, 27, 31, 0.08);
}

.hero-panel .hero-stat {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(20, 27, 31, 0.08);
}

.hero-stat strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.hero-stat ol {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1.2rem;
}

.hero-panel .hero-stat strong {
  color: var(--text);
}

.hero-panel .hero-stat ol {
  color: var(--muted);
}

.hero-panel .metric-card {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  color: var(--text);
}

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

.feature-grid,
.metric-grid,
.plan-grid,
.check-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  padding: 20px;
}

.feature-card h2,
.feature-card h3 {
  margin-bottom: 12px;
}

.brand-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px;
  margin: 24px 0;
}

.brand-strip h2 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-top: 8px;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-value {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.metric-detail {
  color: var(--muted);
  font-size: 0.94rem;
}

.metric-accent {
  border-color: rgba(33, 79, 81, 0.16);
}

.metric-warm {
  border-color: rgba(178, 106, 64, 0.16);
}

.metric-gold {
  border-color: rgba(159, 127, 61, 0.16);
}

.panel {
  padding: 22px;
}

.panel.compact {
  padding: 18px;
}

.panel-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-head-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.panel-head h2 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.panel-hint {
  color: var(--muted);
  font-size: 0.94rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 20px;
}

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

.stat-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.stack {
  display: grid;
  gap: 12px;
}

.progress-row {
  display: grid;
  gap: 8px;
}

.progress-row-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(20, 27, 31, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.timeline {
  display: grid;
  gap: 14px;
}

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

.timeline-dot {
  width: 14px;
  height: 14px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(33, 79, 81, 0.08);
}

.timeline-body {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  padding: 16px;
}

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

.timeline-head span,
.timeline-response,
.timeline-extra {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline p {
  margin-top: 10px;
}

.timeline-response {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(33, 79, 81, 0.08);
}

.timeline-route {
  margin-top: 6px;
}

.timeline-extra {
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 27, 31, 0.08);
  font-size: 0.82rem;
  line-height: 1;
}

.pill-neutral,
.pill-soft {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.pill-accent {
  background: rgba(33, 79, 81, 0.12);
  color: var(--accent);
}

.pill-warm {
  background: rgba(178, 106, 64, 0.12);
  color: var(--accent-2);
}

.pill-gold {
  background: rgba(159, 127, 61, 0.12);
  color: var(--gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #2f6668);
  box-shadow: 0 12px 25px rgba(33, 79, 81, 0.22);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(20, 27, 31, 0.08);
}

.button-ghost {
  color: var(--accent);
  background: transparent;
  border-color: rgba(33, 79, 81, 0.18);
}

.button-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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

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

.field span {
  font-size: 0.92rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select,
.search-bar input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(20, 27, 31, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.field textarea {
  resize: vertical;
  min-height: 108px;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-bar input:focus {
  border-color: rgba(33, 79, 81, 0.34);
  box-shadow: 0 0 0 4px rgba(33, 79, 81, 0.12);
}

.field.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.field.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.form-actions {
  justify-content: space-between;
  grid-column: 1 / -1;
}

.form-help {
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: start;
  padding: 24px 0 8px;
}

.auth-copy {
  padding: 20px 8px;
}

.auth-copy h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  margin-top: 12px;
}

.auth-copy p {
  margin-top: 16px;
  max-width: 48ch;
}

.auth-brand-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 23, 26, 0.98), rgba(31, 42, 47, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(20, 27, 31, 0.18);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.auth-brand-card img {
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
}

.auth-note {
  margin-top: 20px;
  border: 1px solid rgba(20, 27, 31, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.auth-note strong {
  display: block;
  margin-bottom: 6px;
}

.auth-card {
  padding: 22px;
}

.auth-links {
  justify-content: space-between;
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.94rem;
}

.form-error,
.form-success {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.form-error {
  background: rgba(178, 106, 64, 0.1);
  color: #7b3d16;
}

.form-success {
  background: rgba(33, 79, 81, 0.1);
  color: var(--accent);
}

.search-bar {
  display: flex;
  gap: 12px;
}

.memory-grid,
.check-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.memory-card,
.check-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(20, 27, 31, 0.08);
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 10px;
}

.memory-card h3 {
  font-size: 1.2rem;
}

.memory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-card {
  padding: 20px;
}

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

.plan-card p {
  margin-top: 14px;
}

.plan-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
  color: var(--muted);
}

.plan-active {
  border-color: rgba(33, 79, 81, 0.24);
  box-shadow: 0 20px 40px rgba(33, 79, 81, 0.12);
}

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

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(20, 27, 31, 0.08);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.bullet-list,
.checklist {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.empty-state {
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
  padding: 30px 16px;
  color: var(--muted);
}

.copy-stack {
  display: grid;
  gap: 12px;
}

.copy-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.copy-row code {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-detail {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.auth-shell .button,
.hero-actions .button,
.form-actions .button,
.sidebar-footer .button {
  white-space: nowrap;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .workspace-app,
  .dashboard-grid,
  .hero,
  .auth-shell,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 10px;
  }

  .topbar,
  .site-header,
  .brand-strip,
  .panel-head,
  .hero {
    flex-direction: column;
    align-items: start;
  }

  .form-grid,
  .metric-grid,
  .plan-grid,
  .feature-grid,
  .memory-grid,
  .check-grid,
  .stat-split {
    grid-template-columns: 1fr;
  }

  .search-bar {
    flex-direction: column;
  }

  .copy-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Premium visual refresh */
:root {
  --bg: #f4eee6;
  --bg-2: #e5ece4;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --text: #101715;
  --muted: #5d6663;
  --border: rgba(18, 26, 24, 0.1);
  --shadow: 0 28px 70px rgba(13, 24, 20, 0.12);
  --shadow-soft: 0 16px 40px rgba(13, 24, 20, 0.08);
  --accent: #123d39;
  --accent-2: #8e5d39;
  --accent-3: #66724f;
  --gold: #b08a3f;
  --warm: #cfa98d;
  --radius: 30px;
  --radius-sm: 20px;
  --radius-xs: 14px;
}

html {
  background: var(--bg);
}

body {
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(18, 61, 57, 0.14), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(176, 138, 63, 0.14), transparent 22%),
    radial-gradient(circle at 80% 80%, rgba(102, 114, 79, 0.14), transparent 20%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.24;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto -18vmax -18vmax auto;
  width: 42vmax;
  height: 42vmax;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 61, 57, 0.08), transparent 68%);
  filter: blur(10px);
  opacity: 0.8;
}

a {
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

a:hover {
  opacity: 0.96;
}

h1,
h2,
h3,
h4 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

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

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(18, 61, 57, 0.10), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(176, 138, 63, 0.10), transparent 22%),
    radial-gradient(circle at 80% 80%, rgba(102, 114, 79, 0.10), transparent 18%);
  filter: saturate(108%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1520px, calc(100% - 28px));
  padding: 16px 0 42px;
}

.page-shell.wide {
  width: min(1600px, calc(100% - 20px));
}

.workspace {
  gap: 18px;
}

.workspace-app {
  grid-template-columns: 302px minmax(0, 1fr);
}

.workspace-public {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar,
.topbar,
.site-header,
.flash,
.panel,
.hero,
.brand-strip,
.auth-shell,
.feature-card,
.plan-card,
.metric-card,
.memory-card,
.check-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.sidebar {
  position: sticky;
  top: 16px;
  min-height: calc(100vh - 32px);
  padding: 20px;
  gap: 18px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(10, 19, 17, 0.96), rgba(15, 28, 24, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #f8fbf9;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(176, 138, 63, 0.14), transparent 32%);
  pointer-events: none;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  gap: 14px;
  align-items: center;
}

.mark-wrap {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(176, 138, 63, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand strong,
.sidebar-brand span,
.sidebar-user strong,
.sidebar-user span {
  color: #f7f9f7;
}

.sidebar-brand strong {
  font-size: 1.08rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-brand span,
.sidebar-user span {
  color: rgba(247, 249, 247, 0.68);
}

.sidebar-user {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 16px;
}

.sidebar-user strong {
  font-size: 1.02rem;
}

.sidebar-user-meta {
  margin-top: 14px;
}

.nav-link {
  border-radius: 18px;
  padding: 13px 15px;
  color: rgba(247, 249, 247, 0.7);
  background: transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(176, 138, 63, 0.12));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.sidebar-footer .button {
  width: 100%;
}

.topbar,
.site-header {
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.topbar {
  gap: 18px;
}

.topbar-brand {
  gap: 16px;
}

.topbar-brand-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(12, 20, 18, 0.12);
}

.topbar h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.topbar-subtitle {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--muted);
}

.topbar-actions {
  gap: 12px;
}

.site-header {
  justify-content: space-between;
  align-items: center;
}

.site-header-nav {
  gap: 10px;
}

.site-header-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(18, 26, 24, 0.08);
}

.site-header-nav a:hover {
  background: rgba(18, 61, 57, 0.08);
  color: var(--accent);
  transform: translateY(-1px);
}

.flash {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(18, 61, 57, 0.08), rgba(255, 255, 255, 0.84));
}

.flash strong {
  color: var(--accent);
}

.main-content {
  min-width: 0;
}

.panel,
.card,
.auth-card,
.feature-card,
.plan-card,
.metric-card,
.memory-card,
.check-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 247, 242, 0.84));
}

.panel,
.feature-card,
.plan-card,
.metric-card,
.memory-card,
.check-card,
.auth-card {
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.panel::before,
.feature-card::before,
.plan-card::before,
.metric-card::before,
.memory-card::before,
.check-card::before,
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.55), transparent 42%);
  pointer-events: none;
}

.panel > *,
.feature-card > *,
.plan-card > *,
.metric-card > *,
.memory-card > *,
.check-card > *,
.auth-card > * {
  position: relative;
  z-index: 1;
}

.panel {
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-head {
  margin-bottom: 18px;
  gap: 12px;
}

.panel-head h2 {
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
}

.panel-hint {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(18, 61, 57, 0.08);
  border: 1px solid rgba(18, 61, 57, 0.08);
  color: var(--accent);
}

.eyebrow {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.hero {
  padding: 24px;
  gap: 18px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(249, 246, 240, 0.9)),
    linear-gradient(135deg, rgba(18, 61, 57, 0.04), rgba(176, 138, 63, 0.04));
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.05rem;
}

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

.hero-pills {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(11, 19, 18, 0.96), rgba(19, 30, 28, 0.93)),
    linear-gradient(135deg, rgba(18, 61, 57, 0.1), rgba(176, 138, 63, 0.08));
  border: 1px solid rgba(18, 26, 24, 0.08);
  box-shadow: 0 24px 55px rgba(10, 18, 16, 0.22);
}

.hero-banner {
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(176, 138, 63, 0.08));
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 18px;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.22));
}

.hero-icon-row {
  gap: 12px;
}

.hero-icon-row img {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 30px rgba(10, 18, 16, 0.16);
  object-fit: contain;
}

.hero-stat {
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f7f9f7;
}

.hero-stat strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 249, 247, 0.78);
}

.hero-stat ol {
  color: rgba(247, 249, 247, 0.88);
  padding-left: 1.2rem;
}

.hero-stat li + li {
  margin-top: 7px;
}

.hero-mini-grid {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-mini-grid .metric-card {
  min-height: 140px;
  padding: 16px;
  border-radius: 24px;
}

.brand-strip {
  padding: 24px 26px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(18, 61, 57, 0.1), rgba(176, 138, 63, 0.08)),
    rgba(255, 255, 255, 0.74);
}

.brand-strip h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  max-width: 18ch;
}

.feature-card {
  padding: 22px;
  min-height: 170px;
}

.feature-card h2,
.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.feature-grid {
  gap: 16px;
}

.metric-grid {
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-card {
  padding: 18px;
  min-height: 152px;
  border-radius: 26px;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto auto -18px -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.metric-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.metric-value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  display: block;
  max-width: 100%;
  line-height: 0.96;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

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

.metric-accent {
  background: linear-gradient(180deg, rgba(18, 61, 57, 0.12), rgba(255, 255, 255, 0.9));
}

.metric-gold {
  background: linear-gradient(180deg, rgba(176, 138, 63, 0.14), rgba(255, 255, 255, 0.9));
}

.metric-warm {
  background: linear-gradient(180deg, rgba(207, 169, 141, 0.16), rgba(255, 255, 255, 0.9));
}

.metric-soft {
  background: linear-gradient(180deg, rgba(102, 114, 79, 0.12), rgba(255, 255, 255, 0.9));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  gap: 18px;
}

.dashboard-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dashboard-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 116px;
  align-self: start;
}

.split-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 18px;
}

.stat-split {
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-neutral {
  background: rgba(18, 26, 24, 0.06);
  color: var(--text);
  border-color: rgba(18, 26, 24, 0.08);
}

.pill-accent {
  background: rgba(18, 61, 57, 0.12);
  color: var(--accent);
  border-color: rgba(18, 61, 57, 0.14);
}

.pill-gold {
  background: rgba(176, 138, 63, 0.14);
  color: #7e5f1c;
  border-color: rgba(176, 138, 63, 0.16);
}

.pill-warm {
  background: rgba(207, 169, 141, 0.16);
  color: #7c5333;
  border-color: rgba(207, 169, 141, 0.18);
}

.pill-soft {
  background: rgba(102, 114, 79, 0.12);
  color: #4b5637;
  border-color: rgba(102, 114, 79, 0.14);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), #1d544d);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(18, 61, 57, 0.18);
}

.button-primary:hover {
  box-shadow: 0 18px 38px rgba(18, 61, 57, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  border-color: rgba(18, 26, 24, 0.1);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(18, 61, 57, 0.16);
}

.button-ghost {
  background: rgba(18, 61, 57, 0.05);
  color: var(--accent);
  border-color: rgba(18, 61, 57, 0.08);
}

.button-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.field {
  gap: 10px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(18, 26, 24, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-bar input:focus {
  outline: none;
  border-color: rgba(18, 61, 57, 0.3);
  box-shadow: 0 0 0 4px rgba(18, 61, 57, 0.08);
}

.checkbox-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.form-grid {
  gap: 16px;
}

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

.intake-form .field:nth-child(1),
.intake-form .field:nth-child(2),
.intake-form .field:nth-child(3),
.intake-form .field:nth-child(4) {
  grid-column: span 1;
}

.intake-form .field:nth-last-child(2),
.intake-form .field:nth-last-child(1) {
  grid-column: span 1;
}

.form-actions {
  grid-column: 1 / -1;
  gap: 10px;
}

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

.progress-row {
  gap: 10px;
}

.progress-row-head {
  font-size: 0.94rem;
  color: var(--muted);
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(18, 26, 24, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 8px 22px rgba(18, 61, 57, 0.18);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 0 0 6px rgba(18, 61, 57, 0.08);
}

.timeline-body {
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(18, 26, 24, 0.08);
}

.timeline-head {
  margin-bottom: 10px;
}

.timeline-route {
  gap: 8px;
  margin-bottom: 10px;
}

.timeline-response {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(18, 61, 57, 0.06);
  color: var(--accent);
}

.timeline-extra {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.memory-grid,
.check-grid {
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.memory-card,
.check-card {
  padding: 18px;
  border-radius: 24px;
}

.memory-card h3,
.feature-card h2,
.feature-card h3,
.plan-card h3 {
  font-size: 1.32rem;
}

.memory-meta {
  gap: 10px;
  font-size: 0.88rem;
}

.check-card {
  align-content: start;
  gap: 12px;
}

.plan-grid {
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.plan-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 243, 236, 0.88)),
    rgba(255, 255, 255, 0.7);
}

.plan-card-trial {
  background: linear-gradient(180deg, rgba(18, 61, 57, 0.1), rgba(255, 255, 255, 0.9));
}

.plan-card-free {
  background: linear-gradient(180deg, rgba(102, 114, 79, 0.1), rgba(255, 255, 255, 0.9));
}

.plan-card-personal {
  background: linear-gradient(180deg, rgba(176, 138, 63, 0.11), rgba(255, 255, 255, 0.9));
}

.plan-card-family {
  background: linear-gradient(180deg, rgba(207, 169, 141, 0.12), rgba(255, 255, 255, 0.9));
}

.plan-card-premium {
  background: linear-gradient(180deg, rgba(18, 61, 57, 0.12), rgba(255, 255, 255, 0.92));
}

.plan-active {
  border-color: rgba(18, 61, 57, 0.22);
  box-shadow: 0 22px 52px rgba(18, 61, 57, 0.14);
}

.plan-list {
  padding-left: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 18px;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.auth-shell {
  gap: 22px;
  padding: 24px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(247, 243, 236, 0.88)),
    rgba(255, 255, 255, 0.72);
}

.auth-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.auth-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.auth-brand-card {
  padding: 22px;
  border-radius: 28px;
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(18, 61, 57, 0.14), transparent 40%),
    linear-gradient(135deg, rgba(18, 61, 57, 0.08), rgba(176, 138, 63, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.auth-brand-card img {
  width: min(280px, 100%);
  filter: drop-shadow(0 18px 28px rgba(12, 20, 18, 0.18));
}

.auth-note {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(18, 61, 57, 0.06);
  border: 1px solid rgba(18, 61, 57, 0.08);
}

.auth-card {
  padding: 28px;
}

.auth-card .button-primary {
  width: 100%;
}

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

.search-bar {
  gap: 12px;
}

.search-bar input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 20px;
  border: 1px solid rgba(18, 26, 24, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.copy-stack {
  gap: 12px;
}

.copy-row {
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 26, 24, 0.08);
}

.copy-row code {
  background: transparent;
  border: 0;
  padding: 0;
  white-space: nowrap;
}

.job-detail {
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(18, 61, 57, 0.05);
}

.table {
  overflow: hidden;
  border-radius: 24px;
}

.table th {
  background: rgba(18, 61, 57, 0.04);
}

.table tbody tr:hover {
  background: rgba(18, 61, 57, 0.03);
}

.empty-state {
  padding: 34px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(18, 26, 24, 0.12);
}

.bullet-list,
.checklist {
  padding-left: 1.1rem;
}

.bullet-list li,
.checklist li {
  line-height: 1.65;
}

.dashboard-side .panel.compact {
  padding: 22px;
}

.hero-actions .button,
.form-actions .button,
.sidebar-footer .button {
  white-space: nowrap;
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(18, 61, 57, 0.18);
  outline-offset: 2px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.hero-panel,
.panel,
.metric-card,
.feature-card,
.plan-card {
  animation: rise 420ms ease both;
}

.hero-panel {
  animation-delay: 40ms;
}

.metric-card:nth-child(2n) {
  animation-delay: 50ms;
}

.metric-card:nth-child(3n) {
  animation-delay: 80ms;
}

.hero-banner {
  animation: floatSoft 7s ease-in-out infinite;
}

@media (max-width: 1120px) {
  .workspace-app,
  .dashboard-grid,
  .hero,
  .auth-shell,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-side,
  .sidebar {
    position: relative;
    top: 0;
    min-height: auto;
  }

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

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    padding-top: 10px;
  }

  .topbar,
  .site-header,
  .brand-strip,
  .panel-head,
  .hero {
    flex-direction: column;
    align-items: start;
  }

  .workspace-app,
  .dashboard-grid,
  .hero,
  .auth-shell,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .metric-grid,
  .plan-grid,
  .feature-grid,
  .memory-grid,
  .check-grid,
  .stat-split,
  .hero-mini-grid,
  .intake-form {
    grid-template-columns: 1fr;
  }

  .search-bar {
    flex-direction: column;
  }

  .copy-row {
    flex-direction: column;
    align-items: stretch;
  }

    .hero-copy h1,
    .hero-copy h2,
    .auth-copy h1 {
      font-size: clamp(2rem, 9vw, 3rem);
    }
}

/* Premium refresh overrides */
:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --bg-2: #eef2f8;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #ffffff;
  --text: #0f1720;
  --muted: #5d6673;
  --border: rgba(15, 23, 32, 0.08);
  --shadow: 0 24px 60px rgba(15, 23, 32, 0.10);
  --shadow-soft: 0 12px 28px rgba(15, 23, 32, 0.08);
  --accent: #1f4cff;
  --accent-2: #0f172a;
  --gold: #b27b2f;
  --warm: #d1684a;
  --success: #0f9f9a;
  --radius: 30px;
  --radius-sm: 22px;
  --radius-xs: 16px;
}

body {
  font-family: "Inter", "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(31, 76, 255, 0.13), transparent 28%),
    radial-gradient(circle at 84% 2%, rgba(210, 104, 74, 0.12), transparent 24%),
    radial-gradient(circle at 72% 86%, rgba(178, 123, 47, 0.10), transparent 26%),
    linear-gradient(135deg, #f7f4ee 0%, #edf2f8 100%);
}

body::before {
  opacity: 0.2;
  background-size: 44px 44px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.55), transparent 42%);
  mix-blend-mode: screen;
}

body,
p,
li,
span,
code,
input,
textarea,
select,
button {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", "Inter", "Segoe UI", sans-serif;
  color: #08111f;
}

a {
  text-decoration: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(31, 76, 255, 0.10), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(210, 104, 74, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 34%);
  opacity: 0.9;
}

.page-shell {
  width: min(1500px, calc(100% - 28px));
  padding: 20px 0 48px;
}

.page-shell.wide {
  width: min(1560px, calc(100% - 20px));
}

.workspace-app {
  grid-template-columns: 298px minmax(0, 1fr);
  gap: 22px;
}

.workspace-public {
  gap: 24px;
}

.sidebar {
  padding: 20px;
  border-radius: 34px;
  background: rgba(13, 18, 26, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 64px rgba(5, 10, 18, 0.28);
}

.sidebar-brand strong,
.sidebar-user strong,
.sidebar-nav .nav-link,
.sidebar-footer .button-secondary {
  color: inherit;
}

.sidebar-brand span,
.sidebar-user span,
.sidebar .panel-hint,
.sidebar .nav-link {
  color: rgba(248, 250, 252, 0.72);
}

.sidebar-user {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-nav {
  gap: 10px;
}

.nav-link {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.12);
}

.topbar,
.site-header {
  margin-bottom: 22px;
}

.topbar {
  padding: 18px 20px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
}

.site-header {
  padding: 12px 2px 2px;
}

.topbar-title h1 {
  margin-top: 6px;
  font-size: clamp(2rem, 3vw, 3.4rem);
}

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

.topbar-brand-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(15, 23, 32, 0.04);
}

.brand-link .brand-logo-wide {
  width: clamp(180px, 18vw, 250px);
}

.flash {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.button,
.site-header-nav a,
.nav-link,
input,
textarea,
select,
.pill,
.copy-button {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button {
  border-radius: 999px;
  padding: 0.92rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.button:hover,
.site-header-nav a:hover,
.nav-link:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0b1f6d);
  box-shadow: 0 18px 36px rgba(31, 76, 255, 0.22);
}

.button-primary:hover {
  box-shadow: 0 24px 42px rgba(31, 76, 255, 0.28);
}

.button-secondary,
.button-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 32, 0.08);
}

.button-ghost {
  color: var(--text);
}

.button-secondary:hover,
.button-ghost:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 32, 0.12);
}

.pill {
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(15, 23, 32, 0.08);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
}

.pill-accent {
  background: rgba(31, 76, 255, 0.10);
  color: #1032cc;
  border-color: rgba(31, 76, 255, 0.16);
}

.pill-gold {
  background: rgba(178, 123, 47, 0.10);
  color: #99681f;
  border-color: rgba(178, 123, 47, 0.16);
}

.pill-warm {
  background: rgba(209, 104, 74, 0.10);
  color: #ae5338;
  border-color: rgba(209, 104, 74, 0.18);
}

.pill-soft {
  background: rgba(15, 23, 32, 0.04);
}

.panel,
.hero-copy,
.hero-panel,
.auth-card,
.feature-card,
.plan-card,
.metric-card,
.memory-card,
.reminder-card,
.document-card,
.workflow-card,
.module-card,
.security-card,
.cta-strip,
.admin-user-card,
.admin-hero,
.check-card {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
  overflow: hidden;
}

.panel.compact {
  background: rgba(255, 255, 255, 0.64);
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  font-size: clamp(1.45rem, 2vw, 2.15rem);
}

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

.hero,
.landing-hero,
.auth-shell,
.dashboard-grid,
.split-grid {
  gap: 22px;
}

.landing-hero,
.hero,
.auth-shell {
  align-items: stretch;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.hero-copy {
  padding: clamp(28px, 4vw, 52px);
}

.hero-copy-landing {
  display: grid;
  align-content: start;
  gap: 10px;
}

.hero-copy h1,
.hero-copy h2 {
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.95;
}

.hero-text {
  font-size: 1.04rem;
  max-width: 56ch;
}

.hero-actions,
.hero-pills,
.topbar-actions,
.auth-links,
.timeline-route,
.sidebar-user-meta,
.form-actions,
.copy-row,
.card-head {
  gap: 12px;
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.hero-panel-landing {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 242, 236, 0.92)),
    rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-color: rgba(20, 27, 31, 0.08);
}

.hero-panel-landing .hero-chat,
.hero-panel-landing .hero-stat {
  background: linear-gradient(180deg, rgba(13, 18, 26, 0.98), rgba(21, 28, 38, 0.96));
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-panel-landing .hero-banner {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(20, 27, 31, 0.08);
}

.hero-panel-landing .hero-icon-row img {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-color: rgba(20, 27, 31, 0.08);
  transform: none !important;
}

.hero-panel-landing .hero-icon-row {
  align-items: stretch;
  justify-items: stretch;
  gap: 12px;
}

.hero-panel-landing .hero-chat {
  background: linear-gradient(180deg, rgba(13, 18, 26, 0.98), rgba(21, 28, 38, 0.96));
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(10, 18, 16, 0.24);
}

.hero-panel-landing .hero-chat-head strong {
  color: rgba(255, 255, 255, 0.96);
}

.hero-panel-landing .hero-chat-head span {
  color: rgba(247, 249, 247, 0.72);
}

.hero-panel-landing .chat-bubble-user {
  color: #fff;
}

.hero-panel-landing .chat-bubble-ordo {
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-banner {
  min-height: 240px;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-chat {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
}

.hero-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-chat-head strong {
  display: block;
  margin-bottom: 2px;
}

.hero-chat-head span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-chat-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 76, 255, 0.18), rgba(255, 255, 255, 0.06));
}

.hero-chat-avatar img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.hero-chat-thread {
  display: grid;
  gap: 10px;
}

.chat-bubble {
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.chat-bubble-user {
  align-self: end;
  margin-left: 12%;
  background: linear-gradient(135deg, rgba(31, 76, 255, 0.16), rgba(31, 76, 255, 0.10));
}

.chat-bubble-ordo {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.68;
}

.hero-stat {
  padding: 18px;
  border-radius: 24px;
}

.hero-stat strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.hero-stat ol {
  line-height: 1.7;
  color: inherit;
}

.hero-mini-grid,
.metric-grid,
.feature-grid,
.plan-grid,
.memory-grid,
.check-grid,
.document-grid,
.workflow-grid,
.module-grid,
.security-grid,
.admin-user-grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

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

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

.admin-user-grid {
  grid-template-columns: 1fr;
}

.metric-card {
  padding: 20px;
  min-height: 168px;
}

.metric-label,
.feature-card h3,
.plan-head h3,
.workflow-card strong,
.module-card strong,
.security-card strong,
.admin-user-head h3,
.document-card h3 {
  letter-spacing: -0.03em;
}

.metric-value {
  margin: 10px 0 6px;
  font-size: clamp(2rem, 3vw, 3rem);
  display: block;
  max-width: 100%;
  line-height: 0.96;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

.hero-mini-grid .metric-value {
  font-size: clamp(1.04rem, 1.45vw, 1.28rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

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

.feature-card,
.plan-card,
.workflow-card,
.module-card,
.security-card,
.document-card,
.admin-user-card {
  padding: 20px;
}

.feature-card h2,
.feature-card h3,
.plan-card h3 {
  margin-bottom: 10px;
}

.workflow-card p,
.module-card p,
.security-card p,
.document-card p,
.admin-user-card p {
  color: var(--muted);
}

.section-band {
  margin-top: 18px;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  background: linear-gradient(135deg, rgba(13, 18, 26, 0.96), rgba(31, 76, 255, 0.92));
  color: #fff;
}

.cta-strip .eyebrow,
.cta-strip p,
.cta-strip h2 {
  color: inherit;
}

.cta-strip .button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.cta-strip .button-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.auth-shell {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.68fr);
}

.auth-copy {
  padding: 34px 10px 24px 2px;
}

.auth-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.auth-brand-card {
  margin: 22px 0 14px;
  padding: 18px;
  max-width: 360px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.auth-card {
  padding: 24px;
  display: grid;
  gap: 14px;
  align-self: start;
}

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

.field span {
  font-weight: 600;
  color: #1d2936;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 32, 0.10);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(31, 76, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(31, 76, 255, 0.10);
}

.button-disabled {
  opacity: 0.56;
}

.timeline {
  gap: 14px;
}

.timeline-item {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.timeline-item.inbound {
  background: rgba(255, 255, 255, 0.82);
}

.timeline-item.outbound {
  background: rgba(240, 245, 255, 0.82);
}

.timeline-head {
  margin-bottom: 10px;
}

.timeline-route {
  margin-bottom: 10px;
}

.timeline-extra {
  margin-top: 10px;
  color: var(--warm);
}

.plan-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
}

.plan-card::before,
.panel::before,
.metric-card::before,
.feature-card::before,
.admin-user-card::before,
.document-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 24%);
}

.plan-card {
  background: rgba(255, 255, 255, 0.82);
}

.plan-card.plan-featured {
  border-color: rgba(31, 76, 255, 0.22);
  box-shadow: 0 30px 70px rgba(31, 76, 255, 0.14);
}

.plan-active {
  transform: translateY(-2px);
}

.plan-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.brand-strip {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-strip h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.8rem);
  max-width: 16ch;
}

.memory-card,
.reminder-card,
.document-card {
  position: relative;
}

.document-card h3 {
  margin-top: 10px;
}

.document-card .memory-meta,
.admin-user-meta,
.memory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  margin-top: 12px;
}

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

.check-card {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.copy-stack {
  display: grid;
  gap: 12px;
}

.copy-row {
  align-items: center;
  flex-wrap: wrap;
}

.copy-row code {
  flex: 1 1 520px;
  min-width: 0;
  overflow-x: auto;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(13, 18, 26, 0.96), rgba(31, 76, 255, 0.92));
  color: #fff;
}

.admin-hero .eyebrow,
.admin-hero h1,
.admin-hero p,
.admin-hero .panel-hint {
  color: inherit;
}

.admin-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.9rem);
}

.admin-hero-card {
  padding: 4px 0 0;
}

.admin-user-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.admin-user-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-user-head p {
  color: var(--muted);
  margin-top: 6px;
}

.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

.admin-user-meta div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 32, 0.04);
}

.admin-user-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.admin-user-meta strong {
  font-size: 1rem;
}

.admin-user-actions {
  display: grid;
  gap: 12px;
}

.admin-form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.admin-form-row .field {
  min-width: 0;
}

.admin-search {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.admin-search-field {
  min-width: 300px;
  flex: 1 1 300px;
}

.admin-search .button {
  flex: 0 0 auto;
}

.job-detail {
  color: var(--muted);
  margin-bottom: 10px;
}

.feature-grid .feature-card,
.module-card,
.workflow-card,
.security-card,
.document-card,
.memory-card,
.reminder-card {
  background: rgba(255, 255, 255, 0.80);
}

@media (max-width: 1120px) {
  .landing-hero,
  .admin-hero,
  .auth-shell,
  .workspace-app,
  .hero {
    grid-template-columns: 1fr;
  }

  .module-grid,
  .workflow-grid,
  .security-grid,
  .document-grid,
  .plan-grid,
  .feature-grid,
  .check-grid,
  .hero-mini-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-meta {
    grid-template-columns: 1fr;
  }

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

  .admin-search {
    width: 100%;
    justify-content: stretch;
  }

  .admin-search-field {
    min-width: 0;
    width: 100%;
  }

  .admin-search .button {
    width: 100%;
  }
}

@media (max-width: 780px) {
  .page-shell,
  .page-shell.wide {
    width: min(100% - 14px, 100%);
  }

  .topbar,
  .site-header,
  .panel-head,
  .brand-strip,
  .cta-strip,
  .admin-user-head,
  .hero-chat-head {
    flex-direction: column;
    align-items: start;
  }

  .hero-copy h1,
  .hero-copy h2,
  .auth-copy h1,
  .admin-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.3rem);
  }

  .module-grid,
  .workflow-grid,
  .security-grid,
  .document-grid,
  .plan-grid,
  .feature-grid,
  .check-grid,
  .hero-mini-grid,
  .metric-grid,
  .admin-user-meta {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .panel,
  .auth-card,
  .admin-user-card,
  .admin-hero,
  .cta-strip {
    padding: 18px;
  }

  .hero-banner {
    min-height: 160px;
    padding: 12px;
  }

  .hero-banner img {
    max-height: 170px;
  }

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