/* Amanye Prime — public home page. One file, no frameworks. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  --ink: #0b1016;
  --ink-2: #384250;
  --ink-3: #687384;
  --line: #e6e8ec;
  --line-2: #d5d9df;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --night: #0a0e13;
  --night-2: #121821;
  --night-line: rgba(255, 255, 255, .09);
  --on-night: #e9edf2;
  --on-night-2: #9aa4b2;
  --accent: #f4dc3c;           /* logo yellow */
  --accent-hover: #ffe75a;
  --accent-ink: #191603;
  --green: #22a06b;
  --focus: #3b82f6;
  --danger-bg: #fdf0ef;
  --danger: #a3291f;
  --radius: 10px;
  --radius-lg: 16px;
  --gutter: clamp(20px, 4vw, 72px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.022em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1d2631; }
.btn--line-light { border-color: rgba(255, 255, 255, .22); color: var(--on-night); background: rgba(255, 255, 255, .03); }
.btn--line-light:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .07); }
.btn[disabled] { opacity: .65; cursor: default; }
.btn span[aria-hidden] { transition: transform .15s ease; }
.btn:hover span[aria-hidden] { transform: translateX(2px); }

/* ---------- Top bar (dark, sits on the hero) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 14, 19, .97);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--night-line);
  color: var(--on-night);
}
.topbar__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.topnav { display: flex; gap: 26px; margin-left: 12px; }
.topnav a { text-decoration: none; color: var(--on-night-2); font-size: 14.5px; font-weight: 500; }
.topnav a:hover { color: #fff; }
.topbar__actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--night);
  color: var(--on-night);
  padding: 72px 0 0;
  overflow: hidden;
}
/* faint grid + one soft light — no gradients on text */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 900px; height: 600px; left: -200px; top: -260px;
  background: radial-gradient(closest-side, rgba(244, 220, 60, .10), transparent);
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--night-line); background: rgba(255, 255, 255, .04);
  font-size: 13px; font-weight: 500; color: var(--on-night-2);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(244, 220, 60, .18); }

.hero h1 {
  margin-top: 0;
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.03;
  color: #fff;
  max-width: 14ch;
}
.lead { margin-top: 22px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--on-night-2); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats { display: flex; gap: 40px; margin: 44px 0 0; padding: 0; }
.stats div { border-left: 1px solid var(--night-line); padding-left: 16px; }
.stats dt { font-size: 13px; color: var(--on-night-2); }
.stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }

/* Sign in card */
.signin {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .45);
  scroll-margin-top: 88px;
}
.signin__title { font-size: 22px; font-weight: 700; }
.signin__sub { color: var(--ink-3); font-size: 15px; margin-top: 4px; }
.signin__form { margin-top: 22px; display: grid; gap: 16px; }

