/* signer.fi – one stylesheet for every page (the landing page's own styles until 5.11.2026). */
:root {
  --ink: #1a2b4a;
  --ink-light: #33507e;
  --accent: #10b981;
  --accent-dark: #0c8f66;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #24303f;
  --muted: #64748b;
  --line: #e6ebf2;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--accent-dark); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.logo .dot { color: var(--accent); }
.logo-tag { font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-left: 10px; }
.nav-right { display: flex; gap: 18px; align-items: center; }
.nav-right a.link { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-right a.link:hover { color: var(--accent-dark); }
.nav-right a.cta { background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-right a.cta:hover { background: var(--ink-light); }
@media (max-width: 860px) { .logo-tag, .nav-right a.wide { display: none; } }
@media (max-width: 420px) { .nav-right { gap: 12px; } .nav-right a.cta { padding: 8px 12px; } }

.hero { padding: 84px 0 72px; text-align: center; background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.hero h1 { font-size: clamp(30px, 5vw, 46px); color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; max-width: 760px; margin: 0 auto 18px; }
.hero h1 em { font-style: normal; color: var(--accent-dark); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--accent); color: #fff; padding: 14px 32px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 16px; box-shadow: 0 4px 18px rgba(16,185,129,0.35); border: none; cursor: pointer; font-family: inherit; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { color: var(--ink); padding: 14px 24px; text-decoration: none; font-weight: 600; font-size: 16px; }
.sig-line { width: 220px; margin: 44px auto 0; border-bottom: 2px solid var(--ink); position: relative; }
.sig-line svg { position: absolute; bottom: 2px; left: 20px; }

.badges { display: flex; gap: 12px 28px; justify-content: center; flex-wrap: wrap; padding: 26px 0; color: var(--muted); font-size: 13.5px; }
.badges span::before { content: "✓ "; color: var(--accent-dark); font-weight: 700; }

section.block { padding: 64px 0; }
section.block.white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section-title { text-align: center; font-size: 28px; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; line-height: 1.25; }
p.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.three { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--accent); box-shadow: 0 4px 18px rgba(26,43,74,0.08); }
.card .icon { font-size: 26px; margin-bottom: 12px; }
.card h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card .more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent-dark); }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 44px; }
.step { text-align: center; }
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

.legal-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 28px 32px; max-width: 780px; margin: 0 auto; }
.legal-box h3 { color: var(--ink); font-size: 17px; margin-bottom: 10px; }
.legal-box p { font-size: 14px; color: var(--muted); }
.legal-box p + p { margin-top: 10px; }

/* Questions and answers */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-dark); font-weight: 700; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; color: var(--muted); font-size: 14.5px; }

/* Article pages */
.page-hero { padding: 44px 0 36px; background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); }
.page-hero h1 { font-size: clamp(28px, 4.4vw, 40px); color: var(--ink); letter-spacing: -0.02em; line-height: 1.18; max-width: 780px; }
.page-hero p.lead { font-size: 17.5px; color: var(--muted); max-width: 700px; margin-top: 14px; }
.prose { max-width: 760px; padding: 8px 0 56px; }
.prose h2 { font-size: 24px; color: var(--ink); margin: 40px 0 12px; letter-spacing: -0.01em; line-height: 1.3; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 26px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #f1f5f9; color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: none; }
.prose .note { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 16px 18px; font-size: 15px; margin: 18px 0; }
.prose .warn { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 16px 18px; font-size: 15px; margin: 18px 0; }
.prose pre { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.55; margin: 8px 0 20px; }
.prose code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 0.92em; }
.prose p code, .prose li code, .prose td code { background: #eef2f7; padding: 1px 5px; border-radius: 5px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; max-width: 420px; margin: 8px 0 28px; }
.price-card .amount { font-size: 48px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.price-card .unit { color: var(--muted); margin: 6px 0 18px; }
.price-card ul { list-style: none; margin: 0 0 22px; text-align: left; }
.price-card li { padding: 5px 0 5px 26px; position: relative; font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent-dark); font-weight: 700; }
.cta-band { background: var(--ink); color: #dbe4f2; border-radius: 16px; padding: 30px 28px; text-align: center; margin: 36px 0 0; }
.cta-band h2 { color: #fff; margin: 0 0 8px !important; font-size: 22px !important; }
.cta-band p { margin-bottom: 18px !important; }

section.contact { padding: 24px 0 80px; text-align: center; }
section.contact h2 { font-size: 26px; color: var(--ink); margin-bottom: 12px; }
section.contact p { color: var(--muted); margin-bottom: 26px; }
.contact-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #d5dde8; border-radius: 10px; padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--card); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-form button { margin-top: 4px; }
#contact-status { margin: 6px 0 0; font-size: 14px; min-height: 20px; }

footer { background: var(--ink); color: #b8c4d8; padding: 40px 0 32px; font-size: 13.5px; }
footer .fgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { footer .fgrid { grid-template-columns: 1fr; } }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .flogo { font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 6px; }
footer .flogo .dot { color: var(--accent); }
footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
footer ul { list-style: none; }
footer li { margin-bottom: 6px; }
footer .copy { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 18px; }

/* Language switcher (5.11.2026): in the header where it fits, always in the footer. */
.lang-switch { display: flex; align-items: center; white-space: nowrap; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; }
.lang-switch a, .lang-switch strong { text-decoration: none; }
.lang-switch > * + *::before { content: "·"; display: inline-block; margin: 0 6px; font-weight: 400; }
.nav-right .lang-switch { display: none; color: var(--muted); }
.nav-right .lang-switch a { color: var(--muted); }
.nav-right .lang-switch a:hover { color: var(--accent-dark); }
.nav-right .lang-switch strong { color: var(--ink); font-weight: 800; }
.nav-right .lang-switch > * + *::before { color: #c3cdd9; }
@media (min-width: 600px) { .nav-right .lang-switch { display: flex; } }
footer .copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
footer .copy .lang-switch { font-size: 13px; }
footer .copy .lang-switch a, footer .copy .lang-switch strong { padding: 6px 0; }
footer .copy .lang-switch a { color: #b8c4d8; }
footer .copy .lang-switch a:hover { color: #fff; text-decoration: none; }
footer .copy .lang-switch strong { color: #fff; font-weight: 800; }
