/* PDFClubs — site.css
   Tokens first; light is the default, dark via prefers-color-scheme. */

:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  --brand: #2196f0;          /* decorative only (hero highlight, icons) */
  --accent: #1567b8;         /* AA on white: 5.5:1 */
  --accent-strong: #0f5399;
  --accent-ink: #ffffff;
  --accent-soft: #e6f2fd;

  --bg: #fbfcfe;
  --bg-alt: #f2f5f9;
  --surface: #ffffff;
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e2e6ec;
  --line-strong: #cdd3dc;
  --callout-bg: #fff8dc;
  --callout-line: #e8d27a;
  --callout-ink: #5a4a00;

  --word: #2b7cd3;
  --excel: #1d9e5a;
  --ppt: #d9611e;
  --pdf: #d3313b;
  --tools: #6d5ce7;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px -12px rgba(17, 24, 39, .18);
  --container: 1140px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(56px, 9vw, 104px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4fb0ff;
    --accent: #4fb0ff;
    --accent-strong: #7cc4ff;
    --accent-ink: #0b1a2a;
    --accent-soft: #10263a;

    --bg: #0f141b;
    --bg-alt: #151c25;
    --surface: #1b232e;
    --ink: #eef2f7;
    --ink-2: #b4bdc9;
    --ink-3: #8a94a3;
    --line: #28323f;
    --line-strong: #364253;
    --callout-bg: #2a2410;
    --callout-line: #6b5a1c;
    --callout-ink: #f1dc8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.narrow { max-width: 780px; }
.section { padding-block: var(--section); }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 10px; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.grid { display: grid; gap: 20px; }

.skip { position: absolute; left: 8px; top: -60px; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 8px; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 40px; height: 40px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 1.5px solid transparent;
  font: 700 15px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand img { width: 160px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav > a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 96px) var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.eyebrow { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
h1 em { font-style: normal; color: var(--brand); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badge img { height: 56px; width: auto; }
.store-badge:hover { opacity: .9; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--brand); }

.hero-shot { margin: 0; }
.window { border-radius: var(--radius); overflow: hidden; background: #1f1f1f; box-shadow: var(--shadow); border: 1px solid var(--line-strong); }
.window-bar { display: flex; gap: 6px; padding: 10px 12px; background: #2a2a2a; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #4a4a4a; }

/* ---------- conversions ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.conv-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.conv h3 { font-size: 17px; white-space: nowrap; }
.conv { padding: 18px; }
.conv-head { display: flex; align-items: center; gap: 10px; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mark-word { background: var(--word); }
.mark-excel { background: var(--excel); }
.mark-ppt { background: var(--ppt); }
.mark-pdf { background: var(--pdf); font-size: 11px; }
.mark-tools { background: var(--tools); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* ---------- why ---------- */
.why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.why-grid .card { padding: 28px; gap: 14px; }
.why-grid p { color: var(--ink-2); }

/* ---------- screenshots ---------- */
.shots {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.shots figure { flex: 0 0 min(680px, 88%); margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.shots img { border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.shots figcaption { color: var(--ink-3); font-size: 14px; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.pricing-copy { display: flex; flex-direction: column; gap: 16px; }
.pricing-copy > p { color: var(--ink-2); font-size: 18px; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--callout-bg); border: 1px solid var(--callout-line); color: var(--callout-ink); font-size: 15px; }
.callout .ic { margin-top: 3px; }
.price-card { padding: 32px; border-width: 2px; border-color: var(--brand); gap: 18px; box-shadow: var(--shadow); }
.price { display: flex; align-items: baseline; gap: 10px; }
.amount { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; }
.term { color: var(--ink-2); }
.includes { display: flex; flex-direction: column; gap: 8px; }
.includes li { position: relative; padding-left: 26px; }
.includes li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* ---------- more apps ---------- */
.apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app { padding: 26px; gap: 16px; }
.app img { width: 64px; height: 64px; border-radius: 14px; }
.app-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.app-body p { color: var(--ink-2); font-size: 16px; }
.app h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rating { font-size: 14px; color: var(--ink-3); }
.stars { color: #e9a100; letter-spacing: 1px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.app .btn { align-self: flex-start; }
.soon .btn { opacity: .6; cursor: default; }
@media (max-width: 900px) { .apps-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
details { border-top: 1px solid var(--line-strong); }
details:last-of-type { border-bottom: 1px solid var(--line-strong); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
details[open] summary::after { transform: rotate(225deg); }
details p { padding: 0 0 20px; color: var(--ink-2); max-width: 66ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 64px); }
.contact-grid > div { display: flex; flex-direction: column; gap: 12px; }
.contact-grid > div p { color: var(--ink-2); }
.mail { font-weight: 700; font-size: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.contact-form input, .contact-form textarea {
  font: 500 16px/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 15px; color: var(--ink-2); }
.form-status.ok { color: var(--excel); }
.form-status.err { color: var(--pdf); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--ink-3); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { color: var(--ink-2); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .conv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .pricing-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav > a:not(.btn) { padding: 12px 4px; font-size: 17px; min-height: 44px; display: flex; align-items: center; }
  .nav > .btn { margin-top: 8px; }
  .hero-copy .btn-ghost { flex: 1 1 auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .conv-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .store-badge img { height: 52px; }
  .brand img { width: 136px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- prose pages (privacy etc.) ---------- */
.prose h1 { margin-bottom: 8px; }
.prose .muted { color: var(--ink-3); font-size: 15px; margin-bottom: 32px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p + p { margin-top: 12px; }
.prose p, .prose li { color: var(--ink-2); max-width: 70ch; }
.prose ul { list-style: disc; padding-left: 22px; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
