/* ==========================================================================
   E-Kiosk – public sales page (e-kiosk.nl)
   Same grey design language as the CMS (tokens copied from app.css).
   One accent (#3b6ef0): primary CTA and key highlights only.
   Mobile first, max-width 1120px container.
   ========================================================================== */

/* The `hidden` attribute must win from any display rule below, or an element
   that is hidden in the markup stays on screen anyway. */
[hidden] { display: none !important; }


:root {
    --bg: #f3f4f6;
    --surface: #ffffff;
    --surface-2: #f9fafb;
    --surface-3: #f1f2f4;
    --border: #e4e6ea;
    --border-strong: #cfd3d9;
    --text: #17191c;
    --text-2: #43484f;
    --muted: #7b828b;
    --muted-2: #a2a8b0;

    --charcoal: #1a1c20;
    --charcoal-2: #202329;
    --charcoal-border: #2a2d33;
    --charcoal-text: #aab0b8;

    --primary: #1f2226;
    --primary-hover: #34383e;
    --accent: #3b6ef0;
    --accent-hover: #2f5fd6;
    --accent-soft: #e8eefc;
    --focus: rgba(59, 110, 240, .35);
    --success: #16a34a;
    --success-soft: #e7f7ec;

    --radius: 6px;
    --radius-lg: 8px;
    --shadow: 0 1px 2px rgba(16, 18, 22, .05), 0 0 0 1px rgba(16, 18, 22, .03);
    --shadow-md: 0 6px 20px rgba(16, 18, 22, .08);
    --shadow-lg: 0 12px 32px rgba(16, 18, 22, .18);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

    --header-h: 60px;
    --container: 1120px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body.site {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; color: var(--text); line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus);
    border-radius: var(--radius);
}
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.s-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.s-container-narrow { max-width: 760px; }
.s-icon { width: 20px; height: 20px; flex: 0 0 auto; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 8px 12px; background: var(--primary); color: #fff; border-radius: var(--radius);
    font-size: 14px; font-weight: 500; transition: top .12s;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.s-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 16px;
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: var(--surface); color: var(--text);
    font: inherit; font-size: 14px; font-weight: 500; line-height: 1;
    white-space: nowrap; cursor: pointer;
    transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.s-btn:hover { background: var(--surface-2); }
.s-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.s-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.s-btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.s-btn-secondary:hover { border-color: var(--text-2); background: var(--surface); }
.s-btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.s-btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.s-btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.s-btn-block { width: 100%; }

.s-link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 500; color: var(--text-2);
    padding: 8px 4px;
}
.s-link-arrow::after { content: "\2192"; transition: transform .12s; }
.s-link-arrow:hover { color: var(--text); }
.s-link-arrow:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.s-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .15s, box-shadow .15s;
}
.s-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 12px rgba(16, 18, 22, .06); }
.s-header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.s-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--text); }
.s-brand-name { white-space: nowrap; }
.s-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 7px;
    background: var(--charcoal); color: #fff; font-weight: 700; font-size: 15px;
}
.s-nav { display: none; margin-left: 24px; gap: 4px; }
.s-nav a { padding: 8px 10px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text-2); }
.s-nav a:hover { background: var(--surface-3); color: var(--text); }
.s-header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.s-header-actions .s-btn { height: 36px; padding: 0 14px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.s-hero { padding: 48px 0 40px; background: var(--surface); }
.s-hero-grid { display: grid; gap: 36px; align-items: center; }
.s-hero-copy { min-width: 0; }
.s-hero-title { font-size: 34px; letter-spacing: -.025em; line-height: 1.12; max-width: 14ch; }
.s-hero-sub { margin-top: 16px; font-size: 18px; color: var(--text-2); max-width: 36ch; }
.s-url {
    display: inline-block;
    padding: 1px 7px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92em;
    white-space: nowrap;
}
.s-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; }
.s-trust { margin-top: 16px; font-size: 13px; color: var(--muted); }
.s-hero-art { min-width: 0; }
.s-illustration {
    width: 100%; height: auto;
    background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 20px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.s-section { padding: 64px 0; }
.s-section-alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.s-title { font-size: 26px; letter-spacing: -.02em; }
.s-lead { margin-top: 10px; font-size: 16px; color: var(--text-2); max-width: 56ch; }
.s-title + .s-steps, .s-title + .s-usps, .s-title + .s-faq { margin-top: 32px; }
.s-lead + .s-cards, .s-lead + .s-pricing { margin-top: 32px; }

/* Steps */
.s-steps { display: grid; gap: 20px; counter-reset: step; }
.s-step {
    position: relative;
    padding: 22px 22px 22px 22px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.s-step-num {
    position: absolute; top: 16px; right: 16px;
    font-size: 12px; font-weight: 600; color: var(--muted-2); letter-spacing: .06em;
}
.s-step-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--surface-3); color: var(--text-2);
}
.s-step-title { margin-top: 16px; font-size: 17px; overflow-wrap: anywhere; }
.s-step-text { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }

