/*
 * The interim landing page, served by the shared proxy until the Next.js site
 * launches (J2, #78). Adapted from the approved mock-up: the same layout and
 * copy, with the font self-hosted, the brand green kept off text (DSN-2) and
 * the parts that need a backend removed.
 */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #00b67a; /* sawa-biz green: fills only, never text on white */
  --brand-strong: #00a06b; /* hover */
  --brand-text: #007a52; /* green for text on white (--sb-green-text) */
  --brand-soft: #e7f8f3;
  --ink: #14181d;
  --fg: #14181d;
  --muted: #5b6672;
  --bg: #ffffff;
  --surface: #f5f8f7;
  --surface-2: #eef2f1;
  --border: #dde4e2;
  --logo-ink: #14181d;
  --btn-fg: #07231a; /* dark text on the brand green, never white */
  --focus: #111111;
  --shadow: 0 1px 2px rgba(20, 24, 29, 0.06), 0 12px 32px -12px rgba(20, 24, 29, 0.14);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--font);
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  max-width: 100%;
}
:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--focus);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Top navigation ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand svg {
  display: block;
  height: 30px;
  width: auto;
}
.brand.small svg {
  height: 28px;
}
.brand .word {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--logo-ink);
}
.mainmenu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.mainmenu a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}
.mainmenu a:hover {
  color: var(--fg);
  background: var(--surface);
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.05s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: var(--btn-fg);
}
.btn-primary:hover {
  background: var(--brand-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--muted);
  background: var(--surface);
}
.btn-lg {
  padding: 15px 26px;
  font-size: 17px;
  border-radius: 12px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--fg);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle:hover {
  background: var(--surface);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 8px max(16px, env(safe-area-inset-left, 0px)) 14px;
}
.mobile-menu a {
  padding: 12px 6px;
  font-weight: 600;
  color: var(--fg);
  border-radius: 8px;
  font-size: 16px;
}
.mobile-menu a:hover {
  background: var(--surface);
}
.mobile-menu .mm-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}
.mobile-menu .mm-demo {
  color: var(--brand-text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ---------- Capability bar ---------- */
.capbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.capbar .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}
.capbar .wrap::-webkit-scrollbar {
  display: none;
}
.capbar a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.capbar a:hover {
  color: var(--fg);
  border-bottom-color: var(--brand);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 558px;
  display: flex;
  align-items: center;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero .wrap > * {
  max-width: 600px;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slides .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slides .slide.is-active {
  opacity: 1;
}
/* Soft washes show until a photo loads, and stay as the fifth slide. */
.slide.s1 {
  background: linear-gradient(120deg, #fef6ec, #f1f8f3);
}
.slide.s2 {
  background: linear-gradient(120deg, #edf7ef, #e1f1e8);
}
.slide.s3 {
  background: linear-gradient(120deg, #eef3fb, #f4f0fb);
}
.slide.s4 {
  background: linear-gradient(120deg, #fdeef4, #f5f0fb);
}
.slide.s5 {
  background:
    radial-gradient(46% 72% at 70% 55%, rgba(0, 182, 122, 0.13), transparent 60%),
    linear-gradient(120deg, #eff6fb, #ecf6f0);
}
/* Only the first photo loads with the page; the script loads the rest after. */
.slide.s1 {
  background-image: url('/assets/img/hero-1.webp');
}
.hero-slides .slide {
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.92) 24%,
    rgba(255, 255, 255, 0.62) 46%,
    rgba(255, 255, 255, 0.22) 66%,
    rgba(255, 255, 255, 0) 82%
  );
}
.hero-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
/* A 24px target (WCAG 2.5.8) around the small visible dot. */
.hero-dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-dots button[aria-current='true'] {
  width: 36px;
}
.hero-dots button::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c6d1cc;
  transition:
    width 0.25s,
    background 0.25s;
}
.hero-dots button:hover::before {
  background: #9fb0aa;
}
.hero-dots button[aria-current='true']::before {
  width: 24px;
  background: var(--brand);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 70px);
  max-width: 15ch;
}
.hero h1 .accent {
  color: var(--brand-text);
}
.hero .sub {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.reassure {
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.reassure span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.reassure svg {
  width: 15px;
  height: 15px;
  color: var(--brand-text);
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.trust .wrap {
  padding-block: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.trust .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 880px;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--fg);
  font-weight: 600;
  font-size: 14.5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
}
.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--brand-text);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
section.band .wrap {
  padding-block: 70px;
}
section.band.alt {
  background: var(--surface);
}
.sec-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 44px;
}
.sec-head .tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-text);
}
.sec-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  max-width: 18ch;
}
.sec-head p {
  color: var(--muted);
  max-width: 56ch;
  font-size: 17px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alt .card {
  background: var(--bg);
}
.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .ic svg {
  width: 23px;
  height: 23px;
}
.card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step .num {
  counter-increment: step;
  font-weight: 800;
  font-size: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--brand-text);
  color: var(--brand-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step .num::before {
  content: counter(step);
}
.step h3 {
  font-size: 19px;
  font-weight: 700;
}
.step p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Demo request ---------- */
.demo.band {
  background: var(--surface);
}
.demo .inner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}
.demo .pitch {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.demo .pitch h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}
.demo .pitch p {
  color: var(--muted);
  font-size: 16px;
  max-width: 42ch;
}
.demo .bullets {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 4px 0 0;
  padding: 0;
}
.demo .bullets li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--fg);
  font-size: 15px;
}
.demo .bullets svg {
  width: 19px;
  height: 19px;
  color: var(--brand-text);
  flex-shrink: 0;
  margin-top: 2px;
}
.demo .contact {
  padding: 40px;
  background: var(--surface-2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.demo .contact h3 {
  font-size: 21px;
  font-weight: 800;
}
.demo .contact p {
  color: var(--muted);
  font-size: 15px;
}
.demo .contact ul {
  margin: 0;
  padding-left: 20px;
  color: var(--fg);
  font-size: 15px;
  display: grid;
  gap: 4px;
}
.demo .contact .address {
  font-size: 14px;
  color: var(--muted);
}
.demo .contact .address a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
footer .wrap {
  padding-block: 48px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 30px;
}
footer .about {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 34ch;
}
footer .about p {
  color: var(--muted);
  font-size: 14px;
}
footer .col h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}
footer .col a {
  display: block;
  color: var(--fg);
  font-size: 14.5px;
  padding: 5px 0;
}
footer .col a:hover {
  color: var(--brand-text);
}
.footbar {
  border-top: 1px solid var(--border);
}
.footbar .wrap {
  padding-block: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .demo .inner {
    grid-template-columns: 1fr;
  }
  .demo .contact {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
  footer .about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .mainmenu,
  .capbar,
  .nav-right .btn {
    display: none;
  }
  .js .nav-toggle {
    display: inline-flex;
  }
  .js .mobile-menu:not([hidden]) {
    display: flex;
  }
  .feat-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* No photos on phones: clean text on a subtle brand wash. */
  .hero {
    display: block;
    min-height: 0;
    background: radial-gradient(130% 92% at 100% 0%, var(--brand-soft), transparent 58%);
  }
  .hero-slides,
  .hero-scrim,
  .hero-dots {
    display: none;
  }
  .hero .wrap {
    padding-block: 40px;
    gap: 16px;
  }
  .hero .wrap > * {
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(32px, 8.6vw, 44px);
  }
  .hero .sub {
    font-size: 16px;
  }
  section.band .wrap {
    padding-block: 52px;
  }
  .demo .pitch,
  .demo .contact {
    padding: 28px;
  }
}
@media (max-width: 420px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
