/* ===================================================================
   Lever — site styles
   Consumes design tokens from colors_and_type.css.
   Flat fills only, no gradients. Pills 999px, cards 12px.
   =================================================================== */

* { box-sizing: border-box; }

/* Headings use a plain system sans, distinct from the Space Grotesk body/display font. */
:root {
  --font-heading: Arial, Helvetica, 'Segoe UI', sans-serif;
  --font-sans: Arial, Helvetica, 'Segoe UI', sans-serif;
}
h1, h2, h3, h4,
.hero__title,
.section__title,
.final-cta__title,
.we-are__word,
.we-are__lead,
.we-are__fixed,
.split-heading__title,
.legal__title {
  font-family: var(--font-heading);
}

html { scroll-behavior: smooth; font-size: 19px; }

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

body { margin: 0; }

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

a { color: inherit; }

/* Visible focus on every interactive element */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lever-green);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lever-lime);
  color: var(--lever-black);
  padding: var(--space-3) var(--space-5);
  font-weight: var(--weight-semibold);
  z-index: 200;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

/* ─── Shared layout ─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}
@media (max-width: 820px) {
  .section { padding-block: var(--space-16); }
}

.section--dark  { background: var(--lever-black); color: var(--lever-white); }
.section--mist  { background: var(--lever-mist); color: var(--lever-black); }
.section--white { background: var(--lever-white); color: var(--lever-black); }
.section--lime  { background: var(--lever-lime); color: var(--lever-black); padding-block: var(--space-24); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  /* Phone image always drops below the text on mobile, whichever
     order the columns sit in the source. */
  .two-col .col-media { order: 2; }
  .two-col .col-text  { order: 1; }
}

/* ─── Buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              opacity var(--transition-base);
}

/* Lime primary — dark text on lime fill (passes AA) */
.btn--lime {
  background: var(--lever-lime);
  color: var(--lever-black);
  border-color: var(--lever-lime);
}
.btn--lime:hover { background: var(--lever-lime-dark); border-color: var(--lever-lime-dark); }

/* Outline on dark backgrounds */
.btn--outline-light {
  background: transparent;
  color: var(--lever-white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-light:hover { border-color: var(--lever-white); }

/* Outline on light backgrounds */
.btn--outline-dark {
  background: transparent;
  color: var(--lever-black);
  border-color: rgba(35,31,32,0.25);
}
.btn--outline-dark:hover { border-color: var(--lever-black); }

/* ─── Eyebrow (mono label) ──────────────────────────────────────── */

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--lever-green);
  margin-bottom: var(--space-4);
}

/* ─── Nav ───────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lever-black);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-bold);
  font-size: 1.375rem;
  letter-spacing: -0.04em;
  color: var(--lever-white);
  text-decoration: none;
}
.nav__brand img { height: 24px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-left: auto;
}
.nav__link {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  transition: color var(--transition-fast);
}
.nav__link:hover { color: var(--lever-white); }

.nav__cta { padding: 10px 22px; }

/* Hamburger */
.nav__toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--lever-white);
  position: relative;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__inner { gap: var(--space-3); flex-wrap: wrap; }
  .nav__links {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    margin-left: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
    padding-block: 0;
  }
  .nav__links.is-open {
    max-height: 320px;
    padding-block: var(--space-4);
  }
  .nav__link { font-size: var(--text-body-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__links { transition: none; }
}

/* ─── Hero ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
}
.hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}
.hero__blob--1 { width: 460px; height: 460px; background: var(--lever-black-90); top: -160px; right: -120px; }
.hero__blob--2 { width: 380px; height: 380px; background: #2c2a4a; bottom: -160px; left: -120px; opacity: 0.5; }
.hero__blob--3 { width: 220px; height: 220px; background: var(--lever-black-90); top: 38%; left: 30%; opacity: 0.4; }

.hero .container { position: relative; z-index: 1; }

.hero__title {
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-5);
}
.hero__sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: rgba(255,255,255,0.78);
  margin: 0 0 var(--space-8);
  max-width: 30ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero__phone {
  margin-inline: auto;
  max-width: 320px;
  filter: drop-shadow(var(--shadow-lg));
}
.hero__sub strong { color: var(--lever-lime); font-weight: var(--weight-bold); }

/* ─── Generic section text block ────────────────────────────────── */

.section__title {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-5);
}
.section__body {
  font-size: var(--text-body-lg);
  line-height: var(--leading-loose);
  margin: 0;
}
.section--dark .section__body { color: rgba(255,255,255,0.8); }
.section--mist .section__body,
.section--white .section__body { color: var(--lever-black-70); }