.alert { margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: var(--danger-bg); color: var(--danger); font-size: 14px; border: 1px solid #f3cfcb; }

.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__label em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; /* stops iOS zoom */
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 128px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #bfc5cd; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59, 130, 246, .16); }

.pw { position: relative; }
.pw input { padding-right: 68px; }
.pw__toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  height: 34px; padding: 0 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pw__toggle:hover { background: var(--bg-alt); }
.link-muted { font-size: 14px; color: var(--ink-3); text-decoration: none; }
.link-muted:hover { color: var(--ink); text-decoration: underline; }
.fineprint { font-size: 13px; color: var(--ink-3); text-align: center; }
.fineprint a { color: var(--ink-2); }

/* Product preview */
.preview {
  margin: 72px auto -1px;
  max-width: 1240px;
  border: 1px solid var(--night-line); border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--night-2);
  overflow: hidden;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .35);
}
.preview__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--night-line); }
.preview__bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a3340; }
.preview__bar em { margin-left: 12px; font-style: normal; font-size: 12px; color: var(--on-night-2); }
.preview__body { display: grid; grid-template-columns: 56px minmax(0, 1fr); min-height: 300px; }
.preview__side { border-right: 1px solid var(--night-line); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.preview__side i { width: 22px; height: 22px; border-radius: 6px; background: #1f2732; }
.preview__side i.is-on { background: var(--accent); }
.preview__main { padding: 20px; display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--night-line); border-radius: 10px; padding: 14px; background: rgba(255, 255, 255, .02); display: grid; gap: 2px; }
.kpi small { font-size: 12px; color: var(--on-night-2); }
.kpi b { font-size: 20px; color: #fff; letter-spacing: -0.02em; }
.kpi span { font-size: 12px; color: var(--on-night-2); }
.kpi span.up { color: #4cc38a; }
.preview__row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.chart, .feed { border: 1px solid var(--night-line); border-radius: 10px; padding: 14px; background: rgba(255, 255, 255, .02); }
.chart small, .feed small { font-size: 12px; color: var(--on-night-2); }
.bars { height: 130px; display: flex; align-items: flex-end; gap: 6px; margin-top: 12px; }
.bars i { flex: 1; height: var(--h); background: #2b3644; border-radius: 3px 3px 0 0; }
.bars i:last-child { background: var(--accent); }
.feed ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.feed li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--night-line); font-size: 12.5px; color: var(--on-night); }
.feed li:first-child { border-top: 0; }
.feed li span:nth-child(2) { color: var(--on-night-2); }
.feed li em { font-style: normal; font-size: 11px; font-weight: 600; color: #4cc38a; background: rgba(76, 195, 138, .12); padding: 2px 8px; border-radius: 999px; }

/* Mobile money strip */
.strip { border-bottom: 1px solid var(--line); }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.strip p { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 40px; }
.strip li { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: #4a5462; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; scroll-margin-top: 64px; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: 44px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #8a7a10; margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 720; letter-spacing: -0.03em; }
.section__head > p:not(.kicker) { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 60ch; }

/* Products — bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  grid-column: span 3;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; background: #fff;
  transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.tile:hover { border-color: var(--line-2); box-shadow: 0 10px 30px rgba(11, 16, 22, .06); transform: translateY(-2px); }
.tile--feature { grid-column: span 3; grid-row: span 2; background: var(--night); color: var(--on-night); border-color: var(--night); }
.tile--feature:hover { border-color: var(--night); }
.tile--wide { grid-column: span 3; }
.tile__icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: #fbf5c9; color: #5f540b; margin-bottom: 18px;
}
.tile--feature .tile__icon { background: rgba(244, 220, 60, .14); color: var(--accent); }
.tile__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 19px; font-weight: 700; }
.tile--feature h3 { font-size: 26px; color: #fff; }
.tile p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.tile--feature p { color: var(--on-night-2); font-size: 16.5px; max-width: 48ch; }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--on-night); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(244, 220, 60, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23f4dc3c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.service__num { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.service h3 { margin-top: 28px; font-size: 20px; font-weight: 700; }
.service p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 28px 28px 0 0; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; top: -15px; left: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
}
.steps h3 { margin-top: 10px; font-size: 17px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__text p:not(.kicker) { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.about__text h2 { margin-bottom: 4px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.points li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.points h3 { font-size: 16px; font-weight: 700; }
.points p { margin-top: 6px; color: var(--ink-3); font-size: 15px; }

/* FAQ */
.faq__list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%23384250' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; color: var(--ink-2); max-width: 80ch; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro > p:not(.kicker) { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.contact__lines { margin-top: 28px; display: grid; gap: 18px; }
.contact__lines p { display: grid; }
.contact__lines span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.contact__lines a { color: var(--ink); font-weight: 600; font-size: 17px; }
.contact__form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2.5vw, 32px); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 14px; }
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: var(--danger); }

/* CTA band */
.cta { background: var(--night); color: var(--on-night); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 720; letter-spacing: -0.03em; color: #fff; }
.cta p { margin-top: 8px; color: var(--on-night-2); font-size: 17px; }

/* Footer */
.footer { background: var(--night); color: var(--on-night-2); border-top: 1px solid var(--night-line); font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer .brand { color: #fff; }
.footer__brand p { margin-top: 14px; max-width: 36ch; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.footer ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer ul a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid var(--night-line); padding-top: 20px; padding-bottom: 28px; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .topnav a[href="#process"] { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hero__grid, .about, .contact { grid-template-columns: 1fr; }
  .signin { max-width: 520px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile--wide { grid-column: span 1; }
  .tile--feature { grid-column: 1 / -1; grid-row: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; border-top: 0; }
  .steps li { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .topnav, .topbar__demo { display: none; }
  .preview__row { grid-template-columns: 1fr; }
  .feed { display: none; }
}

@media (max-width: 640px) {
  .hero { padding-top: 44px; }
  .stats { gap: 24px; }
  .stats dd { font-size: 19px; }
  .bento, .services, .points, .grid2 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .signin { padding: 22px; }
  .preview { margin-top: 48px; }
  .preview__body { grid-template-columns: 1fr; }
  .preview__side { display: none; }
  .preview__main { padding: 12px; }
  .kpi b { font-size: 17px; }
  .bars { height: 90px; }
  .strip__inner { justify-content: flex-start; }
  .strip ul { gap: 8px 24px; }
  .strip li { font-size: 15px; }
  .cta__inner { padding-top: 44px; padding-bottom: 44px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ---------- Photos: whole picture, never cropped ---------- */
.media {
  margin: 0 0 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #11161d;
  line-height: 0;
}
.media picture { display: contents; }
.media img {
  width: 100%; height: auto;      /* natural shape of each photo — nothing cut, no filler */
  transition: filter .4s ease;
}
.tile:hover .media img, .service:hover .media img { filter: brightness(1.06) saturate(1.05); }

.tile, .service { display: flex; flex-direction: column; }
.tile > .media:first-child + .tile__icon { display: none; }
.service .service__num { display: block; }
.service h3 { margin-top: 8px; }

/* About: one wide photo at its natural shape */
.banner { margin: 0 0 clamp(40px, 5vw, 64px); border-radius: var(--radius-lg); overflow: hidden; line-height: 0; background: #11161d; }
.banner img { width: 100%; height: auto; }

/* WiFi Manager: full-width tile — text on the left, whole photo on the right */
.bento > .tile--feature {
  grid-column: 1 / -1; grid-row: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  column-gap: clamp(28px, 4vw, 56px);
  align-content: center;
  padding: clamp(26px, 3vw, 40px);
}
.tile--feature > :not(.media) { grid-column: 1; }
.tile--feature > .media { grid-column: 2; grid-row: 1 / span 5; align-self: center; margin: 0; }
@media (max-width: 860px) {
  .bento > .tile--feature { grid-template-columns: 1fr; }
  .tile--feature > .media { grid-column: 1; grid-row: auto; margin-top: 24px; }
}

/* ---------- Motion (smooth, subtle; off for reduced-motion users) ---------- */
.tile, .service, .points li, .kpi, .chart, .feed { will-change: transform; }
.tile { transition: border-color .2s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 16, 22, .10); }
.tile--feature:hover { box-shadow: 0 22px 50px rgba(10, 14, 19, .35); }
.service, .points li { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .2s ease; }
.service:hover, .points li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 16, 22, .08); border-color: var(--line-2); }
.btn--accent { box-shadow: 0 6px 20px rgba(244, 220, 60, .18); }
.btn--accent:hover { box-shadow: 0 10px 28px rgba(244, 220, 60, .32); transform: translateY(-1px); }

/* Scroll reveal — only when JS is running (html.js), so content never stays hidden */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero entrance */
html.js .hero__copy > *, html.js .signin {
  opacity: 0; transform: translateY(16px);
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards;
}
html.js .hero__copy > :nth-child(2) { animation-delay: .08s; }
html.js .hero__copy > :nth-child(3) { animation-delay: .16s; }
html.js .hero__copy > :nth-child(4) { animation-delay: .24s; }
html.js .hero__copy > :nth-child(5) { animation-delay: .32s; }
html.js .signin { animation-delay: .2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Dashboard preview: bars grow and tiles fade in when it comes into view */
html.js .preview .bars i { transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
html.js .preview .bars i:nth-child(n) { transition-delay: calc(var(--i, 0) * 45ms); }
html.js .preview.is-in .bars i { transform: scaleY(1); }
html.js .preview .kpi, html.js .preview .feed li { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
html.js .preview.is-in .kpi, html.js .preview.is-in .feed li { opacity: 1; transform: none; }
.pill__dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(244, 220, 60, .18); } 50% { box-shadow: 0 0 0 6px rgba(244, 220, 60, .06); } }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .hero__copy > *, html.js .signin,
  html.js .preview .kpi, html.js .preview .feed li { opacity: 1 !important; transform: none !important; animation: none !important; }
  html.js .preview .bars i { transform: none !important; }
  .pill__dot { animation: none; }
  .tile:hover, .service:hover, .points li:hover, .btn--accent:hover { transform: none; }
  .media img { transition: none; }
}

/* ---------- Products carousel ---------- */
.carousel { position: relative; }

.carousel__tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.carousel__tab {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font: inherit; font-size: 14.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.carousel__tab:hover { border-color: var(--ink-3); color: var(--ink); }
.carousel__tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.carousel__viewport { border-radius: var(--radius-lg); overflow: hidden; background: var(--night); }
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(26px, 3.5vw, 48px);
  background: var(--night);
  color: var(--on-night);
}
.slide__icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(244, 220, 60, .14); color: var(--accent); margin-bottom: 18px;
}
.slide__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.slide h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 720; color: #fff; letter-spacing: -0.025em; }
.slide p { margin-top: 12px; color: var(--on-night-2); font-size: 17px; max-width: 52ch; }
.slide .checks { margin-top: 24px; }
.slide__cta { margin-top: 30px; }

.slide__media { margin: 0; border-radius: 12px; overflow: hidden; line-height: 0; background: #11161d; }
.slide__media img { width: 100%; height: auto; }   /* whole photo, never cropped */

/* gentle entrance of the text when a slide becomes active */
html.js .slide .slide__text > * { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
html.js .slide.is-active .slide__text > * { opacity: 1; transform: none; }
html.js .slide.is-active .slide__text > :nth-child(2) { transition-delay: .05s; }
html.js .slide.is-active .slide__text > :nth-child(3) { transition-delay: .1s; }
html.js .slide.is-active .slide__text > :nth-child(4) { transition-delay: .15s; }
html.js .slide.is-active .slide__text > :nth-child(5) { transition-delay: .2s; }

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.carousel__arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.carousel__arrow:hover { border-color: var(--ink-3); background: var(--bg-alt); }
.carousel__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line-2); cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.carousel__dot.is-active { width: 26px; background: var(--ink); }

@media (max-width: 860px) {
  .slide { grid-template-columns: 1fr; align-items: start; }
  .slide__media { order: -1; }
  .carousel__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .carousel__tabs::-webkit-scrollbar { display: none; }
  .carousel__tab { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track { scroll-behavior: auto; }
  html.js .slide .slide__text > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Carousel photo fills the whole right half: top, bottom and right edge */
.slide {
  padding: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.slide__text {
  padding: clamp(28px, 4vw, 56px);
  align-self: center;
}
.slide__media {
  border-radius: 0;
  aspect-ratio: 3 / 2;          /* the photo's own shape sets the slide height */
  height: 100%;
  min-height: 100%;
}
.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* only trims if the text is taller than the photo */
  object-position: center;
}

@media (max-width: 860px) {
  .slide { grid-template-columns: 1fr; }
  .slide__media { height: auto; }
  .slide__text { padding: 24px 22px 28px; }
}

/* Service photos: same frame for all three */
.service .media { aspect-ratio: 3 / 2; }
.service .media img { width: 100%; height: 100%; object-fit: cover; }
/* the shop photo is wider than 3:2 — keep the person in view */
.service .media img[src*="support"] { object-position: 68% 50%; }

/* ---------- About: text on the photo ---------- */
.about-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
}
.about-hero picture { display: block; line-height: 0; }
.about-hero img { width: 100%; height: auto; display: block; }
.about-hero__text { padding: clamp(24px, 4vw, 48px); }
.about-hero .kicker { color: var(--accent); }
.about-hero h2 { color: #fff; }
.about-hero .about__copy p:not(.kicker) { margin-top: 14px; color: #c9d0da; font-size: 16.5px; max-width: 58ch; }
.about-hero strong { color: #fff; }

.points--row { margin-top: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* wide screens: text sits on the dark wall on the left of the photo */
@media (min-width: 1200px) {
  .about-hero__text {
    position: absolute; inset: 0 auto 0 0;
    width: min(44%, 600px);
    display: flex; align-items: center;
    padding: clamp(32px, 3.5vw, 56px);
    background: linear-gradient(90deg, rgba(10, 14, 19, .86) 0%, rgba(10, 14, 19, .72) 60%, rgba(10, 14, 19, 0) 100%);
  }
  .about-hero h2 { font-size: clamp(28px, 2.6vw, 38px); }
}

@media (max-width: 1024px) {
  .points--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .points--row { grid-template-columns: 1fr; }
}

/* About photo: one smooth layer over the whole image */
.about-hero picture { position: relative; }
.about-hero picture::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 65% 40%, rgba(10, 14, 19, 0) 45%, rgba(10, 14, 19, .45) 100%),
    linear-gradient(180deg, rgba(10, 14, 19, 0) 60%, rgba(10, 14, 19, .35) 100%);
}
@media (min-width: 1200px) {
  .about-hero__text {
    width: 100%;
    max-width: none;
    background: linear-gradient(90deg,
      rgba(10, 14, 19, .90) 0%,
      rgba(10, 14, 19, .80) 26%,
      rgba(10, 14, 19, .55) 42%,
      rgba(10, 14, 19, .22) 60%,
      rgba(10, 14, 19, .06) 78%,
      rgba(10, 14, 19, 0) 100%);
  }
  .about-hero .about__copy { max-width: min(560px, 40%); }
  .about-hero .about__copy { width: 100%; }
}

/* About: "why us" cards on the right of the photo */
.about-points {
  list-style: none; margin: 0; padding: 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.about-points li {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.about-points li:hover { background: rgba(255, 255, 255, .10); transform: translateY(-2px); }
.about-points h3 { font-size: 15.5px; font-weight: 700; color: #fff; }
.about-points p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: #c4ccd6; }

@media (min-width: 1200px) {
  .about-points {
    position: absolute; z-index: 2;
    top: 50%; right: clamp(24px, 2.5vw, 40px); transform: translateY(-50%);
    width: min(300px, 23%);
    padding: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .about-points li { padding: 14px 16px; }
  /* smooth layer: dark on both sides, clear over the person in the middle */
  .about-hero__text {
    background: linear-gradient(90deg,
      rgba(10, 14, 19, .90) 0%,
      rgba(10, 14, 19, .78) 26%,
      rgba(10, 14, 19, .50) 40%,
      rgba(10, 14, 19, .15) 52%,
      rgba(10, 14, 19, .10) 62%,
      rgba(10, 14, 19, .45) 76%,
      rgba(10, 14, 19, .80) 100%);
  }
  .about-hero .about__copy { max-width: min(540px, 38%); }
}
@media (max-width: 640px) {
  .about-points { grid-template-columns: 1fr; }
}

/* ---------- Hero without the sign-in card: one centred column ---------- */
.hero__grid--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero__grid--center .hero__copy { max-width: 920px; display: flex; flex-direction: column; align-items: center; }
.hero__grid--center h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.hero__grid--center .lead { margin-left: auto; margin-right: auto; }
.hero__grid--center .hero__actions { justify-content: center; }
.hero__grid--center .stats { justify-content: center; }
.hero__grid--center .stats div { text-align: left; }

/* ---------- Sign-in pop-up (native <dialog>, no library) ---------- */
.signin-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: visible;
  color: var(--ink);
}
.signin-dialog .signin {
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.signin-dialog::backdrop {
  background: rgba(6, 9, 13, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.signin-dialog__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--bg-alt); color: var(--ink-2);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .2s ease, color .2s ease;
}
.signin-dialog__close:hover { background: var(--line); color: var(--ink); }

/* open / close animation */
.signin-dialog[open] { animation: dialogIn .28s cubic-bezier(.2, .7, .2, 1); }
.signin-dialog[open]::backdrop { animation: fadeIn .28s ease; }
.signin-dialog.is-closing { animation: dialogOut .18s ease forwards; }
.signin-dialog.is-closing::backdrop { animation: fadeOut .18s ease forwards; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dialogOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .signin-dialog[open], .signin-dialog[open]::backdrop, .signin-dialog.is-closing, .signin-dialog.is-closing::backdrop { animation: none; }
}
/* the card no longer sits in the hero, so it needs no entrance animation there */
html.js .signin { opacity: 1; transform: none; animation: none; }

/* ---------- Hero illustration (right side) ---------- */
.hero-visual { position: relative; height: 480px; }
.hv-card, .hv-phone, .hv-toast {
  position: absolute;
  background: rgba(18, 24, 33, .92);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--on-night);
}
.hv-main { left: 0; top: 34px; width: 78%; border-radius: 16px; padding: 18px; }
.hv-main__head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.hv-main__head b { color: #fff; font-weight: 600; }
.hv-main__head em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--on-night-2); border: 1px solid var(--night-line); border-radius: 999px; padding: 2px 10px; }
.hv-logo { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .18); }
.hv-revenue { margin-top: 16px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--night-line); }
.hv-revenue small { font-size: 12px; color: var(--on-night-2); }
.hv-revenue strong { display: block; margin-top: 2px; font-size: 24px; letter-spacing: -0.02em; color: #fff; }
.hv-spark { width: 100%; height: 64px; margin-top: 8px; display: block; }
.hv-rows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.hv-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid var(--night-line); }
.hv-rows span { display: grid; line-height: 1.3; }
.hv-rows b { font-size: 13.5px; color: #fff; font-weight: 600; }
.hv-rows small { font-size: 12px; color: var(--on-night-2); }
.hv-rows em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.hv-rows em.ok { color: #4cc38a; background: rgba(76, 195, 138, .12); }
.hv-rows em.warn { color: #f0c94a; background: rgba(240, 201, 74, .12); }
.hv-ic { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; background: rgba(244, 220, 60, .12) center / 16px no-repeat; }
.hv-ic--office { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4dc3c' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M16 4.5a3 3 0 010 7'/%3E%3C/svg%3E"); }
.hv-ic--stock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4dc3c' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4-9 4-9-4zM3 7v10l9 4 9-4V7M12 11v10'/%3E%3C/svg%3E"); }
.hv-ic--sms { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4dc3c' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }

.hv-phone { right: 2%; top: 130px; width: 190px; height: 340px; border-radius: 30px; padding: 10px; background: #0d1219; }
.hv-phone__notch { width: 64px; height: 6px; border-radius: 999px; background: #1f2732; margin: 4px auto 12px; }
.hv-phone__screen { height: calc(100% - 22px); border-radius: 22px; background: linear-gradient(180deg, #151c26, #10161e); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.hv-phone__screen > small { font-size: 11px; color: var(--on-night-2); }
.hv-phone__screen > b { font-size: 17px; color: #fff; }
.hv-pay { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #c9d0da; padding: 10px; border-radius: 10px; background: rgba(76, 195, 138, .10); border: 1px solid rgba(76, 195, 138, .25); }
.hv-tick { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; background: #4cc38a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230a0e13' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hv-code { margin-top: 6px; padding: 10px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, .18); display: grid; gap: 2px; }
.hv-code small { font-size: 11px; color: var(--on-night-2); }
.hv-code span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: .08em; color: var(--accent); }
.hv-connected { margin-top: auto; text-align: center; font-size: 13px; font-weight: 700; color: #0a0e13; background: var(--accent); border-radius: 10px; padding: 10px; }

.hv-toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; }
.hv-toast div { display: grid; line-height: 1.3; }
.hv-toast b { color: #fff; font-weight: 600; }
.hv-toast small { font-size: 11.5px; color: var(--on-night-2); }
.hv-toast--a { left: 50%; top: 0; }
.hv-toast--b { left: -6%; bottom: 10px; }
.hv-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.hv-dot--green { background: #4cc38a; box-shadow: 0 0 0 4px rgba(76, 195, 138, .18); }
.hv-dot--yellow { background: var(--accent); box-shadow: 0 0 0 4px rgba(244, 220, 60, .18); }

/* slow, gentle drift — each piece on its own rhythm */
.hv-main { animation: hvFloat 9s ease-in-out infinite; }
.hv-phone { animation: hvFloat 7s ease-in-out -2s infinite; }
.hv-toast--a { animation: hvFloat 6s ease-in-out -1s infinite; }
.hv-toast--b { animation: hvFloat 8s ease-in-out -3s infinite; }
@keyframes hvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* entrance with the rest of the hero */
html.js .hero-visual { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) .25s forwards; }

@media (max-width: 1180px) {
  .hero-visual { height: 440px; }
  .hv-phone { width: 170px; height: 310px; }
}
@media (max-width: 1024px) {
  .hero-visual { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-main, .hv-phone, .hv-toast--a, .hv-toast--b { animation: none; }
  html.js .hero-visual { opacity: 1; transform: none; animation: none; }
}

/* hero illustration: spacing so nothing important is covered */
.hero-visual { height: 540px; }
.hv-main { width: 66%; }
.hv-phone { right: 0; top: 140px; width: 178px; height: 330px; }
.hv-toast--a { left: auto; right: 22%; top: 0; }
.hv-toast--b { left: 6%; bottom: 0; }
@media (max-width: 1180px) {
  .hero-visual { height: 520px; }
  .hv-main { width: 70%; }
  .hv-phone { width: 160px; height: 300px; }
}
.hv-toast--a { right: 8%; top: -14px; }

/* ---------- Carousel illustrations (coded, scale with the slide) ---------- */
.fig {
  position: relative;
  width: 100%;
  min-height: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  container-type: inline-size;
  background:
    radial-gradient(55% 60% at 72% 28%, rgba(244, 220, 60, .11), transparent 70%),
    radial-gradient(50% 50% at 15% 90%, rgba(76, 195, 138, .06), transparent 70%),
    #0d1219;
  color: var(--on-night);
}
.fig::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 7cqw 7cqw;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, #000 35%, transparent 80%);
}
/* everything inside is sized in em, and 1em follows the width of the figure */
.fig > * { font-size: clamp(6px, 2.05cqw, 15px); }

.fc, .ft {
  position: absolute;
  background: rgba(22, 29, 39, .94);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 2.2em 5em rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.fc { border-radius: 1.1em; padding: 1.15em 1.25em; }
.fc small { display: block; font-size: .85em; color: var(--on-night-2); }
.fc .big { display: block; margin-top: .15em; font-size: 2.1em; line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
.fc__head { display: flex; align-items: baseline; gap: .6em; margin-bottom: .8em; }
.fc__head b { font-size: 1.05em; color: #fff; font-weight: 600; }
.fc__head em { margin-left: auto; font-style: normal; font-size: .82em; color: var(--on-night-2); }
.fc__head em.ok { color: #4cc38a; background: rgba(76, 195, 138, .12); padding: .2em .7em; border-radius: 999px; }

.ft { display: flex; align-items: center; gap: .8em; padding: .85em 1.05em; border-radius: .9em; }
.ft div { display: grid; line-height: 1.35; }
.ft b { font-size: 1em; color: #fff; font-weight: 600; }
.ft small { font-size: .85em; color: var(--on-night-2); }

.dot { width: .75em; height: .75em; border-radius: 50%; flex: 0 0 auto; }
.dot--g { background: #4cc38a; box-shadow: 0 0 0 .3em rgba(76, 195, 138, .18); }
.dot--y { background: var(--accent); box-shadow: 0 0 0 .3em rgba(244, 220, 60, .18); }
.dot--r { background: #ef6b6b; box-shadow: 0 0 0 .3em rgba(239, 107, 107, .18); }

/* WiFi: router rows with signal bars */
.fl-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.fl-rows li { display: flex; align-items: center; gap: .8em; padding: .6em .75em; border-radius: .7em; background: rgba(255, 255, 255, .03); border: 1px solid var(--night-line); }
.fl-rows span:nth-child(2) { display: grid; line-height: 1.3; }
.fl-rows b { font-size: .95em; color: #fff; font-weight: 600; }
.sig { margin-left: auto; display: flex; align-items: flex-end; gap: .2em; height: 1.1em; }
.sig i { width: .3em; background: #4cc38a; border-radius: .1em; }
.sig i:nth-child(1) { height: 30%; } .sig i:nth-child(2) { height: 55%; } .sig i:nth-child(3) { height: 80%; } .sig i:nth-child(4) { height: 100%; }
.sig i.off, .sig--off i { background: #2b3644; }
.minibars { margin-top: .8em; height: 3.4em; display: flex; align-items: flex-end; gap: .35em; }
.minibars i { flex: 1; height: var(--h); background: #2b3644; border-radius: .2em .2em 0 0; }
.minibars i.hi { background: var(--accent); }
.chips { margin-top: .7em; display: flex; flex-wrap: wrap; gap: .4em; }
.chips span { font-size: .82em; padding: .3em .7em; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); color: #d3d9e1; }

/* line items (voucher, receipt, ledger, payroll) */
.lines { list-style: none; margin: 0; padding: 0; display: grid; }
.lines li { display: flex; gap: .8em; padding: .5em 0; border-top: 1px solid var(--night-line); font-size: .95em; color: #d3d9e1; }
.lines li:first-child { border-top: 0; }
.lines li span:nth-child(2) { margin-left: auto; font-variant-numeric: tabular-nums; }
.lines li.total { color: #fff; font-weight: 700; border-top-color: rgba(255, 255, 255, .18); }
.lines--status li em { font-style: normal; font-size: .82em; font-weight: 600; padding: .15em .65em; border-radius: 999px; }
.lines--status em.ok { color: #4cc38a; background: rgba(76, 195, 138, .12); }
.lines--status em.due { color: #f0c94a; background: rgba(240, 201, 74, .12); }
.paid { margin-top: .8em; text-align: center; font-size: .9em; font-weight: 700; color: #0a0e13; background: var(--accent); border-radius: .6em; padding: .55em; }

/* PRS approval track */
.track { list-style: none; margin: .7em 0 0; padding: 0; display: grid; gap: .9em; }
.track li { position: relative; display: flex; align-items: center; gap: .7em; font-size: .95em; color: #d3d9e1; }
.track i { width: 1.2em; height: 1.2em; border-radius: 50%; flex: 0 0 auto; border: 2px solid #3a4655; }
.track li.done i { border-color: #4cc38a; background: #4cc38a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230a0e13' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.track li.now { color: #fff; font-weight: 600; }
.track li.now i { border-color: var(--accent); box-shadow: 0 0 0 .3em rgba(244, 220, 60, .18); }
.track li:not(:last-child)::after { content: ""; position: absolute; left: .55em; top: 1.3em; height: .9em; width: 2px; background: #3a4655; }
.track li.done:not(:last-child)::after { background: #4cc38a; }

/* Smart Stock levels */
.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: .75em; }
.levels li { display: grid; gap: .3em; font-size: .9em; color: #d3d9e1; }
.levels li i { display: block; height: .55em; border-radius: 999px; background: linear-gradient(90deg, #4cc38a var(--w), #232c38 var(--w)); }
.levels li.low { color: #ffb4b4; }
.levels li.low i { background: linear-gradient(90deg, #ef6b6b var(--w), #232c38 var(--w)); }

/* Debt ring */
.ringcard { display: grid; place-items: center; padding: 1.4em; }
.ring { width: 100%; max-width: 9em; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring__bg { stroke: #232c38; }
.ring__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 301.6; stroke-dashoffset: calc(301.6 - 301.6 * var(--p) / 100); }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label strong { font-size: 1.9em; color: #fff; line-height: 1; }
.ring__label small { margin-top: .2em; }
.ft--bubble small { white-space: normal; }

/* My Office leave request */
.who { display: flex; align-items: center; gap: .8em; }
.who span:last-child { display: grid; line-height: 1.3; }
.who b { color: #fff; font-weight: 600; }
.avatar { width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 220, 60, .16); color: var(--accent); font-weight: 700; }
.actions { margin-top: 1em; display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.actions span { text-align: center; font-size: .9em; font-weight: 600; padding: .5em; border-radius: .6em; }
.a-yes { background: var(--accent); color: #0a0e13; }
.a-no { border: 1px solid rgba(255, 255, 255, .16); color: #d3d9e1; }

/* gentle drift — only on the slide that is showing */
.slide.is-active .fl1 { animation: hvFloat 9s ease-in-out infinite; }
.slide.is-active .fl2 { animation: hvFloat 7s ease-in-out -2s infinite; }
.slide.is-active .fl3 { animation: hvFloat 8s ease-in-out -4s infinite; }
@media (prefers-reduced-motion: reduce) {
  .slide.is-active .fl1, .slide.is-active .fl2, .slide.is-active .fl3 { animation: none; }
}

/* the figure fills the right half like the photo did */
.slide > .fig { align-self: stretch; }
@media (max-width: 860px) {
  .slide > .fig { order: -1; min-height: 0; }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote {
  margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .2s ease;
}
.quote:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 16, 22, .08); border-color: var(--line-2); }
.quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.quote blockquote::before {
  content: ""; display: block; width: 28px; height: 22px; margin-bottom: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M0 22V12.5C0 5.6 3.6 1.4 10.6 0l1.3 3C8.2 4.3 6.4 6.8 6.2 10.5H11V22H0zm16 0V12.5C16 5.6 19.6 1.4 26.6 0l1.3 3c-3.7 1.3-5.5 3.8-5.7 7.5H27V22H16z' fill='%23f4dc3c'/%3E%3C/svg%3E") no-repeat;
}
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote__logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--bg-alt); border: 1px solid var(--line); flex: 0 0 auto; }
.quote__logo--initial { display: grid; place-items: center; font-weight: 700; color: #5f540b; background: #fbf5c9; border-color: #f1e6a3; }
.quote__who { display: grid; line-height: 1.35; min-width: 0; }
.quote__who b { font-size: 15px; }
.quote__who b a { text-decoration: none; }
.quote__who b a:hover { text-decoration: underline; }
.quote__who small { font-size: 13.5px; color: var(--ink-3); }

@media (max-width: 1024px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- About (v2): dark band, timeline, photo with badges ---------- */
.about2 { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; border: 0; }
.about2::before {
  content: ""; position: absolute; pointer-events: none;
  width: 900px; height: 700px; right: -260px; top: -280px;
  background: radial-gradient(closest-side, rgba(244, 220, 60, .08), transparent);
}
.about2 > .wrap { position: relative; }
.about2__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about2 .kicker { color: var(--accent); }
.about2 h2 { color: #fff; }
.about2__lead { margin-top: 16px; font-size: 18px; color: var(--on-night-2); max-width: 54ch; }

.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 31px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, rgba(244, 220, 60, .7), rgba(244, 220, 60, .15));
}
.timeline li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__year {
  position: relative; z-index: 1;
  justify-self: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent);
  background: var(--night);
  border: 1px solid rgba(244, 220, 60, .45);
  border-radius: 999px; padding: 4px 10px;
  height: fit-content;
}
.timeline li.is-now .timeline__year { background: var(--accent); color: #0a0e13; box-shadow: 0 0 0 6px rgba(244, 220, 60, .14); }
.timeline h3 { font-size: 17px; font-weight: 700; color: #fff; margin-top: 2px; }
.timeline p { margin-top: 6px; font-size: 15.5px; color: var(--on-night-2); max-width: 52ch; }

.about2__photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: visible; }
.about2__photo picture { display: block; line-height: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.about2__photo img { width: 100%; height: auto; }
.badge {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(18, 24, 33, .88);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  color: var(--on-night);
}
.badge--a { left: -18px; bottom: -22px; display: grid; gap: 0; padding: 14px 20px; }
.badge--a strong { font-size: 32px; line-height: 1; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.badge--a small { font-size: 13px; color: var(--on-night-2); }
.badge--b { right: -14px; top: -18px; }
.badge--b span:last-child { display: grid; line-height: 1.3; }
.badge--b b { font-size: 14px; color: #fff; }
.badge--b small { font-size: 12px; color: var(--on-night-2); }
.about2__photo .dot { width: 10px; height: 10px; }
html.js .about2 .badge--a { animation: hvFloat 8s ease-in-out infinite; }
html.js .about2 .badge--b { animation: hvFloat 7s ease-in-out -3s infinite; }

.values { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.values li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--night-line);
  transition: background-color .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.values li:hover { background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
.values h3 { font-size: 15.5px; font-weight: 700; color: #fff; }
.values p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--on-night-2); }
.vi { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; background: rgba(244, 220, 60, .12) center / 18px no-repeat; }
.vi--people { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4dc3c' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M16 4.5a3 3 0 010 7M18 14.5c1.8.9 3 2.8 3 5'/%3E%3C/svg%3E"); }
.vi--clock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4dc3c' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.vi--lock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4dc3c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E"); }
.vi--tag { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4dc3c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12l-8 8-9-9V3h8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }

@media (max-width: 1024px) {
  .about2__grid { grid-template-columns: 1fr; }
  .about2__visual { margin-top: 8px; }
}
@media (max-width: 640px) {
  .values { grid-template-columns: 1fr; }
  .badge--a { left: 10px; bottom: -18px; }
  .badge--b { right: 10px; top: -14px; }
  .badge--a strong { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .about2 .badge--a, html.js .about2 .badge--b { animation: none; }
}
.timeline::before { bottom: auto; height: calc(100% - 64px); }

/* ---------- FAQ (v2) ---------- */
.faq2__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq2__intro { position: sticky; top: 96px; }
.faq2__lead { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 42ch; }
.faq2__ask {
  margin-top: 32px; padding: 20px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-alt);
}
.faq2__ask-icon {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 11px;
  background: #fbf5c9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f540b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M9 9.5a3 3 0 115 2c-.8.5-1.5 1-1.5 2'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.faq2__ask b { font-size: 16px; }
.faq2__ask p { font-size: 14.5px; color: var(--ink-3); }
.faq2__ask .btn { grid-column: 2; justify-self: start; margin-top: 10px; }

.faq2__list { display: grid; gap: 10px; }
.qa {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .25s ease, box-shadow .3s ease, background-color .25s ease;
}
.qa:hover { border-color: var(--line-2); }
.qa.is-open, .qa[open] { border-color: #e9d977; box-shadow: 0 12px 34px rgba(11, 16, 22, .06); }
.qa summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 20px 22px; font-weight: 600; font-size: 17px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: none; }
.qa__num { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.qa__icon {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23384250' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), background-color .25s ease, border-color .25s ease;
}
.qa.is-open .qa__icon, .qa[open] .qa__icon { transform: rotate(45deg); background-color: var(--accent); border-color: var(--accent); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 22px 22px calc(22px + 16px + 2ch); color: var(--ink-2); font-size: 16px; max-width: 70ch; }

@media (max-width: 1024px) {
  .faq2__grid { grid-template-columns: 1fr; }
  .faq2__intro { position: static; }
}
@media (max-width: 640px) {
  .qa summary { padding: 16px; gap: 12px; font-size: 16px; }
  .qa__a p { padding: 0 16px 18px; }
}

/* ---------- Contact (v2) ---------- */
.contact2__card {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  border-radius: 20px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(11, 16, 22, .08);
}
.contact2__side {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--on-night);
  padding: clamp(28px, 4vw, 52px);
}
.contact2__side::before {
  content: ""; position: absolute; pointer-events: none;
  width: 520px; height: 520px; left: -180px; bottom: -260px;
  background: radial-gradient(closest-side, rgba(244, 220, 60, .12), transparent);
}
.contact2__side > * { position: relative; }
.contact2__side .kicker { color: var(--accent); }
.contact2__side h2 { color: #fff; }
.contact2__lead { margin-top: 12px; font-size: 17px; color: var(--on-night-2); }

.contact2__ways { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.contact2__ways li { display: flex; align-items: center; gap: 14px; }
.contact2__ways li > span:last-child { display: grid; line-height: 1.3; }
.contact2__ways small { font-size: 12.5px; color: var(--on-night-2); }
.contact2__ways a { color: #fff; font-weight: 600; font-size: 16.5px; text-decoration: none; }
.contact2__ways a:hover { text-decoration: underline; }
.cw { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; background: rgba(244, 220, 60, .12) center / 20px no-repeat; border: 1px solid rgba(244, 220, 60, .25); }
.cw--mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4dc3c' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.cw--chat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4dc3c' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }

.contact2__next { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--night-line); }
.contact2__next-title { font-size: 13px; font-weight: 600; color: var(--on-night-2); margin-bottom: 14px; }
.contact2__next ol { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 14px; }
.contact2__next li { counter-increment: n; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; }
.contact2__next li::before {
  content: counter(n); grid-row: span 2;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: #0a0e13; background: var(--accent);
}
.contact2__next b { color: #fff; font-size: 15px; }
.contact2__next span { font-size: 14px; color: var(--on-night-2); }

.contact2__main { position: relative; padding: clamp(24px, 3.5vw, 48px); }
.contact2__form { background: none; border: 0; padding: 0; border-radius: 0; }

.topics { border: 0; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.topics label { position: relative; cursor: pointer; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.topics label:hover span { border-color: var(--ink-3); color: var(--ink); }
.topics input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.topics input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.contact2__form textarea { min-height: 140px; }
.contact2__send { min-width: 200px; }

.sent { min-height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 40px 0; }
.sent[hidden] { display: none; }
.sent__check {
  width: 64px; height: 64px; border-radius: 50%;
  background: #e5f6ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 30px no-repeat;
  animation: pop .5s cubic-bezier(.2, .9, .3, 1.4);
}
.sent h3 { font-size: 22px; margin-top: 6px; }
.sent p { color: var(--ink-2); max-width: 40ch; }
.sent .btn { margin-top: 12px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 1024px) {
  .contact2__card { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sent__check { animation: none; } }

/* ---------- Products tour (v3) ---------- */
.products2 { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.products2::before {
  content: ""; position: absolute; pointer-events: none;
  width: 1000px; height: 700px; left: 30%; top: -300px;
  background: radial-gradient(closest-side, rgba(244, 220, 60, .09), transparent);
}
.products2 > .wrap { position: relative; }
.products2 .kicker { color: var(--accent); }
.products2 h2 { color: #fff; }
.products2 .section__head > p:not(.kicker) { color: var(--on-night-2); }

.pt { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.4fr); gap: clamp(20px, 3vw, 40px); align-items: start; }

.pt__list { display: grid; gap: 8px; }
.pt__item {
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease;
}
.pt__item:hover { background: rgba(255, 255, 255, .03); }
.pt__item.is-active { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .10); }
.pt__btn {
  position: relative; width: 100%;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 16px 18px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  border-radius: 16px; overflow: hidden;
}
.pt__icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); color: var(--on-night-2);
  transition: background-color .35s ease, color .35s ease;
}
.pt__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pt__item.is-active .pt__icon { background: rgba(244, 220, 60, .14); color: var(--accent); }
.pt__name { display: grid; line-height: 1.35; }
.pt__name b { font-size: 17px; font-weight: 650; color: #cfd6df; transition: color .3s ease; }
.pt__name small { font-size: 14px; color: var(--on-night-2); }
.pt__item.is-active .pt__name b { color: #fff; }

/* progress line along the bottom of the active item's button */
.pt__prog { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .06); opacity: 0; }
.pt__prog::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--accent); border-radius: 2px; }
.pt__item.is-active .pt__prog { opacity: 1; }
.pt__prog::after { transform: scaleX(var(--p, 0)); transition: transform .1s linear; }
.pt.is-manual .pt__item.is-active .pt__prog { opacity: 0; }

/* details expand smoothly under the active item */
.pt__detail {
  max-height: 0; overflow: hidden; opacity: 0;
  padding: 0 18px;
  transition: max-height .5s cubic-bezier(.2, .7, .2, 1), padding .45s ease, opacity .35s ease;
}
.pt__item.is-active .pt__detail { max-height: 420px; padding: 0 18px 18px; opacity: 1; }
.pt__detail p { font-size: 15.5px; color: var(--on-night-2); }
.pt__detail .checks { margin-top: 14px; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.pt__detail .checks li { font-size: 14px; }
.pt__detail .btn { margin-top: 16px; }

/* stage with the illustration */
.pt__stage {
  position: relative;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  aspect-ratio: 3 / 2;
  background: #0d1219;
  position: sticky; top: 96px;
}
.pt__scene {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.03);
  transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.pt__scene.is-active { opacity: 1; transform: none; }
.pt__scene .fig { height: 100%; min-height: 100%; aspect-ratio: auto; }
.pt__scene .fig > * { font-size: clamp(6px, 1.95cqw, 15px); }

/* drift only on the visible scene */
.pt__scene.is-active .fl1 { animation: hvFloat 9s ease-in-out infinite; }
.pt__scene.is-active .fl2 { animation: hvFloat 7s ease-in-out -2s infinite; }
.pt__scene.is-active .fl3 { animation: hvFloat 8s ease-in-out -4s infinite; }

@media (max-width: 1024px) {
  .pt { grid-template-columns: 1fr; }
  .pt__stage { position: relative; top: 0; order: -1; }
}
@media (max-width: 640px) {
  .pt__detail .checks { grid-template-columns: 1fr; }
  .pt__btn { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt__scene { transition: none; transform: none; }
  .pt__scene.is-active .fl1, .pt__scene.is-active .fl2, .pt__scene.is-active .fl3 { animation: none; }
  .pt__detail { transition: none; }
}

/* dark sections that touch get a faint divider */
.products2 { border-top: 1px solid var(--night-line); }

/* ---------- Contact: same dark band as Products ---------- */
.contact2--dark { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; border: 0; border-top: 1px solid var(--night-line); }
.contact2--dark::before {
  content: ""; position: absolute; pointer-events: none;
  width: 1000px; height: 700px; right: 20%; top: -320px;
  background: radial-gradient(closest-side, rgba(244, 220, 60, .09), transparent);
}
.contact2--dark > .wrap { position: relative; }
.contact2--dark .contact2__card {
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.4fr);
  gap: clamp(20px, 3vw, 40px);
  background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible;
  align-items: start;
}
.contact2--dark .contact2__side { background: none; padding: 0; overflow: visible; }
.contact2--dark .contact2__side::before { content: none; }
.contact2--dark .contact2__main {
  background: rgba(18, 24, 33, .85);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  padding: clamp(22px, 3vw, 40px);
}

/* dark form fields */
.contact2--dark .field__label, .contact2--dark .topics legend { color: #e6eaf0; }
.contact2--dark .field__label em { color: var(--on-night-2); }
.contact2--dark input, .contact2--dark textarea {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
}
.contact2--dark input::placeholder, .contact2--dark textarea::placeholder { color: #7d8796; }
.contact2--dark input:hover, .contact2--dark textarea:hover { border-color: rgba(255, 255, 255, .22); }
.contact2--dark input:focus, .contact2--dark textarea:focus {
  border-color: rgba(244, 220, 60, .6);
  box-shadow: 0 0 0 3px rgba(244, 220, 60, .14);
  background: rgba(255, 255, 255, .06);
}
.contact2--dark input:-webkit-autofill, .contact2--dark textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px #141b25 inset; -webkit-text-fill-color: #fff;
}
.contact2--dark .topics span { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); color: #cfd6df; }
.contact2--dark .topics label:hover span { border-color: rgba(255, 255, 255, .3); color: #fff; }
.contact2--dark .topics input:checked + span { background: var(--accent); border-color: var(--accent); color: #0a0e13; }
.contact2--dark .form-status.is-error { color: #ff9b9b; }
.contact2--dark .form-status.is-ok { color: #6fd6a2; }

/* success screen on dark */
.contact2--dark .sent h3 { color: #fff; }
.contact2--dark .sent p { color: var(--on-night-2); }
.contact2--dark .sent__check { background-color: rgba(76, 195, 138, .15); }
.contact2--dark .sent .btn--dark { background: #fff; color: var(--ink); }

@media (max-width: 1024px) {
  .contact2--dark .contact2__card { grid-template-columns: 1fr; }
}

/* ---------- Footer (v2) ---------- */
.footer2 {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--on-night-2);
  border-top: 1px solid var(--night-line);
  font-size: 15px;
}
/* thin gold glow along the top edge */
.footer2::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 220, 60, .6), transparent);
}
.footer2::after {
  content: ""; position: absolute; pointer-events: none;
  width: 900px; height: 500px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(244, 220, 60, .07), transparent);
}
.footer2 > .wrap { position: relative; z-index: 1; }

.f2-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--night-line);
}
.f2-cta h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 750; letter-spacing: -0.035em; color: #fff; max-width: 18ch; }
.f2-cta p { margin-top: 10px; font-size: 17px; color: var(--on-night-2); }
.f2-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.f2-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px; padding: 48px 0 40px;
}
.f2-brand .brand { color: #fff; }
.f2-brand p { margin-top: 14px; max-width: 38ch; line-height: 1.6; }
.f2-mail {
  display: inline-block; margin-top: 16px;
  color: #fff; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(244, 220, 60, .5);
  transition: border-color .2s ease, color .2s ease;
}
.f2-mail:hover { color: var(--accent); border-color: var(--accent); }
.f2-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.f2-facts span {
  font-size: 12.5px; font-weight: 600; color: #cfd6df;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line);
}
.f2-col h4 { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #fff; margin-bottom: 16px; }
.f2-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.f2-col a {
  display: inline-block; color: var(--on-night-2); text-decoration: none;
  transition: color .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.f2-col a:hover { color: #fff; transform: translateX(3px); }

.f2-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0 24px; border-top: 1px solid var(--night-line); font-size: 13.5px;
}
.f2-bottom__right { display: flex; align-items: center; gap: 18px; }
.f2-bottom a { color: var(--on-night-2); text-decoration: none; }
.f2-bottom a:hover { color: #fff; }
.f2-top {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: #fff;
  transition: background-color .2s ease, border-color .2s ease, transform .25s ease;
}
.f2-top:hover { background: var(--accent); border-color: var(--accent); color: #0a0e13; transform: translateY(-2px); }
.f2-top svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* oversized faded wordmark cut by the bottom edge */
.f2-wordmark {
  position: relative; z-index: 0;
  margin-top: -2vw; margin-bottom: -5.5vw;
  text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-size: clamp(90px, 21vw, 340px); font-weight: 800; letter-spacing: -0.06em; line-height: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .015) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (max-width: 1024px) {
  .f2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f2-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .f2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .f2-cta__actions .btn { flex: 1 1 auto; }
}

/* ---------- Sign-in pop-up (v2): dark, gold, two panels ---------- */
.signin-dialog { width: min(860px, calc(100vw - 32px)); }
.signin-dialog::backdrop { background: rgba(4, 6, 10, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sd {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  border-radius: 22px; overflow: hidden;
  background: #0f151d;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(244, 220, 60, .06);
  max-height: calc(100dvh - 32px);
}
.sd__brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 22px;
  padding: 34px 32px;
  color: var(--on-night);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(244, 220, 60, .22), transparent 60%),
    radial-gradient(70% 60% at 100% 100%, rgba(244, 220, 60, .10), transparent 65%),
    linear-gradient(160deg, #1a1a10 0%, #10151c 55%, #0b1016 100%);
}
.sd__brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.sd__brand > * { position: relative; }
.sd__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 16px; }
.sd__logo img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(244, 220, 60, .15); }
.sd__hello { margin-top: auto; }
.sd__hello h3 { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; color: #fff; }
.sd__hello p { margin-top: 8px; color: #c7ced8; font-size: 15px; }
.sd__apps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sd__apps li {
  font-size: 12.5px; font-weight: 600; color: #e7d98a;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(244, 220, 60, .08); border: 1px solid rgba(244, 220, 60, .22);
}
.sd__secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-night-2); }
.sd__lock {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  background: rgba(76, 195, 138, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234cc38a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* the form side */
.sd .signin {
  background: transparent; color: var(--on-night);
  box-shadow: none; border-radius: 0;
  padding: 38px 36px 32px;
  max-height: none; overflow: auto;
}
.sd .signin__title { color: #fff; font-size: 24px; }
.sd .signin__sub { color: var(--on-night-2); }
.sd .field__label { color: #e6eaf0; }
.sd .link-muted { color: var(--accent); }
.sd .link-muted:hover { color: var(--accent-hover); }
.sd input {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
}
.sd input:hover { border-color: rgba(255, 255, 255, .22); }
.sd input:focus { border-color: rgba(244, 220, 60, .6); box-shadow: 0 0 0 3px rgba(244, 220, 60, .14); background: rgba(255, 255, 255, .06); }
.sd input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #161d27 inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
.sd .pw__toggle { color: var(--accent); }
.sd .pw__toggle:hover { background: rgba(244, 220, 60, .10); }
.sd #signinBtn { margin-top: 4px; box-shadow: 0 10px 30px rgba(244, 220, 60, .22); }
.sd #signinBtn:hover { box-shadow: 0 14px 36px rgba(244, 220, 60, .32); transform: translateY(-1px); }
.sd .fineprint { color: var(--on-night-2); }
.sd .fineprint a { color: #dfe4ea; }
.sd .alert { background: rgba(239, 107, 107, .12); border-color: rgba(239, 107, 107, .35); color: #ffb4b4; }

.signin-dialog__close {
  top: 14px; right: 14px;
  background: rgba(255, 255, 255, .06); color: #cfd6df;
  border: 1px solid rgba(255, 255, 255, .10);
}
.signin-dialog__close:hover { background: var(--accent); color: #0a0e13; border-color: var(--accent); }

@media (max-width: 760px) {
  .signin-dialog { width: min(460px, calc(100vw - 24px)); }
  .sd { grid-template-columns: 1fr; }
  .sd__brand { padding: 22px 22px 18px; gap: 12px; }
  .sd__hello { margin-top: 0; }
  .sd__hello h3 { font-size: 22px; }
  .sd__hello p, .sd__apps, .sd__secure { display: none; }
  .sd .signin { padding: 22px 22px 24px; }
}

/* Hidden scrollbars (scrolling still works with wheel, touch, keyboard) */
html, body, .sd, .sd .signin, .signin-dialog, .pt__list { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar,
.sd::-webkit-scrollbar, .sd .signin::-webkit-scrollbar, .signin-dialog::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Sign-in pop-up: hidden until called, in every browser */
.signin-dialog:not([open]) { display: none !important; }
/* browsers without built-in <dialog> support: still show it as a centred pop-up */
.signin-dialog[open] {
  position: fixed; inset: 0; margin: auto;
  height: fit-content; z-index: 1000;
}
