/* HeyPDF website (GitHub Pages). One stylesheet for all pages. Light + dark, responsive, motion-safe. */
:root {
  --red: #e3262c; --red-2: #b5121b; --red-3: #ff6151; --ink: #121318; --ink-2: #4a4c57; --ink-3: #6e707b;
  --bg: #ffffff; --bg-2: #f6f5f3; --card: #ffffff; --line: #ececf1; --green: #1b9e4b; --blue: #1f5fd6;
  --shadow: 0 1px 2px rgba(16,17,24,.05), 0 18px 40px -22px rgba(16,17,24,.28);
  --radius: 24px; --max: 1180px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f4f4f6; --ink-2: #c2c3cc; --ink-3: #9a9ca8; --bg: #0c0d12; --bg-2: #13151c; --card: #181a22; --line: #262935;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -22px rgba(0,0,0,.8); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--card); padding: 10px 14px; border-radius: 10px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.4px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(227,38,44,.6); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--bg) !important; font-weight: 700; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; } .nav-links a { padding: 12px 0; font-size: 17px; } .nav-cta { align-self: flex-start; margin-top: 8px; }
  .menu-btn { display: grid; place-items: center; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 600px at 85% 0%, var(--red-3) 0%, transparent 60%), linear-gradient(155deg, var(--red) 0%, var(--red-2) 70%, #7d0a12 100%); }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 900px; height: 900px; right: -260px; top: 120px; border: 2px solid rgba(255,255,255,.14); }
.hero::after { width: 620px; height: 620px; right: -60px; top: 330px; background: rgba(255,255,255,.06); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 96px 0 150px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.16); font-weight: 700; font-size: 14px; letter-spacing: .2px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #6bff9f; box-shadow: 0 0 0 4px rgba(107,255,159,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(107,255,159,0); } }
.hero h1 { margin: 22px 0 18px; font-size: clamp(44px, 6.4vw, 82px); line-height: 1.0; letter-spacing: -.045em; font-weight: 900; }
.hero p.lead { margin: 0 0 30px; font-size: clamp(18px, 1.8vw, 21px); color: rgba(255,255,255,.9); max-width: 560px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 16px; background: #0b0b0e; color: #fff; min-width: 196px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.store small { display: block; font-size: 12px; opacity: .75; line-height: 1.2; } .store b { display: block; font-size: 19px; line-height: 1.2; letter-spacing: -.3px; }
.store svg { flex: none; }
.soon { margin: 14px 0 0; font-size: 14px; color: rgba(255,255,255,.8); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: #fff; color: #17181d; font-weight: 700; font-size: 14px; box-shadow: 0 10px 22px -14px rgba(0,0,0,.6); }
.chip i { width: 9px; height: 9px; border-radius: 50%; }
.phones { position: relative; height: 700px; }
.phone { position: absolute; width: 270px; border-radius: 46px; padding: 9px; background: linear-gradient(145deg, #3a3a40, #0b0b0e 40%, #1c1c21); box-shadow: inset 0 0 0 2px #5b5b62, 0 40px 80px -30px rgba(0,0,0,.65); }
.phone img { border-radius: 38px; }
.phones .p1 { left: 4%; top: 120px; transform: rotate(-9deg); animation: float 7s ease-in-out infinite; }
.phones .p2 { left: 30%; top: 40px; width: 300px; z-index: 2; animation: float 7s ease-in-out -2s infinite; }
.phones .p3 { left: 60%; top: 140px; transform: rotate(9deg); animation: float 7s ease-in-out -4s infinite; }
@keyframes float { 50% { translate: 0 -14px; } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 64px; padding-bottom: 110px; }
  .hero p.lead { margin-inline: auto; } .stores, .chips { justify-content: center; }
  .phones { height: 560px; max-width: 560px; margin: 0 auto; width: 100%; }
  .phone { width: 210px; } .phones .p2 { width: 236px; left: 50%; margin-left: -118px; } .phones .p1 { left: 2%; } .phones .p3 { left: auto; right: 2%; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -54px; position: relative; z-index: 3; }
.stat { padding: 26px 22px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-size: 40px; letter-spacing: -.04em; font-weight: 900; color: var(--red); line-height: 1.1; }
.stat span { color: var(--ink-2); font-weight: 600; font-size: 15px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: -36px; } }

/* Sections */
section { padding: 110px 0; }
.kicker { color: var(--red); font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
h2.title { margin: 10px 0 14px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.035em; font-weight: 900; }
.sub { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 640px; }
.center { text-align: center; } .center .sub { margin-inline: auto; }

.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.feat { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16,17,24,.05), 0 28px 60px -28px rgba(16,17,24,.4); }
.feat .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.feat h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.feat p { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 5px 10px; border-radius: 999px; background: var(--bg-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 980px) { .grid6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid6 { grid-template-columns: 1fr; } section { padding: 80px 0; } }

/* Privacy band */
.dark { background: radial-gradient(800px 500px at 20% 10%, rgba(227,38,44,.28), transparent 70%), #0d1120; color: #fff; }
.dark .sub { color: rgba(255,255,255,.78); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.points li { display: flex; gap: 16px; }
.points .pi { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(27,158,75,.18); color: #6bd898; }
.points b { display: block; font-size: 18px; } .points span { color: rgba(255,255,255,.74); font-size: 15.5px; }
.showcase { display: flex; justify-content: center; }
.showcase .phone { position: relative; width: 300px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 50px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 60px; }
.step { text-align: center; }
.step .phone { position: relative; width: 240px; margin: 0 auto 26px; }
.step .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; } .step p { margin: 0 auto; color: var(--ink-2); max-width: 300px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 60px; } }

/* Gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 50px 20px 30px; margin-top: 10px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; margin: 0; scroll-snap-align: center; text-align: center; }
.gallery .phone { position: relative; width: 230px; }
.gallery figcaption { margin-top: 14px; font-weight: 700; color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; margin: 50px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 0 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 36px; padding: 70px 40px; text-align: center; color: #fff; background: radial-gradient(600px 400px at 80% 0%, var(--red-3), transparent 60%), linear-gradient(150deg, var(--red), var(--red-2)); }
.cta h2 { margin: 0 0 12px; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.035em; line-height: 1.05; }
.cta p { margin: 0 auto 28px; max-width: 560px; color: rgba(255,255,255,.88); font-size: 18px; }
.cta .stores { justify-content: center; }

/* Footer */
footer { padding: 60px 0 40px; border-top: 1px solid var(--line); margin-top: 110px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .foot a { color: var(--ink-2); font-weight: 600; }
.foot p { color: var(--ink-3); margin: 10px 0 0; max-width: 340px; font-size: 15px; }
.copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--ink-3); font-size: 14px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* Legal + contact pages */
.page-hero { padding: 80px 0 40px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 8px 0 8px; font-size: clamp(38px, 5vw, 60px); letter-spacing: -.04em; line-height: 1.05; }
.page-hero p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 680px; }
.legal { max-width: 780px; margin: 0 auto; padding: 50px 0 20px; font-size: 17px; }
.legal .lead { font-size: 20px; font-weight: 600; color: var(--ink); }
.legal h2 { margin: 42px 0 10px; font-size: 24px; letter-spacing: -.02em; scroll-margin-top: 90px; }
.legal p, .legal li { color: var(--ink-2); } .legal ul { padding-left: 22px; display: grid; gap: 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14px; }
.meta { margin-top: 44px; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); color: var(--ink-3); font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; padding: 50px 0 10px; }
.box { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.box h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; }
.mail { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); font-weight: 700; font-size: 17px; word-break: break-all; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 12px 24px -14px rgba(227,38,44,.9); }
.btn:hover { text-decoration: none; filter: brightness(1.05); } .btn.ghost { background: var(--bg-2); color: var(--ink); box-shadow: none; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-weight: 500; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.note { color: var(--ink-3); font-size: 14px; margin: 10px 0 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; }
  .phones .phone, .eyebrow i { animation: none; } .feat { transition: none; }
}
.legal ul.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }

/* Home: menu bar see-through over the red hero, solid after scrolling (2026-11-21) */
.nav-hero { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .25s, border-color .25s, box-shadow .25s; }
.nav-hero .brand, .nav-hero .nav-links a { color: #fff; }
.nav-hero .nav-cta { background: #fff; color: var(--red) !important; }
.nav-hero .brand img { box-shadow: 0 6px 16px -6px rgba(0,0,0,.45); }
.nav-hero .menu-btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.nav-hero.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(0,0,0,.4); }
.nav-hero.scrolled .brand, .nav-hero.scrolled .nav-links a { color: var(--ink); }
.nav-hero.scrolled .nav-cta { background: var(--red); color: #fff !important; }
.nav-hero.scrolled .menu-btn { background: var(--card); border-color: var(--line); color: var(--ink); }
@media (max-width: 820px) { .nav-hero .nav-links.open { background: var(--bg); } .nav-hero .nav-links.open a { color: var(--ink); } .nav-hero .nav-links.open .nav-cta { background: var(--red); color: #fff !important; } }
/* Hero fills the first screen; text and phones centred vertically */
.hero .hero-grid { min-height: max(760px, 100vh); padding: 108px 0 120px; align-content: center; }
@media (max-width: 980px) { .hero .hero-grid { min-height: 0; padding: 120px 0 110px; } }
/* Gallery of the App Store images */
.store-gallery { gap: 26px; padding-top: 40px; }
.store-gallery .shot { width: 300px; height: auto; border-radius: 30px; box-shadow: 0 30px 60px -30px rgba(16,17,24,.55); }
@media (max-width: 640px) { .store-gallery .shot { width: 240px; border-radius: 24px; } }
/* Menu links line up with the middle of the Contact us button */
@media (min-width: 821px) { .nav-links { align-items: center; } .nav-links a { line-height: 1; } .nav-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; } }

/* Type (2026-11-21): DM Sans for text, Bricolage Grotesque for headings */
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif; }
.hero h1 { font-family: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(46px, 2.4rem + 3.4vw, 90px); }
h2.title, .cta h2, .page-hero h1, .brand, .stat b, .feat h3, .step h3, .box h2, .legal h2 { font-family: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif; }
h2.title, .cta h2, .page-hero h1 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
