/* Maps theme.json presets to the variable names used by the approved mockup CSS. Edit colours in theme.json, not here. */
:root {
  --c-green: var(--wp--preset--color--green);
  --c-green-deep: var(--wp--preset--color--green-deep);
  --c-ink: var(--wp--preset--color--ink);
  --c-ink-soft: var(--wp--preset--color--ink-soft);
  --c-orange: var(--wp--preset--color--orange);
  --c-orange-deep: var(--wp--preset--color--orange-deep);
  --c-orange-hover: var(--wp--preset--color--orange-hover);
  --c-orange-text: var(--wp--preset--color--orange-text);
  --c-green-bright: var(--wp--preset--color--green-bright);
  --c-mist: var(--wp--preset--color--mist);
  --c-line: var(--wp--preset--color--line);
  --c-white: var(--wp--preset--color--white);

  --font-display: var(--wp--preset--font-family--display);
  --font-body: var(--wp--preset--font-family--body);

  --step--1: var(--wp--preset--font-size--small);
  --step-0: var(--wp--preset--font-size--base);
  --step-1: var(--wp--preset--font-size--lead);
  --step-2: var(--wp--preset--font-size--large);
  --step-3: var(--wp--preset--font-size--x-large);
  --step-4: var(--wp--preset--font-size--xx-large);

  --space-2xs: 0.375rem; --space-xs: 0.75rem;
  --space-s: var(--wp--preset--spacing--s); --space-m: var(--wp--preset--spacing--m); --space-l: var(--wp--preset--spacing--l);
  --space-xl: var(--wp--preset--spacing--xl); --space-2xl: var(--wp--preset--spacing--2-xl);

  --radius-s: var(--wp--custom--radius--s); --radius-m: var(--wp--custom--radius--m); --radius-l: var(--wp--custom--radius--l);
  --shadow-screen: 0 24px 48px -20px rgb(11 46 28 / 0.35), 0 2px 6px rgb(11 46 28 / 0.08);
  --content: 1200px; --wide: 1320px; --gutter: var(--wp--custom--gutter);
}

/* Base rules not covered by theme.json (fonts, body, headings and links come from theme.json). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin-block-start: 0; text-wrap: balance; }
/* Long URLs, emails and unbroken words wrap instead of widening or clipping the page on phones. */
:where(h1, h2, h3, h4, p, li, dd, dt, figcaption, blockquote, summary, label, .lead) { overflow-wrap: anywhere; }
:where(.lead, .section-head p, .split__copy p, .hero__copy p) { max-width: 65ch; }
:focus-visible { outline: 3px solid var(--c-green-deep); outline-offset: 3px; border-radius: 4px; }
.nowrap { white-space: nowrap; }
@media (max-width: 767px) { html { scroll-padding-bottom: 72px; } }
.wrap { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--c-ink); color: var(--c-white); padding: .75rem 1rem; z-index: 100; border-radius: var(--radius-s); }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Lightswitch components. Class names map 1:1 to block patterns in Plan 3.
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.35rem;
  border-radius: var(--radius-s); border: 2px solid transparent; font: 600 var(--step-0)/1.1 var(--font-display); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-orange); color: var(--c-ink); }
