:root {
  --green: #0c7a3b;
  --green-dark: #075a2d;
  --green-soft: #eaf5ed;
  --orange: #f89a1c;
  --orange-strong: #f36b21;
  --graphite: #20322b;
  --muted: #66736d;
  --line: rgba(32, 50, 43, 0.14);
  --soft: #f6f8f5;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(32, 50, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--graphite);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.saas-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(234, 245, 237, 0.78), rgba(255, 255, 255, 0) 280px),
    var(--white);
}

.saas-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.saas-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.saas-logo img {
  width: 132px;
  height: auto;
}

.saas-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saas-nav a,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.saas-nav a:hover,
.link-button:hover {
  border-color: var(--line);
  color: var(--green-dark);
  background: var(--white);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: var(--orange);
  color: var(--graphite);
  font-weight: 850;
  cursor: pointer;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 850;
  cursor: pointer;
}

.saas-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 82px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.58fr);
  gap: 34px;
  align-items: start;
}

.auth-only {
  display: grid;
  justify-items: center;
}

.auth-only .auth-card {
  width: min(100%, 460px);
}

.auth-only-wide .auth-card {
  width: min(100%, 760px);
}

.hero-copy {
  padding-top: 32px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--orange-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Montserrat, Inter, Arial, sans-serif;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: 54px;
  line-height: 1;
}

h2 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.lead {
  max-width: 680px;
  font-size: 18px;
}

.panel,
.auth-card,
.plan-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel {
  padding: 28px;
}

.auth-card {
  padding: 28px;
}

.auth-card img {
  width: 138px;
  margin-bottom: 26px;
}

.form-stack {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--graphite);
  background: var(--white);
}

.field textarea {
  min-height: 84px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(12, 122, 59, 0.12);
}

.auth-section {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 15px;
  border: 1px solid rgba(32, 50, 43, 0.12);
  border-radius: 8px;
  background: rgba(246, 248, 245, 0.72);
}

.auth-section legend {
  padding: 0 6px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-wide {
  grid-column: span 2;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.trust-list,
.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.trust-list span,
.feature-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 650;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
}

.plans-grid,
.admin-grid {
  display: grid;
  gap: 16px;
}

.plans-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card,
.admin-card {
  padding: 24px;
  box-shadow: none;
}

.plan-card.is-featured {
  border-color: rgba(248, 154, 28, 0.7);
  box-shadow: 0 18px 45px rgba(248, 154, 28, 0.14);
}

.price {
  display: flex;
  align-items: end;
  gap: 6px;
  margin: 18px 0;
  color: var(--green-dark);
  font-family: Montserrat, Inter, Arial, sans-serif;
}

.price strong {
  font-size: 40px;
  line-height: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 850;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.metric strong {
  display: block;
  color: var(--green-dark);
  font-family: Montserrat, Inter, Arial, sans-serif;
  font-size: 28px;
}

.small-note {
  color: var(--muted);
  font-size: 13px;
}

.auth-status {
  margin: 2px 0 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.auth-status[data-kind="error"] {
  border-color: rgba(193, 72, 45, 0.28);
  background: rgba(243, 107, 33, 0.1);
  color: #8b2f18;
}

.auth-status[data-kind="success"] {
  border-color: rgba(12, 122, 59, 0.24);
  background: rgba(12, 122, 59, 0.12);
  color: var(--green-dark);
}

@media (max-width: 900px) {
  .saas-topbar {
    width: min(100% - 28px, 1180px);
  }

  .saas-nav {
    gap: 4px;
  }

  .saas-nav a:not(.primary-button) {
    display: none;
  }

  .saas-main {
    width: min(100% - 28px, 1180px);
    padding-top: 22px;
  }

  .page-grid,
  .plans-grid,
  .metric-row,
  .auth-field-grid {
    grid-template-columns: 1fr;
  }

  .auth-wide {
    grid-column: auto;
  }

  .hero-copy {
    padding-top: 8px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }
}
