/* panu-automation.com
   Every colour is a token here, redefined once for the dark theme. The accent comes from the logo's green
   (#598803), darkened to #4a7302 so that text and buttons reach 4.5:1 on white; the logo itself keeps its
   own colours. --art-2 is the logo's wheat gold. No inline styles anywhere (the CSP
   refuses them), no web fonts, no url() - an asset referenced from here would bypass the hashed names. */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f5ef;
  --surface: #ffffff;
  --ink: #111a26;
  --ink-2: #2f3b4b;
  --muted: #566273;
  --line: #dfe4d8;
  --accent: #4a7302;
  --accent-strong: #3a5a02;
  --accent-soft: #eef4e2;
  --on-accent: #ffffff;
  --art-1: #598803;
  --art-2: #a8962a;
  --art-3: #dde4d2;
  --badge-coming-bg: #fff3d6;
  --badge-coming-ink: #6a4b00;
  --badge-ok-bg: #e2f4ea;
  --badge-ok-ink: #145c33;
  --banner-bg: #fde68a;
  --banner-ink: #3b2a00;
  --cta-bg: #4a7302;
  --cta-ink: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 25, 40, .06), 0 4px 16px rgba(15, 25, 40, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1118;
    --bg-soft: #111824;
    --surface: #141c28;
    --ink: #e8eef6;
    --ink-2: #c6d0dc;
    --muted: #97a4b5;
    --line: #253142;
    --accent: #a3cf5a;
    --accent-strong: #c4e48c;
    --accent-soft: #1a2610;
    --on-accent: #0e1a03;
    --art-1: #8fbf3a;
    --art-2: #a8962a;
    --art-3: #26301f;
    --badge-coming-bg: #3a2f12;
    --badge-coming-ink: #f6d98c;
    --badge-ok-bg: #133325;
    --badge-ok-ink: #9be2b8;
    --banner-bg: #5c4a10;
    --banner-ink: #fff3c4;
    --cta-bg: #2c4405;
    --cta-ink: #eef6df;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--font);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3, .h3 { font-size: 1.15rem; }
p, ul, ol, dl { margin: 0 0 1rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 20px; }
.prose > * { max-width: 46rem; }
.small { font-size: .92rem; color: var(--muted); }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 40rem; }
.eyebrow {
  font-size: .82rem; font-weight: 650; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: .8rem;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.preview-banner {
  margin: 0; padding: 10px 20px; text-align: center; font-weight: 600; font-size: .95rem;
  background: var(--banner-bg); color: var(--banner-ink);
}

/* ------------------------------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: block; height: 44px; width: auto; }
.brand-name { display: block; height: 17px; width: auto; }
@media (max-width: 400px) { .brand-name { height: 14px; } }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .98rem; padding: 6px 0; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav .lang {
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: .85rem; font-weight: 650;
  letter-spacing: .04em;
}
.menu-toggle {
  margin-left: auto; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 7px 14px; cursor: pointer;
}

@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 8px 16px; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 0 12px; }
  .js .site-nav.open ul { flex-direction: column; gap: 2px; }
  .js .site-nav.open a { font-size: 1.05rem; padding: 8px 0; display: inline-block; }
}
@media (min-width: 761px) {
  .menu-toggle { display: none; }
}

/* ------------------------------------------------------------------------------------------ sections */

.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 44rem; margin-bottom: 32px; }
.section-head p { color: var(--muted); }

.hero { padding: 80px 0 72px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 15em; }
.hero-art { width: 100%; max-width: 440px; justify-self: end; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 300px; justify-self: start; }
}

.page-hero { padding: 64px 0 40px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-bottom: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.button.ghost { background: transparent; color: var(--accent); }
.button.ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }

.trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
         font-size: .95rem; color: var(--ink-2); }
