/* ============================================================
   ENVY PDF — website
   Calm, warm, and light on its feet.
   ============================================================ */

:root {
  --blue: #0f6cbd;
  --blue-deep: #0b4f8a;
  --blue-soft: #e8f1fb;
  --ink: #16202b;
  --muted: #5b6674;
  --bg: #f7f8fa;
  --card: #ffffff;
  --line: #e5e9ef;
  --line-soft: #eef1f5;
  --warm: #ffb24d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(16, 32, 48, .06);
  --shadow: 0 18px 50px rgba(16, 32, 48, .12);
  --shadow-lg: 0 30px 80px rgba(16, 32, 48, .18);
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Helvetica, Arial, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--blue); text-decoration: none; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow { max-width: 780px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus { left: 16px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  padding: 12px 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 108, 189, .24);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 108, 189, .3);
}
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: #fff;
  border-color: #cfd7e2;
  box-shadow: 0 10px 24px rgba(16, 32, 48, .1);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border: 1px solid rgba(15, 108, 189, .16);
  padding: 6px 13px;
  border-radius: 999px;
}
.pill-light { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .35); color: #fff; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .88);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand img { border-radius: 8px; }
.brand b { font-weight: 800; color: var(--blue); }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 550;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .18s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 72px;
  background:
    radial-gradient(900px 500px at 78% 8%, rgba(15, 108, 189, .11), transparent 62%),
    radial-gradient(600px 400px at 8% 30%, rgba(255, 178, 77, .12), transparent 65%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 54px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.3rem);
  font-weight: 750;
  margin: 18px 0 20px;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-meta li { position: relative; padding-left: 15px; }
.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #9fb3c8;
}

.hero-shot { position: relative; }
.frame {
  position: relative;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  background: #f3f5f8;
  border-bottom: 1px solid var(--line-soft);
}
.frame-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #dfe3e9;
}
.frame-bar i:nth-child(1) { background: #ff8a80; }
.frame-bar i:nth-child(2) { background: #ffd166; }
.frame-bar i:nth-child(3) { background: #7ed6a5; }
.frame-bar span {
  margin-left: 8px;
  font-size: 11.5px;
  color: #7a8595;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.fc-1 { left: -22px; bottom: 54px; }
.fc-2 { right: -14px; top: 46px; animation-delay: -2.4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- trust strip ---------- */

.strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
  padding: 16px 24px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 550;
}

/* ---------- sections ---------- */

.section { padding: 88px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 730;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d4deea;
}
.card .ic {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: var(--blue-soft);
  border-radius: 12px;
  margin-bottom: 15px;
}
.card h3 { font-size: 15.5px; font-weight: 680; margin-bottom: 7px; }
.card p { margin: 0; font-size: 13.8px; color: var(--muted); line-height: 1.55; }

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.shot { margin: 0; }
.shot.wide { grid-column: 1 / -1; }
.shot .frame { box-shadow: var(--shadow); }
.shot figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  padding: 0 4px;
}
.shot figcaption b { color: var(--ink); font-weight: 650; }

/* ---------- download ---------- */

.download-wrap { max-width: 980px; }
.download-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  background: linear-gradient(135deg, var(--blue) 0%, #0a5aa0 58%, #084a86 100%);
  border-radius: 26px;
  padding: 46px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.download-card::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  right: -120px; top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 68%);
}
.download-main { position: relative; z-index: 1; }
.download-main h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: 14px 0 10px; }
.dl-sub { color: rgba(255, 255, 255, .82); margin: 0 0 26px; font-size: 15.5px; max-width: 40ch; }
.download-card .btn {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.download-card .btn:hover { background: #fff; color: var(--blue-deep); transform: translateY(-2px); }
.dl-small {
  margin: 14px 0 0;
  font-size: 12.8px;
  color: rgba(255, 255, 255, .74);
}
.dl-alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
}
.dl-alt a { color: #fff; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.dl-alt code {
  background: rgba(255, 255, 255, .16);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12.5px;
}

.download-side {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  padding: 24px;
  align-self: start;
}
.download-side h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 11px; }
.checks li {
  position: relative;
  padding-left: 26px;
  font-size: 13.4px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-deep);
  background: #fff;
  border-radius: 50%;
}
.note {
  font-size: 12.4px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  background: rgba(0, 0, 0, .14);
  border-radius: 11px;
  padding: 12px 14px;
}
.note b { color: #fff; display: block; margin-bottom: 3px; }

/* ---------- FAQ ---------- */

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
details[open] { border-color: #cfdcEA; }
summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 30px 17px 0;
  font-weight: 650;
  font-size: 15.5px;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 21px;
  font-weight: 400;
  color: var(--blue);
  transition: transform .18s ease;
}
details[open] summary::after { content: "−"; }
details p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  padding-right: 12px;
}

/* ---------- closing ---------- */

.closing {
  padding: 84px 0 92px;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--bg));
  border-top: 1px solid var(--line-soft);
}
.closing img { margin: 0 auto 22px; border-radius: 16px; box-shadow: var(--shadow); }
.closing h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.closing p { color: var(--muted); font-size: 16px; margin: 0 auto 26px; max-width: 46ch; }

/* ---------- footer ---------- */

.footer {
  background: #101a24;
  color: #c3ccd7;
  padding: 46px 0 26px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer .brand { color: #fff; }
.footer p { margin: 12px 0 0; font-size: 13.5px; color: #8d9bab; line-height: 1.6; }
.footer p b { color: #dbe3ec; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer nav a { color: #a8b5c4; font-size: 13.5px; }
.footer nav a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  font-size: 12.4px;
  color: #73808f;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(9, 15, 22, .84);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .18s ease;
}
.lightbox.is-on { opacity: 1; }
.lightbox img {
  max-width: min(1180px, 96vw);
  max-height: 88vh;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  cursor: zoom-out;
}
.lightbox-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .72);
  white-space: nowrap;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 640px; }
  .float-card { display: none; }
  .download-card { grid-template-columns: 1fr; gap: 30px; padding: 36px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 44px 0 56px; }
  .section { padding: 64px 0; }
  .shots { grid-template-columns: 1fr; }
  .download-card { padding: 28px 22px; border-radius: 20px; }
  .download-main h2 { font-size: 1.8rem; }
  .wrap { padding: 0 18px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .strip-inner { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
