/* pdfword.app — landing page for the PDF to Word Converter extension.
   Colours are the side panel's own (src/sidepanel/styles.css): Word blue #0b57d0, PDF red #d93025, Docs blue.
   Google Sans Flex: SIL Open Font License, self-hosted (same files as welcome/). */

@font-face { font-family: "Google Sans Flex"; font-weight: 400 800; font-display: swap; src: url("fonts/GoogleSansFlex-400-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Google Sans Flex"; font-weight: 400 800; font-display: swap; src: url("fonts/GoogleSansFlex-400-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF; }

:root {
  --font: "Google Sans Flex", "Google Sans", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #ffffff;
  --bg-soft: #f8fafd;
  --bg-band: #f0f4f9;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #444746;
  --line: #e1e5ea;
  --blue: #0b57d0;
  --blue-hover: #0842a0;
  --blue-soft: #d3e3fd;
  --red: #d93025;
  --red-soft: #fce8e6;
  --green: #146c2e;
  --green-soft: #c4eed0;
  --docs: #1a73e8;
  --shadow: 0 1px 2px rgba(31, 31, 31, .06), 0 8px 28px rgba(31, 31, 31, .08);
  --shadow-lg: 0 2px 6px rgba(31, 31, 31, .08), 0 24px 60px rgba(11, 87, 208, .14);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131314;
    --bg-soft: #1b1c1d;
    --bg-band: #1e1f20;
    --card: #1e1f20;
    --text: #e3e3e3;
    --muted: #c4c7c5;
    --line: #333537;
    --blue: #a8c7fa;
    --blue-hover: #d3e3fd;
    --blue-soft: #0842a0;
    --red: #f28b82;
    --red-soft: #5c1a16;
    --green: #6dd58c;
    --green-soft: #0f3d1e;
    --docs: #8ab4f8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; text-align: center; }
h3 { font-size: 19px; line-height: 1.3; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 20px; }
.eyebrow { margin: 0 0 12px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; transition: background .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: var(--blue-hover); box-shadow: 0 6px 20px rgba(11, 87, 208, .3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-lg { padding: 17px 32px; font-size: 18px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .btn { color: #062e6f; } .btn:hover { box-shadow: 0 6px 20px rgba(168, 199, 250, .25); } }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }

/* hero */
.hero { padding-top: 72px; padding-bottom: 40px; text-align: center; }
.hero h1 { font-size: clamp(44px, 8vw, 84px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; }
.tag { display: inline-block; padding: 0 .16em; border-radius: .16em; color: #fff; line-height: 1.08; }
.tag-pdf { background: #d93025; }
.blue { color: var(--blue); }
.soft { color: var(--muted); font-weight: 700; }
.lead { max-width: 680px; margin: 28px auto 34px; font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); }
.trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.trust svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.demo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; margin: 64px auto 0; max-width: 980px; padding: 48px 40px; border-radius: 32px; background: linear-gradient(135deg, #1a73e8 0%, #0b57d0 55%, #08327a 100%); box-shadow: var(--shadow-lg); }
.pages { position: relative; height: 430px; }
.paper { position: absolute; margin: 0; width: 62%; background: #fff; border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); overflow: hidden; }
.paper img { width: 100%; }
.paper-back { left: 4%; top: 8%; transform: rotate(-7deg); }
.paper-front { right: 2%; top: 0; transform: rotate(5deg); }
.badge { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.badge-pdf { background: #d93025; top: 12px; bottom: auto; }
.badge-scan { background: #3c4043; }
.arrow { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 12px rgba(255, 255, 255, .16); }
.arrow svg { width: 34px; height: 34px; fill: none; stroke: #d93025; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.panel { justify-self: center; width: min(300px, 100%); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #e1e5ea; font-size: 13px; font-weight: 600; color: #1f1f1f; background: #f8fafd; }
.caption { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* documents strip */
.docs-strip { margin-top: 48px; padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.docs-strip .eyebrow { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 15px; }

/* features */
.features { padding-top: 96px; padding-bottom: 96px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-blue { background: var(--blue-soft); color: var(--blue); }
.ico-red { background: var(--red-soft); color: var(--red); }
.ico-docs { background: var(--blue-soft); color: var(--docs); }
.ico-green { background: var(--green-soft); color: var(--green); }
@media (prefers-color-scheme: dark) { .ico-blue, .ico-docs { color: #d3e3fd; } }

/* compare */
.compare-band { padding: 96px 0; background: var(--bg-band); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; align-items: stretch; }
.col { padding: 32px; border-radius: var(--radius); }
.col-old { background: var(--card); border: 1px solid var(--line); }
.col-new { position: relative; overflow: hidden; background: #0b57d0; color: #fff; }
.col-title { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.col-new .col-title { color: #d3e3fd; }
.col ol { margin: 0; padding-left: 22px; font-size: 18px; }
.col li { margin: 8px 0; }
.col-old li { color: var(--muted); }
.col-new ol { font-size: 22px; font-weight: 700; }
.col-foot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.col-old .col-foot { color: var(--red); }
.col-new .col-foot { border-color: rgba(255, 255, 255, .25); }
.col-new img { width: 210px; margin: 26px auto -120px; border-radius: 14px; box-shadow: 0 12px 34px rgba(0, 0, 0, .35); }

/* steps */
.steps { padding-top: 96px; padding-bottom: 96px; text-align: center; }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 40px; padding: 0; list-style: none; }
.step-list li { padding: 28px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.step-list p { margin: 6px 0 0; color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
@media (prefers-color-scheme: dark) { .num { color: #062e6f; } }

/* faq */
.faq { max-width: 820px; padding-bottom: 96px; }
.faq h2 { margin-bottom: 36px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { position: relative; padding: 20px 44px 20px 4px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2.4px solid var(--muted); border-bottom: 2.4px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { margin: 0 4px 22px; color: var(--muted); }

/* final call */
.final { padding: 88px 0; text-align: center; background: linear-gradient(135deg, #1a73e8 0%, #0b57d0 55%, #08327a 100%); color: #fff; }
.final-icon { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.final-icon img { width: 56px; height: 56px; }
.final h2 { margin-bottom: 32px; }
.btn-light { background: #fff; color: #0b57d0; }
.btn-light:hover { background: #e8f0fe; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
@media (prefers-color-scheme: dark) { .btn-light { color: #0b57d0; } }

/* footer */
.foot { padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }

/* tablet and phone */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .demo { grid-template-columns: 1fr; padding: 32px 20px 36px; gap: 18px; }
  .pages { height: 300px; max-width: 420px; width: 100%; margin: 0 auto; }
  .arrow { justify-self: center; transform: rotate(90deg); width: 60px; height: 60px; }
  .compare { grid-template-columns: 1fr; }
  .col-new img { margin-bottom: -90px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .brand span { font-size: 15px; }
  .btn-sm { padding: 8px 14px; font-size: 14px; }
  .btn-lg { width: 100%; padding: 16px 20px; font-size: 17px; }
  .trust { font-size: 13px; }
  .panel { width: min(270px, 100%); }
  .demo { margin-top: 44px; border-radius: 24px; }
  .pages { height: 250px; }
  .grid, .step-list { grid-template-columns: 1fr; }
  .features, .steps, .compare-band { padding-top: 64px; padding-bottom: 64px; }
  .col { padding: 24px; }
  .col-new ol { font-size: 20px; }
}
@media (max-width: 380px) { .brand span { display: none; } }

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