/* Plat — marketing site
   ────────────────────────────────────────────────────────────────
   Committed dark. The ground is navy-biased rather than neutral grey,
   and the orange is the app icon's, spent on exactly one thing per
   screen so it still means something when it appears. */

:root {
  --ink:      #0A0F1A;   /* ground */
  --slate:    #121A2A;   /* raised panel */
  --line:     #1F2A3D;   /* hairline */
  --line-lit: #2C3B54;   /* hairline, emphasised */
  --paper:    #E6EBF3;   /* primary text */
  --muted:    #8496AE;   /* secondary text */
  --dim:      #7B8DA8;   /* tertiary, captions — kept at AA on --ink */
  --orange:   #E8622D;   /* the accent, used sparingly */
  --orange-d: #B94A1E;

  --measure: 34rem;      /* ~65 characters of the serif */
  --pad: clamp(1.25rem, 5vw, 2.5rem);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  /* Explicit, always: the page must not borrow a host's ground. */
  background: var(--ink);
  color: var(--paper);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ── shared rhythm ─────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

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

section { border-top: 1px solid var(--line); }

.block { padding-block: clamp(2.5rem, 7vw, 4.5rem); }

/* The pace bar. In the app, a rep's month is drawn against goal; the
   same mark divides the page. Fill differs per instance, which is the
   point — it is a reading, not a rule. */
.pace {
  height: 3px;
  background: var(--line);
  display: block;
  border: 0;
  margin: 0;
}
.pace > i {
  display: block;
  height: 100%;
  background: var(--orange);
}

/* ── type ──────────────────────────────────────────────────────── */

h1, h2, h3, .display {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 9.5vw, 4.25rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.125rem); letter-spacing: -0.025em; }
h3 { font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.25; }

p { margin: 0; }

.label {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}

.lede  { color: var(--muted); font-size: 1.125rem; }
.small { font-size: 0.9375rem; color: var(--muted); }

/* ── header ────────────────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--paper);
}

/* The icon, rebuilt in CSS: four tiles, one of them lit. */
.tiles {
  width: 19px; height: 19px;
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  gap: 2.5px;
}
.tiles i { background: var(--line-lit); border-radius: 1.5px; }
.tiles i:nth-child(2) { background: var(--orange); }

.signin {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color .15s ease;
}
.signin:hover { color: var(--paper); }

/* ── hero ──────────────────────────────────────────────────────── */

.hero { padding-block: clamp(2.5rem, 8vw, 4.5rem) clamp(3rem, 9vw, 5rem); }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  /* No screenshot yet — don't hold a column open for it. */
  .hero-grid:not(:has(.shot)) { grid-template-columns: 1fr; }
}

/* Three clauses, three places a rep actually stands. Set as a stack so
   the shape of the day is visible before the sentence is read. */
.moments {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line-lit);
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.5;
  max-width: 30rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Our own button, deliberately not a facsimile of Apple's badge.
   Swap in the official artwork before launch — see images/README.txt. */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.375rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  text-decoration: none;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform .15s ease, background .15s ease;
}
.appstore:hover { background: #fff; transform: translateY(-1px); }
.appstore svg { flex: none; }
.appstore span { display: block; line-height: 1.15; }
.appstore .top {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.66;
}
.appstore .bot { font-size: 1.0625rem; }

.price {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  color: var(--dim);
  letter-spacing: 0.01em;
}

/* ── phone frame (pure CSS, no downloaded assets) ──────────────── */

.shot {
  --w: 15.5rem;
  width: var(--w);
  margin-inline: auto;
  border: 1px solid var(--line-lit);
  border-radius: 2rem;
  padding: 0.5rem;
  background: linear-gradient(160deg, #16203300, #162033);
  box-shadow: 0 24px 60px -24px #000;
}
.shot-inner {
  position: relative;
  border-radius: 1.55rem;
  overflow: hidden;
  background: var(--slate);
  aspect-ratio: 9 / 19.5;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* the speaker bar, not a full notch — quieter and reads at any size */
.shot-inner::after {
  content: "";
  position: absolute;
  top: 0.55rem; left: 50%;
  transform: translateX(-50%);
  width: 30%; height: 4px;
  border-radius: 99px;
  background: #0006;
}
.hero .shot { --w: min(17rem, 72vw); }

/* ── positioning ───────────────────────────────────────────────── */

.thesis { padding-block: clamp(3.5rem, 10vw, 6rem); }
.thesis p {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 6.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-wrap: balance;
  max-width: 22ch;
}
.thesis em { font-style: normal; color: var(--orange); }

/* ── features ──────────────────────────────────────────────────── */

.feature {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  padding-block: clamp(2.75rem, 7vw, 4rem);
  border-top: 1px solid var(--line);
  align-items: center;
}
.feature:first-of-type { border-top: 0; }
@media (min-width: 48rem) {
  .feature { grid-template-columns: 1fr 13rem; }
  /* Alternating rows swap the TRACKS, not just the source order.
     Reordering alone sent the paragraph into the 13rem phone column and
     squeezed it to four words a line. */
  .feature:nth-child(even) { grid-template-columns: 13rem 1fr; }
  .feature:nth-child(even) > .feature-text { order: 2; }
  .feature:not(:has(.shot)) { grid-template-columns: 1fr; }
}
/* A feature's phone is a supporting illustration, not the hero's
   centrepiece — smaller keeps the row from towering over its text. */
.feature .shot { --w: 13rem; }
.feature-text { display: flex; flex-direction: column; gap: 0.75rem; max-width: var(--measure); }
.feature-text p { color: var(--muted); }

/* ── reassurance ───────────────────────────────────────────────── */

.strip { padding-block: clamp(2.5rem, 7vw, 3.5rem); }
.strip ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0.875rem;
}
@media (min-width: 44rem) { .strip ul { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.strip li {
  display: flex; gap: 0.6875rem; align-items: baseline;
  color: var(--muted); font-size: 0.9375rem; line-height: 1.5;
}
.strip li::before {
  content: ""; flex: none;
  width: 6px; height: 6px; border-radius: 1px;
  background: var(--orange);
  transform: translateY(-1px);
}

/* ── data trust ────────────────────────────────────────────────── */

.trust { background: var(--slate); }
.trust .inner {
  padding-block: clamp(2.75rem, 8vw, 4rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.trust p { color: var(--muted); max-width: var(--measure); }

/* ── closing ───────────────────────────────────────────────────── */

.closing { padding-block: clamp(3rem, 9vw, 5rem); display: flex; flex-direction: column; gap: 2rem; }
.origin {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 32rem;
  padding-left: 1rem;
  border-left: 2px solid var(--orange);
  line-height: 1.6;
}

/* ── footer ────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line); }
.foot {
  padding-block: 2rem 3rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--paper); text-decoration: underline; }

/* ── legal pages ───────────────────────────────────────────────── */

.doc { padding-block: clamp(2.5rem, 7vw, 4rem) clamp(3rem, 8vw, 5rem); }
.doc h1 { font-size: clamp(2rem, 7vw, 2.75rem); margin-bottom: 0.5rem; }
.doc h2 { font-size: 1.25rem; margin-top: 2.5rem; margin-bottom: 0.5rem; }
.doc p, .doc li { color: var(--muted); max-width: var(--measure); }
.doc p + p { margin-top: 0.875rem; }
.doc ul { margin: 0.5rem 0 0; padding-left: 1.125rem; display: flex; flex-direction: column; gap: 0.5rem; }
.doc a { color: var(--paper); text-decoration-color: var(--line-lit); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--orange); }
.doc .eff {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
