:root {
  --paper: #f7f6f2;
  --paper-deep: #eeece5;
  --ink: #151515;
  --muted: #66645f;
  --line: #d9d6ce;
  --accent: #3558e8;
  --accent-soft: #e8ecff;
  --night: #171b25;
  --white: #ffffff;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(26, 28, 35, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #6f87f2; outline-offset: 4px; border-radius: 8px; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.92em; }

.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  width: min(1240px, calc(100% - 32px));
  margin: 18px auto 0;
  min-height: 66px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 246, 242, 0.86);
  border: 1px solid rgba(100, 98, 92, 0.16);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 12px;
  z-index: 20;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 720; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--accent);
  font-family: Georgia, serif;
  font-weight: 800;
}
.nav { display: flex; gap: 26px; color: #4f4d49; font-size: 14px; }
.nav a:hover, .footer-links a:hover { color: var(--accent); }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
  padding-block: 72px 88px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow.light { color: #a9b8ff; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.02; }
h1 { margin-bottom: 25px; font-size: clamp(50px, 6.2vw, 86px); font-weight: 760; }
h1 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h2 { margin-bottom: 20px; font-size: clamp(38px, 4.8vw, 64px); }
h3 { margin-bottom: 12px; font-size: 26px; }
.hero-text { max-width: 680px; margin-bottom: 30px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.centered { justify-content: center; }
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-weight: 720;
  font-size: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 0 10px 24px rgba(21, 21, 21, 0.16); }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,0.44); }
.microcopy { margin: 15px 0 0; color: #7c7973; font-size: 13px; }

.hero-visual {
  min-height: 510px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(75, 103, 235, 0.22), transparent 28%),
    linear-gradient(145deg, #e7e4db, #f4f2ec);
  border: 1px solid #ddd9cf;
}
.document {
  width: 196px;
  aspect-ratio: 0.72;
  position: absolute;
  padding: 30px 24px;
  border-radius: 15px;
  background: white;
  box-shadow: var(--shadow);
}
.pdf-card { left: 10%; top: 20%; transform: rotate(-8deg); }
.word-card { right: 10%; top: 20%; transform: rotate(7deg); }
.doc-label { display: inline-block; margin-bottom: 30px; font-size: 12px; font-weight: 850; letter-spacing: 0.1em; color: var(--accent); }
.doc-line { display: block; height: 8px; margin-bottom: 14px; border-radius: 99px; background: #dbdce0; }
.doc-line.long { width: 100%; }
.doc-line.medium { width: 78%; }
.doc-line.short { width: 53%; }
.scan-glow {
  position: absolute; left: 15px; right: 15px; top: 48%; height: 2px;
  background: var(--accent); box-shadow: 0 0 18px rgba(53, 88, 232, 0.72);
  animation: scan 3s ease-in-out infinite;
}
.edit-cursor { display: block; width: 2px; height: 18px; margin-top: -5px; background: var(--accent); animation: blink 1s step-end infinite; }
.conversion-arrow {
  width: 54px; height: 54px; display: grid; place-items: center; z-index: 3;
  border-radius: 50%; background: var(--ink); color: white; font-size: 25px; box-shadow: 0 12px 25px rgba(0,0,0,.15);
}
.privacy-chip {
  position: absolute; bottom: 42px; padding: 10px 15px; border-radius: 99px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.88); backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 750;
}

.trust-strip {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.trust-strip div { padding: 27px 24px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { font-size: 15px; }
.trust-strip span { color: var(--muted); font-size: 13px; }

.section { padding-block: 116px; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature-card p { margin-bottom: 0; color: var(--muted); }
.feature-number { margin-bottom: auto; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .12em; }

.privacy-section { background: var(--night); color: white; }
.privacy-layout { display: grid; grid-template-columns: 1fr .82fr; gap: 80px; padding-block: 110px; align-items: center; }
.privacy-copy p:not(.eyebrow) { color: #b9bec8; font-size: 17px; }
.text-link { display: inline-flex; gap: 9px; font-weight: 750; margin-top: 12px; }
.light-link { color: white; }
.text-link span { transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(4px); }
.privacy-list { display: grid; gap: 12px; }
.privacy-list > div { padding: 19px; display: grid; grid-template-columns: 32px 1fr; gap: 12px; border: 1px solid #343a48; border-radius: 17px; background: #1e2330; }
.privacy-list p { margin: 0; color: #aeb4c1; }
.privacy-list strong { color: white; }
.check { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #b7c3ff; background: #2b355c; font-weight: 900; }

.final-cta { max-width: 900px; text-align: center; }
.final-cta h2 { margin-inline: auto; }

.site-footer { padding: 42px 0 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.footer-brand { margin-bottom: 12px; }
.site-footer p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-size: 13px; }
.copyright { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }

/* Legal and support pages */
.page-shell { width: min(900px, calc(100% - 40px)); margin-inline: auto; }
.page-hero { padding: 96px 0 58px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 780px; font-size: clamp(48px, 7vw, 78px); }
.page-hero p { max-width: 670px; color: var(--muted); font-size: 18px; }
.legal { padding: 64px 0 110px; }
.legal section { margin-bottom: 46px; }
.legal h2 { margin-bottom: 14px; font-size: 30px; }
.legal h3 { font-size: 20px; letter-spacing: -0.02em; }
.legal p, .legal li { color: #4f4d49; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 9px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { color: #7b7872; font-size: 13px; }
.notice {
  margin: 28px 0 46px; padding: 20px 22px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); color: #323c70;
}
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.support-card { padding: 26px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.5); }
.support-card h2 { font-size: 25px; }
.support-card p { color: var(--muted); }
.support-card .button { margin-top: 6px; }
.faq { margin-top: 72px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 760; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes scan { 0%,100% { top: 36%; opacity: .3; } 50% { top: 72%; opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 480px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip div:nth-child(2) { border-right: 0; }
  .trust-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 230px; }
  .privacy-layout { grid-template-columns: 1fr; gap: 40px; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell, .page-shell, .trust-strip { width: min(100% - 28px, 1160px); }
  .site-header { width: calc(100% - 20px); padding: 0 14px; }
  .nav a:first-child { display: none; }
  .nav { gap: 14px; font-size: 13px; }
  h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero { padding-block: 52px 64px; gap: 34px; }
  .hero-text { font-size: 17px; }
  .hero-visual { min-height: 390px; border-radius: 26px; }
  .document { width: 148px; padding: 23px 18px; }
  .pdf-card { left: 5%; }
  .word-card { right: 5%; }
  .conversion-arrow { width: 44px; height: 44px; }
  .privacy-chip { bottom: 28px; }
  .section { padding-block: 80px; }
  .privacy-layout { padding-block: 80px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
  .copyright { grid-column: auto; }
  .page-hero { padding-top: 68px; }
}
