:root {
  --ink: #16211f;
  --ink-2: #2f3d39;
  --muted: #66736e;
  --line: #dbe2dc;
  --paper: #fbfcf7;
  --paper-2: #eef5ef;
  --white: #ffffff;
  --green: #0f7f6f;
  --green-dark: #0b5f55;
  --coral: #ef614f;
  --coral-dark: #c84536;
  --gold: #ecb64c;
  --mint: #cce8dd;
  --shadow: 0 22px 65px rgba(22, 33, 31, 0.14);
  --radius: 8px;
  --hero-image: url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=2000&q=82");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px 32px;
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(251, 252, 247, 0.94);
  box-shadow: 0 14px 35px rgba(22, 33, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border-radius: 8px;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a:focus-visible,
.site-header.open .site-nav a:hover,
.site-header.open .site-nav a:focus-visible {
  background: var(--paper-2);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(22, 33, 31, 0.12);
}

.site-header.scrolled .header-cta,
.site-header.open .header-cta {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.header-cta svg,
.button svg,
.eyebrow svg,
.strip-item svg,
.feature-card svg,
.access-grid svg,
.lane-header svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.icon-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  min-height: 90vh;
  align-items: flex-end;
  padding: 130px 32px 72px;
  color: var(--white);
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 28, 25, 0.84) 0%, rgba(11, 28, 25, 0.58) 43%, rgba(11, 28, 25, 0.24) 100%),
    linear-gradient(0deg, rgba(11, 28, 25, 0.65) 0%, rgba(11, 28, 25, 0.08) 48%);
}

.hero-content {
  position: relative;
  width: min(920px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--green);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: 5rem;
  line-height: 0.96;
  font-weight: 900;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.45rem;
  line-height: 1.08;
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.25;
  font-weight: 850;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.22rem;
}

.hero-actions,
.closing-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, border-color 170ms ease;
}

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

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.faq-item:focus-visible,
.mode-option:focus-visible,
.text-button:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid rgba(15, 127, 111, 0.35);
  outline-offset: 2px;
}

.button.primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 14px 35px rgba(239, 97, 79, 0.28);
}

.button.primary:hover {
  background: var(--coral-dark);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--green);
  box-shadow: 0 14px 30px rgba(22, 33, 31, 0.08);
}

.button.secondary.light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.button.glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.button.quiet {
  color: var(--green-dark);
  background: var(--paper-2);
  border-color: var(--paper-2);
}

.full-width {
  width: 100%;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-metrics span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  color: var(--white);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--white);
}

.strip-item {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 750;
}

.strip-item svg {
  color: var(--gold);
}

.section {
  padding: 88px 32px;
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.wide {
  width: min(980px, 100%);
}

.section-heading p:not(.eyebrow) {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.system-section {
  background: var(--paper);
}

.workspace-preview {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr 0.95fr;
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px;
  background: #e3ece4;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.workflow-lane {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(22, 33, 31, 0.08);
  border-radius: 8px;
}

.lane-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-weight: 850;
}

.lead-ticket,
.message-preview {
  padding: 14px;
  margin-bottom: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lead-ticket.hot {
  border-color: rgba(239, 97, 79, 0.42);
  box-shadow: 0 12px 28px rgba(239, 97, 79, 0.12);
}

.ticket-status,
.message-preview span,
.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: var(--green-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.lead-ticket strong,
.lead-ticket p,
.message-preview p {
  display: block;
  margin: 8px 0 0;
}

.lead-ticket p,
.message-preview p,
.feature-card p,
.access-grid p,
.plan-copy,
.faq-answer,
.brief-help,
.mode-note {
  color: var(--muted);
}

.message-preview.accent {
  border-color: rgba(236, 182, 76, 0.55);
}

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

.check-list li,
.plan-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.check-list svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex: 0 0 auto;
  margin-top: 3px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}

.summary-grid span {
  min-height: 74px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-grid strong {
  display: block;
  color: var(--coral);
  font-size: 1.55rem;
  line-height: 1;
}

.feature-band {
  background: var(--white);
}

.feature-grid,
.access-grid,
.pricing-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 16px;
}

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

.feature-card,
.access-grid article,
.pricing-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card svg,
.access-grid svg {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--green);
}

.feature-card p,
.access-grid p {
  margin: 10px 0 0;
}

.packages-section {
  background: #eef5ef;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--white);
}

.pricing-card.featured {
  border-color: rgba(239, 97, 79, 0.48);
  box-shadow: var(--shadow);
}

.pricing-card.selected {
  outline: 3px solid rgba(15, 127, 111, 0.28);
  border-color: var(--green);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.plan-top svg {
  width: 24px;
  height: 24px;
  color: var(--coral);
}

.price {
  margin: -5px 0;
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
}

.plan-copy {
  min-height: 72px;
  margin: 0;
}

.plan-list {
  margin-bottom: auto;
}

.onboarding-section {
  background: var(--paper);
}

.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: start;
}

.setup-form,
.brief-panel {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(22, 33, 31, 0.06);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  background: var(--paper-2);
  border-radius: 8px;
}

.mode-option {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: var(--ink-2);
  background: transparent;
  border-radius: 7px;
  font-weight: 850;
  cursor: pointer;
}

.mode-option.active {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 25px rgba(15, 127, 111, 0.18);
}

.mode-option svg {
  width: 18px;
  height: 18px;
}

.mode-note {
  min-height: 25px;
  margin: 12px 0 22px;
}

fieldset {
  padding: 0;
  margin: 0 0 28px;
  border: 0;
}

legend {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 800;
}

.span-2 {
  grid-column: span 2;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

select {
  cursor: pointer;
}

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

.checkbox-group p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-2);
  font-weight: 900;
}