.btn--primary:hover { background: var(--c-orange-hover); color: var(--c-ink); }
.btn--secondary { background: var(--c-green-deep); color: var(--c-white); }
.btn--secondary:hover { background: var(--c-ink); color: var(--c-white); }
.btn--ghost { border-color: currentColor; color: var(--c-white); background: transparent; }
.btn--ghost:hover { background: rgb(255 255 255 / .1); color: var(--c-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.text-link { font-weight: 700; color: var(--c-green-deep); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header + navigation ----------
   Mega-menu opens when: desktop mouse hover, or .is-open (toggle), or without JS on hover/focus.
   With JS, keyboard focus alone never opens it, so aria-expanded always matches what is shown. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-m); min-height: 72px; }
.site-header__logo img { width: 172px; height: auto; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center; background: none;
  border: 1px solid var(--c-line); border-radius: var(--radius-s); color: var(--c-ink); cursor: pointer; }
.nav { display: flex; align-items: center; gap: var(--space-m); margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { display: block; padding: .6rem .75rem; color: var(--c-ink); font-weight: 500; text-decoration: none; border-radius: var(--radius-s); white-space: nowrap; }
.nav__item > a:hover { color: var(--c-green-deep); background: var(--c-mist); }
.nav__cta { white-space: nowrap; }
.mega-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -.4rem;
  background: none; border: 0; color: var(--c-ink); cursor: pointer; border-radius: 4px; }
.mega-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.mega__grid a { display: grid; gap: .1rem; padding: .7rem .8rem; border-radius: var(--radius-s); text-decoration: none; color: var(--c-ink); }
.mega__grid a:hover { background: var(--c-mist); }
.mega__grid b { font: 600 .98rem/1.3 var(--font-display); }
.mega__grid span { font-size: .875rem; color: var(--c-ink-soft); }
.mega__all a { background: var(--c-mist); }
.mega__all b { color: var(--c-green-deep); }

@media (min-width: 1024px) {
  .mega { position: absolute; top: calc(100% + 10px); left: -1rem; width: min(620px, 90vw); padding: var(--space-s);
    background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-m);
    box-shadow: 0 24px 40px -18px rgb(11 46 28 / .28); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
  .mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* hover bridge */
  .mega.is-open,
  html:not(.js) .nav__item--mega:hover .mega,
  html:not(.js) .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 1024px) and (hover: hover) {
  html.js .nav__item--mega:hover .mega { opacity: 1; visibility: visible; transform: none; }
}
/* 1024–1199px (iPad landscape, small laptops): tighten so the header stays on one row. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header__inner, .nav { gap: var(--space-s); }
  .site-header__logo img { width: 150px; }
  .nav__item > a { padding: .6rem .5rem; font-size: .95rem; }
  .nav__cta { padding-inline: 1rem; font-size: .95rem; }
}

@media (max-width: 1023.98px) {
  .nav-toggle { display: inline-flex; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header { position: static; } /* the always-open no-JS menu must not pin over the page */
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--space-s); margin: 0; padding-block: var(--space-s) var(--space-m); }
  /* First row is exactly 72px and no row gap, so the open nav (max-height 100dvh - 72px) ends at the screen edge. */
  .site-header__inner { flex-wrap: wrap; row-gap: 0; }
  .site-header__logo { display: flex; align-items: center; min-height: 72px; }
  html.js .nav { display: none; }
  html.js .nav.is-open { display: flex; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
  .nav__item > a { flex: 1; padding: .85rem .25rem; }
  .mega-toggle { width: 48px; height: 48px; margin: 0; }
  .mega { width: 100%; padding: 0 0 var(--space-s); display: none; }
  .mega.is-open, html:not(.js) .mega { display: block; }
  .mega__grid { grid-template-columns: 1fr; }
  .nav__cta { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--mist { background: var(--c-mist); }
.section--ink { background: var(--c-ink); color: var(--c-white); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--c-white); }
:where(.section--ink) a:where(:not(.btn)) { color: var(--c-green-bright); }
/* Class-level on purpose: must beat `.lead { color: ink-soft }`. Editor colour picks still win (has-*-color uses !important). */
.section--ink :where(.lead, p), .section--ink .lead { color: rgb(255 255 255 / .86); }
.section-head { display: grid; gap: var(--space-s); margin-bottom: var(--space-l); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--c-ink-soft); max-width: 60ch; }

/* The "switch on" motif: a tiny toggle (green track, orange knob) before section eyebrows. */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 700 var(--step--1)/1 var(--font-body);
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-orange-text); }
.eyebrow::before { content: ""; width: 24px; height: 13px; border-radius: 99px; flex: none;
  background: radial-gradient(circle at 17px 50%, var(--c-orange) 0 4.5px, transparent 5px) var(--c-green); }
.section--ink .eyebrow { color: var(--c-orange); }
.section--ink :focus-visible, .site-footer :focus-visible { outline-color: var(--c-orange); } /* 5.6:1 on ink */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--space-xl) var(--space-2xl);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(17 148 71 / .35), transparent 60%),
    radial-gradient(rgb(255 255 255 / .06) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--c-ink); }
.hero__grid { display: grid; gap: var(--space-xl); align-items: center; }
.hero__copy { display: grid; gap: var(--space-m); }
.hero__copy h1 { max-width: 16ch; }
.hero__proof { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: 0; margin: 0; list-style: none; font-size: var(--step--1); color: rgb(255 255 255 / .86); }
.hero__proof li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__proof svg { color: var(--c-green-bright); flex: none; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 5fr 6fr; } }