.trust li { position: relative; padding-left: 24px; }
.trust li::before {
  content: ""; position: absolute; left: 3px; top: .45em; width: 11px; height: 6px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.section-lede { margin-top: 28px; font-size: 1.12rem; color: var(--ink-2); max-width: 44rem; }
.problems .card { padding: 20px 24px; border-left: 4px solid var(--art-2); }
.problems .card p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.benefits h3 { color: var(--accent); }
.card .price { font-weight: 700; color: var(--ink); margin: 4px 0 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 650; }
@media (max-width: 560px) {
  table { font-size: .9rem; }
  th, td { padding: 8px 6px; hyphens: manual; overflow-wrap: break-word; }
}
article h2 { margin-top: 2rem; }
.price-tag { margin: 18px 0 0; font-size: 1.05rem; color: var(--ink-2); }
.price-tag strong { color: var(--accent); font-size: 1.2em; }

/* ------------------------------------------------------------------------------------------ cards */

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.products { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (max-width: 900px) { .cards.three { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .cards.two { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card h3 a, .card h2 a { color: var(--ink); text-decoration: none; }
.card h3 a::after, .card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:has(a:hover) { border-color: var(--accent); }
.card p { color: var(--ink-2); }
.card .more { margin-top: 14px; font-weight: 600; color: var(--accent); }
.card-figure { margin: -26px -26px 20px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-figure img { display: block; width: 100%; }

.icon { width: 44px; height: 44px; margin-bottom: 16px; color: var(--accent); }
.icon .stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .fill { fill: currentColor; }

.product { padding-top: 22px; }
.product-icon { width: 56px; height: 56px; border-radius: 13px; margin-bottom: 12px; display: block; }
.badge {
  display: inline-block; margin: 6px 0 0; padding: 3px 10px; border-radius: 999px; font-size: .8rem;
  font-weight: 650; letter-spacing: .02em; background: var(--badge-coming-bg); color: var(--badge-coming-ink);
}
.badge-available { background: var(--badge-ok-bg); color: var(--badge-ok-ink); }

/* ------------------------------------------------------------------------------------------ lists */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 20px;
         grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { counter-increment: step; padding-top: 52px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--accent); background: var(--accent-soft);
}
.steps p { color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.note {
  border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 16px 20px;
  border-radius: 0 10px 10px 0; color: var(--ink-2);
}
.note p:last-child { margin-bottom: 0; }

.support-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.support-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: var(--surface); }
.support-list h3 { margin-bottom: .3em; }
.support-list p { margin: 0; }

.faq dt { font-weight: 650; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); }

.gallery {
  list-style: none; margin: 0; padding: 4px 0 16px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
}
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery img { display: block; border-radius: 12px; border: 1px solid var(--line); }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }

.hero-shot { border-radius: 12px; border: 1px solid var(--line); background: #fff; }

/* ------------------------------------------------------------------------------------------ contact */

.form-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
}
.form-box iframe { display: block; width: 100%; min-height: 640px; border: 0; border-radius: 10px; background: #fff; }
.form-box.loaded .form-intro { display: none; }

.cta { padding: 64px 0; background: var(--cta-bg); color: var(--cta-ink); }
.cta h2 { color: var(--cta-ink); }
.cta p { color: var(--cta-ink); opacity: .92; max-width: 38rem; }
.cta .button { background: var(--cta-ink); color: var(--cta-bg); border-color: var(--cta-ink); }
.cta .button:hover { background: var(--accent-soft); color: var(--accent-strong); }

/* ------------------------------------------------------------------------------------------ hero art */

.art .grid { stroke: var(--art-3); stroke-width: 1; }
.art .trace { fill: none; stroke: var(--art-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art .trace.main { stroke: var(--art-1); stroke-width: 4; }
.art .node { fill: var(--bg); stroke: var(--art-1); stroke-width: 3; }
.art .node.solid { fill: var(--art-1); }
.art .chip { fill: var(--surface); stroke: var(--art-1); stroke-width: 3; }
.art .pin { stroke: var(--art-1); stroke-width: 3; stroke-linecap: round; }

/* ------------------------------------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0 48px; font-size: .95rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; }
.footer-company p { margin: 0 0 4px; color: var(--ink-2); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }

@media print {
  .site-header, .site-footer, .cta, .menu-toggle { display: none; }
  body { font-size: 12pt; }
}

.cards + .section-head, .cards + h2 { margin-top: 48px; }
.form-box.compact iframe { min-height: 240px; }
