/*
 * Public site stylesheet. Server-rendered pages use only these classes; the
 * console app has its own Tailwind bundle. Brand colour, fonts, corners and
 * the light/dark choice come from System › Appearance, which writes a small
 * <style id="site-theme"> after this file; the values below are the defaults.
 */
:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f4;
  --text: #15181e;
  --muted: #5b6270;
  --border: #e2e5eb;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #e8efff;
  --on-accent: #ffffff;
  --accent-text: #2563eb;
  --dark: #0f1420;
  --on-dark: #eef1f6;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-button: 10px;
  --logo-height: 36px;
  --header-height: 4.25rem;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 8px 24px -12px rgb(16 24 40 / 0.18);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1160px;
  --narrow: 720px;
  --wide: 960px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(3rem, 8vw, 6rem);
  color-scheme: light dark;
}

/* Dark colours: forced by Appearance ("Always dark"), or following the
 * visitor's device unless Appearance says "Always light". */
:root[data-scheme="dark"] {
  --bg: #0d1117;
  --surface: #151b24;
  --surface-2: #1c2430;
  --text: #e8ecf2;
  --muted: #9aa4b2;
  --border: #273141;
  --accent: #6b9bff;
  --accent-strong: #8fb3ff;
  --accent-soft: #172440;
  --on-accent: #0b1020;
  --accent-text: #8fb3ff;
  --dark: #070a10;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  }
:root[data-scheme="light"] { color-scheme: light; }
:root[data-scheme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme="light"]) {
    --bg: #0d1117;
    --surface: #151b24;
    --surface-2: #1c2430;
    --text: #e8ecf2;
    --muted: #9aa4b2;
    --border: #273141;
    --accent: #6b9bff;
    --accent-strong: #8fb3ff;
    --accent-soft: #172440;
    --on-accent: #0b1020;
    --accent-text: #8fb3ff;
    --dark: #070a10;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  }
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body.site {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.container.wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
.meta-list > span + span::before { content: "·"; margin: 0 0.45em; }
.eyebrow {
  margin: 0 0 0.75rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-text);
}
.eyebrow a { color: inherit; text-decoration: none; }
.is-center { text-align: center; }

/* Draft preview banner */
.preview-bar {
  position: sticky; top: 0; z-index: 30; padding: 0.55rem var(--gutter); text-align: center;
  font-size: 0.88rem; font-weight: 600; background: #f59e0b; color: #1f1300;
}
.preview-bar + .site-header { top: 2.3rem; }

/* Header & footer -------------------------------------------------------- */
.site-header {
  position: relative; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.header-inner { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: var(--header-height); }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0;
  font-family: var(--font-heading); font-weight: 750; font-size: 1.15rem; color: var(--text);
  text-decoration: none; letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand-logo { height: var(--logo-height); width: auto; max-width: 14rem; object-fit: contain; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { margin-left: auto; }
.menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; gap: 0.15rem; align-items: center; }
.site-nav .menu-item { position: relative; }
.site-nav a, .site-nav .menu-label {
  display: block; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a.is-active { color: var(--text); background: var(--surface-2); }
.site-nav .has-children > a::after, .site-nav .has-children > .menu-label::after {
  content: ""; display: inline-block; width: 0.38em; height: 0.38em; margin-left: 0.45em; vertical-align: 0.2em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.site-nav .submenu {
  list-style: none; margin: 0; padding: 0.4rem; position: absolute; top: 100%; left: 0; z-index: 40; min-width: 13rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.site-nav .has-children:hover > .submenu, .site-nav .has-children:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: none;
}
.site-nav .submenu a { border-radius: 6px; }
.site-header .header-cta { padding: 0.55rem 1rem; font-size: 0.92rem; white-space: nowrap; }
.site-nav:empty + .header-cta, .site-nav:has(.menu:empty) + .header-cta { margin-left: auto; }

/* Mobile menu: a details element so it works without scripts. */
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem; list-style: none; cursor: pointer;
  font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0.85rem; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
}
.nav-mobile-toggle::-webkit-details-marker { display: none; }
.nav-mobile-icon, .nav-mobile-icon::before, .nav-mobile-icon::after {
  display: block; width: 1.05rem; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s;
}
.nav-mobile-icon { position: relative; }
.nav-mobile-icon::before, .nav-mobile-icon::after { content: ""; position: absolute; left: 0; }
.nav-mobile-icon::before { top: -5px; }
.nav-mobile-icon::after { top: 5px; }
.nav-mobile[open] .nav-mobile-icon { background: transparent; }
.nav-mobile[open] .nav-mobile-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-mobile[open] .nav-mobile-icon::after { transform: translateY(-5px) rotate(-45deg); }
.nav-mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--bg);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 0.5rem var(--gutter) 1.25rem;
  max-height: calc(100vh - var(--header-height)); overflow-y: auto;
}
.nav-mobile-panel a:not(.button), .nav-mobile-panel .menu-label {
  display: block; padding: 0.8rem 0.25rem; color: var(--text); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-panel a.is-active { color: var(--accent-text); }
.nav-mobile-panel .submenu { list-style: none; margin: 0; padding: 0 0 0 1rem; }
.nav-mobile-panel .submenu a { font-weight: 400; color: var(--muted); }
.nav-mobile-panel .button { margin-top: 1rem; width: 100%; }

.site-main { flex: 1; }

.site-footer { margin-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--border); background: var(--surface); font-size: 0.95rem; }
.footer-grid {
  display: grid; gap: 2rem 2.5rem; padding-block: clamp(2.5rem, 6vw, 3.5rem) 2rem;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(10rem, 1fr));
}
.footer-brand .brand { margin-bottom: 0.85rem; }
.footer-brand .brand-logo { height: calc(var(--logo-height) * 0.9); }
.footer-brand p { color: var(--muted); max-width: 30rem; margin: 0 0 0.75rem; }
.footer-column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-heading { margin: 0 0 0.85rem; font-weight: 650; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-heading a, .footer-heading .menu-label { color: var(--text); text-decoration: none; }
.footer-column a { color: var(--muted); text-decoration: none; }
.footer-column a:hover { color: var(--text); }
.social-links { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-link {
  display: inline-flex; align-items: center; padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  color: var(--text); text-decoration: none; background: var(--bg); border: 1px solid var(--border);
}
.social-link:hover { border-color: var(--accent); color: var(--accent-text); }
.contact-list li { position: relative; padding-left: 1.75rem; color: var(--muted); line-height: 1.5; }
.contact-list li > span { display: block; }
.contact-list li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.1rem; height: 1.1rem; background: var(--muted);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.contact-address { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.contact-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }
.contact-whatsapp { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 20l1.3-3.9A8 8 0 1 1 8 19.1L4 20Z'/%3E%3Cpath d='M9 9.5c.5 2.5 2.5 4.5 5 5l1-1.3'/%3E%3C/svg%3E"); }
.contact-email { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E"); }
.contact-hours { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  color: var(--muted); font-size: 0.85rem; padding-block: 1.1rem 2rem;
  /* A divider as wide as the content, not the padded container. */
  background: linear-gradient(var(--border), var(--border)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

/* 404 and maintenance ---------------------------------------------------- */
.not-found { padding-block: clamp(4rem, 12vw, 8rem); }
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }
.not-found .eyebrow { font-size: 0.95rem; }
body.maintenance { justify-content: center; background: linear-gradient(160deg, var(--accent-soft), var(--bg) 70%); }
.maintenance-main { display: grid; place-items: center; min-height: 100vh; padding: var(--gutter); }
.maintenance-card {
  width: 100%; max-width: 34rem; text-align: center; padding: clamp(2rem, 6vw, 3.25rem);
  background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow);
}
.maintenance-card .brand { margin-bottom: 1.75rem; }
.maintenance-card h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.maintenance-card p { color: var(--muted); }
.maintenance-contact { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

/* Sections --------------------------------------------------------------- */
.section { padding-block: var(--section-space); }
.section + .section { padding-top: 0; }
.section-hero + .section, .section.bg-accent + .section, .section.bg-dark + .section { padding-top: var(--section-space); }
.page-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.section-intro { max-width: var(--narrow); margin: 0 auto 2.5rem; text-align: center; color: var(--muted); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); }
.display { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; }

.section-hero { padding-block: clamp(4rem, 10vw, 8rem); }
.section-hero.is-center { text-align: center; }
.section-hero.is-center .button-row { justify-content: center; }
.section-hero.bg-accent { background: linear-gradient(160deg, var(--accent-soft), var(--bg) 75%); }
.section-hero.bg-dark { background: var(--dark); color: var(--on-dark); }
.section-hero.bg-dark .lead, .section-hero.bg-dark .eyebrow { color: color-mix(in srgb, var(--on-dark) 75%, transparent); }
.hero-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.section-hero.is-center .hero-split { text-align: left; }
.section-hero.is-center .hero-split .button-row { justify-content: flex-start; }
.section-hero.is-right { text-align: right; }
.section-hero.is-right .button-row { justify-content: flex-end; }
/* With an image, Right mirrors the layout: image left, text right. */
.section-hero.is-right .hero-split { grid-template-columns: 1fr 1.1fr; }
.section-hero.is-right .hero-split .hero-copy { order: 2; }
.hero-media { margin: 0; }
.hero-media img, .split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.button-row:empty { display: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; border-radius: var(--radius-button); font-weight: 600; font-size: 1rem; line-height: 1.2;
  font-family: inherit; cursor: pointer;
  background: var(--accent); color: var(--on-accent); text-decoration: none; border: 1px solid transparent;
  transition: background-color 0.15s, transform 0.15s;
}
.button:hover { background: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
.button.is-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.is-secondary:hover { background: var(--surface); color: var(--text); }
.bg-dark .button.is-secondary { color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 30%, transparent); }

.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.feature h3 { font-size: 1.15rem; margin: 0.25rem 0 0.5rem; }
.feature .prose { color: var(--muted); font-size: 0.98rem; }
.feature-icon {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm);
  background: var(--accent-soft); font-size: 1.35rem; margin-bottom: 0.75rem;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.is-image-right .split-media { order: 2; }
.split-media { margin: 0; }

.section-stats { background: var(--surface); padding-block: clamp(3rem, 6vw, 4.5rem); }
.section + .section-stats { padding-top: clamp(3rem, 6vw, 4.5rem); margin-bottom: var(--section-space); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin: 0; text-align: center; }
.stat { display: flex; flex-direction: column-reverse; }
.stat dd { margin: 0; font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 750; letter-spacing: -0.03em; color: var(--accent-text); line-height: 1.1; }
.stat dt { color: var(--muted); margin-top: 0.35rem; }

.testimonial {
  margin: 0; padding: 1.5rem; border-radius: var(--radius); background: var(--surface);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
}
.testimonial blockquote { margin: 0; font-size: 1.05rem; }
.testimonial blockquote::before { content: "“"; display: block; font-size: 2.5rem; line-height: 1; color: var(--accent); }
.testimonial figcaption { display: flex; align-items: center; gap: 0.75rem; }
.testimonial figcaption span { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial small { color: var(--muted); }
.avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg);
}
.plan.is-highlighted { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.plan-price { font-size: 2.25rem; font-weight: 750; letter-spacing: -0.03em; margin: 0 0 0.5rem; }
.plan-price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-left: 0.25rem; letter-spacing: 0; }
.plan-features { list-style: none; padding: 0; margin: 1rem 0 1.5rem; flex: 1; }
.plan-features li { padding: 0.35rem 0 0.35rem 1.6rem; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .button { margin-top: auto; }

.cta { border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta.is-accent { background: var(--accent); color: var(--on-accent); }
.cta.is-accent .button { background: var(--on-accent); color: var(--accent-strong); }
.cta.is-accent a:not(.button) { color: inherit; }
.cta.is-subtle { background: var(--surface); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.cta .prose { max-width: 40rem; margin-inline: auto; }
.cta .button-row { justify-content: center; }

/* Contact form */
.contact-form { display: grid; gap: 1.25rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-field { display: grid; gap: 0.4rem; }
.form-field.is-wide { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.92rem; }
.form-field input, .form-field textarea {
  font: inherit; color: var(--text); background: var(--bg); width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.form-field [aria-invalid="true"] { border-color: #dc2626; }
.form-field .field-error { color: #dc2626; font-size: 0.85rem; margin: 0; }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; }
.contact-form .button[disabled] { opacity: 0.6; cursor: progress; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-errors:empty { display: none; }
.form-errors { color: #dc2626; margin: 0; }
.form-result { display: none; border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin-bottom: 1.25rem; }
.form-result:target, .form-result.is-visible { display: block; }
.form-sent { background: color-mix(in srgb, #16a34a 12%, var(--bg)); border: 1px solid color-mix(in srgb, #16a34a 35%, transparent); }
.form-error { background: color-mix(in srgb, #dc2626 10%, var(--bg)); border: 1px solid color-mix(in srgb, #dc2626 30%, transparent); }
.form-sent:target ~ .contact-form, .form-sent.is-visible ~ .contact-form { display: none; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Newsletter sign-up */
.newsletter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; align-items: center;
  padding: clamp(1.75rem, 5vw, 3rem); border-radius: calc(var(--radius) + 6px);
}
.newsletter.is-accent { background: var(--accent-soft); }
.newsletter.is-plain { border: 1px solid var(--border); }
.newsletter.is-dark { background: var(--dark); color: var(--on-dark); }
.newsletter.is-dark p { color: color-mix(in srgb, var(--on-dark) 75%, transparent); }
.newsletter h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.4rem; }
.newsletter-copy p { margin: 0; color: var(--muted); }
.newsletter-form { gap: 0.5rem; }
.newsletter-fields { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.newsletter-fields .form-field { flex: 1 1 12rem; }
.newsletter .form-result { margin-bottom: 0; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

/* Map */
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.map-frame iframe { display: block; width: 100%; border: 0; height: 22rem; }
.map-frame.is-small iframe { height: 16rem; }
.map-frame.is-large iframe { height: 30rem; }
.map-actions { margin: 1rem 0 0; }

/* Lists & cards ---------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.post-card {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg); transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card :is(h2, h3) { font-size: 1.2rem; margin-bottom: 0.5rem; }
.post-card :is(h2, h3) a { color: var(--text); text-decoration: none; }
.post-card :is(h2, h3) a:hover { color: var(--accent-text); }

/* Latest posts block */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
.section-head .section-title { margin-bottom: 0; }
.section-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }
.section-latest-posts .section-intro { margin: -0.5rem 0 1.75rem; color: var(--muted); }
.post-list { display: grid; gap: 1rem; }
.post-list .post-card { flex-direction: row; align-items: stretch; }
.post-list .post-card-image { flex: 0 0 min(34%, 16rem); }
.post-list .post-card-image img { height: 100%; aspect-ratio: auto; min-height: 9rem; }
@media (max-width: 600px) {
  .post-list .post-card { flex-direction: column; }
  .post-list .post-card-image { flex-basis: auto; }
  .post-list .post-card-image img { aspect-ratio: 16 / 9; min-height: 0; }
}
.post-card p:not(.eyebrow):not(.meta) { color: var(--muted); font-size: 0.97rem; flex: 1; }

.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.link-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.link-list a { font-weight: 600; text-decoration: none; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.tag-list a {
  font-size: 0.88rem; padding: 0.3rem 0.75rem; border-radius: 999px; text-decoration: none;
  background: var(--surface-2); color: var(--text);
}
.tag-list a:hover { background: var(--accent-soft); color: var(--accent-text); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); margin-bottom: 1.25rem; padding-top: 1.5rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { opacity: 0.5; }

/* Articles --------------------------------------------------------------- */
.article { padding-bottom: 1rem; }
.article-header { padding-top: clamp(1rem, 4vw, 2.5rem); margin-bottom: 2rem; }
.article-title { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
.article-cover { margin-block: 0 2.5rem; }
.article-cover img { width: 100%; border-radius: var(--radius); }

.summary-box {
  border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--surface);
  border-radius: var(--radius-sm); padding: 1.1rem 1.35rem; margin-bottom: 2rem;
}
.summary-box p:last-child { margin-bottom: 0; }
.summary-label { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.4rem; }

.faq { margin-top: 3rem; }
.faq h2 { font-size: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .prose { padding-bottom: 1.1rem; color: var(--muted); }

.share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.share-links > span { color: var(--muted); font-size: 0.9rem; margin-right: 0.25rem; }
.share-link {
  font-size: 0.88rem; padding: 0.35rem 0.85rem; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); text-decoration: none;
}
.share-link:hover { border-color: var(--accent); color: var(--accent); }

/* Rich text -------------------------------------------------------------- */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.65rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: 0.3em 0; }
.prose li > p { margin: 0; }
.prose blockquote {
  margin: 1.6em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 3px solid var(--accent);
  color: var(--muted); font-style: italic;
}
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.15em 0.4em; border-radius: 5px; }
.prose pre {
  font-family: var(--mono); font-size: 0.88rem; line-height: 1.6; background: var(--dark); color: var(--on-dark);
  padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); overflow-x: auto; margin: 1.6em 0;
}
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose img { border-radius: var(--radius-sm); margin: 1.6em auto; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { color: var(--muted); font-size: 0.9rem; text-align: center; margin-top: 0.5rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.55em 0.8em; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; }
.prose mark { background: #fde68a; color: inherit; padding: 0 0.15em; border-radius: 3px; }
.prose a { font-weight: 500; }
.lead.prose p { color: inherit; }

/* Ads -------------------------------------------------------------------- */
.ad-slot { margin-block: 1.5rem; text-align: center; }
.ad-slot img { margin-inline: auto; border-radius: var(--radius-sm); }
.ad-slot iframe { border: 0; width: 100%; min-height: 120px; }
.ad-creative + .ad-creative { margin-top: 1rem; }

/* Responsive ------------------------------------------------------------- */
/* Hero with a full-width photo behind the text (Hero › Background › Image). */
.hero-cover { position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: min(82vh, 760px); display: flex; align-items: center; padding-block: clamp(5rem, 12vw, 9rem); }
.hero-cover-media { position: absolute; inset: 0; z-index: -2; }
.hero-cover-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-cover::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(8 10 16 / 0.88) 0%, rgb(8 10 16 / 0.62) 45%, rgb(8 10 16 / 0.15) 100%); }
.hero-cover-inner { width: 100%; }
.hero-cover .hero-copy { max-width: 38rem; }
.hero-cover.is-center .hero-copy { margin-inline: auto; }
.hero-cover.is-right .hero-copy { margin-left: auto; }
.hero-cover.is-right::before { background: linear-gradient(260deg, rgb(8 10 16 / 0.88) 0%, rgb(8 10 16 / 0.62) 45%, rgb(8 10 16 / 0.15) 100%); }
.hero-cover.is-center::before { background: rgb(8 10 16 / 0.6); }
.hero-cover .display { color: #fff; text-wrap: balance; }
.hero-cover .lead { color: rgb(255 255 255 / 0.82); }
.hero-cover .eyebrow { color: #fff; display: inline-block; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 85%, transparent); letter-spacing: 0.08em; }
.hero-cover .button.is-secondary { color: #fff; border-color: rgb(255 255 255 / 0.45); background: rgb(255 255 255 / 0.06); backdrop-filter: blur(4px); }
.hero-cover .button.is-secondary:hover { background: rgb(255 255 255 / 0.16); color: #fff; }

/* Numbers as a brand-coloured band. */
.section-stats { background: var(--accent); color: var(--on-accent); }
.section-stats .section-title { color: var(--on-accent); }
.section-stats .stat dd { color: var(--on-accent); }
.section-stats .stat dt { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.section-hero + .section-stats { padding-top: clamp(3rem, 6vw, 4.5rem); }

/* Product cards. */
.products-head { text-align: center; margin-bottom: 0.5rem; }
.products-head .section-title { margin-top: 0.25rem; }
.products-head + .section-intro { margin-top: 0.5rem; }
.products-head:not(:has(+ .section-intro)) { margin-bottom: 2.5rem; }
.product-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.product-media { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 40%, var(--bg), var(--surface-2)); }
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.35s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800;
  letter-spacing: 0.2em; color: color-mix(in srgb, var(--accent) 35%, transparent); font-size: 1.5rem; }
.product-badge { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.25rem 0.65rem; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 0.78rem; font-weight: 700; }
.product-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.product-name { font-size: 1.15rem; margin: 0; }
.product-name a { color: inherit; text-decoration: none; }
.product-name a::after { content: ""; position: absolute; inset: 0; }
.product-card { position: relative; }
.product-subtitle { margin: 0; color: var(--muted); font-size: 0.93rem; }
.product-foot { margin-top: auto; padding-top: 0.75rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.product-price { margin: 0; font-weight: 750; font-size: 1.1rem; color: var(--accent-text); }
.product-link { position: relative; z-index: 1; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.button-row.is-center { justify-content: center; margin-top: 2.25rem; }

@media (max-width: 900px) {
  .site-nav .menu { gap: 0; }
  .feature-grid, .feature-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-cover::before { background: linear-gradient(180deg, rgb(8 10 16 / 0.55), rgb(8 10 16 / 0.85)); }
  .hero-split, .split { grid-template-columns: 1fr; }
  .section-hero.is-right .hero-split { grid-template-columns: 1fr; }
  .section-hero.is-right .hero-split .hero-copy { order: 0; }
  .split.is-image-right .split-media { order: 0; }
}
@media (max-width: 600px) {
  body.site { font-size: 1rem; }
  .feature-grid, .feature-grid.cols-2, .feature-grid.cols-4 { grid-template-columns: 1fr; }
  .product-grid, .product-grid.cols-2, .product-grid.cols-4 { gap: 0.9rem; }
  .product-body { padding: 0.9rem; }
  .product-foot { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  /* Phones: the photo fills the screen behind the text, so read left to right. */
  .hero-cover.is-right { text-align: left; }
  .hero-cover.is-right .button-row { justify-content: flex-start; }
  .hero-cover.is-right .hero-copy { margin-left: 0; }
  .header-inner { padding-block: 0.6rem; flex-wrap: nowrap; }
  .site-nav, .header-inner > .header-cta { display: none; }
  .nav-mobile { display: block; }
  .header-search { margin-left: auto; }
  .header-search + .nav-mobile, .header-search + .header-cta + .nav-mobile { margin-left: 0.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Header search button (Settings › General › Search). */
.header-search {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none;
  border-radius: var(--radius-sm); color: var(--muted);
}
.header-search:hover { color: var(--text); background: var(--surface); }
.site-nav:empty + .header-search, .site-nav:has(.menu:empty) + .header-search { margin-left: auto; }
.search-icon {
  position: relative; width: 0.95rem; height: 0.95rem; border: 2px solid currentColor; border-radius: 50%;
  margin: -0.15rem 0.15rem 0 0;
}
.search-icon::after {
  content: ""; position: absolute; width: 2px; height: 0.45rem; background: currentColor; border-radius: 1px;
  right: -0.32rem; bottom: -0.42rem; transform: rotate(-45deg);
}

/* Search page */
.search-form { display: flex; gap: 0.6rem; max-width: 40rem; margin: 0 0 1.5rem; }
.search-form input {
  flex: 1; min-width: 0; font: inherit; padding: 0.7rem 0.9rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
}
.search-count { margin: 0 0 1.5rem; }
.search-others { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-bottom: 2.5rem; }
.search-group { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 0.5rem; }
.search-others .tag-list { margin: 0; }
.page-count { font-size: 0.55em; font-weight: 500; color: var(--muted); vertical-align: middle; margin-left: 0.4rem; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem; margin: 2.5rem 0 0; }
.pagination-pages { display: flex; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.pagination-pages a, .pagination-pages span {
  display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 0.5rem;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--text); font-weight: 500;
}
.pagination-pages a:hover { background: var(--surface); }
.pagination-pages .is-current { background: var(--accent); color: var(--on-accent); }
.pagination-gap { color: var(--muted); align-self: center; padding: 0 0.25rem; }
.pagination-step { font-weight: 600; text-decoration: none; padding: 0.45rem 0.6rem; border-radius: var(--radius-sm); }
.pagination-step:hover { background: var(--surface); }
.pagination-step.is-disabled { color: var(--muted); opacity: 0.5; }

/* Author page and byline */
.author-header { display: flex; gap: 1.5rem; align-items: flex-start; margin: 0 0 2.5rem; }
.author-header .page-title { margin: 0.2rem 0 0.6rem; }
.author-avatar { width: 96px; height: 96px; flex: none; border-radius: 50%; object-fit: cover; }
.author-avatar.is-initial {
  display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-text);
  font-size: 2.2rem; font-weight: 700;
}
.author-bio p { margin: 0 0 0.5rem; color: var(--muted); max-width: 46rem; }
.byline a { color: inherit; font-weight: 600; }
@media (max-width: 600px) {
  .author-header { flex-direction: column; gap: 1rem; }
  .author-avatar { width: 72px; height: 72px; }
}

/* Related posts */
.related-posts { padding-top: 0; }

/* Comments */
.comments { padding-top: 1rem; }
.comment-list, .comment-replies { list-style: none; padding: 0; margin: 0; }
.comment-thread { padding: 1.25rem 0; border-top: 1px solid var(--border); }
.comment-replies { margin: 1rem 0 0 1.25rem; padding-left: 1.25rem; border-left: 2px solid var(--border); }
.comment-replies li + li { margin-top: 1rem; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
.comment-avatar {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 0.9rem;
}
.comment-author { font-weight: 650; }
.comment-badge {
  font-size: 0.7rem; font-weight: 600; padding: 0.1rem 0.45rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); vertical-align: 0.1em;
}
.comment-date { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.comment-body { margin: 0.5rem 0 0 2.7rem; overflow-wrap: anywhere; }
.comment-body p { margin: 0 0 0.6rem; }
.comment-reply {
  display: none; margin: 0.25rem 0 0 2.7rem; padding: 0.2rem 0; border: 0; background: none;
  font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--accent-text); cursor: pointer;
}
.has-comment-replies .comment-reply { display: inline-block; }
.comment-form-wrap { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.comment-thread .comment-form-wrap { margin: 1rem 0 0 2.7rem; }
.comment-form-wrap h3 { margin-top: 0; }
.comment-replying { margin: 0 0 1rem; font-weight: 600; }
.link-button { border: 0; background: none; padding: 0; font: inherit; font-weight: 500; color: var(--accent-text); cursor: pointer; text-decoration: underline; }
.form-hint { font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0; }

/* Newsletter confirm / unsubscribe pages */
.message-page form { margin: 1.5rem 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .ad-slot, .share-links, .skip-link { display: none; }
  body.site { background: #fff; color: #000; }
}
