/* Semicolans public site — hand-written, no build step.
   Theme contract (UI standards §10): every theme defines these variables. */
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --mist: #f6f6f7;
  --surface: #ffffff;
  --card: #ffffff;
  --fg: #18181d;
  --text: #18181d;
  --muted: #5c5e68;
  --line: #e3e3e8;
  --night: #141418;
  --night-2: #202027;
  --accent: #d2441d;          /* brand orange, darkened for 4.5:1 text contrast */
  --brand: #e4512e;           /* exact logo orange — decorative use */
  --accent-dark: #b33816;
  --accent-soft: #fcebe5;
  --accent-fg: #ffffff;
  --tea: #2f8a5f;
  --star: #e9a23b;
  --danger: #c2372f;
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", "Source Sans 3", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(20, 20, 24, .06), 0 8px 24px rgba(20, 20, 24, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--night); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .925rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--night); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { inset-inline-start: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The brand semicolon — the one bold move */
.semi { color: var(--brand); font-weight: 800; margin-inline-start: .04em; }
.on-night .semi { color: #ff7a55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 10px; font: 700 1rem/1.2 var(--display); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--night); background: transparent; }
.btn-ghost:hover { border-color: var(--night); color: var(--night); }
.on-night .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.on-night .btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .925rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { font-weight: 700; text-decoration: none; font-family: var(--display); }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.topbar { background: var(--night); color: #c4c4cc; font-size: .9rem; display: none; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar a { color: #fff; text-decoration: none; }
@media (min-width: 900px) { .topbar { display: block; } }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 58px; }
@media (min-width: 900px) { .header .wrap { min-height: 74px; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night); font: 800 1.35rem var(--display); letter-spacing: -.02em; }
.brand img { height: 40px; width: auto; }
@media (min-width: 900px) { .header .brand img { height: 54px; } }
.nav { display: none; margin-inline-start: auto; gap: 4px; align-items: center; }
.nav > a, .nav .dd > button { color: var(--night); text-decoration: none; font: 600 1rem var(--display); padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav .dd > button:hover, .nav a[aria-current="page"] { background: var(--mist); }
.nav .dd { position: relative; }
.dd-panel { position: absolute; inset-inline-start: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel, .dd.open .dd-panel { display: grid; }
.dd-panel a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--night); }
.dd-panel a:hover { background: var(--mist); }
.dd-panel strong { display: block; font: 700 .975rem var(--display); }
.dd-panel span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.35; }
.dd-panel .ic { flex: 0 0 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.dd-panel .ic img { width: 22px; height: 22px; object-fit: contain; }
.header-cta { display: none; gap: 10px; }
@media (min-width: 1080px) { .nav { display: flex; } .header-cta { display: flex; } }
.menu-btn { margin-inline-start: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; place-items: center; cursor: pointer; }
@media (min-width: 1080px) { .menu-btn { display: none; } }
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(20,20,24,.5); display: none; }
.drawer.open { display: block; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(88vw, 380px); background: #fff; padding: 18px; overflow-y: auto; }
.drawer-panel nav a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--night); text-decoration: none; font: 600 1.05rem var(--display); }
.drawer-panel h4 { margin: 18px 0 4px; color: var(--muted); font-size: .9rem; }

