:root {
  --accent: #1f9a6b;
  --accent-dark: #187a55;
  --accent-bright: #3bb888;
  --accent-wash: #e4f3ed;
  --accent-tint: #bce1d3;
  --ink: #0b1b3f;
  --ink-soft: #16264d;
  --grey: #6b7385;
  --grey-light: #9aa1b1;
  --canvas: #f5faf8;
  --surface: #ffffff;
  --outline: #e3e8f0;
  --pdf: #e8443a;
  --image: #16a75c;
  --font: "IBM Plex Sans", "IBM Plex Sans Fallback", system-ui, sans-serif;
  --radius-card: 1.25rem;
  --radius-button: 1rem;
  --max: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  /* Larger than the browser’s 16px default so 100% zoom still reads big. */
  font-size: 125%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(245 250 248 / 92%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
}

.site-header .inner,
.hero .inner,
.section .inner,
.site-footer .inner {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  box-shadow: 0 0.5rem 1rem rgb(42 212 160 / 28%);
  flex: none;
  object-fit: cover;
}

.wordmark {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.5rem;
  line-height: 1;
  color: #111;
}

.wordmark .ella {
  color: var(--accent);
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 600;
}

.menu a:hover,
.menu a[aria-current="page"] {
  background: #fff;
  color: var(--accent);
}

.menu svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

/* Only the phone layout uses this, and only once nav.js has run: without it
   the row of links stays where it is and a button that opens nothing would
   be a dead end. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--outline);
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.nav-toggle:hover {
  color: var(--accent);
}

.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero .inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--grey);
  margin: 0 0 1.75rem;
  max-width: 38ch;
}

.hero-copy p.body {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  max-width: 46ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.4rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-button);
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--outline);
}

.btn-ghost:hover {
  background: #e4f3ed;
}

.hero-art {
  position: relative;
  min-height: 24rem;
}

.stage {
  width: 100%;
  height: 26rem;
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #e8f6f1, #dceee7);
  border: 1px solid var(--outline);
  position: relative;
  overflow: hidden;
}

.stage .blob {
  position: absolute;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgb(42 212 160 / 14%);
  top: -2.5rem;
  right: -1.9rem;
}

.device {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14rem;
}

.device .mark-lg {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 1.7rem;
  box-shadow: 0 1rem 2rem rgb(42 212 160 / 32%);
  margin: 0 auto 1rem;
  object-fit: cover;
  display: block;
}

.device .title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111;
}

.device .title .ella {
  color: var(--accent);
}

.device .sub {
  text-align: center;
  color: var(--grey);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.4rem;
}

/* Both stores ask for clear space around their badge and a floor on its
   size, so the pair sits on its own row under the stage. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Both files are the badge artwork edge to edge, with no padding baked in,
   so matching their heights lines them up. */
.store-badges img {
  height: 3rem;
  width: auto;
  max-width: 100%;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 0.9rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0.65rem 1.5rem rgb(11 27 63 / 8%);
}

.chip .dot {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.45rem;
}

.chip.pdf {
  left: 1.75rem;
  top: 2rem;
}

.chip.lock {
  right: 1.5rem;
  top: 2rem;
}

.chip.image {
  left: 1.1rem;
  bottom: 2rem;
}

.chip.ocr {
  right: 2rem;
  bottom: 2rem;
}

.card .contact-email {
  display: inline-block;
  margin: 1.1rem 0 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--outline);
  border-radius: 0.75rem;
  background: var(--canvas);
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.card .contact-email a {
  color: var(--ink);
  text-decoration: none;
}

.card .contact-email a:hover {
  text-decoration: underline;
}

.section {
  padding: 1.75rem 0 4.5rem;
}

.section h2 {
  font-size: 2.15rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.section .intro {
  color: var(--grey);
  font-size: 1.15rem;
  margin: 0 0 1.75rem;
  max-width: 52ch;
}

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

.feature {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.3rem 1.5rem;
}

.icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

.icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.legal-pages {
  padding-top: 0.5rem;
}

.doc {
  width: min(50rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: 3rem 0 4.5rem;
}

.doc .lede {
  color: var(--grey);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0.5rem 0 1.75rem;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.card {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  padding: 1.2rem 1.3rem;
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.site-footer {
  border-top: 1px solid var(--outline);
  padding: 1.4rem 0 1.75rem;
  color: var(--grey);
  font-size: 0.95rem;
}

.site-footer .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.site-footer .tagline,
.site-footer .copyright {
  margin: 0;
}

.site-footer .copyright {
  font-size: 0.9rem;
}

.site-footer a {
  text-decoration: none;
  font-weight: 600;
}

/* A squeezed hero column, then a one-column phone layout. In both the stage
   is far narrower than on a wide screen, so the chips shrink and move into
   the four corners — otherwise PDF and On-device land on each other. */
@media (max-width: 1100px) {
  .chip {
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    gap: 0.4rem;
  }

  .chip .dot {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.35rem;
  }

  .chip.pdf {
    left: 0.85rem;
    top: 1rem;
    bottom: auto;
  }

  .chip.lock {
    right: 0.85rem;
    top: 1rem;
    bottom: auto;
  }

  .chip.image {
    left: 0.85rem;
    bottom: 1rem;
    top: auto;
  }

  .chip.ocr {
    right: 0.85rem;
    bottom: 1rem;
    top: auto;
  }

  /* Five labelled links do not fit beside the wordmark — the last fell off
     the right edge — so they collapse behind the Menu button and open as a
     panel, each with its icon and its name. */
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-header .inner {
    position: relative;
  }

  .js .menu {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% - 0.35rem);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    min-width: 13rem;
    max-width: calc(100vw - 2rem);
    padding: 0.4rem;
    background: #fff;
    border: 1px solid var(--outline);
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgb(11 27 63 / 14%);
  }

  .js .site-header[data-open='true'] .menu {
    display: flex;
  }

  .js .site-header[data-open='true'] .nav-toggle {
    color: var(--accent);
    border-color: var(--accent-tint);
  }

  .js .menu a {
    justify-content: flex-start;
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
  }

  .js .menu a span.label {
    display: inline;
  }

  .menu a span.label {
    display: none;
  }
}

@media (max-width: 900px) {
  html {
    font-size: 112.5%;
  }

  .site-header .inner,
  .hero .inner,
  .section .inner,
  .site-footer .inner,
  .doc {
    width: min(var(--max), calc(100% - 2rem));
  }

  .hero .inner,
  .features {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.4rem;
  }


  .hero-art {
    min-height: 20rem;
  }

  /* The mark is centred in the stage (see .device); on a phone it also comes
     down a size so the wordmark and the corner chips keep their air. */
  .stage {
    height: 23rem;
  }

  .device {
    width: 13rem;
  }

  .device .mark-lg {
    width: 6rem;
    height: 6rem;
    border-radius: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .device .title {
    font-size: 1.6rem;
  }
}

/* A 320px phone cannot take the wordmark and a labelled button side by side,
   so the button drops to its icon. aria-label still names it. */
@media (max-width: 400px) {
  .nav-toggle span {
    display: none;
  }

  .nav-toggle {
    padding: 0.6rem;
  }
}
