:root {
  --ink: #211c18;
  --muted: #635b53;
  --soft-muted: #8b8178;
  --paper: #f8f3ea;
  --paper-deep: #eee4d6;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --charcoal: #171513;
  --charcoal-2: #24201d;
  --line: #ded2c2;
  --warm: #c9723c;
  --warm-deep: #9d542c;
  --amber: #ebb76b;
  --sage: #748571;
  --blue: #647684;
  --focus: #0f6b7f;
  --shadow: 0 18px 50px rgba(33, 28, 24, 0.14);
  --max: 1120px;
}

* {
  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;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: var(--warm-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--focus);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 243, 234, 0.94);
  border-bottom: 1px solid rgba(222, 210, 194, 0.9);
  backdrop-filter: blur(14px);
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 56px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 7px 16px rgba(33, 28, 24, 0.1);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}

.nav-link.nav-cta {
  background: var(--charcoal);
  color: var(--surface);
}

.nav-link.nav-cta:hover {
  background: var(--warm-deep);
  color: var(--surface);
}

.hero {
  position: relative;
  min-height: 76svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 243, 234, 0.98) 0%, rgba(248, 243, 234, 0.87) 48%, rgba(248, 243, 234, 0.36) 100%),
    url("lifestream-formal-website-header-mark.svg") right 9vw center / 300px 300px no-repeat;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 74px 0 88px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--warm-deep);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
.page-title {
  margin: 0;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.45;
}

.hero-note {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--surface);
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--warm-deep);
  border-color: var(--warm-deep);
  color: var(--surface);
}

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

.button.secondary:hover {
  background: var(--surface);
  color: var(--ink);
}

.phone-preview {
  position: absolute;
  z-index: 1;
  right: max(28px, 8vw);
  bottom: 18px;
  width: 292px;
  height: 524px;
  border: 9px solid var(--charcoal);
  border-radius: 34px;
  background: var(--charcoal);
  color: #f4eee7;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-screen {
  height: 100%;
  padding: 34px 18px 18px;
  background: var(--charcoal);
}

.phone-top {
  width: 96px;
  height: 18px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: #050505;
}

.phone-date {
  margin: 0 0 4px;
  color: var(--soft-muted);
  font-size: 0.82rem;
}

.phone-heading {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.1;
}

.phone-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 20px;
  padding: 3px 9px;
  border: 1px solid rgba(235, 183, 107, 0.36);
  border-radius: 8px;
  color: #f0bd76;
  font-size: 0.78rem;
  font-weight: 800;
}

.phone-message {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--charcoal-2);
  font-size: 0.95rem;
}

.phone-time {
  display: block;
  margin-top: 8px;
  color: #b9ada4;
  font-size: 0.78rem;
}

.phone-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #b9ada4;
}

.phone-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--warm);
  color: var(--charcoal);
  font-weight: 900;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-header h2,
.content h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.18;
}

.section-header p,
.content > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

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

.item {
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.item h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.28;
}

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

.item p {
  margin: 0;
}

.item ul {
  margin: 10px 0 0;
  padding-left: 1.1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.tag.sage {
  border-color: rgba(116, 133, 113, 0.38);
  color: #465b43;
}

.tag.blue {
  border-color: rgba(100, 118, 132, 0.38);
  color: #425866;
}

.tag.warm {
  border-color: rgba(201, 114, 60, 0.38);
  color: var(--warm-deep);
}

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

.link-tile {
  display: block;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  text-decoration: none;
}

.link-tile:hover {
  border-color: var(--warm);
  color: var(--ink);
}

.link-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.link-tile span {
  display: block;
  color: var(--muted);
}

.status-note {
  padding: 18px 20px;
  border-left: 5px solid var(--warm);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
}

.page-hero {
  padding: 70px 0 46px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-kicker {
  margin: 0 0 12px;
  color: var(--warm-deep);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.page-lead {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 42px;
  align-items: start;
}

.content {
  min-width: 0;
}

.content section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.content section:first-child {
  padding-top: 0;
}

.content section:last-child {
  border-bottom: 0;
}

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

.content ul,
.content ol {
  padding-left: 1.2rem;
}

.side-note {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.side-note h2,
.side-note h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.side-note p,
.side-note li {
  color: var(--muted);
  font-size: 0.94rem;
}

.side-note ul {
  margin: 10px 0 0;
  padding-left: 1rem;
}

.definition-list {
  display: grid;
  gap: 12px;
}

.definition-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.definition-list dt {
  margin: 0 0 4px;
  font-weight: 800;
}

.definition-list dd {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  color: #f4eee7;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.site-footer a {
  color: #f0bd76;
}

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

.footer-copy {
  max-width: 560px;
  margin: 8px 0 0;
  color: #bfb4ab;
}

@media (max-width: 980px) {
  .phone-preview {
    right: -42px;
    opacity: 0.34;
  }

  .grid,
  .link-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

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

  .side-note {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .nav-link {
    padding: 7px 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 58px 0 74px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(248, 243, 234, 0.94) 0%, rgba(248, 243, 234, 0.86) 60%, rgba(248, 243, 234, 0.72) 100%),
      url("lifestream-formal-website-header-mark.svg") center 74% / 220px 220px no-repeat;
  }

  h1,
  .page-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.18rem;
  }

  .phone-preview {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .page-hero {
    padding: 48px 0 34px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .nav-wrap,
  .section-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 28px, var(--max));
  }

  h1,
  .page-title {
    font-size: 2.35rem;
  }

  .hero-actions,
  .page-actions,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
