:root {
  color-scheme: light;
  --blue: #4a90d9;
  --blue-dark: #1f5f9f;
  --orange: #f5a623;
  --purple: #7b68ee;
  --ink: #142033;
  --muted: #627084;
  --line: #d9e2ef;
  --paper: #ffffff;
  --wash: #f5f8fc;
  --soft-blue: #e7f1fc;
  --warm: #fff4e1;
  --shadow: 0 22px 60px rgba(20, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 226, 239, 0.78);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(20, 32, 51, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(74, 144, 217, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(74, 144, 217, 0.34);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(231, 241, 252, 0.92) 48%, rgba(245, 248, 252, 0.98)),
    url("assets/app-icon.png") right 8% top 15% / min(560px, 58vw) no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(245, 248, 252, 0), var(--wash));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  color: #344258;
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-proof {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(74, 144, 217, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #344258;
  font-size: 14px;
  font-weight: 760;
}

.phone {
  width: min(100%, 390px);
  justify-self: center;
  aspect-ratio: 0.48;
  padding: 16px;
  border-radius: 42px;
  background: #111827;
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: #f2f6fb;
  padding: 26px 18px;
}

.status-row {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

.screen-date {
  color: #7a8392;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.screen-title {
  margin: 8px 0 22px;
  font-size: 32px;
  font-weight: 900;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric,
.empty-panel {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(20, 32, 51, 0.08);
}

.metric {
  min-height: 112px;
  padding: 18px;
  transition: transform 160ms ease;
}

.metric:hover,
.feature:hover {
  transform: translateY(-2px);
}

.metric strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.metric span {
  color: #7a8392;
  font-weight: 800;
}

.metric.wide {
  grid-row: span 2;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.empty-panel {
  margin-top: 18px;
  min-height: 250px;
  padding: 28px 22px;
  text-align: center;
}

.empty-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--soft-blue);
  position: relative;
}

.empty-icon::before {
  content: "";
  width: 44px;
  height: 30px;
  border: 4px solid var(--blue);
  border-top: 0;
  border-radius: 4px;
  transform: translateY(2px);
}

.empty-icon::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 22px;
  border-left: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  transform: rotate(-45deg) translate(2px, -6px);
}

.empty-panel h2 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.08;
}

.screen-button {
  margin: 26px auto 0;
  width: 210px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
}

.band {
  padding: 88px 24px;
}

.band.white {
  background: #fff;
}

.band.blue {
  background: #eaf4ff;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 19px;
}

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

.feature {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(20, 32, 51, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature:hover {
  box-shadow: 0 20px 46px rgba(20, 32, 51, 0.09);
}

.feature-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.feature:nth-child(2) .feature-mark {
  background: var(--orange);
}

.feature:nth-child(3) .feature-mark {
  background: var(--purple);
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

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

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #344258;
  font-weight: 750;
}

.format-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
}

.envelope-demo {
  position: relative;
  min-height: 250px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #f9fbff);
  border: 1px solid rgba(74, 144, 217, 0.18);
  box-shadow: 0 20px 52px rgba(20, 32, 51, 0.12);
  overflow: hidden;
}

.envelope-demo::before,
.envelope-demo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(135deg, transparent 49%, rgba(74, 144, 217, 0.12) 50%);
}

.envelope-demo::after {
  transform: scaleX(-1);
}

.stamp {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--warm);
  border: 3px solid var(--orange);
}

.sender-lines,
.recipient-lines {
  position: absolute;
  left: 34px;
  display: grid;
  gap: 8px;
}

.sender-lines {
  top: 34px;
}

.recipient-lines {
  top: 126px;
  left: 128px;
}

.sender-lines::before,
.sender-lines::after,
.recipient-lines::before,
.recipient-lines::after {
  content: "";
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #cbd8e8;
}

.sender-lines::before {
  width: 96px;
}

.sender-lines::after {
  width: 140px;
}

.recipient-lines::before {
  width: 170px;
  background: #9bbce0;
}

.recipient-lines::after {
  width: 122px;
  background: #cbd8e8;
}

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

.step {
  padding: 22px;
  min-height: 160px;
  border-top: 4px solid var(--blue);
  background: #fff;
  box-shadow: 0 12px 26px rgba(20, 32, 51, 0.05);
}

.step strong {
  display: block;
  margin-bottom: 18px;
  color: var(--blue-dark);
  font-size: 14px;
}

.step p {
  margin-bottom: 0;
  font-weight: 800;
}

.cta {
  text-align: center;
}

.cta h2 {
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
}

.cta p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 19px;
}

.site-footer {
  padding: 42px 24px;
  background: var(--ink);
  color: #d6deeb;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 76px 24px 96px;
}

.legal-page h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legal-page .updated {
  color: var(--blue-dark);
  font-weight: 800;
}

.legal-summary {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legal-summary p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

  .nav-links .hide-small {
    display: none;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 248, 252, 0.98)),
      url("assets/app-icon.png") center 38px / min(440px, 112vw) no-repeat;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 64px 20px 76px;
    gap: 44px;
  }

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

  .phone {
    width: min(100%, 340px);
    transform: none;
  }

  .feature-grid,
  .workflow,
  .format-layout {
    grid-template-columns: 1fr;
  }

  .band {
    padding: 64px 20px;
  }
}
