:root {
  background: oklch(96% 0.011 135);
  color: oklch(22% 0.018 168);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  font-weight: 760;
}

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

textarea {
  min-height: 112px;
  resize: vertical;
}

.landing-shell,
.public-shell,
.admin-shell,
.narrow-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 20px 60px;
}

.narrow-shell {
  max-width: 720px;
}

.landing-hero {
  display: grid;
  gap: 20px;
  min-height: 70vh;
  align-content: center;
}

.landing-hero h1,
.public-header h1,
.admin-topbar h1,
.surface-panel h1 {
  font-size: clamp(2.4rem, 8vw, 5.7rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 13ch;
}

.lead {
  color: oklch(38% 0.02 165);
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 62ch;
}

.eyebrow {
  color: oklch(43% 0.1 155);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.hero-actions,
.inline-actions,
.form-actions,
.section-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
}

.primary-action {
  background: oklch(34% 0.105 158);
  color: oklch(98% 0.008 130);
}

.secondary-action {
  background: oklch(91% 0.018 130);
  color: oklch(25% 0.025 168);
}

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

.process-strip div,
.surface-panel,
.table-panel,
.alert,
.attachment-card,
.match-row {
  background: oklch(99% 0.006 130);
  border: 1px solid oklch(84% 0.017 135);
  border-radius: 8px;
}

.process-strip div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.process-strip strong {
  color: oklch(43% 0.1 155);
  font-size: 1.4rem;
}

.admin-topbar,
.public-header {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.surface-panel,
.table-panel,
.alert {
  padding: 20px;
}

.surface-panel h2,
.form-section h2 {
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.alert {
  border-color: oklch(68% 0.12 34);
  color: oklch(42% 0.1 34);
  font-weight: 760;
  margin-bottom: 18px;
}

.quote-table,
.timeline,
.simple-list,
.match-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.table-head,
.table-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.3fr 0.8fr 1.1fr 1fr;
}

.table-head {
  color: oklch(48% 0.017 165);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.table-row {
  align-items: center;
  border-top: 1px solid oklch(88% 0.012 135);
  padding: 14px 0;
  text-decoration: none;
}

.table-row span:first-child,
.key-values div,
.metric-grid div {
  display: grid;
  gap: 3px;
}

.table-row small,
.muted,
.key-values dt,
.timeline span,
.attachment-card span,
.match-row small {
  color: oklch(47% 0.018 165);
}

mark {
  background: oklch(89% 0.056 95);
  border-radius: 999px;
  color: oklch(31% 0.06 75);
  font-weight: 820;
  padding: 5px 9px;
}

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

.form-section {
  background: oklch(99% 0.006 130);
  border: 1px solid oklch(84% 0.017 135);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px;
}

.full-width,
.wide-field {
  grid-column: 1 / -1;
}

label,
.stacked-form {
  display: grid;
  gap: 7px;
}

label span {
  color: oklch(38% 0.02 165);
  font-size: 0.82rem;
  font-weight: 790;
}

input,
select,
textarea {
  background: oklch(96% 0.009 130);
  border: 1px solid oklch(79% 0.018 135);
  border-radius: 7px;
  color: oklch(22% 0.018 168);
  min-width: 0;
  padding: 11px 12px;
}

.checkbox-field {
  align-items: center;
  display: flex;
}

.checkbox-field input {
  min-width: auto;
}

.attachment-row {
  border-top: 1px solid oklch(88% 0.012 135);
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 14px;
}

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

.key-values {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.key-values div {
  border-top: 1px solid oklch(88% 0.012 135);
  grid-template-columns: 150px minmax(0, 1fr);
  padding-top: 10px;
}

.key-values dt {
  font-weight: 760;
}

.key-values dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-line {
  overflow-wrap: anywhere;
}

.note-box {
  background: oklch(93% 0.02 105);
  border-radius: 7px;
  padding: 12px;
}

.section-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-header p,
.section-header h2 {
  margin: 0;
}

.match-row {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.match-row h3,
.match-row p {
  margin: 0 0 6px;
}

.compact-form {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.compact-form input,
.compact-form select {
  min-width: 0;
}

.stacked-form {
  border-top: 1px solid oklch(88% 0.012 135);
  margin-top: 14px;
  padding-top: 14px;
}

.attachment-card {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 12px;
}

.timeline {
  list-style: none;
}

.timeline li {
  border-top: 1px solid oklch(88% 0.012 135);
  display: grid;
  gap: 4px;
  padding: 12px 0;
}

.simple-list {
  list-style: none;
}

.simple-list li {
  border-top: 1px solid oklch(88% 0.012 135);
  padding: 9px 0;
}

.empty-state {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 24px 0;
}

.milestones {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.milestones li {
  border-left: 4px solid oklch(82% 0.018 135);
  display: grid;
  gap: 3px;
  padding: 10px 0 10px 14px;
}

.milestones li.done {
  border-color: oklch(53% 0.12 155);
}

.milestones li.current {
  border-color: oklch(65% 0.12 82);
}

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

.metric-grid div {
  background: oklch(94% 0.012 130);
  border-radius: 8px;
  padding: 16px;
}

.metric-grid strong {
  font-size: 2rem;
}

.attachment-public-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.attachment-public-list a {
  background: oklch(91% 0.018 130);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
}

code {
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  .admin-topbar,
  .public-header {
    align-items: start;
    flex-direction: column;
  }

  .process-strip,
  .form-grid,
  .detail-grid,
  .table-head,
  .table-row,
  .attachment-row,
  .compact-form {
    grid-template-columns: 1fr;
  }

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

  .key-values div {
    grid-template-columns: 1fr;
  }
}

.landing-page {
  background: oklch(96.5% 0.009 235);
  color: oklch(22% 0.012 255);
  min-height: 100vh;
}

.landing-page .landing-shell {
  display: grid;
  gap: 40px;
  max-width: none;
  padding: 32px 60px 80px;
}

.stap-nav {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto 1fr;
}

.stap-wordmark,
.stap-nav-pill a,
.stap-outline-link {
  text-decoration: none;
}

.stap-wordmark {
  color: oklch(23% 0.012 255);
  font-size: 1.02rem;
  font-weight: 900;
  justify-self: start;
  letter-spacing: 0;
}

.stap-nav-pill {
  align-items: center;
  background: oklch(79% 0.005 275);
  border-radius: 999px;
  box-shadow: 0 18px 40px oklch(42% 0.018 255 / 0.13);
  display: flex;
  gap: 4px;
  justify-self: center;
  padding: 6px;
}

.stap-nav-pill a {
  border-radius: 999px;
  color: oklch(98% 0.003 260);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  padding: 17px 28px;
  text-transform: uppercase;
  white-space: nowrap;
}

.stap-nav-pill a.active {
  background: oklch(70% 0.006 285);
  box-shadow: inset 0 1px 0 oklch(96% 0.002 270 / 0.34);
}

.stap-outline-link {
  border: 1px solid oklch(74% 0.11 30);
  border-radius: 999px;
  color: oklch(62% 0.19 31);
  font-size: 0.88rem;
  font-weight: 830;
  justify-self: end;
  letter-spacing: 0.12em;
  padding: 18px 28px;
  text-transform: uppercase;
  white-space: nowrap;
}

.stap-landing-hero {
  align-content: center;
  background: oklch(99% 0.003 250);
  border: 1px solid oklch(95% 0.005 250);
  border-radius: 44px;
  box-shadow: 0 36px 76px oklch(45% 0.018 250 / 0.18);
  display: grid;
  justify-items: center;
  min-height: 620px;
  padding: 72px 40px 56px;
  text-align: center;
}

.hero-kicker {
  align-items: center;
  color: oklch(58% 0.008 260);
  display: inline-flex;
  font-size: 1.03rem;
  font-weight: 780;
  gap: 8px;
  margin-bottom: 26px;
}

.hero-kicker span {
  background: oklch(64% 0.18 145);
  border: 8px solid oklch(92% 0.03 145);
  border-radius: 999px;
  display: inline-block;
  height: 28px;
  width: 28px;
}

.stap-landing-hero h1 {
  color: oklch(24% 0.01 270);
  font-size: 7rem;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 0.89;
  margin: 0;
  max-width: 13.2ch;
}

.landing-page .lead {
  color: oklch(46% 0.01 265);
  font-size: 1.45rem;
  font-weight: 610;
  line-height: 1.32;
  margin: 26px auto 0;
  max-width: 47ch;
}

.landing-page .hero-actions {
  justify-content: center;
  margin-top: 26px;
}

.landing-page .primary-action,
.landing-page .secondary-action {
  align-items: center;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 850;
  min-height: 58px;
  padding: 16px 30px;
}

.landing-page .primary-action {
  background: oklch(57% 0.22 258);
  box-shadow: 0 20px 34px oklch(55% 0.19 258 / 0.22);
  color: oklch(99% 0.004 255);
}

.landing-page .secondary-action {
  background: oklch(91% 0.005 260);
  color: oklch(23% 0.012 255);
}

.landing-caption {
  color: oklch(61% 0.008 260);
  font-size: 1.02rem;
  margin: 18px 0 0;
}

.landing-workflow {
  background: oklch(99% 0.003 250);
  border: 1px solid oklch(94% 0.006 250);
  border-radius: 34px;
  box-shadow: 0 24px 54px oklch(45% 0.018 250 / 0.11);
  display: grid;
  gap: 26px;
  margin-top: -10px;
  padding: 34px;
}

.workflow-intro {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.workflow-intro h2 {
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0;
  max-width: 20ch;
}

.landing-workflow .eyebrow {
  color: oklch(58% 0.008 260);
  margin: 0;
}

.workflow-steps {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.workflow-steps div {
  background: oklch(96% 0.006 250);
  display: grid;
  gap: 14px;
  min-height: 152px;
  padding: 20px;
}

.workflow-steps div:first-child {
  border-radius: 8px 0 0 8px;
}

.workflow-steps div:last-child {
  border-radius: 0 8px 8px 0;
}

.workflow-steps strong {
  color: oklch(63% 0.17 145);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.workflow-steps span {
  color: oklch(36% 0.012 260);
  font-weight: 690;
  line-height: 1.38;
}

@media (max-width: 1100px) {
  .landing-page .landing-shell {
    padding: 26px 28px 64px;
  }

  .stap-landing-hero h1 {
    font-size: 5.6rem;
  }

  .landing-page .lead {
    font-size: 1.28rem;
  }
}

@media (max-width: 760px) {
  .landing-page .landing-shell {
    gap: 22px;
    padding: 18px 14px 48px;
  }

  .stap-nav {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .stap-wordmark,
  .stap-outline-link {
    justify-self: center;
  }

  .stap-nav-pill {
    max-width: 100%;
    overflow-x: auto;
  }

  .stap-nav-pill a {
    font-size: 0.74rem;
    padding: 13px 18px;
  }

  .stap-outline-link {
    padding: 13px 20px;
  }

  .stap-landing-hero {
    border-radius: 28px;
    min-height: auto;
    padding: 62px 20px 46px;
  }

  .hero-kicker {
    font-size: 0.95rem;
    margin-bottom: 26px;
  }

  .stap-landing-hero h1 {
    font-size: 3.8rem;
  }

  .landing-page .lead {
    font-size: 1.12rem;
    line-height: 1.38;
    margin-top: 24px;
  }

  .landing-page .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 26px;
    width: 100%;
  }

  .landing-caption {
    font-size: 0.94rem;
  }

  .landing-workflow {
    border-radius: 24px;
    padding: 22px;
  }

  .workflow-intro {
    align-items: start;
    flex-direction: column;
  }

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

  .workflow-steps div,
  .workflow-steps div:first-child,
  .workflow-steps div:last-child {
    border-radius: 0;
    min-height: auto;
  }
}

.public-page {
  background: oklch(96% 0.006 250);
  color: oklch(24% 0.012 250);
}

.public-page .public-shell {
  display: grid;
  gap: 18px;
  max-width: 960px;
  padding: 34px 18px 72px;
}

.quote-hero {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 4px 4px;
}

.quote-hero h1 {
  font-size: 2.6rem;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  max-width: 15ch;
}

.quote-hero p {
  color: oklch(45% 0.014 250);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 14px 0 0;
  max-width: 62ch;
}

.quote-status-pill {
  align-self: start;
  background: oklch(91% 0.016 250);
  border: 1px solid oklch(84% 0.01 250);
  border-radius: 999px;
  color: oklch(34% 0.012 250);
  font-size: 0.88rem;
  font-weight: 760;
  padding: 9px 12px;
  text-transform: capitalize;
  white-space: nowrap;
}

.quote-progress-card,
.customer-card-group {
  background: oklch(99% 0.003 250);
  border: 1px solid oklch(88% 0.008 250);
  border-radius: 8px;
  box-shadow: 0 22px 48px oklch(50% 0.02 250 / 0.08);
}

.quote-progress-card {
  overflow-x: auto;
  padding: 34px 30px 28px;
}

.quote-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  list-style: none;
  margin: 0;
  min-width: 760px;
  padding: 0;
}

.quote-progress li {
  color: oklch(69% 0.01 250);
  display: grid;
  gap: 10px;
  justify-items: center;
  position: relative;
  text-align: center;
}

.quote-progress li::before,
.quote-progress li::after {
  background: oklch(78% 0.008 250);
  content: "";
  height: 3px;
  position: absolute;
  top: 15px;
  width: 50%;
}

.quote-progress li::before {
  left: 0;
}

.quote-progress li::after {
  right: 0;
}

.quote-progress li:first-child::before,
.quote-progress li:last-child::after {
  display: none;
}

.quote-progress li.done::before,
.quote-progress li.done::after,
.quote-progress li.current::before {
  background: oklch(65% 0.155 145);
}

.progress-dot {
  align-items: center;
  background: oklch(98% 0.003 250);
  border: 2px solid oklch(78% 0.008 250);
  border-radius: 999px;
  color: oklch(64% 0.01 250);
  display: inline-flex;
  font-weight: 760;
  height: 32px;
  justify-content: center;
  position: relative;
  width: 32px;
  z-index: 1;
}

.done .progress-dot,
.current .progress-dot {
  background: oklch(65% 0.155 145);
  border-color: oklch(65% 0.155 145);
  color: oklch(99% 0.004 145);
}

.progress-current-marker {
  border-bottom: 2px solid oklch(43% 0.012 250);
  border-right: 2px solid oklch(43% 0.012 250);
  display: none;
  height: 9px;
  position: absolute;
  top: -20px;
  transform: rotate(45deg);
  width: 9px;
}

.current .progress-current-marker {
  display: block;
}

.progress-label {
  color: oklch(67% 0.012 250);
  font-weight: 720;
  line-height: 1.2;
}

.done .progress-label,
.current .progress-label {
  color: oklch(34% 0.012 250);
}

.customer-card-group {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.customer-group-header {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.customer-group-header h2 {
  font-size: 1.12rem;
  line-height: 1.2;
  margin: 0;
}

.customer-group-header p,
.customer-summary,
.whatsapp-note span,
.customer-timeline p {
  color: oklch(45% 0.014 250);
  line-height: 1.5;
  margin: 0;
}

.customer-detail-list {
  display: grid;
  margin: 0;
}

.customer-detail-list div,
.customer-clean-list li,
.customer-timeline li {
  border-top: 1px solid oklch(90% 0.007 250);
}

.customer-detail-list div {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  padding: 12px 0;
}

.customer-detail-list dt {
  color: oklch(54% 0.01 250);
  font-weight: 700;
}

.customer-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.customer-summary {
  max-width: 72ch;
}

.whatsapp-note {
  align-items: start;
  background: oklch(94% 0.018 145);
  border: 1px solid oklch(86% 0.05 145);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.whatsapp-note strong {
  color: oklch(34% 0.07 145);
}

.customer-metrics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.customer-metrics div {
  background: oklch(96% 0.006 250);
  display: grid;
  gap: 4px;
  padding: 18px;
}

.customer-metrics div:first-child {
  border-radius: 8px 0 0 8px;
}

.customer-metrics div:last-child {
  border-radius: 0 8px 8px 0;
}

.customer-metrics strong {
  font-size: 1.9rem;
  line-height: 1;
}

.customer-metrics span {
  color: oklch(52% 0.012 250);
  font-size: 0.9rem;
}

.customer-clean-list,
.customer-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.customer-clean-list li {
  padding: 11px 0;
}

.customer-timeline {
  display: grid;
}

.customer-timeline li {
  display: grid;
  gap: 5px;
  padding: 14px 0;
}

.customer-timeline span {
  color: oklch(58% 0.01 250);
  font-size: 0.84rem;
}

.customer-timeline strong {
  font-size: 1rem;
}

.public-page .attachment-public-list a {
  background: oklch(94% 0.008 250);
  border: 1px solid oklch(87% 0.008 250);
  border-radius: 999px;
  color: oklch(32% 0.014 250);
}

@media (max-width: 760px) {
  .public-page .public-shell {
    padding: 24px 14px 52px;
  }

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

  .quote-hero h1 {
    font-size: 2rem;
  }

  .quote-status-pill {
    justify-self: start;
  }

  .quote-progress-card {
    padding: 30px 18px 24px;
  }

  .customer-group-header {
    align-items: start;
    flex-direction: column;
  }

  .customer-detail-list div,
  .customer-metrics {
    grid-template-columns: 1fr;
  }

  .customer-metrics div,
  .customer-metrics div:first-child,
  .customer-metrics div:last-child {
    border-radius: 0;
  }
}