/* Collage: a fixed-proportion box; each screen is sized and placed in % of that box, so nothing
   can overflow at 360px and layout never depends on itself (negative %-margins caused CLS 0.95). */
.hero__visual { min-width: 0; }
.collage { position: relative; aspect-ratio: 100 / 86; }
.collage .screen { position: absolute; }
.collage .screen--laptop { top: 0; right: 0; width: 90%; }
.collage .screen--tablet { left: 0; bottom: 0; width: 52%; z-index: 2; }
.collage .screen--phone { right: 0; bottom: 0; width: 24%; z-index: 3; }

/* ---------- Device frames + schematic UI ---------- */
.screen { margin: 0; display: grid; gap: .5rem; min-width: 0; }
.screen__frame { position: relative; background: var(--c-ink); border-radius: var(--radius-l); padding: 10px; box-shadow: var(--shadow-screen); }
.section--ink .screen__frame { background: #061a10; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .08); }
.screen__body { background: var(--c-white); border-radius: 11px; overflow: hidden; aspect-ratio: 16 / 10; display: grid; color: var(--c-ink); font-size: 10px; }
.screen--tablet .screen__body { aspect-ratio: 4 / 3; }
.screen--phone .screen__frame { border-radius: 26px; padding: 8px; }
.screen--phone .screen__body { aspect-ratio: 9 / 19; border-radius: 19px; }
.screen--laptop .screen__frame { border-radius: var(--radius-m) var(--radius-m) 4px 4px; }
.screen--laptop .screen__frame::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -12px; height: 12px;
  background: linear-gradient(#1d3d2c, #0b2e1c); border-radius: 0 0 14px 14px; }
.screen--laptop { padding-bottom: 12px; }
.screen__label { justify-self: start; font-size: .75rem; line-height: 1.3; padding: .2rem .5rem; border-radius: 4px; background: var(--c-mist); color: var(--c-ink-soft); }
.section--ink .screen__label { background: rgb(255 255 255 / .1); color: rgb(255 255 255 / .8); }
.collage .screen__label { display: none; } /* one shared note under the collage instead */
.collage__note { grid-column: 1 / -1; margin-top: var(--space-s); font-size: .75rem; color: rgb(255 255 255 / .7); }

/* schematic building blocks */
.ui { display: grid; grid-template-columns: 18% 1fr; height: 100%; }
.ui--nosidebar { grid-template-columns: 1fr; }
.ui__side { background: var(--c-ink); padding: 8% 10%; display: grid; align-content: start; gap: 8px; }
.ui__side i { display: block; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .25); }
.ui__side i:first-child { background: var(--c-green-bright); width: 70%; height: 8px; margin-bottom: 6px; }
.ui__main { padding: 4%; display: grid; gap: 4%; align-content: start; background: #F6FAF7; min-width: 0; }
.ui__top { display: flex; justify-content: space-between; align-items: center; }
.ui__top b { display: block; width: 34%; height: 8px; border-radius: 4px; background: var(--c-ink); }
.ui__top i { display: block; width: 14%; height: 14px; border-radius: 4px; background: var(--c-orange); }
.ui__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; }
.ui__kpi { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 6px; padding: 8% 10%; display: grid; gap: 6px; }
.ui__kpi i { display: block; height: 4px; width: 60%; border-radius: 2px; background: var(--c-line); }
.ui__kpi b { display: block; height: 9px; width: 80%; border-radius: 3px; background: var(--c-green); }
.ui__kpi:nth-child(2) b { background: var(--c-ink); } .ui__kpi:nth-child(3) b { background: var(--c-orange); }
.ui__row { display: grid; grid-template-columns: 3fr 2fr; gap: 4%; }
.ui__card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 6px; padding: 6%; min-width: 0; }
.ui__bars { display: flex; align-items: end; gap: 6%; height: 70px; }
.ui__bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--c-green); }
.ui__bars i:nth-child(3n) { background: var(--c-green-deep); } .ui__bars i:nth-child(5) { background: var(--c-orange); }
.ui__list { display: grid; gap: 7px; }
.ui__list i { display: grid; grid-template-columns: 8px 1fr 22%; gap: 6px; align-items: center; height: 8px; }
.ui__list i::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); }
.ui__list i::after { content: ""; grid-column: 2 / 4; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--c-line) 70%, transparent 70% 78%, #c9d8cf 78%); }
.ui__list i:nth-child(3)::before { background: var(--c-orange); } .ui__list i:nth-child(5)::before { background: #c9d8cf; }
.ui__table { display: grid; gap: 6px; }
.ui__table i { display: block; height: 7px; border-radius: 3px; background: linear-gradient(90deg, var(--c-line) 0 30%, transparent 30% 34%, #e3ece6 34% 62%, transparent 62% 66%, #e3ece6 66% 100%); }
.ui__table i:first-child { background: linear-gradient(90deg, var(--c-ink-soft) 0 30%, transparent 30% 34%, var(--c-ink-soft) 34% 62%, transparent 62% 66%, var(--c-ink-soft) 66%); opacity: .5; }
/* POS till */
.ui-pos { display: grid; grid-template-columns: 3fr 2fr; height: 100%; }
.ui-pos__tiles { padding: 5%; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 5%; background: #F6FAF7; }
.ui-pos__tiles i { border-radius: 6px; background: var(--c-white); border: 1px solid var(--c-line); position: relative; }
.ui-pos__tiles i::after { content: ""; position: absolute; left: 14%; right: 30%; bottom: 14%; height: 5px; border-radius: 3px; background: var(--c-ink); opacity: .55; }
.ui-pos__tiles i:nth-child(2), .ui-pos__tiles i:nth-child(7) { background: #DDF2E5; }
.ui-pos__basket { padding: 6%; display: grid; grid-template-rows: auto 1fr auto auto; gap: 6%; border-left: 1px solid var(--c-line); }
.ui-pos__basket b { display: block; height: 8px; width: 50%; border-radius: 4px; background: var(--c-ink); }
.ui-pos__total { height: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--c-ink) 40%, transparent 40% 60%, var(--c-green) 60%); }
.ui-pos__pay { height: 20%; min-height: 18px; border-radius: 5px; background: var(--c-orange); }
/* phone receipt */
.ui-phone { padding: 14% 10%; display: grid; align-content: start; justify-items: center; gap: 7%; background: #F6FAF7; height: 100%; }
.ui-phone__tick { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--c-green); display: grid; place-items: center; }
.ui-phone__tick svg { width: 50%; color: var(--c-white); }
.ui-phone b { display: block; width: 70%; height: 10px; border-radius: 4px; background: var(--c-ink); }
.ui-phone__lines { width: 100%; display: grid; gap: 7px; padding: 10% 8%; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 8px; }
.ui-phone__lines i { display: block; height: 5px; border-radius: 3px; background: var(--c-line); }
.ui-phone__lines i:nth-child(2n) { width: 70%; }
.ui-phone__btn { width: 100%; height: 22px; border-radius: 6px; background: var(--c-green-deep); }

/* thermal receipt with eTIMS QR (illustration) */
.receipt { width: min(220px, 100%); background: var(--c-white); color: var(--c-ink); padding: 18px 16px 26px; display: grid; gap: 8px;
  font: 500 11px/1.3 ui-monospace, Consolas, monospace; box-shadow: var(--shadow-screen);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.receipt__head { text-align: center; font-weight: 700; letter-spacing: .08em; }
.receipt i { display: block; height: 5px; border-radius: 2px; background: #dfe7e2; }
.receipt i:nth-of-type(odd) { width: 80%; }
.receipt__etims { display: grid; grid-template-columns: 1fr 64px; gap: 10px; align-items: center; border-top: 1px dashed #9db1a5; padding-top: 10px; }
.receipt__etims svg { width: 64px; height: 64px; }
.receipt__tag { font-size: .7rem; color: var(--c-ink-soft); justify-self: center; font-family: var(--font-body); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--space-m); padding: 0; margin: 0; list-style: none; }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card-grid--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--space-s); }
@media (min-width: 640px) and (max-width: 1099px) { .card-grid--5 { grid-template-columns: repeat(6, 1fr); } .card-grid--5 > * { grid-column: span 2; } .card-grid--5 > :nth-child(4) { grid-column: 2 / span 2; } }
.card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-m); padding: var(--space-m); display: grid; gap: var(--space-xs); align-content: start; }
.card p { color: var(--c-ink-soft); }
.card__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--c-mist); color: var(--c-green-deep); }
.section--mist .card__icon { background: #DDF0E3; }
.card .text-link { margin-top: auto; padding-top: var(--space-2xs); }
.card--link { position: relative; transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--c-green); transform: translateY(-2px); }
.card--link .text-link::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card--cta { background: var(--c-mist); border-style: dashed; border-color: var(--c-green); }
.card--cta .btn { justify-self: start; margin-top: auto; }

