/* Midstrong website. Colours, spacing and type mirror the app's tokens (Figma: Tokens, Dimensions, text styles). */
:root {
  --page: #fffbf6;
  --card: #f4efe8;
  --raised: #ffffff;
  --hairline: #e8e2da;
  --text: #000000;
  --text-2: #6b6865;
  --placeholder: #a3a09c;
  --accent: #3a6b52;
  --accent-pressed: #2c5440;
  --accent-subtle: #e6efe8;
  --error: #9a453c;

  --s8: 8px;
  --s12: 12px;
  --s16: 16px;
  --s24: 24px;
  --s32: 32px;
  --s40: 40px;
  --s48: 48px;
  --r-card: 16px;
  --r-panel: 24px;

  --font: ui-rounded, 'SF Pro Rounded', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1280px; margin: 0 auto; padding: var(--s24); }

/* Header */
.logo { display: inline-flex; align-items: center; gap: var(--s8); text-decoration: none; font-size: 22px; font-weight: 500; }
.logo img { width: 32px; height: 32px; }

/* Hero */
.hero { display: grid; gap: var(--s40); padding-top: var(--s32); }
.words { display: grid; gap: var(--s16); align-content: start; }
.eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.sub { margin: 0; color: var(--text-2); }

/* Waitlist form */
.signup { display: grid; gap: var(--s12); margin-top: var(--s16); }
.signup form { display: grid; gap: var(--s12); }
.field {
  height: 54px; width: 100%; padding: 0 20px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--raised); color: var(--text);
  font: inherit; outline: none;
}
.field::placeholder { color: var(--placeholder); }
.field:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.button {
  height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.button:hover { background: var(--accent-pressed); }
.button:focus-visible { outline: 3px solid var(--accent-subtle); outline-offset: 2px; }
.button[disabled] { opacity: 0.6; cursor: default; }
.reassure { margin: 0; color: var(--text-2); font-size: 13px; }
.error { margin: 0; color: var(--error); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* After signup: replaces the form */
.done {
  display: flex; align-items: center; gap: var(--s16);
  padding: var(--s16); border-radius: var(--r-card); background: var(--accent-subtle);
}
.done img { width: 64px; height: auto; flex: none; }
.done strong { display: block; font-size: 17px; font-weight: 600; }
.done p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
[hidden] { display: none !important; }

/* Screens: phone, Lola and the drawn move */
.stage { position: relative; display: grid; justify-items: center; gap: var(--s32); }
.phone-wrap { position: relative; justify-self: end; margin-right: 8px; }
.phone {
  width: 255px; padding: 8px; border-radius: 44px;
  background: #141414;
  box-shadow: 0 24px 48px -8px rgba(44, 84, 64, 0.16);
}
.phone img, .phone video { width: 100%; height: auto; aspect-ratio: 393 / 852; object-fit: cover; border-radius: 36px; background: var(--page); }
.lola { position: absolute; width: 96px; left: -78px; bottom: -6px; }
.move {
  display: grid; gap: var(--s12); justify-items: center; width: 100%; max-width: 342px;
  padding: var(--s24) var(--s24) var(--s16); border-radius: var(--r-panel); background: var(--card);
}
.move .frames { display: flex; align-items: flex-end; gap: 22px; height: 130px; }
.move .frames img { height: 100%; width: auto; }
.caption { margin: 0; color: var(--text-2); font-size: 13px; text-align: center; }

/* Footer */
footer { display: flex; flex-wrap: wrap; gap: var(--s24); padding: var(--s48) 0 var(--s24); font-size: 13px; color: var(--text-2); }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Desktop: words left, screens right (the chosen A + C blend) */
@media (min-width: 960px) {
  .wrap { padding: var(--s32) 80px; }
  .hero { grid-template-columns: minmax(0, 1fr) 560px; gap: 64px; align-items: center; padding-top: var(--s48); }
  h1 { font-size: 48px; line-height: 1.15; }
  .sub { max-width: 480px; }
  .signup form { grid-template-columns: 1fr auto; }
  .stage { display: block; width: 560px; height: 660px; }
  .phone-wrap { position: absolute; left: 260px; top: 0; margin: 0; }
  .phone { width: 300px; padding: 9px; border-radius: 50px; }
  .phone img, .phone video { border-radius: 42px; }
  .lola { left: -110px; bottom: 0; }
  .move { position: absolute; left: 0; top: 250px; width: 259px; padding: 20px 20px 14px; }
  .move .frames { height: 132px; gap: 20px; }
}

/* Legal and support pages */
.doc { max-width: 680px; padding-top: var(--s32); }
.doc h1 { margin-bottom: var(--s8); }
.doc h2 { margin: var(--s32) 0 var(--s8); font-size: 22px; font-weight: 500; }
.doc p, .doc li { color: var(--text-2); }
.doc .updated { font-size: 13px; }
