/* LuminAscend — shared styles for every page.
   One bold element (the climbing wordmark on the home page); everything else
   stays quiet: cool paper, navy ink, one lamp-light accent. */

:root {
  --paper: #f3f6f8;
  --ink: #14213d;
  --slate: #5b6b7c;
  --line: #d5dee6;
  --lumen: #f2b705;
  --band: #14213d;
  --band-ink: #eef3f8;
  --band-muted: #a9b7c8;

  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  /* A modular scale on a 1.25 ratio. */
  --step-0: 1.0625rem;
  --step-1: 1.33rem;
  --step-2: 1.66rem;
  --step-3: 2.07rem;
  --step-4: 2.6rem;

  --measure: 66ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--lumen);
  outline-offset: 3px;
  border-radius: 2px;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip:focus {
  left: 0.5rem;
}

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

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--slate);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Home: the climbing wordmark ---------- */

.hero {
  padding: clamp(3rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
}

.ascent {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 13vw, 10.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  display: flex;
  align-items: flex-end;
  /* Room for the highest letter and the light above it. */
  padding-top: 0.75em;
}

/* Each letter sits a little higher than the one before: the name, rising. */
.ascent span {
  display: inline-block;
  transform: translateY(calc(var(--i) * -0.045em));
}

/* The light: a single lamp-coloured point above the last, highest letter. */
.ascent span:last-child {
  position: relative;
}

.ascent span:last-child::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -0.32em;
  width: 0.16em;
  height: 0.16em;
  margin-left: -0.08em;
  border-radius: 50%;
  background: var(--lumen);
  box-shadow: 0 0 0.35em 0.08em rgba(242, 183, 5, 0.55);
}

@media (prefers-reduced-motion: no-preference) {
  .ascent span {
    animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--i) * 45ms);
  }

  .ascent span:last-child::after {
    animation: glow 700ms ease-out both;
    animation-delay: 750ms;
  }

  @keyframes rise {
    from {
      transform: translateY(0.25em);
      opacity: 0;
    }
  }

  @keyframes glow {
    from {
      opacity: 0;
      transform: scale(0.3);
    }
  }
}

.lede {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  max-width: 34ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(var(--step-2), 3.4vw, var(--step-3));
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lede-note {
  margin: 1rem 0 0;
  max-width: 56ch;
  color: var(--slate);
}

/* ---------- Flagship band ---------- */

.flagship {
  background: var(--band);
  color: var(--band-ink);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.flagship-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 52rem) {
  .flagship-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4rem;
    align-items: start;
  }
}

.flagship h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(var(--step-3), 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.flagship .status {
  margin: 0.75rem 0 0;
  color: var(--band-muted);
}

.flagship p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.flagship ul {
  margin: 0 0 1.75rem;
  padding-left: 1.1rem;
  max-width: var(--measure);
}

.flagship li + li {
  margin-top: 0.4rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--band-ink);
  color: var(--band);
}

/* ---------- Product rows ---------- */

.products {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: -0.015em;
}

.product {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.product:last-child {
  border-bottom: 1px solid var(--line);
}

.product-mark {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
}

.product-mark.placeholder {
  background: repeating-linear-gradient(135deg, var(--line) 0 6px, transparent 6px 12px);
  border: 1px solid var(--line);
}

.product h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
}

.product p {
  margin: 0.35rem 0 0;
  max-width: var(--measure);
}

.product .when {
  color: var(--slate);
}

.links {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */

.contact {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.contact p {
  margin: 0;
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.45;
}

/* ---------- Document pages (privacy, support, product) ---------- */

.doc {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}

.doc-body {
  max-width: var(--measure);
}

.doc h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(var(--step-3), 6vw, var(--step-4));
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.doc .updated {
  margin: 0.75rem 0 2.5rem;
  color: var(--slate);
}

.doc h2 {
  margin: 2.5rem 0 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
}

.doc p,
.doc ul {
  margin: 0 0 1rem;
}

.doc ul {
  padding-left: 1.2rem;
}

.doc li + li {
  margin-top: 0.3rem;
}

.summary {
  font-size: var(--step-1);
  line-height: 1.45;
}

/* Product page: text beside a phone screenshot. */
.app-intro {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 52rem) {
  .app-intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 4rem;
  }
}

.app-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-title img {
  width: 4rem;
  height: 4rem;
  border-radius: 0.9rem;
}

.shot {
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  max-width: 18rem;
}

.store-status {
  color: var(--slate);
}

/* Support page: questions as collapsible answers. */
details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.95rem;
}

.site-footer .wrap {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Link rows inside document pages are not bullet lists. */
.doc ul.links {
  padding-left: 0;
  margin-top: 1.5rem;
}
