/*
 * JaaGoo marketing site.
 *
 * The tokens below are copied from `frontend/src/index.css` rather than
 * re-picked by eye, so the site cannot drift from the product it advertises.
 * The dark values are the app's `:root` palette; the light ones are its
 * `.surface-light` scope, which is what the admin portal's content area uses.
 *
 * Deliberately plain CSS with no build step. This is one page: a bundler would
 * add a dependency tree, a node_modules directory and a compile step to ship
 * markup that is faster and better indexed served as static HTML.
 */

/* Self-hosted, and the same face the apps load through @fontsource. A CDN
   would cost a third-party round trip on first paint for no benefit. */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: 'Geist Variable', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', Roboto, sans-serif;

  /* Dark shell — the app's :root palette. */
  --ink: #0c222d;
  --ink-deep: #0b2029;
  --surface-dark: #12323b;
  --surface-dark-2: #143a44;
  --on-dark: #eaf3f4;
  --on-dark-muted: #8ea5aa;

  /* Light content — the app's .surface-light scope. */
  --canvas: #e7edee;
  --card: #ffffff;
  --text: #0c222d;
  --text-muted: #51636a;
  --line: #c7d3d3;
  --chip: #f3f7f7;

  /* Brand. --primary is the light-surface teal, chosen for contrast on white. */
  --primary: #1f6f68;
  --primary-bright: #26897e;
  --primary-on-dark: #7fe3d5;
  --accent-tint: #dcede8;
  --accent-ink: #12564f;

  --success: #1f9d5b;
  --warning: #b9820f;
  --info: #2f80c4;

  --radius: 0.875rem;
  --radius-sm: 0.5rem;
  --shadow: 0 1px 2px rgba(12, 34, 45, 0.06), 0 8px 24px rgba(12, 34, 45, 0.06);
  --shadow-lg: 0 2px 4px rgba(12, 34, 45, 0.08), 0 18px 48px rgba(12, 34, 45, 0.12);
  --maxw: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The header is fixed, so anchored sections must clear it. */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* A visible focus ring everywhere, not just where a design called for one. */
