:root {
  --brand-darkest: #4A1B0C;
  --brand-dark: #633806;
  --brand-mid: #993C1D;
  --brand-primary: #D85A30;
  --brand-amber: #EF9F27;
  --brand-amber-lt: #FAC775;
  --brand-pale: #FAEEDA;
  --brand-offwhite: #FFF8F4;

  --brand-radius-pill: 28px;
  --brand-radius-card: 14px;
  --brand-radius-sm: 8px;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand-font-eyebrow: 500 11px/1 var(--font-sans);
  --brand-letter-eyebrow: 0.1em;

  --color-text-primary: #633806;
  --color-text-secondary: #7D6A5E;
  --line-soft: 0.5px solid var(--brand-amber-lt);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-primary);
  background: var(--brand-offwhite);
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

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

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

.surface-dark {
  background: var(--brand-dark);
}

.surface-light {
  background: #fff;
}

.surface-offwhite {
  background: var(--brand-offwhite);
}

.surface-darkest {
  background: var(--brand-darkest);
}

.bordered-section {
  border-top: var(--line-soft);
  border-bottom: var(--line-soft);
}

.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-eyebrow {
  font: var(--brand-font-eyebrow);
  letter-spacing: var(--brand-letter-eyebrow);
  color: var(--brand-primary);
  text-transform: uppercase;
}

.section-eyebrow-dark {
  color: var(--brand-amber-lt);
}

.section-title {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--brand-dark);
}

.section-sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.eyebrow {
  font: var(--brand-font-eyebrow);
  letter-spacing: var(--brand-letter-eyebrow);
  color: var(--brand-primary);
  text-transform: uppercase;
}

.card-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--brand-dark);
}

.card-body {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.panel-lead {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--brand-radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 160ms ease;
}

.button:hover {
  filter: brightness(0.96);
}

.button-primary,
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}

.button-secondary {
  background: var(--brand-dark);
  color: #fff;
}

.button-ghost,
.btn-ghost {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand-amber-lt);
}

.button-ghost-dark {
  background: transparent;
  color: var(--brand-amber-lt);
  border-color: rgba(250, 199, 117, 0.45);
}

.button-block {
  width: 100%;
}

.button-block-mobile {
  margin-top: 18px;
}

.brand-nav {
  height: 58px;
  background: var(--brand-dark);
}

.brand-nav-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-logo-eyebrow {
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--brand-amber-lt);
  text-transform: uppercase;
}

.brand-logo-name {
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  color: #fff;
}

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

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: #F0997B;
}

.nav-link:hover {
  color: #FAC775;
}

.nav-cta {
  background: var(--brand-primary);
  color: #fff;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-cta-mobile {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
}

.hero-title {
  margin-top: 12px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 500;
  color: #fff;
}

.hero-subtitle {
  margin-top: 14px;
  max-width: 530px;
  font-size: 16px;
  line-height: 1.65;
  color: #F0997B;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-proof {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(240, 153, 123, 0.72);
}

.hero-phone-card {
  display: grid;
  place-items: center;
}

.phone-frame {
  width: 220px;
  border-radius: 28px;
  border: 5px solid var(--brand-darkest);
  overflow: hidden;
  background: #fff;
}

.phone-notch {
  height: 18px;
  display: grid;
  place-items: center;
  background: var(--brand-darkest);
}

.phone-notch span {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand-dark);
}

.phone-topbar {
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--brand-dark);
}

.phone-title {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  color: #fff;
}

.phone-subtitle {
  font-size: 7px;
  line-height: 1.2;
  font-weight: 500;
  color: #F0997B;
  letter-spacing: 0.08em;
}

.phone-company {
  font-size: 8px;
  line-height: 1.2;
  color: var(--brand-amber-lt);
}

.phone-body {
  padding: 10px;
}

.phone-live {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 8px;
  color: #27500A;
  border: 0.5px solid #97C459;
  background: #EAF3DE;
}

.phone-live span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #639922;
}

.phone-upload,
.phone-visible {
  margin-top: 7px;
  font-size: 8px;
  color: #9A8E85;
}

.phone-visible {
  text-align: right;
}

.phone-schedule {
  margin-top: 7px;
  padding: 7px;
  border-radius: 6px;
  border: 0.5px solid var(--brand-amber-lt);
  background: var(--brand-pale);
}

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

.phone-schedule th,
.phone-schedule td {
  padding: 2px;
  font-size: 6.5px;
  text-align: center;
}

.phone-schedule th {
  color: var(--brand-mid);
  font-weight: 500;
  border-bottom: 0.75px solid var(--brand-amber);
}

.phone-schedule td {
  color: var(--brand-dark);
  border-bottom: 0.5px solid var(--brand-amber-lt);
}

.phone-schedule td:first-child {
  font-weight: 500;
  color: var(--brand-mid);
}

.pain-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-muted {
  border: var(--line-soft);
  border-radius: var(--brand-radius-card);
  background: var(--brand-offwhite);
  padding: 20px;
}

.pain-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #FAECE7;
  color: var(--brand-primary);
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
}

.steps-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-item {
  text-align: center;
  padding: 4px 10px;
}

.step-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--brand-amber-lt);
  background: var(--brand-pale);
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 500;
}

