:root {
  --ink: #172033;
  --ink-soft: #566176;
  --muted: #788398;
  --line: #e1e6ee;
  --surface: #ffffff;
  --surface-soft: #f6f7f9;
  --red: #ef5357;
  --red-dark: #d94148;
  --red-soft: #fff0f1;
  --blue: #4269d0;
  --blue-soft: #eef4ff;
  --green: #278663;
  --green-soft: #edf8f3;
  --content: 1180px;
  --hero-content: 1420px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(66, 105, 208, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

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

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(225, 230, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 178px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.main-nav > a:not(.button) {
  padding: 10px 11px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.main-nav > a:not(.button):hover {
  color: var(--ink);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(239, 83, 87, 0.2);
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: var(--red-dark);
  box-shadow: 0 14px 28px rgba(239, 83, 87, 0.26);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 14px;
}

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

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

.play-symbol {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 44px;
  background: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30px 50% -30px -30px;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(66, 105, 208, 0.34) 1.1px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.52;
  mask-image: linear-gradient(to bottom, transparent 5%, #000 24%, #000 76%, transparent 96%);
  animation: pattern-drift 20s ease-in-out infinite alternate;
}

.hero-grid {
  width: min(calc(100% - 48px), var(--hero-content));
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(560px, 1.22fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: hero-copy-in 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 10px;
  border: 1px solid #d8e1f7;
  border-radius: 999px;
  color: #3e5ca8;
  background: #f8faff;
  font-size: 12px;
  font-weight: 750;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.hero h1 {
  max-width: 460px;
  margin: 0;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.play-badge-link {
  width: 184px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.play-badge-link img {
  width: 184px;
  height: auto;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 21px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.hero-note li {
  position: relative;
  padding-left: 17px;
}

.hero-note li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 850;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  aspect-ratio: 4 / 3;
  justify-self: center;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 22px 52px rgba(23, 32, 51, 0.13);
  animation:
    hero-visual-in 720ms 80ms cubic-bezier(0.2, 0.7, 0.2, 1) both,
    hero-breathe 7s 900ms ease-in-out infinite;
}

.hero-art {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.proof-grid {
  min-height: 104px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.proof-item {
  padding: 10px 30px;
  text-align: center;
}

.proof-item + .proof-item {
  border-left: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.proof-item span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--surface-soft);
}

#features {
  position: relative;
  overflow: hidden;
}

#features::before {
  content: "";
  position: absolute;
  inset: -30px -30px auto;
  height: 450px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(239, 83, 87, 0.34) 1.1px, transparent 1.5px),
    radial-gradient(circle, rgba(66, 105, 208, 0.24) 1px, transparent 1.4px);
  background-position: 0 0, 15px 15px;
  background-size: 30px 30px;
  opacity: 0.46;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
  animation: pattern-drift 24s ease-in-out infinite alternate-reverse;
}

#features > .container {
  position: relative;
  z-index: 1;
}

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

.kicker {
  margin: 0 0 10px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2,
.split-copy h2,
.cta-panel h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.split-copy > p {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

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

.feature-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card-wide {
  grid-column: span 6;
}

.feature-card-compact {
  grid-column: span 4;
}

.feature-copy {
  flex: 1 1 auto;
  padding: 27px 28px 25px;
}

.feature-card-wide .feature-copy {
  min-height: 202px;
}

.feature-card-compact .feature-copy {
  min-height: 226px;
}

.feature-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--red-dark);
  background: var(--red-soft);
  font-size: 12px;
  font-weight: 850;
}

.feature-card h3 {
  margin: 0 0 9px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
}

.feature-media {
  height: 390px;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: auto;
  padding: 28px 22px 0;
  border-top: 1px solid var(--line);
}

.feature-card-compact .feature-media {
  height: 310px;
}

.feature-media-documents {
  background: #fff0f1;
}

.feature-media-tools {
  background: #eef4ff;
}

.feature-media-reader {
  background: #e9eef7;
}

.feature-media-launcher {
  background: #f5f1fb;
}

.feature-media-private {
  background: #edf8f3;
}

.device-preview {
  width: 242px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 7px;
  border-radius: 29px 29px 0 0;
  background: #151922;
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.19);
  transition: transform 220ms ease;
}

.device-preview-compact {
  width: 184px;
}

.device-preview img {
  width: 100%;
  height: auto;
  border-radius: 22px 22px 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 76px;
}

.launcher-panel {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(23, 32, 51, 0.1);
}

.settings-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.settings-header strong {
  display: block;
  font-size: 25px;
}

.settings-options {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.settings-option {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr 22px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.settings-option > span {
  min-width: 0;
}

.settings-option strong,
.settings-option small {
  display: block;
}

.settings-option strong {
  font-size: 15px;
}

.settings-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.settings-option i {
  width: 20px;
  height: 20px;
  border: 2px solid #aeb7c7;
  border-radius: 50%;
}

.settings-option.selected i {
  border: 6px solid var(--red);
}

.settings-note {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.check-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-top: 13px;
  padding-left: 30px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 850;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

.faq-item a,
.legal-content a,
.contact-link {
  color: #345bc6;
}

.cta-section {
  padding: 0 0 88px;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 52px 56px;
  border-radius: 8px;
  color: #fff;
  background: #17243d;
}

.cta-panel p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.cta-actions {
  min-width: 224px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-actions .contact-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-align: center;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 21px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Legal pages */
.legal-page {
  background: #fff;
}

.legal-shell {
  width: min(calc(100% - 40px), 760px);
  margin-inline: auto;
  padding: 52px 0 96px;
}

.legal-title {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-title .kicker {
  margin-bottom: 10px;
}

.legal-title h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-meta {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-intro {
  margin: 32px 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.legal-toc {
  margin: 32px 0 44px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.legal-toc strong {
  display: block;
  margin-bottom: 12px;
}

.legal-toc ol {
  columns: 2;
  gap: 32px;
  margin: 0;
  padding-left: 22px;
}

.legal-toc li {
  break-inside: avoid;
  margin: 5px 0;
}

.legal-toc a {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.legal-content section {
  margin-top: 48px;
  scroll-margin-top: 28px;
}

.legal-content h2 {
  margin: 0 0 15px;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: 0;
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.legal-content p,
.legal-content ul {
  margin: 13px 0;
  color: #3f4c64;
}

.legal-content li + li {
  margin-top: 8px;
}

.table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.legal-content table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 13px;
}

.legal-content th,
.legal-content td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  color: #3f4c64;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  color: var(--ink);
  background: var(--surface-soft);
  font-weight: 750;
}

.legal-content tr:last-child td {
  border-bottom: 0;
}

.legal-contact {
  margin-top: 48px;
  padding: 24px;
  border-radius: 8px;
  background: var(--blue-soft);
}

.legal-contact p {
  margin: 5px 0;
}

.legal-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.legal-footer .container {
  width: min(calc(100% - 40px), 760px);
}

.legal-footer p {
  margin: 0;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-visual-in {
  from {
    opacity: 0;
    transform: translateX(22px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes hero-breathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes pattern-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(18px, 12px, 0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    border-color: #d6ddea;
    box-shadow: 0 18px 38px rgba(23, 32, 51, 0.1);
    transform: translateY(-4px);
  }

  .feature-card:hover .device-preview {
    transform: translateY(-5px);
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(330px, 0.82fr) minmax(500px, 1.18fr);
    gap: 28px;
  }

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

  .feature-card-compact .feature-copy {
    min-height: 250px;
  }
}

@media (max-width: 900px) {
  .main-nav > a:not(.button) {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    max-width: 650px;
    margin-inline: auto;
    text-align: center;
  }

  .hero h1,
  .hero-lead {
    max-width: none;
  }

  .hero-actions,
  .hero-note {
    justify-content: center;
  }

  .feature-card-wide,
  .feature-card-compact {
    grid-column: span 6;
  }

  .feature-card .feature-copy {
    min-height: 224px;
  }

  .feature-card .feature-media {
    height: 330px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .launcher-panel {
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }

  .split-copy {
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .container,
  .legal-shell {
    width: min(calc(100% - 32px), var(--content));
  }

  .nav-shell {
    min-height: 66px;
  }

  .brand img {
    width: 154px;
  }

  .main-nav .button-small {
    min-height: 40px;
    padding-inline: 12px;
  }

  .hero {
    padding: 34px 0 28px;
  }

  .hero-grid {
    width: min(calc(100% - 32px), var(--hero-content));
    gap: 18px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

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

  .hero-lead {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 19px;
  }

  .hero-actions .button-secondary,
  .hero-note {
    display: none;
  }

  .play-badge-link,
  .play-badge-link img {
    width: 174px;
  }

  .hero-visual {
    border-radius: 10px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .proof-item {
    padding: 13px 10px;
  }

  .proof-item + .proof-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .split-copy h2,
  .cta-panel h2 {
    font-size: 34px;
  }

  .section-heading > p:last-child,
  .split-copy > p {
    font-size: 16px;
  }

  .feature-card-wide,
  .feature-card-compact {
    grid-column: 1 / -1;
  }

  .feature-card .feature-copy {
    min-height: 0;
    padding: 23px 22px 21px;
  }

  .feature-card h3 {
    font-size: 22px;
  }

  .feature-card .feature-media {
    height: 285px;
    padding-top: 22px;
  }

  .device-preview,
  .device-preview-compact {
    width: 178px;
  }

  .launcher-panel {
    min-height: 0;
    padding: 28px 22px;
  }

  .settings-header strong {
    font-size: 22px;
  }

  .settings-option {
    grid-template-columns: 1fr 20px;
    gap: 12px;
  }

  .cta-section {
    padding-bottom: 68px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    text-align: center;
  }

  .cta-actions {
    width: 100%;
    min-width: 0;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .legal-title h1 {
    font-size: 40px;
  }

  .legal-shell {
    padding: 46px 0 72px;
  }

  .legal-toc ol {
    columns: 1;
  }
}

@media (max-width: 430px) {
  .main-nav .button-small {
    display: none;
  }

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

  .eyebrow {
    font-size: 11px;
  }

  .settings-option small {
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .legal-footer,
  .legal-toc {
    display: none;
  }

  .legal-shell {
    width: 100%;
    padding: 0;
  }

  .legal-content a {
    color: inherit;
  }
}
