/*
 * Dokulink — strona produktowa (dokulink.pl).
 * Kolory i krój z motywu „Balans" aplikacji (web/projects/office/src/styles.scss).
 * Inter jest serwowany z tej samej domeny, więc strona nie łączy się z nikim trzecim.
 */

@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/inter-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/inter-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(fonts/inter-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(fonts/inter-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(fonts/inter-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(fonts/inter-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface2: #edf1f0;
  --border: #d9dfdd;
  --text: #17211f;
  --muted: #55635f;
  --primary: #0f766e;
  --primary-hover: #0b5d57;
  --on-primary: #ffffff;
  --primary-soft: #d9f0ec;
  --primary-text: #0b5d57;
  --ok: #166534;
  --ok-soft: #dcfce7;
  --warn: #8a4b08;
  --warn-soft: #fdecc8;
  --err: #b42318;
  --err-soft: #fde4e1;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(23, 33, 31, .06), 0 8px 24px rgba(23, 33, 31, .08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111716;
    --surface: #1a2221;
    --surface2: #232d2b;
    --border: #34413e;
    --text: #e8eeec;
    --muted: #a3b1ad;
    --primary: #5eead4;
    --primary-hover: #7fe3d3;
    --on-primary: #06302c;
    --primary-soft: #153f3a;
    --primary-text: #7fe3d3;
    --ok: #86efac;
    --ok-soft: #14351f;
    --warn: #fcd34d;
    --warn-soft: #3d2c08;
    --err: #fca5a5;
    --err-soft: #451a17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -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.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-text); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

/* ---- Nagłówek ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* ---- Przyciski ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.nav .btn { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--on-primary); }

/* ---- Hero ---- */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 48px; } }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 4px 12px;
  border-radius: 999px; background: var(--primary-soft); color: var(--primary-text);
  font-size: .85rem; font-weight: 600;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* Makieta strony klienta na telefonie */
.phone {
  width: min(100%, 360px); margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
  box-shadow: var(--shadow); padding: 18px 16px 20px;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; border-bottom: 1px solid var(--border); }
.office-logo { width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.phone-top strong { display: block; font-size: .95rem; line-height: 1.2; }
.phone-top span { font-size: .8rem; color: var(--muted); }
.month { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 4px 8px; }
.month b { font-size: 1.05rem; }
.month span { font-size: .8rem; color: var(--muted); }
.progress { height: 8px; border-radius: 999px; background: var(--surface2); margin: 0 4px 14px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 60%; background: var(--primary); border-radius: inherit; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface2); font-size: .9rem; }
.item .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.item.done .dot { background: var(--ok-soft); color: var(--ok); }
.item.todo .dot { background: var(--warn-soft); color: var(--warn); }
.item.fix .dot { background: var(--err-soft); color: var(--err); }
.item .meta { margin-left: auto; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.phone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.phone-actions span { text-align: center; padding: 10px 8px; border-radius: var(--radius); font-size: .85rem; font-weight: 600; }
.phone-actions .a1 { background: var(--primary-soft); color: var(--primary-text); }
.phone-actions .a2 { background: var(--primary); color: var(--on-primary); }

/* ---- Sekcje ---- */
section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.section-alt .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; }
.card .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-text); font-weight: 700; margin-bottom: 14px; }

/* Cykl miesiąca */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--border); }
.step:last-child { border-bottom: 1px solid var(--border); }
.step .when { font-weight: 600; color: var(--primary-text); font-size: .95rem; padding-top: 2px; }
.step h3 { margin-bottom: .25em; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 6px; } }

/* Funkcje dla biura / klienta */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.panel h3 { font-size: 1.3rem; }
.panel > p { color: var(--muted); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-soft) 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='%230f766e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .ticks li::before { background-image: 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='%235eead4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.ticks strong { display: block; }
.ticks span { color: var(--muted); font-size: .96rem; }

/* Bezpieczeństwo */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .sec-grid { grid-template-columns: 1fr; } }

/* Pilotaż */
.cta { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: var(--on-primary); }
.cta p { opacity: .92; }
.cta ul { margin: 0 0 1em; padding-left: 1.2em; opacity: .92; }
.cta .btn { background: var(--on-primary); color: var(--primary); }
.cta .btn:hover { background: var(--primary-soft); color: var(--primary-text); }
.cta .contact { font-size: .95rem; opacity: .92; margin-top: 14px; }
.cta .contact a { color: inherit; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; gap: 8px; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Stopka */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer p { margin: 0; }