/* Module cards */
.s-cards { display: grid; gap: 16px; }
.s-card {
    display: flex; flex-direction: column;
    padding: 22px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.s-card-soon .s-card-icon, .s-card-soon .s-card-title { color: var(--text-2); }
.s-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--surface-3); color: var(--text);
}
.s-tag {
    display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
    background: var(--surface-3); color: var(--muted);
}
.s-tag-live { background: var(--success-soft); color: #15803d; }
.s-card-title { margin-top: 16px; font-size: 18px; }
.s-card-text { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }
.s-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.s-list li { display: flex; align-items: flex-start; gap: 9px; color: var(--text-2); }
.s-list .s-icon { width: 17px; height: 17px; margin-top: 3px; color: var(--text); }
.s-card-soon .s-list .s-icon { color: var(--muted-2); }

/* USPs */
.s-usps { display: grid; gap: 28px 24px; }
.s-usp { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.s-usp-icon {
    grid-row: 1 / span 2;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--surface-3); color: var(--text-2);
}
.s-usp-title { font-size: 16px; align-self: end; }
.s-usp-text { margin-top: 4px; font-size: 14.5px; color: var(--text-2); }

/* Pricing */
.s-pricing { display: grid; gap: 16px; align-items: stretch; }
.s-tier {
    position: relative; display: flex; flex-direction: column;
    padding: 26px 24px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.s-tier-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.s-tier-flag {
    position: absolute; top: -12px; left: 24px;
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
    background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.s-tier-name { font-size: 18px; }
.s-tier-sub { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.s-tier-price { margin-top: 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; }
.s-tier-amount { font-size: 38px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.s-tier-unit { font-size: 13.5px; color: var(--muted); }
.s-tier .s-list { margin-top: 20px; flex: 1 1 auto; }
.s-tier .s-btn { margin-top: 24px; }
.s-note { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* FAQ */
.s-faq { border-top: 1px solid var(--border); }
.s-faq-item { border-bottom: 1px solid var(--border); }
.s-faq-q {
    position: relative; display: block; list-style: none;
    padding: 16px 40px 16px 0; cursor: pointer;
    font-size: 16px; font-weight: 500; color: var(--text);
}
.s-faq-q::-webkit-details-marker { display: none; }
.s-faq-q::after {
    content: ""; position: absolute; right: 8px; top: 50%;
    width: 9px; height: 9px; margin-top: -7px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); transition: transform .15s;
}
.s-faq-item[open] > .s-faq-q::after { transform: rotate(225deg); margin-top: -2px; }
.s-faq-q:hover { color: var(--accent); }
.s-faq-a { padding: 0 40px 18px 0; font-size: 15px; color: var(--text-2); }

/* CTA band */
.s-cta-band { background: var(--charcoal); color: #fff; padding: 56px 0; }
.s-cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.s-cta-title { color: #fff; font-size: 26px; letter-spacing: -.02em; }
.s-cta-text { margin-top: 8px; color: var(--charcoal-text); font-size: 15px; }

/* Footer */
.s-footer { background: var(--charcoal-2); color: var(--charcoal-text); border-top: 1px solid var(--charcoal-border); padding: 22px 0; font-size: 13.5px; }
.s-footer-inner { display: flex; flex-direction: column; gap: 10px; }
.s-footer-copy { opacity: .8; }
.s-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.s-footer-links a { color: var(--charcoal-text); padding: 2px 0; }
.s-footer-links a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
    .s-container { padding: 0 28px; }
    .s-hero { padding: 64px 0 56px; }
    .s-hero-title { font-size: 42px; }
    .s-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .s-usps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .s-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .s-footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 900px) {
    .s-nav { display: flex; }
    .s-hero { padding: 88px 0 72px; }
    .s-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
    .s-hero-title { font-size: 48px; }
    .s-section { padding: 88px 0; }
    .s-title { font-size: 30px; }
    .s-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .s-pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .s-illustration { padding: 28px; }
}
@media (min-width: 1100px) {
    .s-usps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
@media print {
    .s-header, .s-cta-band, .skip-link { display: none; }
    .s-section-alt { background: none; }
}