.checkbox-group label,
.consent-line {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 750;
}

.checkbox-group.compact {
  grid-template-columns: repeat(2, 1fr);
}

.checkbox-group input,
.consent-line input {
  width: 18px;
  min-height: auto;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.consent-line {
  margin-top: 16px;
}

.form-actions {
  margin-top: 10px;
}

.brief-panel {
  position: sticky;
  top: 96px;
}

.brief-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.brief-status strong {
  color: var(--ink);
  text-align: right;
}

.readiness-meter {
  height: 10px;
  margin: 14px 0 22px;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: 999px;
}

.readiness-meter span {
  display: block;
  width: var(--level, 8%);
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: inherit;
  transition: width 180ms ease;
}

.brief-help {
  margin: 8px 0 16px;
}

pre {
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.48;
}

.brief-actions {
  display: grid;
  gap: 10px;
}

.operator-log {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.operator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.text-button {
  padding: 3px 0;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

#profile-log {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

#profile-log li {
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
}

.compliance-section {
  background: var(--white);
}

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

.faq-section {
  background: var(--paper);
}

.faq-list {
  width: min(860px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-item svg {
  width: 22px;
  height: 22px;
  transition: transform 170ms ease;
}

.faq-item[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 4px 22px;
  border-bottom: 1px solid var(--line);
}

.faq-answer.open {
  display: block;
}

.closing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 56px 32px;
  color: var(--white);
  background: var(--green-dark);
}

.closing-cta h2 {
  max-width: 720px;
  color: var(--white);
}

.closing-cta .eyebrow {
  margin-bottom: 10px;
}

.closing-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.legal-main {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 130px 0 70px;
}

.legal-main h1 {
  color: var(--ink);
  font-size: 3rem;
}

.legal-main h2 {
  margin-top: 36px;
  font-size: 1.5rem;
}

.legal-main p,
.legal-main li {
  color: var(--ink-2);
}

.legal-main ul {
  display: grid;
  gap: 8px;
}

.notice {
  padding: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: 360px;
  padding: 14px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1100px) {
  .workspace-preview,
  .pricing-grid,
  .feature-grid,
  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-lane {
    grid-column: span 2;
  }

  .onboarding-layout {
    grid-template-columns: 1fr;
  }

  .brief-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 12px 18px;
  }

  .icon-button {
    display: grid;
    justify-self: end;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-header.open .site-nav {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.open .site-nav a {
    border-radius: 8px;
  }

  .hero {
    min-height: 86vh;
    padding: 112px 20px 44px;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .signal-strip {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 68px 20px;
  }

  .closing-cta,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-actions {
    width: 100%;
  }

  .closing-actions .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .workspace-preview,
  .pricing-grid,
  .feature-grid,
  .access-grid,
  .form-grid,
  .checkbox-group,
  .checkbox-group.compact {
    grid-template-columns: 1fr;
  }

  .summary-lane,
  .span-2 {
    grid-column: auto;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .strip-item {
    min-height: 76px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .mode-switch {
    grid-template-columns: 1fr;
  }

  .setup-form,
  .brief-panel {
    padding: 18px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
