/* The site's whole stylesheet. The palette is src/shell/theme.rs -- the same
   ground the launcher icon and the app's first screen are painted on, so the
   page a pilot reads before installing looks like the app they install. */
:root {
  --brand: #ff4f00;
  --ink: #16181a;
  --ink-dim: #5c6166;
  --surface: #f3f4f3;
  --card: #ffffff;
  --rule: #e3e5e7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.band {
  background: var(--brand);
  padding: 56px 24px 48px;
}

.wrap { max-width: 42rem; margin: 0 auto; }

.band .wrap { display: flex; align-items: center; gap: 20px; }

.band img { width: 62px; height: 62px; display: block; margin-left: -8px; }

h1 {
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 500;
}

.band p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.72;
}

main { padding: 40px 24px 72px; }

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.4em 0 0.6em;
}

h2:first-child { margin-top: 0; }

p, li { color: var(--ink); }

.lede { font-size: 1.2rem; line-height: 1.5; }

.dim { color: var(--ink-dim); }

ul { padding-left: 1.2em; }

li { margin: 0.35em 0; }

a { color: var(--ink); text-decoration-color: var(--brand); text-underline-offset: 3px; }

a:hover { color: var(--brand); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.6em 0.8em 0.6em 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th { font-weight: 600; }

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 1.4em 0;
}

.card :first-child { margin-top: 0; }
.card :last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--rule);
  padding: 28px 24px 56px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

footer a { color: var(--ink-dim); }

@media (max-width: 30rem) {
  .band { padding: 36px 20px 32px; }
  .band .wrap { gap: 16px; }
  .band img { width: 56px; height: 56px; }
  h1 { font-size: 1.7rem; }
  main { padding: 32px 20px 56px; }
}


/* ---- the landing page ------------------------------------------------
   One screen, no scroll on a desktop. The ground is the app's own: a pilot
   who opens the app after this sees the same orange in the same place, and
   the icon's own ground is #ff4f00 too, so the mark sits on the page with no
   tile edge around it.

   No webfont. The privacy policy says this site loads nothing from anywhere
   else, and a font from a CDN would make that false. */
body.home {
  background: var(--brand);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 5vh, 56px) clamp(24px, 5vw, 72px);
  max-width: 74rem;
  margin: 0 auto;
}

.said { flex: 0 1 28rem; min-width: 19rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.wordmark img { width: 62px; height: 62px; display: block; margin-left: -8px; }

.pill {
  display: table;
  margin: clamp(28px, 6vh, 52px) 0 18px;
  padding: 5px 13px;
  border: 1px solid rgba(22, 24, 26, 0.22);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.home h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.sub {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.55;
  margin: 1.1em 0 0;
  max-width: 27rem;
  color: var(--ink);
  opacity: 0.82;
}

/* Bottom-left on a desktop, because the text column is vertically centred and
   a legal link hanging under it reads as part of the pitch. Last thing on a
   phone, after the screenshot, where a footer belongs. */
.legal {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  bottom: clamp(22px, 4vh, 40px);
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.72;
}

.legal a { color: inherit; text-decoration-color: rgba(22, 24, 26, 0.45); }
.legal a:hover { color: inherit; text-decoration-color: currentColor; }

/* **A link on the brand ground must not turn brand-coloured.** The document
   rule above paints a:hover #ff4f00, which on #ff4f00 is an invisible link --
   the wordmark vanished under the pointer. Here the hover is weight of ink,
   not hue. */
body.home a:hover { color: inherit; }

.wordmark { transition: opacity 120ms ease; }
.wordmark:hover { opacity: 0.68; }

/* Three screens rather than one: the wing in the air, the wing being read
   back afterwards, and the words. One phone showed the app; three show that it
   is an app. The outer two sit behind and a little turned, so the eye lands on
   the middle one. */
.shown {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Height-driven, so the phone can never be what forces a scrollbar. */
.phone {
  height: min(50vh, 22rem);
  aspect-ratio: 420 / 760;
  padding: 8px;
  border-radius: 34px;
  background: #0f1012;
  box-shadow: 0 28px 56px rgba(40, 12, 0, 0.26), 0 3px 10px rgba(40, 12, 0, 0.2);
}

.front { z-index: 2; }

/* Turned from the shoulder, not the centre, so the two lean away from the
   middle phone rather than pivoting into it. */
.aside {
  z-index: 1;
  transform: scale(0.88);
  opacity: 0.97;
}

.shown .aside:first-child {
  margin-right: -2.4rem;
  transform-origin: right center;
  transform: rotate(-5deg) scale(0.88);
}

.shown .aside:last-child {
  margin-left: -2.4rem;
  transform-origin: left center;
  transform: rotate(5deg) scale(0.88);
}

.phone img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 27px;
}

/* Below this the two columns stop fitting side by side; stacking means the
   page scrolls on a phone, which is what a phone does. */
@media (max-width: 68rem) {
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    gap: 36px;
  }
  .said { flex: none; }
  .shown { align-self: center; }
  .legal { position: static; margin-top: 4px; }
  .phone { height: auto; width: min(17rem, 68vw); }
}

/* A short, wide window -- a laptop at 768px, a window dragged flat -- would
   otherwise push the phone past the fold. */
@media (max-height: 44rem) and (min-width: 68rem) {
  .pill { margin-top: clamp(16px, 3vh, 28px); }
  body.home h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
  .legal { margin-top: 24px; }
}

/* ---- the signup ---------------------------------------------------------
   The only thing on the page that asks for anything. Ink on the brand ground
   rather than a second colour: there is one accent here and it is the page. */
.signup { margin: clamp(22px, 4vh, 34px) 0 0; max-width: 27rem; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Offered to bots, hidden from people and from screen readers. Not
   `display: none`, which the better bots already know to skip. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup .row { display: flex; gap: 8px; flex-wrap: wrap; }

.signup input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 24, 26, 0.2);
  border-radius: 10px;
}

.signup input[type="email"]::placeholder { color: rgba(22, 24, 26, 0.45); }

.signup input[type="email"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.signup button {
  padding: 11px 18px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.signup button:hover { opacity: 0.82; }
.signup button:disabled { opacity: 0.5; cursor: default; }
.signup button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.signup .note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.78;
  max-width: 24rem;
}

.signup .note a { color: inherit; text-decoration-color: rgba(22, 24, 26, 0.45); }

/* Once it has worked, the box has nothing left to do. */
.signup.done .row { display: none; }
.signup.done .note { opacity: 1; font-weight: 600; }