.pain-card { display: grid; gap: .4rem; padding: var(--space-m); border-radius: var(--radius-m); text-decoration: none; color: var(--c-ink);
  background: var(--c-white); border: 1px solid var(--c-line); border-top: 4px solid var(--c-orange); transition: transform .15s; }
.pain-card:hover { transform: translateY(-2px); }
.pain-card p { color: var(--c-ink-soft); }
.pain-card__more { margin-top: .25rem; font-weight: 700; color: var(--c-green-deep); font-size: var(--step--1); }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-s); list-style: none; padding: 0; margin: 0; }
.tile { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-radius: var(--radius-m); background: var(--c-white);
  border: 1px solid var(--c-line); font: 600 1rem/1.3 var(--font-display); color: var(--c-ink); text-decoration: none; }
a.tile:hover { border-color: var(--c-green); color: var(--c-green-deep); }
.tile svg { color: var(--c-green); flex: none; }

/* ---------- Integrations ---------- */
.integrations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-m); list-style: none; padding: 0; margin: 0; }
.chip { display: grid; gap: .5rem; padding: var(--space-m); border-radius: var(--radius-m); background: var(--c-mist); }
.chip__name { display: inline-flex; align-items: center; gap: .55rem; font: 700 var(--step-1)/1.2 var(--font-display); color: var(--c-ink); }
.chip__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 4px rgb(17 148 71 / .18); }
.chip p { color: var(--c-ink-soft); }

