/* PDF Converter landing page — builds on /style.css */

body.lp {
  --accent: #f97316;
  --accent-2: #fb923c;
  --accent-glow: rgba(249,115,22,.38);
  --grad: linear-gradient(135deg, #fdba74, #f97316 45%, #facc15);
}
.lp .section-label { color: var(--accent-2); }
.lp .section-sub { max-width: 560px; }
.lp-alt { background: var(--bg-2); }
.lp a:focus-visible, .lp button:focus-visible, .lp summary:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px;
}

/* ── HERO ── */
.lp-hero { min-height: 100svh; padding-bottom: 40px; }
.lp-blob-1 { width: 620px; height: 620px; top: -160px; left: -140px; background: radial-gradient(circle, #f97316, #facc15); }
.lp-blob-2 { width: 520px; height: 520px; top: 10%; right: -140px; background: radial-gradient(circle, #ef4444, #f97316); animation-delay: -4s; }
.lp-blob-3 { width: 420px; height: 420px; bottom: 0; left: 38%; background: radial-gradient(circle, #facc15, #f97316); animation-delay: -8s; opacity: .12; }
.lp-hero-grid {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding-top: 56px; padding-bottom: 56px;
}
.lp-hero-copy .hero-eyebrow { margin-bottom: 28px; }
.lp-h1 {
  font-size: clamp(42px, 6.2vw, 78px); font-weight: 900; line-height: 1.03;
  letter-spacing: -.04em; margin-bottom: 22px;
  animation: fadeUp .8s .12s cubic-bezier(.4,0,.2,1) both;
}
.lp-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.lp-lead {
  font-size: clamp(16px, 1.9vw, 19px); color: var(--text-2); max-width: 540px; margin-bottom: 34px;
  animation: fadeUp .8s .22s cubic-bezier(.4,0,.2,1) both;
}
.lp-lead strong { color: var(--text); }
.lp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 26px; animation: fadeUp .8s .32s cubic-bezier(.4,0,.2,1) both; }
.lp-trust {
  display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  animation: fadeUp .8s .42s cubic-bezier(.4,0,.2,1) both;
}
.lp-trust li { display: inline-flex; align-items: center; gap: 7px; }
.lp-trust svg { color: var(--green); }

/* App Store badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #09090b; text-decoration: none;
  padding: 11px 24px 11px 18px; border-radius: 14px;
  box-shadow: 0 0 0 0 var(--accent-glow), 0 10px 30px rgba(0,0,0,.35);
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
  position: relative; overflow: hidden;
}
.store-badge::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(249,115,22,.28), transparent);
  transform: skewX(-18deg); animation: shine 3.6s ease-in-out infinite 1.2s;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.store-badge:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 40px var(--accent-glow), 0 14px 36px rgba(0,0,0,.45); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge small { font-size: 11px; font-weight: 500; letter-spacing: .01em; }
.store-badge strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.store-badge--lg { padding: 14px 30px 14px 22px; }
.store-badge--lg strong { font-size: 26px; }

/* ── DEVICE (PDF Converter) ── */
.lp-hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.device {
  width: 270px; height: 548px; border-radius: 48px; padding: 12px; position: relative; z-index: 2;
  background: linear-gradient(160deg, #2c2c30, #18181b);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 80px rgba(249,115,22,.2), inset 0 1px 0 rgba(255,255,255,.1);
  animation: phoneFloat 6s ease-in-out infinite;
}
.device-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; background: #000; border-radius: 20px; z-index: 5; }
.device-screen {
  width: 100%; height: 100%; border-radius: 38px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #1c1410 0%, #0f0c0a 45%); color: #f6f1ec;
  padding: 50px 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.ds-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.ds-title img { border-radius: 6px; display: block; }
.cv-stage { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; gap: 4px; height: 150px; margin-top: 6px; }
.cv-doc { position: relative; height: 112px; border-radius: 10px; background: #fff; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.cv-doc i { display: block; height: 5px; border-radius: 3px; background: #e5e7eb; }
.cv-doc i:nth-child(1) { width: 60%; background: #9ca3af; } .cv-doc i:nth-child(2) { width: 92%; } .cv-doc i:nth-child(3) { width: 80%; } .cv-doc i:nth-child(4) { width: 88%; } .cv-doc i:nth-child(5) { width: 50%; }
.cv-doc b { position: absolute; top: 8px; right: 8px; background: #dc2626; color: #fff; font-size: 8px; font-weight: 800; padding: 2px 5px; border-radius: 4px; letter-spacing: .04em; }
.cv-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: 0; background: linear-gradient(90deg, transparent, #f97316, transparent); box-shadow: 0 0 12px #f97316; }
.cv-arrow { color: #fb923c; display: grid; place-items: center; }
.cv-out {
  --fc: #2b6cb0; height: 112px; border-radius: 12px; background: linear-gradient(160deg, var(--fc), color-mix(in srgb, var(--fc) 60%, #000));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.4);
  opacity: .25; transform: scale(.88); transition: opacity .4s, transform .5s cubic-bezier(.34,1.56,.64,1), background .3s;
}
.cv-out b { font-size: 20px; font-weight: 900; letter-spacing: -.02em; color: #fff; }
.cv-out small { font-size: 10px; color: rgba(255,255,255,.8); font-weight: 600; }
.cv-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.cv-chips span { text-align: center; font-size: 10px; font-weight: 700; padding: 8px 2px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #d6cfc8; transition: all .3s; white-space: nowrap; }
.cv-chips span.on { background: rgba(249,115,22,.22); border-color: #fb923c; color: #fff; }
.ds-progress { width: 100%; height: 8px; background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; margin-top: 18px; }
.ds-progress i { display: block; height: 100%; width: 0%; border-radius: 6px; background: linear-gradient(90deg, #fb923c, #facc15); }
.ds-status { font-size: 12px; font-weight: 600; color: #a8a29e; margin-top: 4px; min-height: 18px; text-align: center; }
.ds-btn { margin-top: auto; width: 100%; text-align: center; padding: 13px; border-radius: 14px; font-size: 15px; font-weight: 700; color: #fff; background: #f97316; transition: background .3s, transform .2s; }
/* states */
.device[data-state="tap"] .ds-btn { transform: scale(.95); }
.device[data-state="working"] .cv-scan { opacity: 1; animation: scan 1.2s linear infinite; }
.device[data-state="working"] .ds-btn { background: #3f3f46; }
.device[data-state="done"] .cv-out { opacity: 1; transform: scale(1); }
.device[data-state="done"] .ds-btn { background: #16a34a; }
@keyframes scan { 0% { top: 0; } 100% { top: calc(100% - 3px); } }

/* floating chips */
.chip {
  position: absolute; z-index: 3; padding: 9px 15px; border-radius: 100px; font-size: 13px; font-weight: 600;
  background: rgba(28,28,31,.82); border: 1px solid var(--border-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.4); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chip-a { top: 12%; left: -6%; animation: bob 5s ease-in-out infinite; }
.chip-b { top: 24%; right: -7%; animation: bob 6s ease-in-out infinite -2s; }
.chip-c { bottom: 12%; left: -4%; animation: bob 5.5s ease-in-out infinite -3.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── STATS ── */
.lp-stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); padding: 44px 0; }
.lp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 13.5px; color: var(--text-2); }

/* ── STEPS ── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; counter-reset: s; }
.steps::before {
  content: ''; position: absolute; top: 58px; left: 16%; right: 16%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--border-2) 0 8px, transparent 8px 16px);
}
.step { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 26px 30px; text-align: center; transition: transform .3s, border-color .3s; }
.step:hover { transform: translateY(-6px); border-color: rgba(249,115,22,.4); }
.step-num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 20px var(--accent-glow); }
.step-ico { width: 64px; height: 64px; margin: 6px auto 18px; border-radius: 20px; display: grid; place-items: center; color: var(--accent-2); background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.22); }
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-2); }

/* ── FORMAT EXPLORER ── */
.demo { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
.fmt-groups { display: flex; flex-direction: column; gap: 18px; }
.fmt-group h3 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.fmt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 10px; }
.fmt {
  display: flex; align-items: center; gap: 10px; text-align: left; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap;
  padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color .25s, background .25s, transform .25s;
}
.fmt:hover { transform: translateY(-2px); border-color: var(--border-2); }
.fmt[aria-checked="true"] { border-color: var(--accent); background: linear-gradient(90deg, rgba(249,115,22,.18), var(--surface)); }
.fmt-dot { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--fc); display: grid; place-items: center; font-size: 8.5px; font-weight: 800; color: #fff; letter-spacing: .02em; text-transform: uppercase; }
.fmt-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.fp-flow { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 6px; }
.fp-pdf { aspect-ratio: 3/4; max-height: 170px; margin: 0 auto; width: 100%; max-width: 128px; border-radius: 12px; background: #fff; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; position: relative; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.fp-pdf i { display: block; height: 6px; border-radius: 3px; background: #e5e7eb; }
.fp-pdf i:first-child { width: 55%; background: #9ca3af; }
.fp-pdf b { position: absolute; top: 9px; right: 9px; background: #dc2626; color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 5px; }
.fp-arrow { color: var(--accent-2); display: grid; place-items: center; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.fp-out { --fc: #2b6cb0; aspect-ratio: 3/4; max-height: 170px; margin: 0 auto; width: 100%; max-width: 128px; border-radius: 14px; background: linear-gradient(160deg, var(--fc), color-mix(in srgb, var(--fc) 60%, #000)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.fp-out.pop { animation: pop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { from { transform: scale(.8) rotate(-4deg); opacity: .4; } }
.fp-out b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: #fff; }
.fp-out small { font-size: 11px; color: rgba(255,255,255,.8); font-weight: 600; }
.fp-name { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.fp-name span { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 8px; letter-spacing: 0; }
.fp-desc { font-size: 14.5px; color: var(--text-2); min-height: 44px; }
.fp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-tags span { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 100px; background: var(--bg-3); border: 1px solid var(--border); color: var(--text-2); }
.fp-tags span.prem { color: #fdba74; border-color: rgba(249,115,22,.4); background: rgba(249,115,22,.1); }

/* ── FEATURES ── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.feat:hover { transform: translateY(-6px); border-color: rgba(249,115,22,.35); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.feat-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-2); background: rgba(249,115,22,.12); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.feat:hover .feat-ico { transform: rotate(-8deg) scale(1.1); }
.feat h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.feat p { font-size: 14.5px; color: var(--text-2); }

/* ── USE CASES ── */
.uc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.uc { padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); transition: transform .3s; }
.uc:hover { transform: translateY(-5px); }
.uc h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.uc p { font-size: 14px; color: var(--text-2); }

/* ── PRIVACY ── */
.lp-privacy { display: flex; gap: 26px; align-items: center; background: linear-gradient(135deg, rgba(34,197,94,.08), var(--surface)); border: 1px solid rgba(34,197,94,.22); border-radius: var(--radius); padding: 34px 38px; max-width: 900px; }
.lp-privacy-ico { flex-shrink: 0; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: var(--green); background: rgba(34,197,94,.12); }
.lp-privacy h2 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.lp-privacy p { color: var(--text-2); font-size: 15px; }
.lp-privacy a { color: var(--accent-2); }

/* ── FAQ ── */
.lp-faq-wrap { max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; transition: border-color .25s; }
.faq details[open] { border-color: rgba(249,115,22,.4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--accent-2); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-2); font-size: 15px; animation: fadeUp .4s both; }
.faq em { color: var(--text); font-style: normal; font-weight: 600; }

/* ── FINAL CTA ── */
.lp-final { padding-bottom: 100px; }
.final-card { position: relative; overflow: hidden; text-align: center; padding: 72px 28px; border-radius: 32px; background: var(--surface); border: 1px solid var(--border-2); }
.final-glow { position: absolute; inset: -40% -10% auto; height: 80%; background: radial-gradient(ellipse at center, rgba(249,115,22,.35), transparent 65%); filter: blur(30px); animation: drift 10s ease-in-out infinite; }
.final-card > * { position: relative; }
.final-icon { border-radius: 22px; margin: 0 auto 22px; display: block; box-shadow: 0 16px 40px rgba(249,115,22,.35); animation: phoneFloat 4s ease-in-out infinite; }
.final-card h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 12px; }
.final-card p { color: var(--text-2); font-size: 17px; margin-bottom: 30px; }

/* QR code (desktop only — on phones the badge is tappable) */
.lp-qr {
  display: none; align-items: center; gap: 16px; margin-bottom: 26px; max-width: 400px;
  padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-2);
  animation: fadeUp .8s .38s cubic-bezier(.4,0,.2,1) both;
}
.lp-qr img { flex: none; width: 92px; height: 92px; padding: 8px; background: #fff; border-radius: 12px; display: block; }
.lp-qr p { font-size: 13.5px; line-height: 1.45; color: var(--text-2); text-align: left; }
.lp-qr strong { color: var(--text); }
.lp-qr--final { margin: 26px auto 0; width: fit-content; }
.lp-qr--final p { max-width: 180px; }
@media (min-width: 961px) and (hover: hover) { .lp-qr { display: flex; } }
@media (min-width: 769px) and (hover: hover) { .lp-qr--final { display: flex; } }

/* ── STICKY MOBILE CTA ── */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: none; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 18px; background: rgba(28,28,31,.92); border: 1px solid var(--border-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(0,0,0,.5);
  transform: translateY(140%); transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.sticky-cta.show { transform: none; }
.sticky-cta img { border-radius: 10px; display: block; }
.sticky-cta div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sticky-cta strong { font-size: 14px; }
.sticky-cta span { font-size: 12px; color: var(--text-2); }
.sticky-cta .btn { padding: 9px 22px; font-size: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .lp-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; padding-top: 32px; }
  .lp-lead { margin-left: auto; margin-right: auto; }
  .lp-cta-row, .lp-trust { justify-content: center; }
  .lp-hero-visual { min-height: 580px; }
  .chip-a { left: 6%; } .chip-b { right: 4%; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .lp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta { display: flex; }
  body.lp { padding-bottom: 84px; }
  .lp-privacy { flex-direction: column; text-align: center; padding: 28px 22px; }
}
@media (max-width: 560px) {
  .feat-grid, .uc-grid { grid-template-columns: 1fr; }
  .chip-a { left: 0; } .chip-b { right: 0; } .chip-c { display: none; }
  .store-badge { width: 100%; justify-content: center; }
  .lp-cta-row .btn { width: 100%; }
}

@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } .fmt-panel { position: static; order: -1; } }
@media (max-width: 560px) { .fmt-row { grid-template-columns: repeat(2, 1fr); } .fmt-panel { padding: 20px; } }

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