.split-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.check-dot {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--brand-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

.price-card {
  margin: 26px auto 0;
  width: min(420px, 100%);
  border: var(--line-soft);
  border-radius: 16px;
  background: #fff;
  padding: 28px;
}

.price-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-pale);
  color: var(--brand-mid);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.price-amount {
  margin-top: 12px;
  color: var(--brand-dark);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.price-amount span {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.price-note-top {
  margin-top: 6px;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 500;
}

.price-card hr {
  border: none;
  border-top: var(--line-soft);
  margin: 16px 0;
}

.price-footnote {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.faq-shell {
  max-width: 760px;
}

.faq-item {
  padding: 18px 0;
  border-bottom: var(--line-soft);
}

.faq-question {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--brand-dark);
}

.faq-answer {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.final-cta-shell {
  text-align: center;
}

.final-cta-title {
  font-size: 28px;
  line-height: 1.3;
  color: #fff;
  font-weight: 500;
}

.final-cta-copy {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: #F0997B;
}

.final-cta-shell .hero-actions {
  justify-content: center;
}

.brand-footer {
  padding: 30px 0;
}

.brand-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.brand-logo-footer {
  justify-content: center;
}

.brand-footer-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(240, 153, 123, 0.64);
}

.auth-main {
  background: var(--brand-offwhite);
  min-height: calc(100vh - 58px);
}

.auth-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 64px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
}

.auth-shell-signup {
  grid-template-columns: 0.95fr 1.05fr;
}

.auth-info-card,
.auth-card {
  background: #fff;
  border: var(--line-soft);
  border-radius: var(--brand-radius-card);
  padding: 24px;
}

.auth-title {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--brand-dark);
}

.auth-copy {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.auth-copy a,
.form-footnote a {
  color: var(--brand-primary);
}

.auth-panels {
  display: grid;
  gap: 20px;
}

.auth-card-title {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--brand-dark);
}

.panel-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: var(--line-soft);
  background: var(--brand-pale);
  color: var(--brand-mid);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.app-form {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.app-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--brand-dark);
}

.app-form input,
.app-form select {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border-radius: var(--brand-radius-sm);
  border: 1px solid #E2C9AF;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--brand-dark);
}

.app-form input:focus,
.app-form select:focus {
  outline: 2px solid rgba(216, 90, 48, 0.2);
  border-color: var(--brand-primary);
}

.field-help {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.form-footnote {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.form-status {
  margin-top: 10px;
  min-height: 1.4em;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--brand-mid);
}

.form-status[data-tone="error"] {
  color: #A13F28;
}

.form-status[data-tone="success"] {
  color: #2F6A32;
}

.form-status[data-tone="info"] {
  color: var(--brand-mid);
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.topbar.compact {
  padding-top: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--brand-dark);
  font-weight: 500;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-shell {
  padding-bottom: 48px;
}

.app-topbar {
  margin-bottom: 20px;
}

.user-chip {
  display: grid;
  gap: 1px;
  text-align: right;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.user-chip strong {
  font-weight: 500;
  color: var(--brand-dark);
}

.dashboard-page {
  background: var(--brand-offwhite);
}

.dashboard-loading,
.dashboard-workspace {
  display: grid;
  gap: 20px;
}

.dashboard-error {
  color: #A13F28;
}

.viewer-card {
  background: #fff;
  border: var(--line-soft);
  border-radius: var(--brand-radius-card);
  padding: 24px;
}

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

.viewer-header h1 {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.1;
  color: var(--brand-dark);
  font-weight: 500;
}

.viewer-timestamp {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  text-align: right;
}

.viewer-frame {
  margin: 18px 0 16px;
  min-height: 300px;
  border-radius: 16px;
  border: 1px solid #EBD5C0;
  background: var(--brand-offwhite);
  display: grid;
  place-items: center;
  padding: 14px;
}

.dashboard-image {
  width: 100%;
  border-radius: 12px;
}

.schedule-empty,
.dashboard-timestamp {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.dashboard-timestamp {
  text-align: center;
}

.viewer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.viewer-action-note {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.manager-panel {
  margin-top: 2px;
}

.manager-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-pair {
  margin: 16px 0 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #EBD5C0;
  background: var(--brand-offwhite);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.info-pair strong {
  color: var(--brand-dark);
  font-size: 15px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

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

.member-row {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #EBD5C0;
  background: var(--brand-offwhite);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.member-details {
  display: grid;
  gap: 2px;
}

.member-details strong {
  font-size: 14px;
  line-height: 1.4;
  color: var(--brand-dark);
  font-weight: 500;
}

.member-details span {
  font-size: 13px;
  color: var(--color-text-secondary);
}

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

.role-pill {
  padding: 7px 11px;
  border-radius: 999px;
  border: var(--line-soft);
  background: var(--brand-pale);
  color: var(--brand-mid);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell,
  .auth-shell-signup {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .brand-nav {
    height: 56px;
  }

  .brand-logo svg {
    width: 28px;
    height: 34px;
  }

  .brand-logo-eyebrow {
    font-size: 8px;
  }

  .brand-logo-name {
    font-size: 15px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta-mobile {
    display: inline-flex;
  }

  .nav-cta-desktop {
    display: none;
  }

  .section-shell {
    width: min(1120px, calc(100% - 20px));
    padding: 44px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .section-title,
  .auth-card-title {
    font-size: 22px;
  }

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

  .steps-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
  }

  .step-item {
    text-align: left;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 0 0 20px;
    position: relative;
  }

  .step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 34px;
    bottom: 0;
    width: 1.5px;
    background: var(--brand-amber-lt);
  }

  .step-pin {
    margin: 0;
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

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

  .button-primary,
  .button-ghost-dark,
  .button-secondary,
  .button-block-mobile {
    display: flex;
    width: 100%;
    text-align: center;
  }

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

  .final-cta-shell .hero-actions {
    align-items: stretch;
  }

  .viewer-header,
  .viewer-actions,
  .topbar,
  .topbar-actions,
  .member-row,
  .member-actions,
  .info-pair {
    flex-direction: column;
    align-items: stretch;
  }

  .viewer-timestamp,
  .user-chip {
    text-align: left;
  }

  .viewer-actions .button,
  .member-actions .button {
    width: 100%;
  }
}
