/* Nimbus Cleaner — design tokens, reset, typography, buttons, header, footer.
   Colours are sampled from the app assets, not invented. */

:root {
  /* Brand — sampled from the app icon, in-app tiles and the feature graphic */
  --brand: #0e7bc4;
  --brand-hover: #0a6aab;
  --brand-bright: #4aa8ee;
  --brand-soft: #e3f0fa;

  /* Deep navy scale — the feature graphic background and its shades */
  --ink-950: #061420;
  --ink-900: #0a1d2f;
  --ink-800: #0e2740;
  --ink-700: #123253;
  --ink-600: #1a4670;

  /* Light surfaces */
  --paper: #f4f7fb;
  --paper-deep: #e8eef6;
  --white: #ffffff;

  /* Text */
  --text-dark: #0e1f2e;
  --text-muted: #55697d;
  --text-on-navy: #ffffff;
  --text-on-navy-muted: rgba(255, 255, 255, 0.68);

  --line-light: #dde5ef;
  --line-navy: rgba(255, 255, 255, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 1px 2px rgba(14, 31, 46, 0.06), 0 8px 24px rgba(14, 31, 46, 0.07);
  --shadow-lift: 0 2px 6px rgba(14, 31, 46, 0.08), 0 18px 44px rgba(14, 31, 46, 0.13);

  --wrap: 1160px;
  --gutter: 20px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  /* Avoids a single-word orphan on the last line. Ignored where unsupported. */
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 3.9rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
}

h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

/* Visible focus for keyboard users, suppressed for mouse clicks */
:focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--white);
  color: var(--brand);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Layout ---------- */

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

.section {
  padding-block: clamp(64px, 9vw, 108px);
}

.section--navy {
  background: var(--ink-900);
  color: var(--text-on-navy);
}

.section--paper {
  background: var(--paper);
}

.section-head {
  max-width: 660px;
  margin: 0 auto clamp(38px, 5vw, 60px);
  text-align: center;
}

.section-head p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.section--navy .section-head p {
  color: var(--text-on-navy-muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section--navy .eyebrow {
  background: rgba(74, 168, 238, 0.16);
  color: var(--brand-bright);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-on-navy);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--solid {
  background: var(--brand);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--brand-hover);
}

/* Google Play badge, drawn in its standard lockup */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 12px;
  background: var(--white);
  color: #0d1b26;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(6, 20, 32, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.play-badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 20, 32, 0.32);
}

.play-badge svg {
  width: 26px;
  height: 29px;
  flex: none;
}

.play-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.play-badge__small {
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.72;
}

.play-badge__big {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.play-badge--dark {
  background: #0d1b26;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 29, 47, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-navy);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  margin-right: auto;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--text-on-navy-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: none;
}

.header-cta {
  padding: 9px 20px;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-navy);
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink-900);
    border-bottom: 1px solid var(--line-navy);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  .nav[data-open="true"] {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 4px;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line-navy);
  }

  .nav .header-cta {
    margin-top: 16px;
    border-bottom: 0;
    text-align: center;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-950);
  color: var(--text-on-navy-muted);
  padding-block: 60px 32px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-navy);
}

.footer-about p {
  margin: 14px 0 0;
  max-width: 40ch;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a {
  color: var(--text-on-navy-muted);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

/* ---------- Motion ---------- */

/* Gated behind .js: without scripting the content must still be visible,
   so the hidden starting state is only applied when JS can reveal it again. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
