/* Plico website — shared styles.
   Colors and type mirror the desktop app (src/PdfTool.App/Resources/Styles):
   accent #005FB8 / #60CDFF, Segoe UI, spacing 4·8·12·16·24·32, no shadows or gradients. */

:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --surface-2: #f9f9f9;
  --border: #e0e0e0;
  --text: #1b1b1b;
  --text-2: #5c5c5c;
  --accent: #005fb8;
  --accent-hover: #004c94;
  --on-accent: #ffffff;
  --accent-subtle: #e1ecf7;
  --success: #0f7b0f;
  --success-bg: #dff6dd;
  --planned: #8a5300;
  --planned-bg: #fff4ce;
  --thumb: #ffffff;
  --thumb-line: #d6d6d6;

  --radius: 8px;
  --max: 1080px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #202020;
    --surface: #2b2b2b;
    --surface-2: #323232;
    --border: #3d3d3d;
    --text: #ffffff;
    --text-2: #c5c5c5;
    --accent: #60cdff;
    --accent-hover: #8ad9ff;
    --on-accent: #000000;
    --accent-subtle: #1e3445;
    --success: #6ccb5f;
    --success-bg: #1d3a1b;
    --planned: #fce100;
    --planned-bg: #433519;
    --thumb: #3a3a3a;
    --thumb-line: #555555;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  padding: 8px 12px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); z-index: 10;
}
.skip-link:focus { top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: none; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
.lang { margin-left: auto; font-size: 15px; color: var(--text); text-decoration: none; padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.lang:hover { background: var(--surface-2); color: var(--text); }
@media (min-width: 720px) {
  .site-nav { display: flex; }
  .lang { margin-left: 0; }
}

/* Sections */
section { padding: 48px 0; }
@media (min-width: 720px) { section { padding: 64px 0; } }
section + section { border-top: 1px solid var(--border); }
.section-alt { background: var(--surface); }

h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 600; }
h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3.5vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0; }

.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { margin-top: 12px; color: var(--text-2); }

/* Hero */
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.hero p.lead { margin-top: 16px; font-size: 18px; color: var(--text-2); max-width: 560px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--accent-subtle); color: var(--text);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: var(--radius); font-weight: 600; text-decoration: none; font-size: 16px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--text-2); }

/* App illustration (pure CSS, decorative) */
.mock {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  overflow: hidden; font-size: 12px; user-select: none;
}
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.mock-bar span:first-child { font-weight: 600; color: var(--text); margin-right: auto; }
.mock-body { display: grid; grid-template-columns: 132px 1fr; min-height: 260px; }
.mock-nav { list-style: none; margin: 0; padding: 8px; border-right: 1px solid var(--border); background: var(--bg); }
.mock-nav li { padding: 6px 8px; border-radius: 4px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-nav li.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.mock-main { padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-content: start; background: var(--surface-2); }
.mock-page { aspect-ratio: 0.72; background: var(--thumb); border: 1px solid var(--border); border-radius: 3px; padding: 14% 12%; display: flex; flex-direction: column; gap: 6%; }
.mock-page i { display: block; height: 5%; border-radius: 2px; background: var(--thumb-line); }
.mock-page i:nth-child(1) { width: 60%; }
.mock-page i:nth-child(2) { width: 90%; }
.mock-page i:nth-child(3) { width: 80%; }
.mock-page i:nth-child(4) { width: 70%; }
.mock-page.sel { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-nav { display: none; }
  .mock-main { grid-template-columns: repeat(3, 1fr); }
  .mock-page:nth-child(n+7) { display: none; }
}

/* Benefits */
.benefits { display: grid; gap: 24px; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefits h3 { margin-bottom: 8px; }
.benefits p { color: var(--text-2); }

/* Feature cards */
.grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px 20px; }
.section-alt .card { background: var(--surface-2); }
.card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.tag-new { background: var(--accent-subtle); color: var(--text); }
.tag-planned { background: var(--planned-bg); color: var(--planned); }
.fine { margin-top: 24px; font-size: 14px; color: var(--text-2); }

/* Privacy list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .checks { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; } }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230f7b0f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checks strong { display: block; }
.checks span { color: var(--text-2); }

/* Facts table */
.facts { display: grid; gap: 16px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.facts dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--text-2); }
.price h3 { margin-bottom: 8px; }
.price p + p { margin-top: 12px; }
.price p { color: var(--text-2); }
.price .big { font-size: 22px; font-weight: 600; color: var(--text); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--text-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 16px; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 14px; color: var(--text-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--text-2); }
