:root {
  color-scheme: light;
  --ink: #24292f;
  --muted: #57606a;
  --line: #d0d7de;
  --paper: #ffffff;
  --soft: #f6f8fa;
  --blue: #0969da;
  --blue-dark: #0550ae;
  --teal: #0f766e;
  --amber: #9a6700;
  --red: #cf222e;
  --navy: #24292f;
  --radius: 6px;
  --shadow: none;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.brand,
.nav,
.hero-actions,
.header-tools,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}

.nav {
  gap: 24px;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a,
.header-action {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.header-action {
  justify-self: end;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.header-tools {
  justify-self: end;
  gap: 10px;
}

.header-action:hover {
  border-color: #b9c6d8;
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: min(620px, calc(100svh - 64px));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(70px, 10vh, 118px) clamp(20px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center right;
  opacity: 0.86;
  filter: saturate(1.12) contrast(1.12);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(246 248 250 / 97%) 0%, rgb(246 248 250 / 88%) 34%, rgb(246 248 250 / 25%) 62%, rgb(246 248 250 / 0%) 100%),
    linear-gradient(0deg, rgb(246 248 250 / 58%) 0%, rgb(246 248 250 / 0%) 48%);
}

.hero-content {
  position: relative;
  max-width: 820px;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono",
    monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 0.98;
}

h2 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 21px;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.source-link:hover,
.feature-card:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: var(--blue-dark);
}

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

.button.secondary:hover {
  border-color: #8c959f;
  background: var(--soft);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.trust-strip div {
  padding: 18px clamp(18px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 5px;
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono",
    monospace;
  font-size: 14px;
}

.trust-strip span {
  color: var(--muted);
}

.section {
  padding: 78px clamp(20px, 6vw, 92px);
}

.intro,
.privacy,
.opensource {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}

.intro-text,
.privacy-panel p,
.opensource p {
  color: var(--muted);
  font-size: 18px;
}

.intro-text p:last-child,
.privacy-panel p:last-child,
.opensource p:last-child {
  margin-bottom: 0;
}

.feature-band {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.pwa {
  background: #ffffff;
}

.pwa .section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

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

.pwa-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.pwa-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.pwa-icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.pwa-icon::before,
.pwa-icon::after {
  position: absolute;
  content: "";
}

.install-icon::before {
  left: 13px;
  top: 9px;
  width: 14px;
  height: 18px;
  border: 3px solid var(--blue);
  border-top: 0;
}

.install-icon::after {
  left: 14px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(45deg);
}

.offline-icon::before {
  left: 8px;
  top: 13px;
  width: 24px;
  height: 14px;
  border: 3px solid var(--teal);
  border-top-color: transparent;
  border-radius: 0 0 18px 18px;
}

.offline-icon::after {
  left: 12px;
  top: 18px;
  width: 18px;
  height: 3px;
  background: var(--teal);
  transform: rotate(-38deg);
}

.local-file-icon::before {
  left: 12px;
  top: 8px;
  width: 16px;
  height: 24px;
  border: 3px solid var(--amber);
  background: #fff;
}

.local-file-icon::after {
  right: 11px;
  top: 8px;
  border-top: 9px solid var(--amber);
  border-left: 9px solid transparent;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 40px;
}

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

.feature-card {
  min-height: 246px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.feature-card:hover {
  border-color: #8c959f;
  box-shadow: none;
}

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

.icon {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--soft);
  position: relative;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
}

.text-icon::before {
  inset: 12px 9px auto;
  height: 4px;
  background: var(--blue);
  box-shadow:
    0 8px 0 var(--blue),
    0 16px 0 var(--blue);
}

.add-icon::before {
  width: 18px;
  height: 4px;
  left: 10px;
  top: 17px;
  background: var(--teal);
}

.add-icon::after {
  width: 4px;
  height: 18px;
  left: 17px;
  top: 10px;
  background: var(--teal);
}

.sign-icon::before {
  left: 7px;
  top: 21px;
  width: 24px;
  height: 9px;
  border-bottom: 4px solid var(--blue);
  border-radius: 50%;
}

.redact-icon::before {
  left: 8px;
  top: 12px;
  width: 22px;
  height: 14px;
  background: var(--red);
}

.mark-icon::before {
  left: 8px;
  top: 18px;
  width: 23px;
  height: 6px;
  background: #facc15;
  transform: rotate(-8deg);
}

.image-icon::before {
  inset: 9px;
  border: 3px solid var(--teal);
}

.image-icon::after {
  left: 13px;
  top: 22px;
  width: 14px;
  height: 9px;
  background: var(--teal);
  clip-path: polygon(0 100%, 42% 30%, 62% 55%, 82% 20%, 100% 100%);
}

.comment-icon::before {
  inset: 9px 8px 12px;
  border-radius: 6px;
  background: var(--amber);
}

.comment-icon::after {
  left: 14px;
  bottom: 8px;
  border-top: 8px solid var(--amber);
  border-right: 8px solid transparent;
}

.pages-icon::before {
  left: 10px;
  top: 8px;
  width: 15px;
  height: 20px;
  border: 3px solid var(--blue);
  background: #fff;
  box-shadow: 6px 6px 0 #dbeafe;
}

.privacy {
  background: #24292f;
  color: #fff;
}

.privacy .eyebrow {
  color: #8cc2ff;
}

.privacy-panel p {
  color: #d9e7ff;
}

.privacy-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 4%);
}

.privacy-list strong,
.privacy-list span {
  display: block;
}

.privacy-list strong {
  margin-bottom: 6px;
}

.privacy-list span {
  color: #c7d7eb;
}

.opensource {
  align-items: center;
}

.source-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.source-actions {
  justify-self: end;
  display: grid;
  width: min(100%, 420px);
  gap: 10px;
}

.source-link:hover {
  border-color: #8c959f;
  background: #ffffff;
}

.final-cta {
  text-align: center;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  margin-right: auto;
  margin-left: auto;
}

.final-cta .button {
  min-width: 150px;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.site-footer a,
.legal-card a,
.legal-text a,
.legal-footnote a {
  color: var(--blue);
  font-weight: 700;
}

.legal-hero {
  padding: 92px clamp(20px, 6vw, 92px) 78px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.legal-hero h1 {
  max-width: 900px;
}

.legal-section .section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.legal-soft {
  border-block: 1px solid var(--line);
  background: var(--soft);
}

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

.legal-card {
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.legal-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-text {
  max-width: none;
}

.legal-text h2,
.legal-text p,
.legal-note,
.legal-footnote {
  max-width: 920px;
}

.legal-text p,
.legal-footnote {
  color: var(--muted);
  font-size: 18px;
}

.legal-note {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.legal-soft .legal-note {
  background: #ffffff;
}

.legal-note p {
  margin-bottom: 0;
  font-size: 16px;
}

.legal-footnote {
  margin-top: 24px;
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .intro,
  .privacy,
  .opensource {
    grid-template-columns: 1fr;
  }

  .source-actions {
    justify-self: start;
  }
}

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

  .nav {
    display: none;
  }

  .header-tools {
    gap: 8px;
  }

  .hero {
    min-height: 620px;
    padding: 96px 20px 42px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgb(246 248 250 / 99%) 0%, rgb(246 248 250 / 90%) 70%, rgb(246 248 250 / 74%) 100%),
      linear-gradient(0deg, rgb(246 248 250 / 96%) 0%, rgb(246 248 250 / 0%) 48%);
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy,
  .intro-text,
  .privacy-panel p,
  .opensource p {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 66px 20px;
  }

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

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

  .feature-card {
    min-height: auto;
  }

  .legal-card {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
