/* AKSAL SOFTWARE – shared light theme: tokens, header, product sub-nav, footer and common blocks.
   Page-specific styles stay inline in each page and build on these tokens. */

:root {
  color-scheme: light;
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --text: #0d1726;
  --muted: #536177;
  --quiet: #7a8699;
  --line: #dde3eb;
  --line-strong: #cfd6e0;
  /* Blues derived from the logo (#1d6ebf): websites use the logo blue, Product Owner a deeper navy. */
  --accent: #1d6ebf;
  --accent-strong: #175a9c;
  --accent-soft: #e8f1fb;
  --po: #1e3f8f;
  --po-soft: #e9eef9;
  --web: #1d6ebf;
  --web-soft: #e8f1fb;
  --app: #6b4fd8;
  --app-soft: #efebfd;
  --green: #1a8a4a;
  --green-soft: #e6f5ec;
  --amber: #8a5a00;
  --amber-soft: #fff1cc;
  --red: #c23b3b;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(13, 23, 38, .06), 0 10px 30px rgba(13, 23, 38, .08);
  --shadow-lg: 0 18px 40px rgba(13, 23, 38, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.2; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.container.narrow { --max: 860px; }
/* Header, sub-nav and footer keep the same width on every page, even where the page body is wider. */
.site-header .container, .subnav .container, .site-footer .container { --max: 1120px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 248, 250, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 20px; }

/* The logo is drawn for dark pages ("SOFTWARE" is white): repaint that part dark through a mask of the logo itself. */
.brand-logo { position: relative; display: block; flex: none; width: 190px; }
.brand-logo img { width: 100%; height: auto; }
.brand-logo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 39.5%, var(--text) 39.5%);
  -webkit-mask: url(aksal-logo-darkpage-cropped.png) center / 100% 100% no-repeat;
  mask: url(aksal-logo-darkpage-cropped.png) center / 100% 100% no-repeat;
}

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--muted); }
.nav-links a:not(.button):hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .button { padding: 8px 16px; font-size: 14px; min-height: 0; }

