:root {
  color-scheme: light;
  --black: #000000;
  --text: #111111;
  --muted: #6b7280;
  --border: #d1d5db;
  --surface: #ffffff;
  --surface-alt: #f3f4f6;
  --unread: #f5f9ff;
  --accent: #0b57d0;
  --accent-strong: #104cac;
  --trust-verified: #40826d;
  --trust-good: #adebb3;
  --trust-warning: #ffbf00;
  --trust-danger: #b42318;
  --badge: #d56c5e;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
}

a {
  color: inherit;
  text-decoration-color: rgba(11, 87, 208, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(209, 213, 219, 0.75);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(11, 87, 208, 0.18);
}

.button:hover {
  color: #ffffff;
  background: var(--accent-strong);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.button.secondary:hover {
  color: var(--accent);
  border-color: rgba(11, 87, 208, 0.45);
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 40%, rgba(255, 255, 255, 0.34) 72%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/scrollmail-feed.png");
  background-repeat: no-repeat;
  background-position: right 9vw top 26px;
  background-size: min(48vw, 470px) auto;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 56px 0 96px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--badge);
}

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

h1 {
  margin-bottom: 20px;
  max-width: 760px;
  font-size: clamp(3.2rem, 8.6vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 600px;
  margin-bottom: 28px;
  color: #252525;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.compact {
  padding: 44px 0;
}

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

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
}

.card.unread {
  background: var(--unread);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.card p,
.card li {
  color: var(--muted);
  line-height: 1.6;
}

.card p:last-child,
.legal-body p:last-child {
  margin-bottom: 0;
}

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

.message-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px 28px 76px;
}

.message-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: start;
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c7c7c7;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
}

.sender {
  font-size: 1.16rem;
  font-weight: 900;
}

.address {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}

.verified-domain {
  color: var(--trust-verified);
}

.subject {
  margin-top: 16px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.preview {
  margin-top: 20px;
  color: #333333;
  font-size: 1.04rem;
  line-height: 1.65;
}

.archived-stamp {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(-42deg);
  padding: 16px 34px;
  border: 12px dashed rgba(107, 114, 128, 0.22);
  color: rgba(107, 114, 128, 0.2);
  font-size: clamp(3.8rem, 10vw, 7rem);
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
}

.action-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 14px;
  border-top: 1px solid rgba(209, 213, 219, 0.7);
  background: rgba(255, 255, 255, 0.82);
  color: #777777;
  font-size: 1.45rem;
}

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

.trust-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #333333;
  font-weight: 800;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.dot.verified {
  background: var(--trust-verified);
}

.dot.good {
  background: var(--trust-good);
  border: 1px solid #7acb84;
}

.dot.warning {
  background: var(--trust-warning);
}

.dot.danger {
  background: var(--trust-danger);
}

.legal-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.legal-hero .section {
  padding: 64px 0 48px;
}

.legal-hero h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.toc a {
  text-decoration: none;
}

.legal-body {
  max-width: 800px;
  color: #202020;
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-body h2 {
  margin-top: 42px;
  margin-bottom: 10px;
  padding-top: 8px;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body ul {
  padding-left: 1.3rem;
}

.legal-body li {
  margin-bottom: 0.6rem;
}

.callout {
  border-left: 4px solid var(--accent);
  background: var(--unread);
  padding: 18px 20px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

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

  .nav-links {
    gap: 12px;
    font-size: 0.88rem;
  }

  .nav-links .optional {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background-position: center bottom -90px;
    background-size: min(78vw, 380px) auto;
    opacity: 0.34;
  }

  .hero-inner {
    min-height: 720px;
    align-items: flex-start;
    padding-top: 70px;
  }

  .hero-copy {
    width: 100%;
  }

  .grid.three,
  .grid.two,
  .legal-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .nav {
    width: min(var(--max), calc(100% - 24px));
  }

  .brand span {
    display: none;
  }

  .hero-inner,
  .section,
  .footer-inner {
    width: min(var(--max), calc(100% - 24px));
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .hero-subtitle,
  .section-heading p,
  .lead {
    font-size: 1rem;
  }

  .section {
    padding: 52px 0;
  }

  .card,
  .message-card {
    padding: 18px;
  }

  .message-card {
    padding-bottom: 76px;
  }

  .message-row {
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
  }

  .avatar {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .archived-stamp {
    font-size: 3.2rem;
    border-width: 8px;
    padding: 12px 20px;
  }

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