/* ---------- Two-column split + features ---------- */
.split { display: grid; gap: var(--space-xl); align-items: center; }
.split__copy { display: grid; gap: var(--space-m); }
.check-list { display: grid; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; }
.check-list li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: .1rem;
  background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.check-list a { font-weight: 600; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; }
  .feature { grid-template-columns: 5fr 7fr; }
  .feature--flip { grid-template-columns: 7fr 5fr; }
  .feature--flip .split__copy { order: 2; }
}
.feature-stack { display: grid; gap: var(--space-2xl); }

/* ---------- Steps (a real sequence, so numbers carry meaning) ---------- */
.steps { counter-reset: step; display: grid; gap: var(--space-m); list-style: none; padding: 0; margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.step { counter-increment: step; position: relative; display: grid; gap: .45rem; padding: var(--space-m) var(--space-m) var(--space-m) 4.6rem;
  border-radius: var(--radius-m); border: 1px solid var(--c-line); background: var(--c-white); }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; left: var(--space-m); top: var(--space-m);
  font: 700 1.6rem/1 var(--font-display); color: var(--c-green); letter-spacing: -.03em; }
.step p { color: var(--c-ink-soft); }

/* ---------- Case study + testimonials + placeholders ---------- */
.placeholder { display: grid; place-items: center; text-align: center; gap: .3rem; min-height: 96px; padding: var(--space-m);
  border: 2px dashed var(--c-green); border-radius: var(--radius-m); background: var(--c-mist); color: var(--c-ink-soft); font-size: var(--step--1); }