/* Phone frame for in-app screenshots */
.phone-frame {
  margin-inline: auto;
  max-width: 300px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-md);
  background: var(--lever-white);
}
.phone-frame img { width: 100%; }

/* ─── Split heading (large heading one side, body text the other) ── */

.split-heading__title .section__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0;
}

/* Space between an eyebrow tag and the content that follows it */
.how-it-works > .container:first-child,
.power-tools > .container:first-child {
  margin-bottom: var(--space-16);
}

/* Extra breathing room between the three stacked alternating rows in
   the "How it works" section. */
.how-it-works .two-col + .two-col {
  margin-top: var(--space-24);
}
@media (max-width: 820px) {
  .how-it-works .two-col + .two-col { margin-top: var(--space-20); }
}

/* Bigger headings for the three "How it works" sub-sections */
.how-it-works h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
}

/* ─── Decorative visual for text-only rows (no screenshot to show) ─
   Same soft-circle idea as the hero blobs, but in brand accent tones
   so it reads as its own thing rather than a copy of the hero. ── */

.visual-blob {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin-inline: auto;
  background: var(--lever-black-90);
  /* Fade the box itself into the page background — the card has no
     hard boundary, it dissolves toward the edges and corners. */
  mask-image: radial-gradient(circle closest-side at center, black 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle closest-side at center, black 55%, transparent 100%);
}
.visual-blob span {
  position: absolute;
  border-radius: 50%;
  display: block;
}
.visual-blob--1 .b1 { width: 220px; height: 220px; background: var(--lever-green); opacity: 0.35; top: -60px; right: -50px; }
.visual-blob--1 .b2 { width: 150px; height: 150px; background: var(--lever-lime); opacity: 0.3; bottom: -40px; left: -30px; }
.visual-blob--1 .b3 { width: 70px; height: 70px; background: var(--lever-lime); opacity: 0.9; bottom: 30%; left: 20%; }

.visual-blob--2 .b1 { width: 240px; height: 240px; background: var(--lever-lime); opacity: 0.28; top: -70px; left: -70px; }
.visual-blob--2 .b2 { width: 130px; height: 130px; background: var(--lever-green); opacity: 0.4; bottom: -20px; right: -20px; }
.visual-blob--2 .b3 { width: 56px; height: 56px; background: var(--lever-green); opacity: 0.9; top: 22%; right: 22%; }

.visual-blob--3 .b1 { width: 200px; height: 200px; background: var(--lever-green); opacity: 0.32; bottom: -60px; right: -40px; }
.visual-blob--3 .b2 { width: 170px; height: 170px; background: var(--lever-lime); opacity: 0.22; top: -50px; left: -50px; }
.visual-blob--3 .b3 { width: 64px; height: 64px; background: var(--lever-lime); opacity: 0.9; top: 35%; left: 30%; }

/* Multi-paragraph text block with an optional h3 sub-heading, used inside
   two-col sections where a single section__body paragraph isn't enough. */
.copy-stack h3 {
  margin: var(--space-8) 0 var(--space-3);
}
.copy-stack h3:first-child { margin-top: 0; }
.copy-stack p {
  font-size: var(--text-body-lg);
  line-height: var(--leading-loose);
  margin: 0 0 var(--space-5);
}
.copy-stack p:last-child { margin-bottom: 0; }
.section--dark .copy-stack p { color: rgba(255,255,255,0.8); }
.section--mist .copy-stack p,
.section--white .copy-stack p { color: var(--lever-black-70); }

