/* The site since 2026-10-21 (Noel): the one-screen home page and the few pages left beside it, in
   Risegate for iPhone's look (iphone/Risegate/Theme.swift): white page, Apple's own font, Sora only
   for the big headline, the ink pill as the main button and a grey pill as the second.
   account.html and academy/how-to-film-a-run.html still load the old styles.css first for their own
   insides (the sign-in cards, the filming drawings); body.old-insides below moves those onto these
   colours and fonts. The top bar and footer are .site-top and .site-foot so they never meet the old
   .bar and .foot. */
:root {
  --ink: #0B0C0E; --soft: #454A52; --muted: #676C74;
  --card: #F2F2F7; --card-hi: #E5E5EA; --good: #13855B; --bad: #C2410C;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: #FFFFFF; color: var(--ink); font: 17px/1.5 var(--sys);
  -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100dvh;
}
body > main { flex: 1; }
a { color: inherit; }

/* top bar and footer, the same on every page */
.site-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; }
/* the logo's link as tall as the Sign in pill (15px text, 1.5 line height, 8px padding): the sign-in page has
   no pill, and without it the bar was shorter and the logo sat 6px higher than on every other page (Noel, 2026-10-22) */
.site-top > a:first-child { display: flex; align-items: center; min-height: 38.5px; }
.site-top__word { height: 26px; width: auto; fill: var(--ink); display: block; }
.site-top__signin { font-size: 15px; font-weight: 500; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--card); }
.site-top__signin:hover { background: var(--card-hi); }
.site-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  font-size: 13px; color: var(--muted); }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* buttons */
.btn { font: 600 17px var(--sys); border: 0; border-radius: 999px; min-height: 52px; padding: 0 24px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn--ink, .btn--primary { background: var(--ink); color: #FFFFFF; }
.btn--ink:hover, .btn--primary:hover { background: #2A2C30; }
.btn--ink:disabled { opacity: .5; cursor: default; }
.btn--soft { background: var(--card); color: var(--ink); font-weight: 500; }
.btn--soft:hover { background: var(--card-hi); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the home page */
.home { display: grid; place-items: center; padding: 24px 16px 48px; }
.hero { width: 100%; max-width: 560px; text-align: center; }
.hero h1 { font: 600 clamp(36px, 7vw, 56px)/1.05 Sora, var(--sys); letter-spacing: -0.035em; margin: 0 0 16px; }
.hero__lead { color: var(--soft); font-size: 19px; margin: 0 auto 32px; max-width: 30em; }
.join { display: flex; gap: 6px; padding: 8px; background: var(--card); border-radius: 999px; max-width: 520px; margin: 0 auto; }
.join:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.join input { flex: 1; min-width: 0; border: 0; background: transparent; font: 18px var(--sys); color: var(--ink); padding: 0 20px; outline: none;
  border-radius: 999px; }   /* the pill's shape, so a browser's own autofill colour never shows past its rounded ends */
.join input::placeholder { color: var(--muted); }
/* a browser-filled email keeps the pill's grey, not Chrome's light-blue square (Noel, 2026-10-22) */
.join input:-webkit-autofill,
.join input:-webkit-autofill:hover,
.join input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 9999s ease-out 0s;   /* Chrome's own autofill background never shows */
}
.join input:autofill { box-shadow: 0 0 0 1000px var(--card) inset; }   /* Firefox */
.join .btn { min-height: 54px; }
.msg { min-height: 24px; margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.msg--bad { color: var(--bad); }
.msg--good { color: var(--good); font-weight: 500; }   /* after joining: one green line, the form stays put (Noel, 2026-10-22) */
.or { color: var(--muted); font-size: 15px; margin: 28px 0 12px; }
.demo { min-width: 220px; }

/* a page of text: privacy, terms, refunds, beta, join */
.page-head { padding: 40px 16px 8px; }
.wrap { max-width: 680px; margin: 0 auto; }
.page-head h1 { font: 600 clamp(32px, 6vw, 44px)/1.1 Sora, var(--sys); letter-spacing: -0.03em; margin: 0 0 12px; }
.page-head__lead { color: var(--soft); font-size: 19px; margin: 0 0 24px; }
.page-head--download { text-align: center; padding-top: 64px; }
.page-head--download .btn { min-width: 260px; }
.download__meta, .download__note { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.download__needs { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.download__needs li { background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.article { max-width: 680px; margin: 0 auto; padding: 8px 16px 64px; }
.article h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; margin: 36px 0 10px; }
.article p, .article li { color: var(--soft); }
.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 14px; padding-left: 22px; }
.article li { margin: 0 0 8px; }
.article strong { color: var(--ink); }
.article a { text-decoration: underline; text-underline-offset: 2px; }

/* the old insides of account.html and the filming lesson, on these colours and fonts */
body.old-insides {
  --panel: var(--card); --panel-hi: var(--card-hi); --border: var(--card-hi);
  --text: var(--ink); --accent: var(--ink); --accent-hi: var(--ink);
  --sans: var(--sys); font-family: var(--sys);
}
body.old-insides .btn { font-family: var(--sys); }
body.old-insides h1 { font-family: Sora, var(--sys); font-weight: 600; letter-spacing: -0.03em; }
body.old-insides h2, body.old-insides h3 { font-family: var(--sys); font-weight: 700; letter-spacing: -0.01em; }
body.old-insides .page-head { background: none; }

@media (max-width: 480px) {
  .site-top { padding: 16px; }
  /* on a phone, two pills of their own: the grey email field, the black button under it (Noel, 2026-10-22) */
  .join { flex-direction: column; gap: 10px; padding: 0; background: none; border-radius: 0; }
  .join:focus-within { box-shadow: none; }
  .join input { min-height: 54px; background: var(--card); padding: 0 20px; }
  .join input:focus { box-shadow: 0 0 0 2px var(--ink); }
  .join input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--card) inset, 0 0 0 2px var(--ink); }
  .join .btn { width: 100%; }
  .hero__lead, .page-head__lead { font-size: 17px; }
  /* the home page on a phone, calmer (Noel, 2026-10-22): more side room, a smaller headline, more
     space between blocks, one big button with the demo as a plain link, a short light footer */
  .home { padding: 32px 24px 40px; }
  .hero h1 { font-size: 37px; margin-bottom: 20px; }
  .hero__lead { margin-bottom: 40px; }
  .or { display: none; }
  .demo { width: auto; min-width: 0; min-height: 0; margin-top: 24px; padding: 4px 8px; background: none; color: var(--muted);
    font-size: 16px; font-weight: 400; }
  .demo:hover, .demo:active { background: none; text-decoration: underline; text-underline-offset: 3px; }
  .site-top__signin, .site-top__signin:hover { background: none; padding-left: 0; padding-right: 0; }   /* same height, so the logo stays put */
  .site-foot { gap: 6px 16px; font-size: 12px; color: #8E9297; }
  .site-foot__wide { display: none; }
  .site-foot__copy { order: 1; flex-basis: 100%; text-align: center; }
  .page-head--download .btn { width: 100%; }
}

/* the back arrow on every page but home (Noel, 2026-10-22): a plain ink arrow right above the title,
   its tip lined up with the title's left edge; the 44 px tap area around it is invisible */
.site-back { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  margin: 0 0 8px -10px; color: var(--ink); }
.site-back:hover { color: var(--soft); }
.site-back svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.acct__back { width: min(100%, 460px); padding: 0 clamp(28px, 4vw, 44px); }
/* the thanks wraps onto two lines on the narrowest phones: keep room for both so the form never moves */
@media (max-width: 340px) { .msg { min-height: 45px; } }