.section--mist .placeholder { background: var(--c-white); }
.placeholder b { color: var(--c-ink); font-family: var(--font-display); font-weight: 600; }
.placeholder--inline { display: inline; padding: .1rem .35rem; border: 1px dashed rgb(255 255 255 / .45); border-radius: 4px; font-size: .9em; }
.logo-strip__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--space-s); list-style: none; padding: 0; margin: 0; }
.logo-strip__row .placeholder { min-height: 72px; padding: .75rem; }
.logo-strip__title { text-align: center; color: var(--c-ink-soft); font-weight: 500; margin: 0 auto var(--space-m); }
.case { display: grid; gap: var(--space-l); padding: var(--space-l); border-radius: var(--radius-l); background: var(--c-white); border: 1px solid var(--c-line); }
.case .placeholder { min-height: 240px; }
.case__facts { display: grid; gap: var(--space-s); }
.case__facts dt { font: 700 var(--step--1)/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--c-orange-text); }
.case__facts dd { margin: .2rem 0 0; }
.case__facts dl { display: grid; gap: var(--space-s); margin: 0; }
.placeholder--soft { color: var(--c-ink-soft); border-bottom: 2px dashed var(--c-green); }
@media (min-width: 900px) { .case { grid-template-columns: 6fr 5fr; align-items: center; } }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--space-m); }
.quotes blockquote { margin: 0; min-height: 180px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-l); list-style: none; padding: 0; margin: 0; }
.stats li { display: grid; gap: .35rem; border-left: 3px solid var(--c-orange); padding-left: var(--space-s); }
.stats b { font: 700 var(--step-4)/1 var(--font-display); letter-spacing: -.03em; color: var(--c-white); font-variant-numeric: tabular-nums; }
.stats span { color: rgb(255 255 255 / .82); }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-white); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--step--1); }
.compare th, .compare td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.compare thead th { font: 600 .95rem/1.25 var(--font-display); background: var(--c-mist); }
.compare thead th:nth-child(2) { background: var(--c-green-deep); color: var(--c-white); }
.compare tbody th { font-weight: 600; position: sticky; left: 0; background: var(--c-white); }
.compare td:nth-child(2) { background: #F3FAF5; font-weight: 600; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .yes, .compare .no { display: inline-flex; align-items: center; gap: .4rem; }
.compare .yes svg { color: var(--c-green); } .compare .no svg { color: #9AA9A0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); padding: 1.15rem 0; cursor: pointer;
  list-style: none; font: 600 var(--step-1)/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2.5px solid var(--c-green); border-bottom: 2.5px solid var(--c-green);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding-bottom: 1.15rem; color: var(--c-ink-soft); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { color: rgb(255 255 255 / .75); font-size: var(--step--1); margin-bottom: var(--space-l); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin-block: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; opacity: .6; }
.breadcrumbs a { color: rgb(255 255 255 / .86); }
.breadcrumbs [aria-current] { color: var(--c-white); font-weight: 500; }
.hero--product { padding-top: var(--space-l); }
/* Product hero: till with an eTIMS receipt tucked in front of it. */
.pos-visual { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; }
.pos-visual .screen--tablet { grid-column: 1 / 11; grid-row: 1; }
.pos-visual__receipt { grid-column: 8 / 13; grid-row: 1; align-self: center; margin: 0; z-index: 2; display: grid; gap: .4rem; justify-items: center; transform: rotate(3deg); }
.pos-visual__receipt .receipt__tag { color: rgb(255 255 255 / .7); }
.feature__title { font-size: var(--step-2); font-weight: 700; }
.feature__phone { display: grid; justify-items: center; }
.feature__phone .screen--phone { width: min(260px, 70%); }

/* ---------- Demo form ---------- */
.demo-form { display: grid; gap: var(--space-l); }
.demo-form__grid { display: grid; gap: var(--space-l); }
@media (min-width: 900px) { .demo-form__grid { grid-template-columns: 4fr 7fr; align-items: start; } }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-s) var(--space-m);
  padding: var(--space-l); background: var(--c-white); border-radius: var(--radius-l); border: 1px solid var(--c-line); }
.field { display: grid; gap: .35rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1.5px solid #B9CCC0; border-radius: var(--radius-s);
  font: inherit; color: var(--c-ink); background: var(--c-white); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-green); outline: 3px solid rgb(17 148 71 / .25); outline-offset: 0; }
.field textarea { min-height: 110px; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.radio-row label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }
.radio-row input { width: 20px; min-height: 20px; accent-color: var(--c-green); }
.req { color: var(--c-orange-text); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); }
.form__note { font-size: var(--step--1); color: var(--c-ink-soft); }
.contact-points { display: grid; gap: var(--space-s); list-style: none; padding: 0; margin: 0; }
.contact-points li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; }
.contact-points svg { color: var(--c-green); margin-top: .2rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background:
  radial-gradient(40rem 20rem at 50% 120%, rgb(255 122 26 / .22), transparent 60%), var(--c-ink); }
.cta-band .wrap { display: grid; justify-items: center; gap: var(--space-m); }
.cta-band p { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: rgb(255 255 255 / .82); padding-block: var(--space-xl) var(--space-m); font-size: var(--step--1); }
.site-footer a { color: rgb(255 255 255 / .86); text-decoration: none; }
.site-footer a:hover { color: var(--c-green-bright); text-decoration: underline; }
.site-footer__top { display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.site-footer__brand { display: grid; gap: var(--space-s); align-content: start; grid-column: 1 / -1; }
.site-footer__brand img { width: 200px; }
.site-footer__title { font: 600 1rem/1.2 var(--font-display); color: var(--c-white); margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-s); margin-top: var(--space-xl); padding-top: var(--space-m); border-top: 1px solid rgb(255 255 255 / .14); }
.site-footer__tagline { color: var(--c-orange); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: 1.4fr repeat(4, 1fr); } .site-footer__brand { grid-column: auto; } }

