/* barbellform.com. The colours are the app's: the icon's slate and
   lavender, and the deep lavender its buttons use in light. */
:root {
  --slate: #2f3442;
  --slate-2: #3a4050;
  --lavender: #c4b5fd;
  --accent: #5a3fc4;
  --paper: #f6f5f1;
  --card: #ffffff;
  --ink: #1b1e26;
  --muted: #5b5f6b;
  --rule: #dddbd3;
  --danger: #b00014;
  --ok: #1d6b3a;
  --measure: 34rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1f27;
    --card: #262a34;
    --ink: #eceef3;
    --muted: #a9adb8;
    --rule: #3a3f4c;
    --accent: #c4b5fd;
    --danger: #ff8c85;
    --ok: #7fd49c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 20px; }
.measure { max-width: var(--measure); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 2; }

/* Header */
.top { background: var(--slate); color: #eef0f4; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { display: flex; gap: 20px; font-size: 0.95rem; }
.top nav a { color: #d6d9e1; text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--lavender); }

/* The opening band */
.hero { background: var(--slate); color: #eef0f4; position: relative; z-index: 1; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: end; padding-top: 56px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { color: #c9ccd6; font-size: 1.12rem; max-width: 31rem; }
.hero .copy { padding-bottom: 72px; }
.hero .phone { margin-bottom: -150px; }
.hero + section { padding-top: 190px; }
.button {
  display: inline-block; background: var(--lavender); color: var(--slate);
  font-weight: 650; padding: 12px 20px; border-radius: 12px; text-decoration: none; border: 0;
  font-size: 1rem; cursor: pointer;
}
.button:hover { background: #d4c8fe; }
.hero .aside { font-size: 0.92rem; color: #9fa4b2; margin-top: 14px; }

/* A screenshot in a phone's outline */
.phone {
  border-radius: 44px; padding: 9px; background: #0d0f14;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 24px 48px -24px rgba(10, 12, 20, 0.55);
  max-width: 300px; justify-self: center;
}
.phone img { border-radius: 36px; }
.phone.small { max-width: 250px; }

/* Feature rows */
section { padding: 72px 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.row + .row { margin-top: 96px; }
.row.flip .phone { order: -1; }
.row h2 { max-width: 20ch; }
.kicker { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.more { font-weight: 600; }

/* Facts, set like a spec sheet rather than cards */
.facts { border-top: 1px solid var(--rule); }
.facts dl { display: grid; grid-template-columns: 13rem 1fr; margin: 0; }
.facts dt, .facts dd { padding: 18px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { font-weight: 650; padding-right: 24px; }

/* Early access */
.signup { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.signup .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
form { display: grid; gap: 18px; max-width: 28rem; }
label, legend { font-weight: 600; font-size: 0.95rem; }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.choices label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
input[type=email], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 10px; padding: 11px 12px; margin-top: 6px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus-visible, textarea:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
form .button { background: var(--accent); color: #fff; justify-self: start; }
@media (prefers-color-scheme: dark) { form .button { color: var(--slate); } }
form .button[disabled] { opacity: 0.6; cursor: default; }
.trap { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.status { min-height: 1.5em; margin: 0; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }
.fine { font-size: 0.88rem; color: var(--muted); }

/* Guides */
.guide-head { background: var(--slate); color: #eef0f4; padding: 48px 0 40px; }
.guide-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: 22ch; }
.guide-head p { color: #c9ccd6; max-width: 36rem; margin: 0; font-size: 1.08rem; }
.crumb { font-size: 0.9rem; margin-bottom: 14px; }
.guide-head a { color: var(--lavender); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 1fr 260px; gap: 48px; padding: 40px 0; border-bottom: 1px solid var(--rule); }
.steps > li:last-child { border-bottom: 0; }
.steps > li.text-only { grid-template-columns: 1fr; }
.steps h2 { font-size: 1.3rem; display: flex; gap: 12px; align-items: baseline; }
.steps h2::before { content: counter(step); font-size: 0.85rem; font-weight: 700; color: var(--slate); background: var(--lavender); border-radius: 999px; min-width: 1.7rem; height: 1.7rem; display: inline-grid; place-items: center; flex: none; transform: translateY(-2px); }
.note { border-left: 3px solid var(--lavender); padding: 4px 0 4px 16px; margin: 1.2em 0; color: var(--muted); }
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.guide-list li { border-bottom: 1px solid var(--rule); }
.guide-list a { display: grid; grid-template-columns: 16rem 1fr; gap: 24px; padding: 20px 0; text-decoration: none; color: var(--ink); }
.guide-list a strong { color: var(--accent); }
.guide-list a:hover strong { text-decoration: underline; }
.next { padding: 32px 0 72px; }
kbd, .ui { font: inherit; font-weight: 600; white-space: nowrap; }

/* Footer */
footer { padding: 40px 0 56px; font-size: 0.92rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: inherit; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero .wrap, .row, .signup .wrap, .steps > li { grid-template-columns: 1fr; gap: 28px; }
  .hero .copy { padding-bottom: 8px; }
  .hero .phone { margin-bottom: -120px; max-width: 250px; }
  .hero + section { padding-top: 160px; }
  .row.flip .phone { order: 0; }
  .row + .row { margin-top: 72px; }
  .phone { max-width: 250px; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .guide-list a { grid-template-columns: 1fr; gap: 4px; }
  .top nav { gap: 14px; font-size: 0.9rem; }
  .top nav .wide { display: none; }
}