/* Pills on light backgrounds need dark text/borders, not the white/dark defaults. */
.section--white .pill,
.section--mist .pill {
  color: var(--lever-black);
  border-color: rgba(35,31,32,0.25);
}

.centred {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-10) 0 0;
  padding: 0;
  list-style: none;
}
.pill {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--lever-white);
}

/* ─── Feel powerless (single reading column) ────────────────────── */

.prose {
  max-width: 760px;
  margin-inline: auto;
}
.prose .section__title { margin-bottom: var(--space-8); }
.prose p {
  font-size: var(--text-body-lg);
  line-height: var(--leading-loose);
  margin: 0 0 var(--space-6);
}
.prose p:last-child { margin-bottom: 0; }
.section--mist .prose p,
.section--white .prose p { color: var(--lever-black-70); }
.section--dark .prose p { color: rgba(255,255,255,0.8); }

.accent-underline {
  font-weight: var(--weight-bold);
  color: var(--lever-black);
  background: linear-gradient(transparent 60%, var(--lever-lime) 60%);
  /* NB: this is a flat highlight band, not a colour gradient — single colour */
}

/* ─── Animated words ────────────────────────────────────────────── */

.we-are {
  text-align: center;
  padding-block: var(--space-8);
}
.we-are__lead {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-2);
}
.we-are__word-wrap {
  /* Reserve fixed height so layout never jumps */
  height: clamp(4.5rem, 16vw, 10rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.we-are__word {
  display: inline-block;
  font-size: clamp(3.5rem, 13vw, 9rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.we-are__word.is-animating {
  animation: blurUp 650ms ease-out;
}
@keyframes blurUp {
  from {
    opacity: 0;
    transform: translateY(0.45em) rotate(-2deg);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: blur(0);
  }
}
.we-are__fixed {
  font-size: var(--text-h1);
  font-weight: var(--weight-semibold);
  margin: var(--space-8) 0 0;
}
.chip {
  display: inline-block;
  background: var(--lever-black);
  color: var(--lever-white);
  padding: 4px 16px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .we-are__word.is-animating { animation: none; }
}

/* ─── Final CTA ─────────────────────────────────────────────────── */

.final-cta { text-align: center; }
.final-cta__logo { height: 56px; width: auto; margin: 0 auto var(--space-6); }
.final-cta__title { font-size: var(--text-h1); margin: 0 0 var(--space-5); }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--lever-lime);
  border: 1px solid rgba(198,241,53,0.4);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: var(--space-8);
}

/* ─── Footer ────────────────────────────────────────────────────── */

.footer {
  background: #1a1718;
  color: rgba(255,255,255,0.55);
  padding-block: var(--space-16);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
.footer__wordmark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.footer__wordmark .footer__icon { height: 34px; width: auto; }
.footer__wordmark .footer__text { height: 26px; width: auto; }
.footer__tag {
  margin: 0;
  color: var(--lever-lime);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-h3);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--lever-white); }
.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.45);
}
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ─── Legal pages ───────────────────────────────────────────────── */

.legal {
  background: var(--lever-mist);
}
.legal__main {
  max-width: 760px;
  margin-inline: auto;
  padding-block: var(--space-20) var(--space-24);
}
.legal__title {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 var(--space-3);
}
.legal__meta {
  color: var(--lever-slate);
  font-size: var(--text-body-sm);
  margin: 0 0 var(--space-12);
}
.legal__sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.legal__sections h2 {
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-normal);
  margin: 0 0 var(--space-3);
}
.legal__sections p {
  font-size: var(--text-body-lg);
  line-height: var(--leading-loose);
  color: var(--lever-black-70);
  margin: 0;
}
.legal__sections p + p { margin-top: var(--space-4); }
.legal__sections ul {
  margin: var(--space-4) 0 0;
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.legal__sections li {
  font-size: var(--text-body-lg);
  line-height: var(--leading-loose);
  color: var(--lever-black-70);
}
.legal__sections a { color: var(--lever-green); font-weight: var(--weight-semibold); }
.legal__back {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  margin-left: auto;
}
.legal__back:hover { color: var(--lever-white); }