/* ---------- Mobile quick bar + floating WhatsApp ---------- */
.mobile-bar { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1px;
  background: var(--c-line); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 20px rgb(11 46 28 / .12); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 56px; background: var(--c-white);
  color: var(--c-ink); font: 600 .95rem/1 var(--font-display); text-decoration: none; }
.mobile-bar svg { color: var(--c-green); }
.mobile-bar .mobile-bar__demo { background: var(--c-orange); color: var(--c-ink); }
.wa-float { display: none; position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  place-items: center; background: var(--c-green); color: var(--c-white); box-shadow: 0 12px 24px -8px rgb(11 46 28 / .5); }
.wa-float:hover { background: var(--c-green-deep); }
@media (max-width: 767px) { body { padding-bottom: 64px; } }
@media (min-width: 768px) { .mobile-bar { display: none; } .wa-float { display: grid; } .site-footer__bottom { padding-right: 88px; } }
.mobile-bar--1 { grid-template-columns: 1fr; }
.mobile-bar--2 { grid-template-columns: 1fr 1.3fr; }

/* ---------- Form states (plugin markup) ---------- */
.form__error { grid-column: 1 / -1; margin: 0; padding: .8rem 1rem; border-radius: var(--radius-s); border: 1.5px solid var(--c-orange-text); background: #FFF4EC; color: var(--c-ink); font-weight: 500; }
.field__error { margin: .1rem 0 0; font-size: var(--step--1); color: var(--c-orange-text); font-weight: 500; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--c-orange-text); }
.form-success { display: grid; gap: .5rem; padding: var(--space-l); border-radius: var(--radius-l); background: var(--c-mist); border: 2px solid var(--c-green); }
.form-success h3 { margin: 0; }

/* ---------- Editor block styles → approved components ---------- */
.is-style-section-mist { background: var(--c-mist); padding-block: var(--space-2xl); }
.is-style-section-ink { background: var(--c-ink); color: var(--c-white); padding-block: var(--space-2xl); }
.is-style-section-ink :where(h1, h2, h3) { color: var(--c-white); }
:where(.is-style-section-ink) a:where(:not(.wp-element-button)) { color: var(--c-green-bright); }
ul.is-style-checks { list-style: none; padding: 0; display: grid; gap: .55rem; }
ul.is-style-checks li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; }
ul.is-style-checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: .1rem;
  background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.wp-block-table.is-style-compare { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-white); }
.wp-block-table.is-style-compare table { min-width: 640px; border-collapse: collapse; font-size: var(--step--1); }
.wp-block-table.is-style-compare th, .wp-block-table.is-style-compare td { padding: .9rem 1rem; border: 0; border-bottom: 1px solid var(--c-line); text-align: left; }
.wp-block-table.is-style-compare thead th { background: var(--c-mist); font-family: var(--font-display); font-weight: 600; }
.wp-block-table.is-style-compare thead th:nth-child(2) { background: var(--c-green-deep); color: var(--c-white); }
.wp-block-table.is-style-compare td:nth-child(2) { background: #F3FAF5; font-weight: 600; }
.wp-block-details.is-style-faq { border-bottom: 1px solid var(--c-line); }
/* Block flow, not flex: inline spans (e.g. .nowrap) inside the question must stay part of the sentence. */
.wp-block-details.is-style-faq summary { display: block; position: relative; padding: 1.15rem 2.25rem 1.15rem 0; cursor: pointer; list-style: none; font: 600 var(--step-1)/1.3 var(--font-display); }
.wp-block-details.is-style-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-faq summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--c-green); border-bottom: 2.5px solid var(--c-green); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.wp-block-details.is-style-faq[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.wp-block-details.is-style-faq > :not(summary) { padding-bottom: 1.15rem; color: var(--c-ink-soft); }
.wp-block-button.is-style-ghost .wp-element-button { background: transparent; color: var(--c-white); border: 2px solid currentColor; }
.wp-block-button.is-style-ghost .wp-element-button:hover { background: rgb(255 255 255 / .1); color: var(--c-white); }
.wp-block-button.is-style-secondary .wp-element-button { background: var(--c-green-deep); color: var(--c-white); }
.wp-block-button.is-style-secondary .wp-element-button:hover { background: var(--c-ink); color: var(--c-white); }
/* ---------- Device frames around editor images ---------- */
.screen.wp-block-group { display: grid; gap: .5rem; }
.screen .wp-block-image { margin: 0; background: var(--c-ink); border-radius: var(--radius-l); padding: 10px; box-shadow: var(--shadow-screen); }
.screen .wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 11px; background: var(--c-white); }
.screen--tablet .wp-block-image img { aspect-ratio: 4 / 3; }
.screen--phone .wp-block-image { border-radius: 26px; padding: 8px; max-width: 280px; margin-inline: auto; }
.screen--phone .wp-block-image img { aspect-ratio: 9 / 19; border-radius: 19px; }
.screen .wp-block-image figcaption { justify-self: start; margin: .5rem 0 0; font-size: .75rem; color: var(--c-ink-soft); background: var(--c-mist); padding: .2rem .5rem; border-radius: 4px; }
.section--ink .screen .wp-block-image figcaption { background: rgb(255 255 255 / .1); color: rgb(255 255 255 / .8); }

