/* unpagepdf.com: the app's own "paper, ink and pastels" (docs/DESIGN.md). System fonts only: New York and SF Pro
   on Apple devices, the app's own faces, and no requests to a font host. */
:root {
  --paper: #FBF9F4;
  --card: #FFFFFF;
  --ink: #1B1B1F;
  --ink-2: #3D3D44;
  --secondary: #5F5F66;
  --hairline: #E4E1DA;
  --hairline-2: #EFECE6;
  --track: #ECEAE4;
  --periwinkle: #4F52E6; /* the logo's ground (apps/Unpage/Artwork/logo); it was the app's accent #4652C4 until 2026-11-18 */
  --periwinkle-hover: #3A3DC0;
  --periwinkle-fill: #DDE1FF;
  --periwinkle-text: #2F3896;
  --butter: #FFEB9C;
  --apricot-fill: #FFE1C7;
  --bezel: #16161A;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--periwinkle); }
a:hover { color: var(--periwinkle-hover); }
:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; padding: 10px 16px; background: var(--card); border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.serif { font-family: var(--serif); }

/* Header and footer */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; display: block; }
.brand span { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.nav nav { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav nav a { color: var(--ink); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--periwinkle); }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--periwinkle); color: #FFFFFF !important; text-decoration: none; font-weight: 600; }
.pill:hover { background: var(--periwinkle-hover); }
.menu { display: none; } /* the phone header's menu, shown at 600 px and below */

