/* Paperful AI - shared styles. */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #171512;
  --muted: #6f685f;
  --line: #e6e0d7;
  --soft: #f4f1ea;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --accent: #b4441f;
  --accent-ink: #8f3417;
  --link: #1a4d8f;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "NYT Cheltenham", Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-text: 760px;
  --max-wide: 1320px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; }
.wrap { max-width: var(--max-text); margin: 0 auto; padding: 56px 24px 32px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink);
  padding: 8px 14px; border: 1px solid var(--line); z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.86);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--max-wide); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em; line-height: 1; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; display: block; border-radius: 6px; }
.site-nav {
  display: flex; align-items: center; gap: 26px;
  margin-left: auto;
}
.site-nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em; padding: 6px 0; transition: color .18s ease;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.lang-switch {
  display: flex; align-items: center; gap: 7px;
  padding-left: 20px; border-left: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--muted);
}
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch .is-active { color: var(--ink); font-weight: 600; }
.lang-switch span.sep { color: var(--line); }

/* ---------- Store badges ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.store-badge-item { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.store-badge:hover { opacity: .9; }
.store-badge__img { display: block; height: 52px; width: auto; }
.store-badge__soon { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
@media (max-width: 420px) { .store-badge__img { height: 47px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0 clamp(52px, 6vw, 76px);
}
.hero::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  right: -180px; top: -240px;
  background: radial-gradient(circle, rgba(180,68,31,.10), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(48px, 5vw, 72px);
  align-items: center;
}
.hero__copy { max-width: 600px; }
.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  line-height: 1.5; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 70px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0 0 22px;
  max-width: 620px;
  text-wrap: balance;
}
.hero__lede {
  max-width: 500px; margin: 0;
  color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6;
}
.hero__actions { margin-top: 30px; }
.free-note {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45;
}
.free-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 8px 3px; border-radius: 5px;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 10px rgba(180,68,31,.20);
}
.hero-demo { margin: 0; min-width: 0; }
.hero-demo__frame {
  padding: 9px;
  border-radius: 20px;
  background: linear-gradient(145deg, #2a2723 0%, #131210 70%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 2px 4px rgba(23,21,18,.12),
    0 24px 50px rgba(23,21,18,.16),
    0 60px 110px rgba(23,21,18,.08);
}
.hero-demo__video {
  display: block; width: 100%; height: auto;
  border-radius: 13px; background: #0b0a09;
}
.hero-demo__meta {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: 13px; padding: 0 2px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
}
.hero-demo__expand {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 0 1px; border: 0; border-bottom: 1px solid transparent;
  background: none; color: var(--muted);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em;
  text-transform: uppercase; cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.hero-demo__expand[hidden] { display: none; }
.hero-demo__expand:hover { color: var(--ink); border-bottom-color: var(--line); }
.hero-demo__expand svg { width: 10px; height: 10px; display: block; }

/* ---------- Trust metrics ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.44);
}
.trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust__item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 21px 28px; border-left: 1px solid var(--line);
}
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item:last-child { padding-right: 0; }
.trust__value {
  font-family: var(--mono); font-size: clamp(26px, 2.5vw, 32px);
  font-weight: 500; line-height: 1; letter-spacing: -.05em;
  color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.trust__label {
  max-width: 200px; font-family: var(--mono); font-size: 10px;
  line-height: 1.5; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections & section heads ---------- */
.section { padding: clamp(64px, 7vw, 96px) 0; }
.section--soft { background: var(--soft); }
#features, #use-cases, #compare, #get { scroll-margin-top: 84px; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0;
  max-width: 640px;
  text-wrap: balance;
}
.section-head--solo { grid-template-columns: 1fr; }
.section-head--solo h2 { max-width: none; }
@media (min-width: 761px) {
  .section-head--solo h2 { white-space: nowrap; }
}
#features-title { white-space: nowrap; }
#compare-title { white-space: nowrap; }
@media (max-width: 760px) {
  #features-title { font-size: clamp(20px, 6.4vw, 30px); }
  #compare-title { font-size: clamp(17px, 5.2vw, 30px); }
  html[lang="de"] #features-title { font-size: clamp(18px, 5.6vw, 30px); }
}

