:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --white: #ffffff;
  --ink: #182f38;
  --muted: #4c6269;
  --teal: #16665c;
  --teal-light: #e6efea;
  --line: #d7ded8;
  --focus: #a44418;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-underline-offset: 0.25em; }
button:disabled { cursor: not-allowed; opacity: 1; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { background: #c5e4d9; color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
p { overflow-wrap: break-word; }
.container { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.skip-link { position: absolute; top: 0.75rem; left: 1rem; z-index: 10; padding: 0.75rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.1rem; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.9rem; font-weight: 750; letter-spacing: -0.08em; text-decoration: none; }
.wordmark span { color: var(--teal); }
nav { width: 100%; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin: 0; padding: 0; list-style: none; }
.nav-list li:last-child { margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0.35rem 0; border: 0; background: transparent; color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
a.nav-link:hover { text-decoration: underline; }
.nav-link:disabled { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 52px; max-width: 100%; padding: 0.85rem 1.25rem; border: 1px solid var(--teal); border-radius: 5px; background: var(--teal); color: var(--white); text-align: center; font-weight: 650; line-height: 1.4; }
.button span { font-size: 1.2em; }
.button-small { min-height: 44px; padding: 0.65rem 0.85rem; font-size: 0.9375rem; }
.eyebrow { color: var(--teal); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.075em; text-transform: uppercase; }
.hero { padding-block: clamp(2.75rem, 6vw, 5.75rem); }
.hero-grid { display: grid; gap: 2.75rem; align-items: center; }
.hero-copy, .call-journey { min-width: 0; }
h1 { max-width: 13ch; margin-top: 1.1rem; font-size: clamp(2.5rem, 4.6vw, 3.75rem); font-weight: 700; letter-spacing: -0.055em; line-height: 1.07; }
h1 span { color: var(--teal); }
.hero-description { max-width: 37rem; margin-top: 1.5rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }
.hero-action { margin-top: 1.75rem; }
.trial-note { max-width: 33rem; margin-top: 0.85rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.trial-note span { margin-inline: 0.15rem; }
.supporting-identity { margin-top: 1.25rem; color: var(--muted); font-size: 0.9375rem; }
.call-journey { padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: #eeefe7; }
.journey-topline { margin-bottom: 1.25rem; color: var(--muted); font-size: 1rem; font-weight: 600; }
.journey-list { display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.journey-step { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.85rem; padding: 1rem; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.journey-step > div { flex: 1 1 10rem; min-width: 0; }
.journey-step:not(:last-child)::after { content: '↓'; position: absolute; top: 100%; left: 1rem; width: 2.5rem; height: 1.75rem; color: var(--teal); text-align: center; font-size: 1.25rem; line-height: 1.4; }
/* Arrows are decorative; the ordered list conveys the sequence. */
.journey-step:not(:last-child)::after { content: '↓' / ''; }
.journey-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--paper); color: var(--teal); }
.journey-icon svg { width: 1.35rem; height: 1.35rem; }
.journey-step strong { display: block; font-size: 1.125rem; line-height: 1.35; }
.journey-step p { margin-top: 0.35rem; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.deputy-step { background: var(--ink); border-color: var(--ink); color: var(--white); }
.deputy-step p { color: #d0e2db; }
.deputy-mark { border-radius: 6px; background: #d1e8de; color: var(--ink); font-size: 1.35rem; font-weight: 750; letter-spacing: -0.08em; }
.summary-step { background: var(--teal-light); border-color: #b9ccc1; }
.summary-step .journey-icon { background: #d0e2d7; }
figcaption { margin-top: 1.1rem; color: var(--ink); text-align: center; font-size: 0.9375rem; }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
h2 { max-width: 20ch; font-size: clamp(2rem, 3.1vw, 2.65rem); font-weight: 650; letter-spacing: -0.04em; }
.section .eyebrow { margin-bottom: 1rem; }
.problem { border-block: 1px solid #c6d5ca; background: #e6ebe2; }
.problem .section-intro > div { padding-left: 1.25rem; border-left: 4px solid var(--teal); }
.problem h2 { font-size: clamp(2.125rem, 3.4vw, 2.875rem); }
.problem h2 span { color: var(--teal); }
.section-intro { display: grid; gap: 1.25rem; }
.section-intro > p { max-width: 34rem; color: var(--muted); font-size: 1.0625rem; }
.problem-flow { display: grid; gap: 0; margin: 2rem 0 0; padding: 0; list-style: none; }
.problem-flow li { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; padding-block: 0.75rem 1rem; }
.problem-flow li:not(:last-child)::after { content: ''; position: absolute; top: 3rem; bottom: -0.75rem; left: 1.0625rem; width: 2px; background: #afc3b6; }
.flow-number { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 1px solid #afc3b6; border-radius: 50%; background: var(--paper); color: var(--teal); font-size: 0.9375rem; font-weight: 650; }
.problem-flow h3 { padding-top: 0.2rem; font-size: 1.125rem; font-weight: 650; line-height: 1.4; }
.problem-flow p { margin-top: 0.4rem; max-width: 32ch; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.how-intro { max-width: 47rem; }
.how-intro h2 { max-width: 24ch; }
.how-intro > p:last-child { margin-top: 1.25rem; max-width: 43rem; color: var(--muted); font-size: 1.0625rem; }
.how-steps { display: grid; gap: 1.75rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.how-steps li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); align-items: start; gap: 1rem; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid #b9ccc1; border-radius: 50%; background: var(--teal-light); color: var(--teal); font-size: 0.9375rem; font-weight: 650; }
.how-steps h3 { max-width: 27ch; padding-top: 0.45rem; font-size: 1.125rem; font-weight: 650; line-height: 1.5; }

@media (min-width: 40rem) {
  .container { width: min(100% - 4rem, 74rem); }
  nav { width: auto; }
  .nav-list { gap: 1.5rem; }
  .nav-list li:last-child { margin-left: 0; }
  h1 { max-width: 17ch; }
  .call-journey { padding: 1.75rem; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); }
  .section-intro { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: end; }
  .problem-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
  .problem-flow li { display: block; padding: 0; }
  .problem-flow li:not(:last-child)::after { top: 1.0625rem; bottom: auto; left: 3rem; width: calc(100% - 2rem); height: 2px; }
  .problem-flow h3 { margin-top: 0.85rem; padding-top: 0; }
  .how-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .how-steps li { display: block; padding-top: 1.5rem; border-top: 1px solid var(--line); }
  .how-steps h3 { margin-top: 1rem; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Remaining homepage sections: shared tokens and scoped layouts. */
.product-intro { min-width: 0; }
.product-intro > p:not(.eyebrow) { max-width: 42rem; margin-top: 1.25rem; color: var(--muted); font-size: 1.0625rem; }
.intelligence { border-block: 1px solid var(--line); background: #eef1eb; }
.intelligence-demo { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 2rem; border: 1px solid #c6d5ca; border-radius: 12px; overflow: hidden; }
.enquiry-example { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--ink); color: var(--white); }
.example-label { color: #d0e2db; font-size: 0.9375rem; font-weight: 600; }
.enquiry-example blockquote { margin: 1.25rem 0; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.35; }
.enquiry-example > p:last-of-type { max-width: 29ch; color: #d0e2db; }
.example-connector { display: block; margin-top: 1.5rem; color: #d0e2db; font-size: 1.75rem; }
.enquiry-understanding { min-width: 0; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--white); }
.enquiry-understanding h3 { font-size: 1.1875rem; line-height: 1.4; }
.understanding-list { margin: 1.25rem 0 0; }
.understanding-list > div { padding-block: 0.8rem; border-top: 1px solid var(--line); }
.understanding-list dt { color: var(--teal); font-weight: 650; }
.understanding-list dd { margin: 0.25rem 0 0; color: var(--muted); }
.intelligence-close { max-width: 42rem; margin: 1.75rem auto 0; color: var(--teal); text-align: center; font-size: 1.1875rem; font-weight: 650; line-height: 1.5; }
.outcome-grid, .control-grid, .pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.whatsapp-outcome .outcome-note { padding-left: 1rem; border-left: 3px solid #afc3b6; font-size: 1rem; }
.notification-demo { min-width: 0; max-width: 36rem; width: 100%; margin-inline: auto; border: 1px solid #c6d5ca; border-radius: 12px; overflow: hidden; background: var(--white); }
.notification-header { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.25rem; background: var(--teal); color: var(--white); }
.notification-mark { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #d1e8de; color: var(--ink); font-size: 1.375rem; font-weight: 750; letter-spacing: -0.08em; }
.notification-header strong { display: block; font-size: 1.125rem; }
.notification-header div > span { display: block; font-size: 0.9375rem; }
.notification-chat { padding: 1.25rem; background: #e6ebe2; }
.notification-message { position: relative; padding: 1.25rem; border: 1px solid #d7ded8; border-radius: 0 9px 9px 9px; background: var(--white); }
.notification-message::before { content: ''; position: absolute; top: -1px; left: -9px; width: 10px; height: 12px; background: var(--white); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.notification-type { margin-bottom: 1rem; color: var(--teal); font-size: 1rem; font-weight: 750; line-height: 1.5; }
.notification-fields { margin: 0; }
.notification-fields > div + div { margin-top: 0.65rem; }
.notification-fields dt { font-weight: 650; }
.notification-fields dd { margin: 0.15rem 0 0; line-height: 1.5; }
.notification-fields .notification-group { margin-top: 1.1rem; }
.notification-fields .notification-urgency { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.notification-urgency dd { color: var(--teal); font-weight: 650; }
.notification-demo figcaption { margin: 0; padding: 0.8rem 1rem; color: var(--muted); }
.customer-control { border-top: 1px solid var(--line); }
.customer-control .control-assurance { color: var(--teal); font-weight: 650; font-size: 1.1875rem; }
.control-points > div { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.control-points > div:first-child { border-top: 1px solid var(--line); }
.control-points h3 { font-size: 1.1875rem; line-height: 1.4; }
.control-points p { margin-top: 0.5rem; color: var(--muted); }
.pricing { background: #e6ebe2; border-block: 1px solid #c6d5ca; }
.price-panel { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid #b9ccc1; border-radius: 12px; background: var(--paper); }
.trial-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; }
.trial-price strong { font-size: clamp(3.5rem, 6vw, 4.5rem); line-height: 1.1; font-weight: 650; letter-spacing: -0.055em; }
.trial-price span { font-size: 1.25rem; }
.continuation-price { margin-top: 1rem; font-size: 1.1875rem; }
.continuation-price strong { color: var(--teal); }
.price-reassurance { margin: 1.5rem 0; padding-left: 1.25rem; color: var(--muted); }
.price-reassurance li + li { margin-top: 0.35rem; }
.price-reassurance li::marker { color: var(--teal); }
.fair-usage { margin-top: 1rem; color: var(--muted); font-size: 0.9375rem; }
.faq-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 2rem; }
.faq-item { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.faq-item h3 { max-width: 37ch; font-size: 1.1875rem; font-weight: 650; line-height: 1.4; }
.faq-item p { max-width: 65ch; margin-top: 0.7rem; color: var(--muted); }
.final-cta { background: var(--ink); color: var(--white); }
.final-inner { max-width: 51rem; text-align: center; }
.final-cta .eyebrow { color: #d0e2db; }
.final-cta h2 { max-width: 25ch; margin-inline: auto; }
.final-message { max-width: 39rem; margin: 1.25rem auto 1.75rem; color: #d0e2db; font-size: 1.0625rem; }
.final-cta .button { border-color: #d1e8de; background: #d1e8de; color: var(--ink); }
.final-cta .button:focus-visible { outline-color: var(--white); }
.final-reassurance { margin-top: 1.1rem; color: #d0e2db; font-size: 0.9375rem; }
.site-footer { padding-block: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-inner > div > p { margin-top: 0.35rem; color: var(--muted); font-size: 0.9375rem; }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0.5rem; }
.footer-link:hover { color: var(--teal); }
.footer-nav { width: auto; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }

@media (min-width: 40rem) {
  .understanding-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; }
  .understanding-list dd { margin: 0; }
  .notification-chat { padding: 1.5rem; }
  .notification-fields > div:not(.notification-group) { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
  .notification-fields > div:not(.notification-group) dd { margin: 0; }
}

@media (min-width: 64rem) {
  .intelligence-demo { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .enquiry-example { display: flex; flex-direction: column; justify-content: center; }
  .example-connector { transform: rotate(-90deg); align-self: flex-start; }
  .outcome-grid, .control-grid, .pricing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; }
}

/* Shared trial-request dialog. Native showModal() makes the background inert. */
html.trial-open { overflow: hidden; }
body.trial-open { position: fixed; width: 100%; overflow: hidden; }
[data-trial-open]:enabled, .trial-submit, .trial-close { cursor: pointer; }
.button:enabled:hover { filter: brightness(0.94); }
.trial-dialog { width: min(30rem, calc(100% - 1.5rem)); max-width: none; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.trial-dialog::backdrop { background: rgb(15 30 36 / 65%); }
.trial-dialog-inner { position: relative; padding: 1rem; }
.trial-dialog-toolbar { position: absolute; top: 0.75rem; right: 0.75rem; display: flex; justify-content: flex-end; }
.trial-close { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font-weight: 600; }
.trial-close span { font-size: 1.4rem; line-height: 1; }
.trial-dialog h2 { max-width: none; padding-right: 3rem; font-size: clamp(1.625rem, 4vw, 1.75rem); }
.trial-intro { margin-top: 0.65rem; color: var(--muted); line-height: 1.5; }
.trial-field { margin-top: 0.65rem; }
.trial-field label { display: block; margin-bottom: 0.25rem; font-weight: 650; }
.trial-field input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid #687d80; border-radius: 5px; background: var(--white); color: var(--ink); font: inherit; scroll-margin-block: 1rem; }
.trial-field input[aria-invalid="true"] { border: 2px solid #a12f24; }
.trial-field-error { margin-top: 0.4rem; color: #a12f24; font-size: 0.9375rem; }
.trial-validation-status { color: #a12f24; font-weight: 600; }
.trial-validation-status:not(:empty) { margin-top: 1rem; }
.trial-submit { width: 100%; min-height: 48px; margin-top: 0.85rem; padding-block: 0.65rem; }
.trial-consent { margin-top: 0.55rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.trial-consent a { display: inline-block; padding-block: 0.25rem; }
.trial-reassurance { margin-top: 0.4rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.trial-result:not(:empty) { margin-top: 1rem; padding: 1rem; border: 1px solid #b9ccc1; border-radius: 7px; background: var(--teal-light); }
.trial-result h3 { font-size: 1.25rem; line-height: 1.4; }
.trial-result p { margin-top: 0.5rem; }
@media (min-width: 40rem) { .trial-dialog-inner { padding: 1.25rem; } }

/* Netlify submission feedback, using the existing modal typography. */
.trial-submission-status:not(:empty) { margin-top: 1rem; color: var(--muted); }
.trial-submit:disabled { cursor: wait; opacity: 0.75; }
.trial-validation-status a { display: inline-block; padding-block: 0.25rem; }

/* Legal documents share the site palette, navigation and keyboard focus treatment. */
.legal-document { width: min(100% - 2.5rem, 48rem); margin-inline: auto; padding-block: clamp(2rem, 5vw, 4rem); font-size: 1.0625rem; line-height: 1.75; }
.legal-document h1 { max-width: none; margin-top: 0; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; }
.legal-document h2 { max-width: none; margin-top: 2rem; font-size: clamp(1.375rem, 2.5vw, 1.75rem); line-height: 1.3; letter-spacing: -0.025em; }
.legal-document p, .legal-document ul { margin-top: 1rem; }
.legal-document ul { padding-left: 1.4rem; }
.legal-document li + li { margin-top: 0.5rem; }
.legal-document .legal-version { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.legal-page .site-footer { border-top: 1px solid var(--line); }

/* Optional prospect contact; no layout changes until a valid number is enabled. */
html.whatsapp-contact-enabled { scroll-padding-bottom: 6rem; }
.whatsapp-contact-enabled body { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
.whatsapp-contact:not([hidden]) { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: calc(100% - 2rem); padding: 0.65rem 1rem; border: 1px solid var(--teal); border-radius: 7px; background: var(--paper); color: var(--teal); font-size: 0.9375rem; font-weight: 600; line-height: 1.5; text-align: center; box-shadow: 0 2px 8px rgb(24 47 56 / 12%); }
.whatsapp-contact:hover { background: var(--teal-light); }
.whatsapp-contact:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 8px var(--paper); }
body.trial-open .whatsapp-contact { visibility: hidden; }