/* ---------- Patterns: core blocks styled as the mockup components ---------- */
.collage .wp-block-image figcaption { display: none; }
.collage__note { margin: var(--space-s) 0 0; font-size: .75rem; color: rgb(255 255 255 / .7); }
.hero__copy > * + *, .split__copy > * + *, .section-head > * + *, .case__facts > * + * { margin-block-start: var(--space-m); }
ul.hero__proof { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: 0; list-style: none; }
ul.hero__proof li { display: inline-flex; align-items: center; gap: .4rem; }
ul.hero__proof li::before { content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%233BCB74' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
ol.steps { padding: 0; }
.steps > li > strong { display: block; margin-bottom: .35rem; font: 600 var(--step-1)/1.2 var(--font-display); color: var(--c-ink); }
.steps > li { color: var(--c-ink-soft); }
.logo-strip__row .wp-block-image { margin: 0; }
.logo-strip__row .wp-block-image img { width: 100%; height: auto; aspect-ratio: 300 / 120; object-fit: contain; }
.team__photo { margin: 0; }
.team__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-m); }
.case__image { margin: 0; }
.case__image img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-m); }
p.tile { margin: 0; }
p.tile a { color: inherit; text-decoration: none; }
p.tile:has(a):hover { border-color: var(--c-green); color: var(--c-green-deep); }
ul.stats strong { display: block; font: 700 var(--step-4)/1 var(--font-display); letter-spacing: -.03em; color: var(--c-white); font-variant-numeric: tabular-nums; }
ul.stats li { color: rgb(255 255 255 / .82); }
.pain-card__more a { color: var(--c-green-deep); text-decoration: none; }
.pain-card__more a:hover { text-decoration: underline; }
.team__card > * + * { margin-block-start: var(--space-xs); }
.quotes blockquote.card { margin: 0; }
.quotes blockquote.card footer { font-weight: 600; color: var(--c-ink); }

/* ---------- Plain pages and blog posts: article heading scale ---------- */
.page-plain { padding-block: var(--space-xl) var(--space-2xl); }
.page-plain :where(.wp-block-post-content) h2 { font-size: var(--step-2); margin-block: var(--space-l) var(--space-xs); }
.page-plain :where(.wp-block-post-content) h3 { font-size: var(--step-1); margin-block: var(--space-m) var(--space-2xs); }
.page-plain .wp-block-post-date { color: var(--c-ink-soft); font-size: var(--step--1); }

/* WordPress wrappers: header, main and footer sit flush; full-width bands don't inherit block gap. */
.wp-site-blocks > * { margin-block: 0; }
main > .wp-block-post-content > .alignfull, main > .alignfull { margin-block: 0; }
/* Constrained layouts centre any child narrower than the content width (margins are !important),
   so readable line length is made with end padding instead of max-width: text stays left-aligned. */
.is-layout-constrained > .section-head { max-width: var(--wp--style--global--content-size, 1200px); padding-inline-end: max(0px, min(100%, var(--wp--style--global--content-size, 1200px)) - 760px); }
.is-layout-constrained > :where(.lead, .wp-block-post-excerpt.lead) { max-width: var(--wp--style--global--content-size, 1200px); padding-inline-end: max(0px, min(100%, var(--wp--style--global--content-size, 1200px)) - 65ch); }
.wp-element-button { min-height: 48px; padding: .7rem 1.35rem; display: inline-flex; align-items: center; }