/* ---------- Compact feature showcase ---------- */
.feature-showcase {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: clamp(32px, 3vw, 44px);
  align-items: start;
}
.feature-stage { min-width: 0; }
.feature-stage__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(150deg, #272420 0%, #11100e 72%);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 2px 4px rgba(23,21,18,.12),
    0 20px 44px rgba(23,21,18,.16),
    0 48px 90px rgba(23,21,18,.06);
}
.feature-stage__media {
  position: absolute; inset: 8px;
  overflow: hidden; border-radius: 11px;
  background: #080807;
}
.feature-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; background: #080807;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.feature-video.is-active { opacity: 1; visibility: visible; }
.feature-list { min-width: 0; align-self: center; border-top: 1px solid var(--line); }
.feature-item { position: relative; border-bottom: 1px solid var(--line); }
.feature-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent); opacity: 0; transition: opacity .2s ease;
}
.feature-item.is-active::before { opacity: 1; }
.feature-tab {
  -webkit-appearance: none; appearance: none;
  width: 100%; margin: 0; padding: 18px;
  border: 0; background: transparent; color: inherit;
  text-align: left; cursor: pointer;
  transition: background-color .18s ease;
}
.feature-tab:hover { background: rgba(23,21,18,.025); }
.feature-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.feature-tab__title {
  display: block;
  font-size: 17px; font-weight: 600; line-height: 1.35;
  letter-spacing: -.015em; color: #3b3731;
}
.feature-item.is-active .feature-tab__title { color: var(--ink); }
/* ---------- Use cases ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  background: var(--bg);
}
.tile {
  display: flex; align-items: center; gap: 13px;
  padding: 18px 16px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background-color .18s ease;
}
.tile:hover { background: #fff; }
.tile img {
  width: 42px; height: 42px; flex: none; display: block;
  border-radius: 10px; object-fit: cover;
  transition: transform .25s ease;
}
.tile:hover img { transform: scale(1.05); }
.tile__body { min-width: 0; }
.tile h3 {
  margin: 0 0 1px; font-size: 14px; font-weight: 600;
  line-height: 1.3; letter-spacing: -.01em;
}
.tile p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* ---------- Comparison table ---------- */
.compare {
  max-width: 1120px;
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 2px rgba(23,21,18,.04);
}
.compare table { margin: 0; }
.compare th, .compare td { border-bottom: 1px solid var(--line); }
.compare thead th {
  background: #f8f5ef;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 14px 18px;
}
.compare thead th:first-child { width: 38%; }
.compare tbody th {
  padding: 16px 18px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  text-transform: none; letter-spacing: 0;
}
.compare tbody td { padding: 16px 18px; font-size: 14px; }
.compare .col-paperful { background: linear-gradient(180deg, rgba(180,68,31,.045), rgba(180,68,31,.025)); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.good { color: #256b45; font-weight: 600; }
.weak { color: var(--accent); font-weight: 600; }

/* ---------- Download card ---------- */
.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 52px);
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ef 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(23,21,18,.04),
    0 24px 60px rgba(23,21,18,.07);
}
.download-card h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.04; letter-spacing: -.03em;
  margin: 12px 0 12px;
}
.download-card .free-note { margin-top: 0; font-size: 13px; }
.download-card__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