@media (max-width: 860px) {
  .nav { position: relative; flex-wrap: wrap; gap: 0 16px; padding-top: 12px; min-height: 52px; }
  .brand-logo { width: 160px; margin: 8px 0; }
  .nav-links {
    order: 3; width: 100%; gap: 20px; padding: 10px 0 12px;
    overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 14px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  /* Keep Kontakt next to the logo instead of at the end of the scrolling link row. */
  .nav-links .button { position: absolute; top: 10px; right: 0; }
}

/* Product sub-nav (RideAhead, Aksvest, Kalkulator B2B) */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; gap: 24px; min-height: 48px; }
.subnav-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.subnav nav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.subnav nav::-webkit-scrollbar { display: none; }
.subnav nav a:hover, .subnav nav a[aria-current="page"] { color: var(--text); }
.subnav nav a[aria-current="page"] { font-weight: 600; }
.subnav .lang { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.subnav .lang:hover { color: var(--text); }
@media (max-width: 640px) { .subnav-inner { gap: 16px; } }

/* Buttons, badges */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 20px; border: 1px solid transparent; border-radius: 999px;
  background: var(--text); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2;
  cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.ghost, .button.secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.button.accent { background: var(--accent); }
.button.accent:hover { background: var(--accent-strong); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.badge.soon { color: var(--amber); background: var(--amber-soft); }

/* Simple content pages (legal, support, about) */
.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(36px, 5.4vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 18px; }
.page h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; margin: 34px 0 10px; }
.page h3 { font-size: 18px; line-height: 1.3; }
.page p, .page li { color: var(--muted); }
.page strong { color: var(--text); }
.page .panel a, .page p a, .page li a { color: var(--accent); font-weight: 600; }
.page .panel a.button { color: #fff; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 20px; color: var(--muted); max-width: 680px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.panel > h2:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; margin-top: 28px; align-items: start; }
.email { display: inline-block; margin-top: 8px; color: var(--accent); font-size: clamp(22px, 3.6vw, 30px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; }
.faq-item p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .page { padding: 40px 0 64px; } .panel { padding: 22px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; background: var(--bg); }
.site-footer .foot { display: flex; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--text); }

/* Product support, privacy and sample-route pages */
.stack { display: grid; gap: 18px; margin-top: 28px; }
.panel .faq-item { background: var(--bg); padding: 20px; }
.faq-section { scroll-margin-top: 120px; }
.intro-panel, .contact-panel, .summary, .roadmap { background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); border-color: #d3e3f7; }
.summary p { margin: 0; color: var(--text); }
.roadmap ul { margin: 12px 0 0; padding-left: 20px; }
.roadmap li { margin: 6px 0; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin: 7px 0; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.route-card { display: flex; flex-direction: column; gap: 12px; min-height: 100%; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.route-card h3, .route-card p { margin: 0; }
.route-card .button { align-self: flex-start; margin-top: auto; }
.distance { color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) { .route-grid { grid-template-columns: 1fr; } }

/* Articles (Poradnik), industry landing pages and case studies */
.crumbs { font-size: 14px; color: var(--quiet); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.article-head { padding: 56px 0 8px; }
.article-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 16px; }
.article-head .lead { margin-bottom: 14px; }
.meta { font-size: 14px; color: var(--quiet); }
.prose { padding: 24px 0 40px; font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -.015em; margin: 44px 0 12px; }
.prose h3 { font-size: 20px; line-height: 1.3; margin: 28px 0 8px; }
.prose p, .prose li { color: #344155; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--text); }
.table-wrap { margin: 18px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--surface-2); color: var(--text); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody td:first-child { color: var(--text); }
/* Phones: every row becomes a small card; each cell shows its column name from data-label. */
@media (max-width: 640px) {
  .prose thead { display: none; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .prose tbody tr:last-child { border-bottom: 0; }
  .prose tbody td { padding: 3px 0; border: 0; }
  .prose tbody td:first-child { font-size: 17px; padding-bottom: 6px; }
  .prose tbody td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--text); }
}
.tldr { background: var(--accent-soft); border: 1px solid #d3e3f7; border-radius: var(--radius); padding: 20px 24px; margin: 8px 0 8px; }
.tldr p { margin: 0; color: var(--text); }
.tldr .label { display: block; font-weight: 700; margin-bottom: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.cta-box { display: grid; grid-template-columns: 1.5fr auto; gap: 24px; align-items: center; background: var(--text); color: #fff; border-radius: 20px; padding: 32px; margin: 16px 0 56px; }
.cta-box h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.01em; }
.cta-box p { margin: 0; color: #b9c4d4; }
.cta-box .button { background: #fff; color: var(--text); }
.related { padding: 0 0 72px; }
.related h2 { font-size: 22px; margin-bottom: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .card-grid.two { grid-template-columns: 1fr; } }
.link-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.link-card:hover { transform: translateY(-2px); border-color: #c6d8ef; }
.link-card .kicker { font-size: 13px; font-weight: 700; color: var(--accent); }
.link-card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.link-card p { margin: 0; color: var(--muted); font-size: 15px; }
.link-card .go { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; color: var(--accent); }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); margin-bottom: 24px; }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: baseline; margin-bottom: 18px; }
.case-head h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.015em; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tags span { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-grid h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--quiet); margin: 0 0 6px; }
.case-grid p, .case-grid li { color: var(--muted); font-size: 16px; margin: 0; }
.case-grid ul { margin: 0; padding-left: 18px; }
.case .actions { margin-top: 22px; }
@media (max-width: 760px) {
  .cta-box { grid-template-columns: 1fr; padding: 26px 22px; }
  .case { padding: 24px 20px; }
  .case-grid { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
}
/* Buttons and cards inside article text keep their own look. */
.prose a.button, .prose a.link-card { text-decoration: none; }
.prose a.button { color: #fff; }
.prose a.button.ghost { color: var(--text); }
.prose .cta-box a.button { color: var(--text); }
.prose a.link-card { color: inherit; font-weight: inherit; }
/* Phone and hours under the e-mail in dark contact boxes; links readable on the dark CTA box. */
.contact .phone { display: block; margin-top: 8px; color: #fff; font-size: 18px; font-weight: 600; }
.contact .phone:hover { text-decoration: underline; }
.contact .hours { display: block; margin-top: 2px; color: #8f9bb0; font-size: 13px; }
.cta-box p a, .prose .cta-box p a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Contact form inside the dark contact box (homepage, offer page, Product Owner). */
.contact.has-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.contact .alt-contact { margin-top: 26px; display: grid; gap: 2px; }
.contact .alt-contact .label { color: #8f9bb0; font-size: 13px; margin-bottom: 4px; }
.contact .alt-contact a { color: #fff; font-weight: 600; }
.contact .alt-contact a:hover { text-decoration: underline; }
.contact-form { position: relative; background: var(--surface); color: var(--text); border-radius: 16px; padding: 24px; display: grid; gap: 14px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-size: 14px; font-weight: 600; color: var(--text); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; outline: none;
}
.contact-form textarea { min-height: 112px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 110, 191, .16); }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border-color: var(--red); }
.contact-form .hint { font-size: 13px; color: var(--muted); margin: -6px 0 0; }
.contact-form .field-error { font-size: 13px; color: var(--red); min-height: 0; }
.contact-form .field-error:empty { display: none; }
.contact-form .consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.5; }
.contact-form .consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.contact-form .consent a { color: var(--accent); font-weight: 600; }
/* Honeypot for bots: hidden from people and screen readers (aria-hidden, tabindex -1), still in the DOM. */
.contact-form .hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.contact-form button[type="submit"] { justify-self: start; background: var(--accent); color: #fff; border: 0; }
.contact-form button[type="submit"]:hover { background: var(--accent-strong); }
.contact-form button[disabled] { opacity: .6; cursor: wait; transform: none; }
.contact-form .form-status { margin: 0; font-size: 14px; color: var(--muted); }
.contact-form .form-status:empty { display: none; }
.contact-form .form-status.error { color: var(--red); }
.contact-form .form-status.ok { color: var(--green); font-weight: 600; font-size: 16px; }
.contact-form.is-sent .field, .contact-form.is-sent .row, .contact-form.is-sent .consent, .contact-form.is-sent .hint, .contact-form.is-sent button { display: none; }
@media (max-width: 760px) {
  .contact.has-form { grid-template-columns: 1fr; }
  .contact-form { padding: 20px 16px; }
  .contact-form .row { grid-template-columns: 1fr; }
}
