:root {
  color-scheme: light;
  --ink: #090909;
  --muted: #626262;
  --line: #dedbd2;
  --paper: #fffdf8;
  --surface: #ffffff;
  --dark: #111111;
  --lime: #d8ff6f;
  --mint: #76f3d3;
  --violet: #7b4dff;
  --orange: #ff8a3d;
  --soft-green: #efffed;
  --soft-violet: #f3efff;
  --soft-orange: #fff2e9;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.skip-link {
  background: var(--dark);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 820;
  left: 18px;
  padding: 12px 16px;
  position: fixed;
  top: 18px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
  z-index: 30;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr auto;
  left: clamp(14px, 3vw, 42px);
  padding: 10px 12px;
  position: fixed;
  right: clamp(14px, 3vw, 42px);
  top: 14px;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 18px;
  font-weight: 820;
  gap: 9px;
  letter-spacing: 0;
}

.brand img {
  height: 30px;
  width: 30px;
}

.nav-links {
  color: #3f3f3f;
  display: flex;
  font-size: 14px;
  font-weight: 720;
  gap: 28px;
  justify-content: center;
}

.nav-links a,
.footer-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--violet);
}

.header-actions,
.hero-actions,
.cta-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 820;
  justify-content: center;
  line-height: 1;
  min-height: 40px;
  padding: 0 16px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button-primary {
  background: var(--dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  color: #fff;
}

.button-primary:hover {
  background: #2a2a2a;
}

.button-secondary,
.button-ghost {
  background: #fff;
  border-color: rgba(17, 17, 17, 0.14);
  color: var(--ink);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(17, 17, 17, 0.28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.button-large {
  min-height: 52px;
  padding: 0 24px;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  overflow: hidden;
  padding: 126px clamp(18px, 4vw, 56px) 82px;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(rgba(9, 9, 9, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 9, 9, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  opacity: 0.8;
  pointer-events: none;
  position: absolute;
}

.hero-copy {
  margin: 0;
  max-width: 620px;
  position: relative;
  text-align: left;
  z-index: 2;
}

.eyebrow {
  color: #5c3dff;
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(52px, 6vw, 82px);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 22px;
}

.hero-lede {
  color: #303030;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.36;
  margin: 0 0 30px;
  max-width: 610px;
}

.hero-actions {
  justify-content: flex-start;
}

.hero-stage {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.36fr);
  margin: 0;
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.stage-main,
.stage-side,
.case-card,
.feature-grid article,
.workflow article,
.final-cta {
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
}

.stage-main {
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.2vw, 24px);
  position: relative;
}

.stage-main::before {
  background: linear-gradient(90deg, var(--lime), var(--mint), var(--violet), var(--orange));
  content: "";
  height: 6px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.stage-header,
.submission-header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.stage-header p,
.stage-header strong,
.submission-header span,
.submission-header strong {
  display: block;
  margin: 0;
}

.stage-header p,
.submission-header span,
.stage-columns span,
.stage-columns em,
.mini-card span,
.case-card span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  text-transform: uppercase;
}

.stage-header strong {
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: 0;
  line-height: 1;
}

.stage-brand-logo {
  display: block;
  height: 34px;
  margin-top: 6px;
  max-width: 144px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.stage-header > span {
  background: var(--lime);
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 840;
  padding: 9px 12px;
}

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

.stage-columns article {
  background: #fbfaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.stage-columns strong {
  display: block;
  font-size: clamp(25px, 3vw, 32px);
  letter-spacing: 0;
  line-height: 1;
  margin: 12px 0 10px;
}

.submission-panel {
  background: #111;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.submission-header strong {
  color: #fff;
  font-size: 15px;
}

.submission-row {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 10px 12px;
}

.avatar {
  align-items: center;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 860;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.avatar.purple {
  background: var(--violet);
}

.avatar.teal {
  background: #009f87;
}

.avatar.orange {
  background: var(--orange);
}

.submission-row strong,
.submission-row p {
  margin: 0;
}

.submission-row strong {
  display: block;
  font-size: 15px;
}

.submission-row p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

mark {
  background: var(--soft-orange);
  border: 1px solid #ffd2b7;
  border-radius: 8px;
  color: #8f3d00;
  font-size: 12px;
  font-weight: 840;
  padding: 7px 9px;
}

mark.green {
  background: var(--soft-green);
  border-color: #b8edb0;
  color: #176c3c;
}

mark.black {
  background: #111;
  border-color: #111;
  color: #fff;
}

.stage-side {
  background: #fff;
  display: grid;
  gap: 16px;
  padding: 14px;
}

.mini-card {
  background: #fbfaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.mini-card.dark {
  background: #111;
  border-color: #111;
  color: #fff;
}

.mini-card strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  margin: 14px 0 12px;
}

.mini-card p {
  color: inherit;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  opacity: 0.74;
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 4vw, 56px);
}

.section-heading,
.case-heading {
  margin: 0 auto 34px;
  max-width: 920px;
  text-align: center;
}

.section h2,
.case-study h2,
.final-cta h2 {
  font-size: clamp(34px, 4.8vw, 62px);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

.platform-section {
  background: #fff;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.feature-grid article,
.workflow article {
  background: var(--paper);
  min-height: 252px;
  padding: 26px;
}

.feature-icon {
  align-items: center;
  background: var(--dark);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 880;
  height: 36px;
  justify-content: center;
  margin-bottom: 36px;
  width: 44px;
}

.feature-grid h3,
.workflow h3,
.case-card h3 {
  font-size: clamp(23px, 2.4vw, 32px);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 14px;
}

.feature-grid p,
.workflow p,
.case-heading p,
.case-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 0;
}

.case-study {
  background: #111;
  color: #fff;
  padding: clamp(70px, 9vw, 124px) clamp(18px, 4vw, 56px);
}

.case-study .eyebrow {
  color: var(--lime);
}

.case-heading p {
  color: rgba(255, 255, 255, 0.74);
  margin: 20px auto 0;
  max-width: 780px;
}

.case-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 0.8fr));
  margin: 0 auto;
  max-width: 1120px;
}

.case-card {
  background: #fff;
  color: var(--ink);
  min-height: 240px;
  padding: 24px;
}

.case-card.featured {
  background: linear-gradient(135deg, #fff, #f5ffdd);
}

.case-card.featured h3 {
  max-width: 520px;
}

.case-card > span {
  display: block;
  line-height: 1.4;
  margin: 0 0 10px;
}

.case-logo {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  margin-bottom: 28px;
  overflow: hidden;
  padding: 10px 14px;
}

.case-logo img {
  display: block;
  height: 100%;
  max-width: 142px;
  object-fit: contain;
  width: auto;
}

.case-logo-cal-ai {
  width: 156px;
}

.case-logo-quittr {
  background: #202022;
  border-color: #202022;
  height: 76px;
  padding: 0;
  width: 116px;
}

.case-logo-quittr img {
  height: 116px;
  max-width: none;
  object-fit: cover;
  width: 116px;
}

.metric-card strong {
  display: block;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: 0;
  line-height: 0.92;
  margin: 26px 0 18px;
}

.case-study-light {
  background: var(--soft-violet);
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  color: var(--ink);
}

.case-study-light .eyebrow {
  color: var(--violet);
}

.case-study-light .case-heading p {
  color: #4a4a4a;
}

.case-study-light .case-card {
  border-color: rgba(17, 17, 17, 0.14);
}

.case-study-light .case-card.featured {
  background: linear-gradient(135deg, #fff, #e9e2ff);
}

.workflow-section {
  background: #fffdf8;
}

.workflow {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.workflow article {
  background: #fff;
}

.workflow span {
  align-items: center;
  background: var(--lime);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 880;
  height: 36px;
  justify-content: center;
  margin-bottom: 36px;
  width: 44px;
}

.final-cta {
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 255, 111, 0.38), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(118, 243, 211, 0.34), transparent 30%),
    #111;
  color: #fff;
  margin: 0 clamp(18px, 4vw, 56px) clamp(28px, 4vw, 56px);
  padding: clamp(34px, 6vw, 70px);
  text-align: center;
}

.final-cta .eyebrow {
  color: var(--lime);
}

.final-cta h2 {
  margin: 0 auto 28px;
  max-width: 920px;
}

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

.final-cta .button-primary {
  background: #fff;
  color: #111;
}

.final-cta .button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.site-footer {
  align-items: center;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 56px);
}

.footer-brand {
  font-size: 16px;
}

.footer-brand img {
  height: 26px;
  width: 26px;
}

.footer-links {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 740;
  gap: 22px;
}

.legal-main {
  min-height: calc(100vh - 85px);
  padding: 134px clamp(18px, 4vw, 56px) clamp(64px, 8vw, 100px);
}

.legal-article {
  margin: 0 auto;
  max-width: 820px;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 42px;
  padding-bottom: 36px;
}

.legal-header h1 {
  font-size: clamp(46px, 6vw, 72px);
  line-height: 0.98;
  margin-bottom: 20px;
}

.legal-intro {
  color: #303030;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  margin-bottom: 18px;
}

.legal-updated {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  margin: 0;
}

.legal-content {
  display: grid;
  gap: 34px;
}

.legal-content section h2 {
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  color: #3f3f3f;
  font-size: 17px;
  line-height: 1.7;
}

.legal-content p {
  margin-bottom: 0;
}

.legal-content p + p {
  margin-top: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0;
  padding-left: 24px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: #4d2ed8;
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--violet);
}

.legal-notice {
  background: var(--soft-orange);
  border: 1px solid #f1c5a8;
  border-radius: 8px;
  color: #63300e;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 34px;
  padding: 18px 20px;
}

.legal-notice strong {
  color: #3b1a05;
}

.legal-toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 38px;
  padding: 22px 24px;
}