/* ---------- Long-form text pages ---------- */
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 28px; font-weight: 400; }
.meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding-bottom: 28px; margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  letter-spacing: .02em; color: var(--muted);
}
.wrap h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.06; letter-spacing: -.03em;
  font-weight: 700; margin: 0 0 12px;
}
.wrap h2 {
  font-family: var(--serif);
  font-size: 25px; line-height: 1.25; letter-spacing: -.02em;
  font-weight: 700; margin: 48px 0 12px; scroll-margin-top: 80px;
}
.wrap h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.wrap p { margin: 0 0 16px; }
.wrap ul { margin: 0 0 16px; padding-left: 22px; }
.wrap li { margin: 6px 0; }
.callout {
  background: var(--soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 26px; margin: 0 0 8px;
}
.callout h2 { margin-top: 0; font-size: 21px; }
.callout ul { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
.no { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- FAQ / notices ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.notice {
  background: var(--soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; margin: 20px 0; font-size: 15px;
}
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 24px; margin: 8px 0 24px;
}
.contact-card a { font-weight: 600; }
.placeholder { background: #fef3c7; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.text-center { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); }
.site-footer__inner {
  max-width: var(--max-wide); margin: 0 auto;
  padding: 36px 24px 48px;
  color: var(--muted); font-size: 12.5px; line-height: 1.65;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 16px; }
.site-footer__links a { color: var(--ink); font-weight: 500; font-size: 13px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .feature-showcase { grid-template-columns: 1fr; gap: 32px; max-width: 960px; margin: 0 auto; }
  .feature-list { align-self: stretch; }
  .site-nav { gap: 20px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy { max-width: 760px; }
  .hero-demo { max-width: 960px; }
  .hero h1 { max-width: 820px; }
}
@media (max-width: 980px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; align-items: start; }
}
@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-card { grid-template-columns: 1fr; gap: 28px; }
  .compare thead th, .compare tbody th, .compare tbody td { padding: 14px 14px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .site-header { position: static; }
  .site-header__inner { flex-wrap: wrap; padding: 10px 20px; gap: 8px 14px; }
  .brand { font-size: 19px; }
  .brand img { width: 24px; height: 24px; }
  .lang-switch { margin-left: auto; padding-left: 0; border-left: 0; }
  .site-nav {
    order: 3; width: 100%; margin-left: 0;
    gap: 18px; padding: 2px 0 3px; flex-wrap: wrap;
  }
  .site-nav a { font-size: 13px; }
  #features, #use-cases, #compare, #get { scroll-margin-top: 24px; }
  .hero { padding-top: 48px; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item, .trust__item:first-child, .trust__item:last-child {
    padding: 14px 0; border-left: 0;
  }
  .trust__item + .trust__item { border-top: 1px solid var(--line); }
  .trust__value { font-size: 24px; min-width: 78px; }
  .trust__label { max-width: 260px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: clamp(30px, 8vw, 40px); }
  .compare { border-radius: 12px; }
  .compare thead th, .compare tbody th, .compare tbody td { font-size: 12.5px; padding: 11px 9px; }
  .compare thead th:first-child { width: 34%; }
  .compare tbody th { font-size: 12.5px; }
  .site-footer__inner { padding: 30px 20px 40px; }
}
@media (max-width: 560px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12.5px; }
  .hero__actions { margin-top: 24px; }
  .hero__lede { font-size: 16.5px; }
  .hero-demo__frame { padding: 7px; border-radius: 16px; }
  .hero-demo__video { border-radius: 10px; }
  .hero-demo__meta { flex-wrap: wrap; gap: 7px 10px; font-size: 9.5px; }
  .hero-demo__expand { position: relative; }
  .hero-demo__expand::after { content: ""; position: absolute; inset: -8px 0; }
  .eyebrow { font-size: 9.5px; }
  .free-note { font-size: 12.5px; }
  .tiles { grid-template-columns: 1fr; }
  .feature-tab { padding: 15px 14px; }
  .feature-tab__title { font-size: 15px; }
  .download-card { padding: 24px 20px; border-radius: 16px; }
  .wrap { padding: 40px 20px 24px; }
}
@media (max-width: 360px) {
  .container { padding: 0 16px; }
  .site-header__inner { padding: 9px 16px; }
  .brand { font-size: 18px; }
  .brand img { width: 23px; height: 23px; }
  .lang-switch { font-size: 9.5px; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media print {
  .site-header, .site-footer, .hero-demo, .trust, .feature-stage, .download-card__actions { display: none; }
  body { background: #fff; }
  a { color: var(--ink); }
}