footer.site { border-top: 1px solid var(--hairline); margin-top: 0; }
footer.site .wrap { padding-top: 36px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; font-size: 15px; color: var(--secondary); }
footer.site .row { display: flex; justify-content: space-between; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
footer.site .brand img { width: 28px; height: 28px; }
footer.site .brand span { font-size: 20px; }
footer.site nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
footer.site nav a { color: var(--secondary); }
footer.site small { font-size: 13px; line-height: 1.5; color: var(--secondary); }

/* Apple's "Download on the App Store" badge (assets/img/app-store-badge.svg, from Apple's marketing tools,
   https://toolbox.marketingtools.apple.com): used as it is, at least 40 px tall, with clear space around it. */
.badge { display: inline-flex; flex: none; border-radius: 9px; }
.badge img { display: block; height: 54px; width: auto; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; }
p { margin: 0; text-wrap: pretty; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--periwinkle); margin: 0; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.body { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.mark { background: linear-gradient(transparent 14%, var(--butter) 14%, var(--butter) 90%, transparent 90%); padding: 0 0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.eyebrow { align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--periwinkle-fill); color: var(--periwinkle-text); font-size: 14px; font-weight: 600; margin: 0; }
.cta { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.cta p { font-size: 15px; line-height: 1.45; color: var(--secondary); max-width: 260px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 14px; color: var(--secondary); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { flex: none; }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.compare { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.compare[hidden] { display: none; }
.switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--track); }
.switch button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 15px var(--sans); cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.compare p { font-size: 15px; line-height: 1.45; color: var(--secondary); max-width: 320px; }
.stage { width: 100%; display: flex; align-items: center; justify-content: center; min-height: 640px; }
.stage .page { flex: 0 1 380px; min-width: 0; width: 380px; margin-right: -130px; transform: rotate(-5deg); border: 1px solid var(--hairline); border-radius: 4px; box-shadow: 0 30px 60px rgba(27, 27, 31, 0.14); }
.stage[data-view="original"] .page { display: none; }
.stage .phone { flex: 0 0 300px; position: relative; z-index: 1; }
.phone { padding: 10px; border-radius: 56px; background: var(--bezel); box-shadow: 0 40px 80px rgba(27, 27, 31, 0.28); }
.phone img { display: block; width: 100%; border-radius: 46px; }
.phone img[hidden] { display: none; }
.phone.small { padding: 8px; border-radius: 46px; box-shadow: none; }
.phone.small img { border-radius: 38px; }

/* Sections */
.band { background: var(--card); border-top: 1px solid var(--hairline-2); border-bottom: 1px solid var(--hairline-2); }
.split { padding-top: 104px; padding-bottom: 104px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 72px; align-items: center; }
.split .shot { display: flex; justify-content: center; }
.split .shot .phone { width: 320px; max-width: 100%; box-shadow: 0 30px 70px rgba(27, 27, 31, 0.18); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets .dot { flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 6px; }

.screens { padding-top: 104px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.screens .intro { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.strip { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0; padding-left: 0; list-style: none; }
.strip figure { margin: 0; flex: 0 0 260px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.strip figcaption { font-size: 16px; font-weight: 600; text-align: center; }

.faq { padding-bottom: 104px; display: flex; flex-direction: column; gap: 32px; }
.faq .list { border-top: 1px solid var(--hairline); max-width: 860px; }
details { border-bottom: 1px solid var(--hairline); padding: 22px 0; }
summary { cursor: pointer; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.3; list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 26px; font-weight: 400; line-height: 1; color: var(--periwinkle); }
details[open] > summary::after { content: "\2212"; }
summary h3 { display: inline; font: inherit; letter-spacing: inherit; }
details p { margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 760px; }

.pricing { padding-bottom: 104px; }
.pricing .card { border-radius: 28px; background: var(--ink); color: var(--paper); padding: 64px clamp(28px, 5vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 48px; align-items: center; }
.pricing h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.pricing p { font-size: 18px; line-height: 1.6; color: #D9D6CF; }
.pricing .price { display: flex; align-items: baseline; gap: 12px; }
.pricing .price strong { font-family: var(--serif); font-size: 56px; font-weight: 500; }
.pricing .price span { font-size: 16px; color: #D9D6CF; }
.pricing .buy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* Support and privacy pages */
.doc { max-width: 760px; padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.doc.narrow { max-width: 720px; gap: 36px; }
.doc h1 { font-size: clamp(44px, 5vw, 64px); line-height: 1.04; }
.doc .dated { font-size: 15px; color: var(--secondary); }
.doc section { display: flex; flex-direction: column; gap: 12px; }
.doc section h2 { font-size: 28px; line-height: 1.2; }
.doc section p { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.contact { border-radius: 24px; background: var(--card); border: 1px solid var(--hairline-2); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.contact h2 { font-size: 30px; line-height: 1.2; }
.contact .pill { align-self: flex-start; min-height: 48px; font-size: 16px; padding: 0 22px; }
.summary { border-radius: 24px; background: var(--card); border: 1px solid var(--hairline-2); padding: 28px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 20px; }
.summary div { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.summary strong { font-weight: 600; }
.summary span { color: var(--secondary); }

@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  /* The header fits one row: the brand, the App Store link and a menu button. The menu holds the text links. */
  .nav { flex-wrap: nowrap; position: relative; }
  .nav nav { gap: 10px; flex-wrap: nowrap; }
  .nav nav > a:not(.pill) { display: none; }
  .nav .pill { padding: 0 16px; white-space: nowrap; }
  .brand span { font-size: 26px; }
  .nav .menu { display: block; border: 0; padding: 0; }
  .nav .menu > summary { width: 44px; height: 44px; border-radius: 999px; background: var(--track); color: var(--ink); display: flex; align-items: center; justify-content: center; font: inherit; }
  .nav .menu > summary::after { content: none; }
  .nav .menu .icon-close, .nav .menu[open] .icon-open { display: none; }
  .nav .menu[open] .icon-close { display: block; }
  .menu-panel { position: absolute; z-index: 20; left: 20px; right: 20px; top: calc(100% - 12px); display: flex; flex-direction: column; padding: 6px 0; border-radius: 20px; background: var(--card); border: 1px solid var(--hairline); box-shadow: 0 20px 40px rgba(27, 27, 31, 0.14); }
  .nav .menu-panel a { display: flex; align-items: center; min-height: 52px; padding: 0 22px; font-size: 18px; font-weight: 500; }
  .menu-panel a + a { border-top: 1px solid var(--hairline-2); }
  .nav .brand { flex: none; }
  .hero { padding-top: 32px; padding-bottom: 72px; gap: 40px; }
  .stage { min-height: 0; }
  .stage .page { display: none; }
  .stage .phone { flex: 0 1 300px; }
  .split, .screens { padding-top: 72px; padding-bottom: 72px; }
  .pricing .card { padding: 40px 24px; }
  summary { font-size: 21px; }
}
/* Narrower than an iPhone (many Android phones are 360 wide): the icon alone, so the header's row still fits. */
@media (max-width: 370px) {
  .nav .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
