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

body.lp {
  --accent: #ff5a5f;
  --accent-2: #ff8a8e;
  --accent-glow: rgba(255,90,95,.38);
  --grad: linear-gradient(135deg, #ff8a8e, #ff5a5f 45%, #c084fc);
}
.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, #ff5a5f, #c084fc); }
.lp-blob-2 { width: 520px; height: 520px; top: 10%; right: -140px; background: radial-gradient(circle, #6366f1, #ff5a5f); animation-delay: -4s; }
.lp-blob-3 { width: 420px; height: 420px; bottom: 0; left: 38%; background: radial-gradient(circle, #f59e0b, #ff5a5f); 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(255,90,95,.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 ── */
.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(255,90,95,.14), 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, #fff5f5 0%, #ffffff 40%); color: #18181b;
  padding: 50px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ds-title { display: flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.ds-title img { border-radius: 6px; display: block; }
.ds-stage { position: relative; width: 100%; height: 232px; display: flex; align-items: center; justify-content: center; margin-top: 8px; }
.ds-doc { position: relative; width: 138px; height: 184px; transition: transform .9s cubic-bezier(.5,0,.2,1); }
.ds-page {
  position: absolute; inset: 0; border-radius: 10px; background: #fff;
  box-shadow: 0 10px 30px rgba(255,90,95,.18), 0 2px 6px rgba(0,0,0,.08); border: 1px solid #f1d6d6;
}
.ds-page--3 { transform: rotate(7deg) translate(10px, 4px); background: #ffe3e3; transition: transform .9s cubic-bezier(.5,0,.2,1); }
.ds-page--2 { transform: rotate(-5deg) translate(-8px, 3px); background: #fff0f0; transition: transform .9s cubic-bezier(.5,0,.2,1); }
.ds-page--1 { padding: 16px 14px; display: flex; flex-direction: column; gap: 7px; }
.ds-tag { position: absolute; top: 10px; right: 10px; background: #ff5a5f; color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 5px; letter-spacing: .04em; }
.ds-page .l { display: block; height: 6px; border-radius: 3px; background: #f3d9d9; }
.l1 { width: 62%; background: #f0b9b9 !important; } .l2 { width: 90%; } .l3 { width: 80%; } .l4 { width: 70%; }
.l5 { width: 85%; } .l6 { width: 55%; }
.ds-img { height: 46px; border-radius: 7px; background: linear-gradient(135deg, #ffb3b6, #c4a8ff); margin: 3px 0; }
.ds-scan {
  position: absolute; left: -6px; right: -6px; height: 3px; top: 0; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent, #ff5a5f, transparent); box-shadow: 0 0 14px #ff5a5f; z-index: 4;
}
.ds-badge {
  position: absolute; right: 2px; top: 18px; background: #16a34a; color: #fff;
  font-size: 15px; font-weight: 800; padding: 6px 12px; border-radius: 100px; letter-spacing: -.02em;
  box-shadow: 0 8px 20px rgba(22,163,74,.4); transform: scale(0) rotate(-12deg); opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .3s;
}
.ds-file { font-size: 12px; color: #71717a; font-weight: 500; margin-top: 2px; }
.ds-size { font-size: 38px; font-weight: 900; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; transition: color .4s; }
.ds-size em { font-style: normal; font-size: 16px; font-weight: 700; margin-left: 4px; color: #71717a; }
.ds-progress { width: 100%; height: 8px; background: #f3e1e1; border-radius: 6px; overflow: hidden; margin-top: 10px; }
.ds-progress i { display: block; height: 100%; width: 0%; border-radius: 6px; background: linear-gradient(90deg, #ff8a8e, #ff5a5f); }
.ds-status { font-size: 12px; font-weight: 600; color: #71717a; margin-top: 6px; min-height: 18px; }
.ds-btn {
  margin-top: auto; width: 100%; text-align: center; padding: 13px; border-radius: 14px;
  font-size: 15px; font-weight: 700; color: #fff; background: #ff5a5f; transition: background .3s, transform .2s;
}
/* states */
.device[data-state="tap"] .ds-btn { transform: scale(.95); }
.device[data-state="compressing"] .ds-doc { transform: scale(.9); }
.device[data-state="compressing"] .ds-scan { opacity: 1; animation: scan 1.5s linear infinite; }
.device[data-state="compressing"] .ds-btn { background: #d4d4d8; }
.device[data-state="done"] .ds-doc { transform: scale(.72); }
.device[data-state="done"] .ds-page--3 { transform: rotate(0) translate(0,0); }
.device[data-state="done"] .ds-page--2 { transform: rotate(0) translate(0,0); }
.device[data-state="done"] .ds-badge { transform: scale(1) rotate(0); opacity: 1; }
.device[data-state="done"] .ds-size { color: #16a34a; }
.device[data-state="done"] .ds-btn { background: #16a34a; }
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

/* 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: 14%; left: -2%; animation: bob 5s ease-in-out infinite; }
.chip-b { top: 52%; right: -4%; animation: bob 6s ease-in-out infinite -2s; }
.chip-c { bottom: 8%; 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(255,90,95,.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(255,90,95,.12); border: 1px solid rgba(255,90,95,.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); }

/* ── LEVELS ── */
.levels { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }
.level-list { display: flex; flex-direction: column; gap: 10px; }
.level {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n p" "d p";
  align-items: center; column-gap: 12px; text-align: left; font-family: inherit; color: var(--text); cursor: pointer;
  padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color .25s, background .25s, transform .25s;
}
.level:hover { transform: translateX(4px); border-color: var(--border-2); }
.level[aria-checked="true"] { border-color: var(--accent); background: linear-gradient(90deg, rgba(255,90,95,.14), var(--surface)); }
.lv-name { grid-area: n; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.lv-desc { grid-area: d; font-size: 13px; color: var(--text-2); }
.lv-pct { grid-area: p; font-size: 20px; font-weight: 800; color: var(--accent-2); letter-spacing: -.02em; }
.lv-badge { position: absolute; top: -10px; left: 18px; background: #fbbf24; color: #1c1917; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 100px; }
.level.is-best { margin-top: 6px; }

.level-viz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.viz-row { display: grid; grid-template-columns: 86px 1fr 70px; align-items: center; gap: 12px; font-size: 13px; }
.viz-label { color: var(--text-2); font-weight: 600; }
.viz-val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.viz-track { height: 22px; background: var(--bg-3); border-radius: 100px; overflow: hidden; }
.viz-bar { height: 100%; border-radius: 100px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.viz-bar--orig { width: 100%; background: linear-gradient(90deg, #52525b, #71717a); }
.viz-bar--new { width: 45%; background: linear-gradient(90deg, #ff8a8e, #ff5a5f); box-shadow: 0 0 20px var(--accent-glow); }
.viz-saved { text-align: center; padding: 8px 0 2px; }
.viz-saved span { display: block; font-size: clamp(52px, 7vw, 76px); font-weight: 900; letter-spacing: -.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.viz-saved small { font-size: 14px; color: var(--text-2); font-weight: 500; }
.viz-note { font-size: 12px; color: var(--text-3); text-align: center; }

/* ── 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(255,90,95,.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(255,90,95,.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(255,90,95,.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(255,90,95,.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(255,90,95,.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%; }
  .levels { grid-template-columns: 1fr; }
  .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; }
  .viz-row { grid-template-columns: 74px 1fr 62px; gap: 8px; }
  .level-viz { padding: 26px 18px; }
  .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 (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