:focus-visible {
  outline: 3px solid var(--primary-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: linear-gradient(180deg, #eef3f3 0%, var(--canvas) 100%); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.6rem;
}

.section__head { max-width: 46rem; margin-bottom: 2.5rem; }
.section__head p { color: var(--text-muted); font-size: 1.0625rem; margin: 0; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #1a5d57; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn--on-dark { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); border-color: rgba(255, 255, 255, 0.22); }
.btn--on-dark:hover { background: rgba(255, 255, 255, 0.16); }
.btn--lg { padding: 0.9rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---- header ----------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(12, 34, 45, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 30px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: #c7d5d8;
  font-size: 0.9375rem;
  font-weight: 600;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.nav__link[aria-current='true'] { color: var(--primary-on-dark); background: rgba(255, 255, 255, 0.08); }

.header__cta { margin-left: 0.75rem; }

/*
 * The nav list carries its own CTA for the mobile menu, where the header one is
 * hidden. On desktop both would render and the header would show the same
 * button twice.
 */
.nav__list .btn { display: none; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { content: ''; position: absolute; top: -6px; }
.nav__toggle span::after { content: ''; position: absolute; top: 6px; }
.nav__toggle[aria-expanded='true'] span { background: transparent; }
.nav__toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---- hero ------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(38, 137, 126, 0.34), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--on-dark);
  padding: calc(68px + clamp(3rem, 8vw, 5.5rem)) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
/* Capped so the headline breaks into three balanced lines on a wide screen
   rather than four thin ones. */
.hero h1 { color: #fff; margin-bottom: 1rem; max-width: 15ch; }
.hero__lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: #c7d5d8; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__note { margin-top: 1.25rem; font-size: 0.875rem; color: var(--on-dark-muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(127, 227, 213, 0.12);
  border: 1px solid rgba(127, 227, 213, 0.28);
  color: var(--primary-on-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* Product mock — a stylised feedback card, drawn in CSS so there is no
   screenshot to go stale and no image to download. */
.mock {
  background: var(--card);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  color: var(--text);
  transform: rotate(-0.6deg);
}
.mock__bar { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock__title { margin-left: 0.5rem; font-size: 0.8125rem; font-weight: 700; color: var(--text-muted); }
.mock__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.mock__row:first-of-type { border-top: 0; }
.mock__avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 800;
}
.mock__who { font-size: 0.875rem; font-weight: 700; }
.mock__meta { font-size: 0.75rem; color: var(--text-muted); }
.mock__stars { margin-left: auto; color: var(--warning); font-size: 0.875rem; letter-spacing: 1px; }
.mock__quote { font-size: 0.8125rem; color: var(--text-muted); margin: 0.15rem 0 0; }
.mock__tag {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- generic grids / cards -------------------------------------------- */

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

.icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 0.9rem;
}
.icon svg { width: 21px; height: 21px; }

/* ---- about ------------------------------------------------------------ */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.about__lead { font-size: 1.0625rem; }
.problem {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.problem h3 { margin-bottom: 0.75rem; }
.problem li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.problem li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.problem li:last-child { margin-bottom: 0; }

/* ---- how it works ----------------------------------------------------- */

.flow { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.flow__step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow);
}
.flow__step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.flow__step h3 { font-size: 1rem; }
.flow__step p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

/* ---- benefits (dark) --------------------------------------------------- */

.benefits { background: var(--ink); color: var(--on-dark); }
.benefits h2 { color: #fff; }
.benefits .section__head p { color: var(--on-dark-muted); }
.benefit {
  background: var(--surface-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.benefit h3 { color: #fff; }
.benefit__who {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-on-dark);
  margin-bottom: 0.35rem;
}
.benefit li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  color: #c7d5d8;
  font-size: 0.9375rem;
}
.benefit li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--primary-on-dark);
}
.benefit li:last-child { margin-bottom: 0; }

/* ---- pricing ----------------------------------------------------------- */

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.plan--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  position: relative;
}
.plan__badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__name { font-size: 1rem; font-weight: 800; margin-bottom: 0.25rem; }
.plan__price { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.plan__unit { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.plan__features { margin: 0 0 1.5rem; flex: 1; }
.plan__features li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.plan__features li::before {
  content: '';
  position: absolute;
  left: 0.25rem; top: 0.4em;
  width: 6px; height: 11px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pricing__note {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---- CTA band ---------------------------------------------------------- */

.cta {
  background:
    radial-gradient(760px 320px at 50% -30%, rgba(38, 137, 126, 0.4), transparent 65%),
    var(--ink);
  color: var(--on-dark);
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #c7d5d8; max-width: 38rem; margin: 0 auto 1.75rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---- contact ----------------------------------------------------------- */

.contact__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact__label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.contact__value { font-size: 1rem; font-weight: 700; }
.tbd {
  display: inline-block;
  background: #fdf3e2;
  border: 1px dashed var(--warning);
  color: #7a5606;
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ---- footer ------------------------------------------------------------ */

.footer {
  background: var(--ink-deep);
  color: #c7d5d8;
  padding: 3rem 0 1.5rem;
  font-size: 0.9375rem;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer__logo img { height: 28px; width: auto; margin-bottom: 0.9rem; }
.footer p { color: var(--on-dark-muted); max-width: 26rem; }
.footer h4 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}
.footer a { color: #c7d5d8; }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: 0.45rem; }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  /*
   * The headline stays first when the columns stack. Leading with the mock
   * would show a picture of a product the reader cannot yet name, and moving it
   * with `order` would also put the visual sequence out of step with the DOM
   * order a screen reader follows.
   */
  .hero__visual { max-width: 30rem; }
  .about { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 76px; }

  .nav__toggle { display: flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }
  .nav[data-open='true'] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__link { padding: 0.8rem 0.75rem; border-radius: var(--radius-sm); }
  .nav__list .btn { display: inline-flex; margin-top: 0.6rem; }

  .grid--2, .grid--3, .grid--4, .flow { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .plan--featured { order: -1; }
}

@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; }
}

@media print {
  .header, .nav__toggle, .cta__actions, .hero__actions { display: none; }
  body { background: #fff; }
}
