/*
  Liftty public site.

  Palette sampled from the mark: the sphere's navy, its mid-blue and cyan highlight, and the pale
  canvas it sits on. Neutrals lean blue rather than grey so the chrome belongs to the brand.

  When this file changes, bump the ?v= on its <link> in every page: the deploy lets browsers keep
  the stylesheet for a day, and a new URL is what makes them fetch the new one.
*/
:root {
  --ink:       #0B1F3A;
  --mid:       #1A628B;
  --cyan:      #1590B4;
  --ground:    #F4F8FA;
  --surface:   #FFFFFF;
  --line:      #DCE6EC;
  --line-2:    #C3D3DD;
  --muted:     #5B7386;
  --body:      #22384F;

  --shell: 1120px;
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Work Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.022em; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }

a { color: var(--mid); }
a:hover { color: var(--ink); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.measure { max-width: var(--measure); }

/* The orbit from the mark, flattened into a short rule (404 page). */
.route-rule { height: 2px; background: linear-gradient(90deg, var(--cyan), var(--mid) 40%, var(--line)); border: 0; }

/* ---------------------------------------------------------------- header */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead .inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
/* The mark on its own: transparent, trimmed to a square with no padding of its own. */
.brand img { width: 36px; height: 36px; }
.brand b { font-family: 'Archivo', sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.masthead nav { display: flex; gap: 26px; align-items: center; }
.masthead nav a { font-size: 14.5px; text-decoration: none; color: var(--muted); }
.masthead nav a:hover { color: var(--ink); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 4px;
  font-size: 15px; font-weight: 600; text-decoration: none; transition: 0.15s;
}
.masthead nav a.btn-nav { padding: 8px 15px; font-size: 14px; background: var(--ink); color: #fff; }
.masthead nav a.btn-nav:hover { background: var(--mid); color: #fff; }

/* Home page: while the page is at the top, the header is clear and sits on the hero photo. A
   script in index.html adds .over-hero there and removes it once the page scrolls. */
.masthead { transition: background-color 0.9s ease, border-color 0.9s ease, backdrop-filter 0.9s ease; }
.masthead .brand, .masthead nav a:not(.btn) { transition: color 0.9s ease; }
.masthead nav a.btn-nav { transition: background-color 0.9s ease, color 0.9s ease; }
.masthead nav a.btn-nav:hover { transition-duration: 0.15s; }
.masthead.over-hero { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.masthead.over-hero .brand { color: #fff; }
.masthead.over-hero nav a:not(.btn) { color: rgba(255,255,255,0.84); }
.masthead.over-hero nav a:not(.btn):hover { color: #fff; }
.masthead.over-hero nav a.btn-nav { background: #fff; color: var(--ink); }
.masthead.over-hero nav a.btn-nav:hover { background: var(--ground); color: var(--ink); }

/* ---------------------------------------------------------------- hero */
/* The photo fills the whole hero, running up under the header (67px: 66 plus its border), with
   navy laid over it: heaviest behind the copy on the left and along the top behind the header,
   thinning out towards the people on the right. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  margin-top: -67px; padding: 150px 0 110px;
  min-height: min(100vh, 880px); min-height: min(100svh, 880px);
  background: var(--ink); color: #fff;
}
.hero > .shell { width: 100%; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,31,58,0.72) 0, rgba(11,31,58,0) 200px),
    linear-gradient(90deg, rgba(11,31,58,0.72) 0%, rgba(11,31,58,0.64) 36%, rgba(11,31,58,0.52) 56%, rgba(11,31,58,0.30) 72%, rgba(11,31,58,0.12) 100%);
}
.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.03; font-weight: 700; margin: 0; text-wrap: balance; }
.hero p.lede { font-size: 19px; line-height: 1.55; color: #fff; margin: 24px 0 0; max-width: 52ch; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: rgba(255,255,255,0.76); }

/* Store buttons. Inactive until the listings are live: visible, but plainly not a link. They
   carry no Apple or Google artwork; the official badges replace them once there is a URL. */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 168px; padding: 9px 18px 10px; border-radius: 9px;
  border: 1px dashed rgba(255,255,255,0.34); color: rgba(255,255,255,0.85);
  cursor: default; user-select: none;
}
.store-badge small { display: block; font-size: 11.5px; line-height: 1.25; color: rgba(255,255,255,0.58); }
.store-badge b { display: block; font-family: 'Archivo', sans-serif; font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }

/* ---------------------------------------------------------------- sections */
section.band { padding: 88px 0; }
section.band.tint { background: var(--ground); border-block: 1px solid var(--line); }
h2.section-title { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.12; margin: 0; font-weight: 700; text-wrap: balance; }
p.section-lede { font-size: 17.5px; color: var(--muted); margin: 14px 0 0; max-width: var(--measure); }
p.section-lede + p.section-lede { margin-top: 16px; }

/* How it works: the steps beside a phone showing the app. */
.how-grid { display: grid; grid-template-columns: 1fr 300px; gap: 80px; align-items: center; }

/* The steps drawn as a route, like the app's map: numbered stops joined by a line, the last one
   (drop-off) filled in. An ordered list, because the order matters; numbers come from its counter. */
ol.route { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: step; max-width: 520px; }
ol.route li { position: relative; padding: 0 0 28px 54px; counter-increment: step; }
ol.route li:last-child { padding-bottom: 0; }
ol.route li::before {
  content: counter(step);
  position: absolute; left: 0; top: -3px; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--cyan); background: var(--surface); color: var(--cyan);
  font: 600 15px/30px 'Archivo', sans-serif; text-align: center;
}
ol.route li:last-child::before { background: var(--cyan); color: #fff; }
ol.route li::after { content: ''; position: absolute; left: 16px; top: 31px; bottom: -3px; width: 2px; background: var(--line-2); }
ol.route li:last-child::after { display: none; }
ol.route h3 { font-size: 17px; margin: 0 0 3px; font-weight: 600; }
ol.route p { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; }

/* A real screenshot in a plain phone frame. */
.phone {
  margin: 0; width: 100%; max-width: 300px; justify-self: center;
  padding: 9px; border-radius: 46px; background: #101826;
  box-shadow: 0 34px 60px -24px rgba(11,31,58,0.45);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 38px; }

/* ---------------------------------------------------------------- photos */
/* Every photo sits in a frame of fixed proportions and is cropped to fill it, so any picture
   can be dropped in. object-position on an individual image moves the crop. */
.photo { margin: 0; border-radius: 14px; overflow: hidden; background: var(--line); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo img.focus-top { object-position: center top; }
.photo img.focus-high { object-position: center 28%; }
.photo img.focus-mid { object-position: center 40%; }
.photo img.focus-low { object-position: center 68%; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 12 / 5; margin-bottom: 48px; }

/* A photo beside a block of text. .flip puts the photo on the right. */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.split.flip { grid-template-columns: 6fr 5fr; }
.split.flip > .photo { order: 2; }
.split .notes { grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-top: 32px; }

.ledger-title { font-size: 17px; font-weight: 600; margin: 32px 0 14px; }
.ledger { border-top: 1px solid var(--line-2); }
.ledger .row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ledger .row > span:first-child { color: var(--muted); white-space: nowrap; }
.ledger .row > span:last-child { text-align: right; }
.ledger .row.total > span { font-weight: 600; color: var(--ink); }

.notes { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.notes h3 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.notes p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }

section.band .callout {
  margin-top: 44px; max-width: 68ch;
  padding: 18px 20px; border-left: 3px solid var(--cyan);
  background: var(--surface); font-size: 15.5px; line-height: 1.6; color: var(--body);
}

/* Closing call to download. */
section.band.download { text-align: center; }
.download p.section-lede { margin-left: auto; margin-right: auto; }
.download .store-badges { justify-content: center; margin-top: 28px; }
.download .store-badge { border-color: var(--line-2); color: var(--ink); text-align: left; }
.download .store-badge small { color: var(--muted); }

/* ---------------------------------------------------------------- legal pages */
.doc { padding: 58px 0 90px; }
.doc .measure { max-width: 68ch; }
.doc h1 { font-size: clamp(32px, 4vw, 42px); line-height: 1.1; margin: 0; font-weight: 700; }
.doc .updated { font-size: 14px; color: var(--muted); margin-top: 12px; }
.doc h2 { font-size: 21px; margin: 44px 0 0; font-weight: 600; }
.doc h3 { font-size: 16.5px; margin: 26px 0 0; font-weight: 600; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.68; color: var(--body); }
.doc p { margin: 13px 0 0; }
.doc ul, .doc ol { margin: 13px 0 0; padding-left: 22px; }
.doc li { margin-top: 7px; }
.doc .callout {
  margin-top: 22px; padding: 18px 20px; border-left: 3px solid var(--cyan);
  background: var(--ground); font-size: 15.5px; line-height: 1.6;
}
.toc { margin-top: 30px; padding: 20px 22px; background: var(--ground); border: 1px solid var(--line); border-radius: 4px; }
.toc-title { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc li { font-size: 15px; margin-top: 5px; }
.doc .lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin-top: 18px; max-width: 56ch; }
.doc .fine { font-size: 15px; color: var(--muted); }
.doc .callout.urgent { border-left-color: #C2410C; background: #FFF7F2; color: var(--ink); }
.doc .route-rule { margin: 34px 0 26px; max-width: 160px; }
.doc ul.link-list { list-style: none; padding: 0; }
.doc ul.link-list li { font-size: 17px; margin-top: 10px; }

/* Jumping to a section or heading: keep it clear of the sticky header (67px). Home sections
   carry their own top padding, so they need less; on phones that padding shrinks. */
section.band[id] { scroll-margin-top: 8px; }
.doc [id] { scroll-margin-top: 88px; }

/* Keyboard users can jump past the header. Hidden until it has focus. */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  padding: 10px 16px; border-radius: 4px; background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------- footer */
footer.site { background: var(--ink); color: rgba(255,255,255,0.6); padding: 56px 0 38px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
footer.site b { color: #fff; font-family: 'Archivo', sans-serif; font-size: 17px; }
footer.site .foot-brand { display: inline-flex; align-items: center; gap: 10px; }
footer.site .foot-brand img { width: 32px; height: 32px; }
footer.site .foot-blurb { margin: 12px 0 0; font-size: 14.5px; max-width: 34ch; }
footer.site h4 { font-family: 'Work Sans', sans-serif; font-size: 14.5px; font-weight: 600; color: #fff; margin: 0 0 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: rgba(255,255,255,0.68); text-decoration: none; font-size: 14.5px; }
footer.site a:hover { color: #fff; }
/* Social profiles not live yet: listed, but not links. */
footer.site .soon { font-size: 14.5px; color: rgba(255,255,255,0.6); cursor: default; }
footer.site .soon::after { content: ' (soon)'; color: rgba(255,255,255,0.5); }
footer.site .base { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: 13.5px; }
footer.site .base .social-inline { color: rgba(255,255,255,0.42); }
footer.site .base a { white-space: nowrap; }
/* Inner pages have only the base line, so it needs no rule or gap above it. */
footer.site .shell > .base:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
footer.site:has(.shell > .base:first-child) { padding: 34px 0; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1000px) {
  .how-grid { gap: 48px; }
  .notes { grid-template-columns: 1fr 1fr; }
  .split { gap: 40px; }
  .split .notes { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .masthead nav a:not(.btn) { display: none; }
  /* Stacked, the copy covers the photo, so the overlay is more even top to bottom. */
  .hero { padding: 130px 0 80px; }
  .hero-bg { object-position: 88% center; }
  .hero::before {
    background: linear-gradient(180deg, rgba(11,31,58,0.82) 0%, rgba(11,31,58,0.66) 45%, rgba(11,31,58,0.88) 100%);
  }
  .how-grid { grid-template-columns: 1fr; gap: 48px; }
  .phone { max-width: 270px; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > .photo { order: 0; }
  .split .notes { grid-template-columns: 1fr 1fr; }
  .photo.tall { aspect-ratio: 4 / 3; }
  .photo.wide { aspect-ratio: 16 / 9; margin-bottom: 36px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  footer.site .cols > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .shell { padding: 0 16px; }
  section.band { padding: 64px 0; }
  section.band[id] { scroll-margin-top: 32px; }
  .hero { padding: 115px 0 60px; }
  .notes, .split .notes { grid-template-columns: 1fr; gap: 26px; }
  .photo { border-radius: 10px; }
  .store-badge { flex: 1 1 150px; min-width: 0; }
  .ledger .row { flex-direction: column; gap: 2px; }
  .ledger .row > span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