.legal-toc h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.legal-toc ol {
  columns: 2;
  gap: 36px;
  margin: 0;
  padding-left: 22px;
}

.legal-toc li {
  break-inside: avoid;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.legal-toc a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-content h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 22px 0 8px;
}

.legal-content strong {
  color: var(--ink);
}

.legal-caps {
  color: #242424 !important;
  font-size: 15px !important;
  font-weight: 740;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.legal-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  overflow-x: auto;
}

.legal-table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.legal-table th,
.legal-table td {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #f7f5ee;
  color: var(--ink);
  font-weight: 820;
}

.legal-table td {
  color: #3f3f3f;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-address {
  font-style: normal;
  line-height: 1.7;
  margin-top: 14px;
}

.legal-links {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 42px;
  padding-top: 24px;
}

.legal-links a {
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    display: none;
  }

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

  .hero {
    grid-template-columns: 1fr;
    padding-top: 118px;
  }

  .hero-copy {
    max-width: 760px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stage {
    margin: 0 auto;
    max-width: 760px;
  }

  .stage-side,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card.featured {
    grid-column: 1 / -1;
  }

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

@media (max-width: 700px) {
  .site-header {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .brand span {
    display: none;
  }

  .header-actions {
    justify-content: end;
  }

  .button {
    min-height: 38px;
    padding: 0 12px;
  }

  .button-large {
    min-height: 48px;
    padding: 0 18px;
  }

  .hero {
    padding: 108px 16px 54px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .hero-lede {
    font-size: 18px;
  }

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

  .stage-columns,
  .stage-side,
  .feature-grid,
  .workflow,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .stage-header,
  .submission-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .submission-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .submission-row mark {
    grid-column: 2;
    justify-self: start;
  }

  .section,
  .case-study {
    padding: 58px 16px;
  }

  .feature-grid article,
  .workflow article,
  .case-card {
    min-height: auto;
    padding: 22px;
  }

  .final-cta {
    margin: 0 16px 26px;
    padding: 30px 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 16px;
  }

  .legal-main {
    padding: 112px 16px 58px;
  }

  .legal-header {
    margin-bottom: 32px;
    padding-bottom: 28px;
  }

  .legal-content {
    gap: 28px;
  }

  .legal-toc ol {
    columns: 1;
  }
}
