:root {
  --background: #f5efe7;
  --background-soft: #fbf7f0;
  --panel: #fff9f2;
  --panel-muted: #f1e6d8;
  --outline: #d8c6b3;
  --outline-soft: #e7d9cb;
  --primary: #5f3421;
  --primary-strong: #432316;
  --primary-hot: #6b351d;
  --accent: #b8875c;
  --forest: #2f5d50;
  --steel: #43606e;
  --text: #2f2118;
  --muted: #6d5848;
  --muted-soft: #907865;
  --white: #fffdf8;
  --shadow: rgba(47, 33, 24, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.legal-page {
  background: var(--background-soft);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(245, 239, 231, 0.78);
  border-bottom: 1px solid rgba(216, 198, 179, 0.72);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 20px;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  font-size: 22px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--primary-strong);
  box-shadow: 0 14px 30px -18px var(--primary);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
  color: var(--panel);
  background: linear-gradient(180deg, var(--primary-hot), var(--primary-strong));
  box-shadow: 0 18px 42px -24px rgba(67, 35, 22, 0.72);
}

.button-primary:hover {
  background: linear-gradient(180deg, #743a20, #351b11);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 249, 242, 0.84);
  border-color: rgba(255, 249, 242, 0.72);
}

.hero {
  min-height: 88vh;
  position: relative;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background-color: #1c0d08;
  background-image: url("images/sample-workbench.png");
  background-size: auto 88%;
  background-position: calc(100% + 190px) center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(28, 16, 10, 0.96) 0%, rgba(28, 16, 10, 0.9) 34%, rgba(28, 16, 10, 0.58) 54%, rgba(28, 16, 10, 0.14) 78%),
    linear-gradient(180deg, rgba(18, 8, 5, 0.92), rgba(49, 26, 14, 0.64) 58%, rgba(49, 26, 14, 0.22));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(245, 239, 231, 0), var(--background));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 132px 20px 108px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #f6dac1;
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 46px;
  line-height: 1.02;
  font-weight: 900;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #f5e8d7;
  font-size: 19px;
}

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

.section {
  padding: 82px 0;
}

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

.section-muted {
  background: #efe8df;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--panel-muted);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2,
.legal-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 900;
}

.section-heading p {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--outline-soft);
  background: var(--panel);
}

.step-number {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--panel);
  font-weight: 900;
}

.step h3,
.feature-card h3,
.faq-card summary {
  margin: 0;
  font-size: 21px;
  font-weight: 850;
}

.step p,
.feature-card p,
.faq-card p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--outline-soft);
  background: var(--white);
  box-shadow: 0 24px 60px -48px var(--shadow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--panel-muted);
}

.feature-icon svg {
  width: 27px;
  height: 27px;
}

.visual-band {
  display: grid;
  gap: 28px;
  align-items: center;
}

.visual-copy {
  max-width: 570px;
}

.visual-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 900;
}

.visual-copy p {
  color: var(--muted);
  font-size: 17px;
}

.stats {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--outline-soft);
  border-radius: 8px;
  background: var(--panel);
}

.stat strong {
  display: block;
  color: var(--forest);
  font-size: 25px;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-card {
  border: 1px solid var(--outline-soft);
  border-radius: 8px;
  background: var(--panel);
}

.faq-card summary {
  cursor: pointer;
  padding: 22px;
  list-style: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card p {
  padding: 0 22px 22px;
}

.cta-section {
  color: var(--panel);
  background: var(--primary-strong);
}

.cta-panel {
  display: grid;
  gap: 22px;
  align-items: center;
}

.cta-panel h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.cta-panel p {
  margin: 10px 0 0;
  color: #f5dfcb;
}

.site-footer {
  border-top: 1px solid var(--outline-soft);
  background: var(--white);
}

.footer-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding: 42px 20px;
}

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

.footer-note {
  color: var(--muted-soft);
  font-size: 14px;
}

.legal-hero {
  padding: 128px 0 40px;
}

.legal-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 0 20px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--muted);
  font-weight: 800;
}

.legal-hero p {
  color: var(--muted);
}

.legal-section {
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid var(--outline-soft);
  border-radius: 8px;
  background: var(--white);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

  .hero h1 {
    font-size: 68px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .visual-band {
    grid-template-columns: 1fr 0.85fr;
  }

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

  .cta-panel {
    grid-template-columns: 1fr auto;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 719px) {
  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 20px;
  }

  .button {
    width: 100%;
  }

  .header-inner .button {
    width: auto;
  }

  .hero {
    min-height: 90vh;
    background-size: auto 84%;
    background-position: 72% center;
  }

  .hero-content {
    padding-top: 110px;
    padding-bottom: 86px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .section {
    padding: 64px 0;
  }

  .section-heading h2,
  .visual-copy h2,
  .cta-panel h2,
  .legal-hero h1 {
    font-size: 31px;
  }
}