/* ---------- Mobile bottom bar (UI standards §8) ---------- */
.bottombar { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: var(--surface, #fff); border-top: 1px solid var(--line, #dce2ec);
  display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottombar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: .75rem; font-weight: 600; color: var(--muted, #5b6577); text-decoration: none; }
.bottombar a[aria-current="page"] { color: var(--accent, #d2441d); }
.bottombar svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .bottombar { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
@media (min-width: 900px) { .section { padding-block: 96px; } }
.section.tight { padding-block: 48px; }
.bg-mist { background: var(--mist); }
.on-night { background: var(--night); color: #c4c4cc; }
.on-night h1, .on-night h2, .on-night h3, .on-night h4 { color: #fff; }
.on-night .muted, .on-night .lead { color: #a7a7b2; }
.head { max-width: 760px; margin-bottom: 40px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lead { margin-inline: auto; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.head-row .head { margin-bottom: 0; }

/* ---------- Hero carousel ---------- */
.hero { position: relative; overflow: hidden; }
.hero-track { position: relative; }
.slide { display: none; padding-block: 48px 72px; }
.slide.is-active { display: block; animation: slideIn .6s ease both; }
@keyframes slideIn { from { opacity: 0; } to { opacity: 1; } }
.slide-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .slide { padding-block: 80px 104px; } .slide-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.slide .kicker { color: #ffb199; font-weight: 600; margin-bottom: 14px; display: block; }
.slide h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -.03em; }
.slide h1 .semi { font-size: 1.12em; line-height: 0; }
.slide .lead { color: #b9b9c3; margin-bottom: 28px; }
.slide .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slide-media { position: relative; }
.slide-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.slide-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid rgba(255,122,85,.45); border-radius: 18px; z-index: -1; }
.hero .proof { position: absolute; inset-inline-start: -14px; bottom: -18px; background: #fff; color: var(--night); border-radius: 12px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.25); display: flex; gap: 12px; align-items: center; max-width: 290px; }
.hero .proof strong { font: 800 1.4rem var(--display); }
.hero .proof span { font-size: .875rem; color: var(--muted); line-height: 1.3; }
.hero-controls { position: absolute; bottom: 22px; inset-inline: 0; }
.hero-controls .wrap { display: flex; align-items: center; gap: 10px; }
.hero-dot { width: 34px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.hero-dot::after { content: ""; width: 26px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); }
.hero-dot[aria-current="true"]::after { background: #fff; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero-arrow:hover { border-color: #fff; }
.hero-arrows { margin-inline-start: auto; display: flex; gap: 8px; }

/* Inner page hero */
.page-hero { padding-block: 56px 48px; }
@media (min-width: 900px) { .page-hero { padding-block: 84px 72px; } }
.page-hero h1 { max-width: 20ch; }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: #a7a7b2; }
.crumbs a { color: #dcdce2; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin-inline: 6px; opacity: .6; }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); padding-block: 26px; }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.trust-rating { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--night); }
.stars { color: var(--star); letter-spacing: 1px; font-size: 1.05rem; white-space: nowrap; }
.logo-row { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; flex: 1; }
.logo-row img { height: 30px; width: auto; filter: grayscale(1); opacity: .7; }
.logo-row img:hover { filter: none; opacity: 1; }
.logo-row .name { font: 700 1.05rem var(--display); color: #8892a6; }

/* ---------- Services index (a list, not a card wall) ---------- */
.svc-list { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .svc-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.svc { display: grid; grid-template-columns: 48px 1fr; gap: 4px 18px; padding-block: 24px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.svc .ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.svc h3 { margin: 2px 0 0; font-size: 1.2rem; }
.svc p { margin: 0; color: var(--muted); }
.svc:hover h3 { color: var(--accent); }

/* ---------- Products ---------- */
.prod-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
.prod { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.prod-top { display: flex; align-items: center; gap: 14px; }
.prod-logo { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; flex: 0 0 52px; overflow: hidden; }
.prod-logo img { width: 34px; height: 34px; object-fit: contain; }
.prod h3 { margin: 0; font-size: 1.2rem; }
.prod .cat { font-size: .875rem; color: var(--muted); }
.prod p { color: var(--muted); margin: 0; flex: 1; }
.prod-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.prod-actions .btn { flex: 1; }

/* ---------- Case studies ---------- */
.case { display: grid; gap: 24px; align-items: center; padding-block: 28px; }
@media (min-width: 900px) { .case { grid-template-columns: 1fr 1fr; gap: 56px; } .case:nth-child(even) .case-media { order: 2; } }
.case-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.case .meta { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.result { border-inline-start: 3px solid var(--accent); padding-inline-start: 12px; }
.result strong { display: block; font: 800 1.6rem var(--display); color: var(--night); line-height: 1.1; }
.result span { font-size: .9rem; color: var(--muted); }
.case-grid { display: grid; gap: 22px; }
@media (min-width: 700px) { .case-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card { text-decoration: none; color: inherit; }
.case-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.case-card h3 { margin-bottom: 6px; }
.case-card:hover h3 { color: var(--accent); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat strong { display: block; font: 800 clamp(2.2rem, 4vw, 3rem) var(--display); color: #fff; letter-spacing: -.03em; line-height: 1; }
.stat span { color: #a7a7b2; }

/* ---------- Process (a real sequence, so it is numbered) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--night); padding-top: 14px; }
.steps li::before { content: counter(step); font: 800 .95rem var(--display); color: var(--accent); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .975rem; margin: 0; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 88%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
@media (min-width: 760px) { .quotes { grid-auto-columns: calc((100% - 36px) / 2.2); } }
@media (min-width: 1100px) { .quotes { grid-auto-columns: calc((100% - 36px) / 3); } }
.quote { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.quote blockquote { margin: 0; font-size: 1.05rem; color: var(--night); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption img, .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--mist); flex: 0 0 44px; }
.avatar { display: grid; place-items: center; font: 800 1rem var(--display); color: var(--accent); background: var(--accent-soft); }
.quote cite { font-style: normal; font-weight: 700; color: var(--night); display: block; }
.quote .who { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.quote-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .quote-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.scroll-btns { display: flex; gap: 8px; }
.scroll-btns button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--night); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
@media (min-width: 860px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.member img, .member .ph { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); background: var(--mist); margin-bottom: 12px; }
.member .ph { display: grid; place-items: center; font: 800 2.4rem var(--display); color: var(--accent); background: var(--accent-soft); }
.member h3 { font-size: 1.05rem; margin: 0; }
.member p { color: var(--muted); margin: 0; font-size: .95rem; }
.member a { font-size: .9rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 26px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-radius: var(--radius); margin-bottom: 14px; background: var(--mist); }
.post-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.post-card:hover h3 { color: var(--accent); }
.post-card .meta { font-size: .875rem; color: var(--muted); }
.prose { max-width: 72ch; font-size: 1.1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin-block: 1.4em; }
.prose blockquote { border-inline-start: 3px solid var(--accent); margin: 1.4em 0; padding-inline-start: 18px; color: var(--night); }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose pre { background: var(--night); color: #e8e8ee; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: .9rem; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; }

/* ---------- Detail layouts ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; } .split .aside { position: sticky; top: 96px; } }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.box h3 { font-size: 1.15rem; }
.feature-list { display: grid; gap: 22px; }
@media (min-width: 700px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feature h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.feature p { color: var(--muted); margin: 0; font-size: .975rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23d2441d' stroke-width='2.4'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/14px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li, .chip { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .9rem; color: var(--night); background: #fff; }
.on-night .chip { background: transparent; border-color: rgba(255,255,255,.25); color: #e2e2e8; }

/* Product detail */
.prod-hero-logo { width: 64px; height: 64px; border-radius: 16px; background: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.prod-hero-logo img { width: 42px; height: 42px; object-fit: contain; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 85%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
@media (min-width: 900px) { .shots { grid-auto-columns: calc((100% - 32px) / 2.3); } }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16/10; object-fit: cover; width: 100%; cursor: zoom-in; background: var(--mist); }
.shots figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(10,10,12,.92); z-index: 90; display: none; place-items: center; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 1.4rem; }

/* Pricing */
.cycle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: #fff; margin-bottom: 26px; }
.cycle button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: 700 .95rem var(--display); cursor: pointer; color: var(--muted); min-height: 40px; }
.cycle button[aria-pressed="true"] { background: var(--night); color: #fff; }
.plans { display: grid; gap: 18px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border: 2px solid var(--accent); }
.plan .badge { align-self: flex-start; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.plan h3 { margin: 0; }
.price { font: 800 2.3rem var(--display); color: var(--night); letter-spacing: -.02em; line-height: 1; }
.price small { font: 500 1rem var(--font); color: var(--muted); letter-spacing: 0; }
.plan .checks { flex: 1; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 700 1.05rem var(--display); color: var(--night); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 14px; font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding-bottom: 18px; color: var(--muted); max-width: 70ch; }

/* Forms (labels above inputs, 16px+ inputs — UI standards §5, §8) */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; color: var(--night); margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--font); font-size: max(16px, 1rem); color: var(--fg); background: #fff;
  border: 1px solid #c9c9d1; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .err { color: var(--danger); font-size: .9rem; margin-top: 5px; }
.field .hint { color: var(--muted); font-size: .875rem; margin-top: 5px; }
.hp { position: absolute; inset-inline-start: -5000px; width: 1px; height: 1px; overflow: hidden; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 20px; }
.radio-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { width: 20px; height: 20px; }

/* Alerts */
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid; }
.alert-success { background: #ecf7f1; border-color: #b7e0c8; color: #1d5c3d; }
.alert-error { background: #fdf0ef; border-color: #f2c5c1; color: #8a2620; }

/* CTA band */
.cta-band { border-radius: 22px; padding: 40px 24px; display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: 56px; } }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { background: var(--night); color: #a7a7b2; padding-block: 64px 28px; font-size: .975rem; }
.footer a { color: #dcdce2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow-wrap: anywhere; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; overflow-wrap: normal; } }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 960px) { .footer-grid > div:first-child { grid-column: auto; } }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .9rem; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { flex: 1; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; padding: 10px 12px; font-size: 16px; }
.wa-float { position: fixed; inset-inline-end: 18px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 55; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
@media (min-width: 768px) { .wa-float { bottom: 22px; } }

/* Misc */
.grid-2 { display: grid; gap: 32px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.img-frame img { border-radius: 18px; width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; justify-content: center; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; padding-inline: 10px; color: var(--night); }
.pagination [aria-current] span, .pagination .active { background: var(--night); color: #fff; border-color: var(--night); }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; color: var(--night); font-weight: 600; font-size: .95rem; min-height: 40px; display: inline-flex; align-items: center; }
.filters a[aria-current="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.table { width: 100%; border-collapse: collapse; font-size: .975rem; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.table th { font-weight: 700; color: var(--night); font-size: .9rem; }
.table .num { text-align: end; white-space: nowrap; }
@media (max-width: 767px) {
  .table.cards thead { display: none; }
  .table.cards tr { display: block; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 8px 12px; }
  .table.cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; }
  .table.cards td::before { content: attr(data-label); font-weight: 600; color: var(--muted); }
}
.badge-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .825rem; font-weight: 700; background: var(--mist); color: var(--night); white-space: nowrap; }
.badge-status.paid, .badge-status.completed, .badge-status.done, .badge-status.accepted, .badge-status.signed { background: #e3f4ea; color: #1d5c3d; }
.badge-status.unpaid, .badge-status.open, .badge-status.sent, .badge-status.in_progress, .badge-status.pending { background: #fff4e0; color: #7a4b00; }
.badge-status.overdue, .badge-status.failed, .badge-status.declined, .badge-status.urgent { background: #fdecea; color: #8a2620; }

/* ===================== v1.1 polish ===================== */

/* One orchestrated load moment: headline rises in, the semicolon blinks like a caret, then settles. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes caret { 0%, 45% { opacity: 1; } 50%, 95% { opacity: .15; } 100% { opacity: 1; } }
.slide.is-active .kicker { animation: rise .6s ease both; }
.slide.is-active h1, .slide.is-active .h1 { animation: rise .7s .08s ease both; }
.slide.is-active .lead { animation: rise .7s .18s ease both; }
.slide.is-active .actions { animation: rise .7s .28s ease both; }
.slide.is-active .slide-media { animation: rise .9s .2s ease both; }
.slide.is-active h1 .semi, .slide.is-active .h1 .semi { display: inline-block; animation: caret 1.1s .9s steps(1) 3; }

/* Hero media: frame + floating chips */
.slide-media img { box-shadow: 0 30px 60px rgba(0,0,0,.35); background: var(--night-2); }
.chip-float { position: absolute; background: #fff; color: var(--night); border-radius: 12px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); display: flex; gap: 10px; align-items: center; font-size: .9rem; line-height: 1.3; }
.chip-float strong { display: block; font: 800 1rem var(--display); }
.chip-float .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 34px; }
.chip-float.tr { top: -16px; inset-inline-end: -10px; }
@media (max-width: 959px) { .chip-float.tr { display: none; } .hero .proof { inset-inline-start: 8px; } }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(600px 400px at 85% 20%, rgba(228, 81, 46, .20), transparent 70%),
  radial-gradient(500px 300px at 10% 90%, rgba(228, 81, 46, .10), transparent 70%); }
.hero-track { position: relative; z-index: 1; }

/* Header: compact with shadow once the page scrolls */
.header { transition: box-shadow .2s; }
.header.scrolled { box-shadow: 0 6px 20px rgba(20,20,24,.08); }

/* Mega menu */
.dd-panel.mega { width: 760px; grid-template-columns: 1fr 1fr 240px; padding: 14px; }
.dd-panel.mega .aside-cta { grid-row: span 20; background: var(--night); color: #c4c4cc; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.dd-panel.mega .aside-cta strong { color: #fff; font: 800 1.05rem var(--display); }
.dd-panel.mega .aside-cta span { color: #a7a7b2; font-size: .9rem; }
.dd-panel.mega .aside-cta .btn { margin-top: auto; }
.dd-panel.mega .aside-cta:hover { background: var(--night-2); }
.dd-panel .all { grid-column: 1 / 3; font-weight: 700; color: var(--accent); padding: 10px; }

/* Product card accent from the product's own colour */
.prod { border-top: 3px solid var(--prod-accent, var(--line)); }
.prod:hover { border-color: var(--prod-accent, var(--accent)); }

/* Engagement models */
.models { display: grid; gap: 18px; }
@media (min-width: 860px) { .models { grid-template-columns: repeat(3, 1fr); } }
.model { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.model.featured { background: var(--night); color: #c4c4cc; border-color: var(--night); }
.model.featured h3 { color: #fff; }
.model.featured .checks li::before { background-color: rgba(255,255,255,.12); }
.model .best { font-size: .9rem; color: var(--muted); }
.model.featured .best { color: #a7a7b2; }
.model .from { font: 800 1.5rem var(--display); color: var(--night); }
.model.featured .from { color: #fff; }
.model .checks { flex: 1; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .industries { grid-template-columns: repeat(4, 1fr); } }
.industry { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.industry .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 40px; }
.industry strong { display: block; font: 700 1rem var(--display); color: var(--night); }
.industry span { font-size: .9rem; color: var(--muted); line-height: 1.35; }

/* Working-hours overlap — the real reason a foreign client can trust the time zone */
.tz { display: grid; gap: 10px; }
.tz-row { display: grid; grid-template-columns: 110px 1fr 112px; gap: 12px; align-items: center; font-size: .95rem; }
@media (max-width: 640px) { .tz-row { grid-template-columns: 76px 1fr 92px; font-size: .85rem; } }
.tz-row .city { color: #fff; font-weight: 600; }
.tz-row .hrs { color: #a7a7b2; text-align: end; white-space: nowrap; font-size: .85rem; font-variant-numeric: tabular-nums; }
.tz-bar { position: relative; height: 26px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.tz-bar i { position: absolute; top: 0; bottom: 0; background: rgba(255,122,85,.32); border-radius: 4px; }
.tz-bar i.lk { background: #ff7a55; }
.tz-bar b { position: absolute; top: 0; bottom: 0; background: #ffd2c2; opacity: .9; border-radius: 4px; }
.tz-scale { display: grid; grid-template-columns: 110px 1fr 112px; gap: 12px; color: #85858f; font-size: .78rem; }
@media (max-width: 640px) { .tz-scale { grid-template-columns: 76px 1fr 92px; } }
.tz-scale div { display: flex; justify-content: space-between; }
.tz-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: .9rem; color: #a7a7b2; }
.tz-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; background: var(--c); }

/* Tech stack */
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack li { list-style: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: 700 .95rem var(--display); color: var(--night); background: #fff; }
.stack-group { display: grid; gap: 22px; }
@media (min-width: 900px) { .stack-group { grid-template-columns: 200px 1fr; align-items: start; } }
.stack-group h3 { font-size: 1rem; margin: 10px 0 0; color: var(--muted); font-weight: 700; }

/* Image that failed to load: show the brand mark instead of a broken icon */
img.broken { visibility: hidden; }
.img-fallback { background: var(--accent-soft) url("../img/placeholder.svg") center/cover no-repeat; }
@media (max-width: 959px) {
  .slide { padding-bottom: 104px; }
  .slide-media::before { display: none; }
  .hero .proof { bottom: -12px; }
}

/* Registered-company facts (About) and footer line */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts > div { background: #fff; padding: 18px 20px; }
.facts span { display: block; font-size: .875rem; color: var(--muted); margin-bottom: 4px; }
.facts strong { font: 700 1.02rem var(--display); color: var(--night); }
.reg-line { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.reg-line svg { flex: 0 0 16px; margin-top: 3px; color: var(--brand); }

/* Product downloads */
.downloads { display: grid; gap: 12px; }
@media (min-width: 760px) { .downloads { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.download { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--night); }
.download:hover { border-color: var(--accent); }
.download .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; transform: rotate(90deg); flex: 0 0 42px; }
.download strong { display: block; font: 700 1.02rem var(--display); }
.download span span { color: var(--muted); font-size: .9rem; }
.drivers { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.drivers summary { cursor: pointer; font-weight: 700; color: var(--night); }
.drivers ul { columns: 2; margin: 12px 0 0; padding-inline-start: 18px; }
@media (max-width: 640px) { .drivers ul { columns: 1; } }

/* Review-platform links */
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.platforms-label { font-weight: 600; color: var(--night); margin-inline-end: 4px; }
.platforms a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; color: var(--night); font-weight: 600; font-size: .9rem; background: #fff; min-height: 36px; }
.platforms a svg { color: var(--star); }
.platforms a:hover { border-color: var(--accent); }
.platforms.stacked { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.platforms.stacked .platforms-label { width: 100%; font-size: .9rem; color: var(--muted); }
.platforms.on-dark { margin: 14px 0 4px; }
.platforms.on-dark .platforms-label { color: #fff; width: 100%; }
.platforms.on-dark a { background: transparent; border-color: rgba(255,255,255,.25); color: #e2e2e8; }

/* v1.4: star rating input (radios in reverse order so ~ selects the lower stars) */
.star-field { border: 0; padding: 0; margin: 0; }
.star-field legend { font-weight: 600; color: var(--night); margin-bottom: 6px; padding: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.1rem; line-height: 1; color: var(--line, #d9d9de); cursor: pointer; transition: color .15s, transform .15s; padding: 2px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.star-input label:hover { transform: scale(1.1); }
.review-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 36px; padding: 22px 26px; border: 1px solid var(--line, #e6e6ea); border-radius: var(--radius); }
.review-cta p { margin: 0; }

/* v1.4: our own platforms in the trust strip */
.product-strip a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.product-strip a:hover .name { color: var(--night); }
.product-strip img.mark { height: 26px; width: 26px; border-radius: 6px; }
.product-strip img.broken { display: none; }
.product-strip .alt { display: none; }
.product-strip img.broken + .alt { display: inline; }

/* v1.4: app store badges on product pages */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.store-badges a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 10px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25); text-decoration: none; line-height: 1.1; font-weight: 600; }
.store-badges a small { display: block; font-size: .68rem; font-weight: 400; opacity: .85; }
.store-badges a:hover { border-color: #fff; }
/* v1.4: verifiable trust facts under the platform strip */
.trust-facts { list-style: none; margin: 0; padding: 0; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .9rem; color: var(--muted, #5b5b66); }
.trust-facts li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.trust-facts .ic { color: var(--accent); display: inline-flex; flex: none; }
@media (max-width: 760px) {
  .trust > .wrap > .platforms-label { flex-basis: 100%; }
  .trust .logo-row { flex-basis: 100%; gap: 10px 22px; }
}
/* v1.5: portal help centre */
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 12px 2px; font-weight: 600; text-decoration: none; color: var(--night); }
.link-list a:hover { color: var(--accent); }
/* v1.6: portal project collaboration */
.box.approval { border-color: var(--accent); background: var(--accent-soft); }
.thread { display: grid; gap: 12px; }
.thread .post { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #fff; max-width: 92%; }
.thread .post.mine { justify-self: end; background: var(--mist, #f6f6f7); }
.link-list a span { overflow-wrap: anywhere; }
.owner-line { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #b9c1d4; }
.owner-line svg { color: var(--accent); flex: none; }
