/* Formm public site. Plain CSS, no build step.
   Tokens are the app's (design/README.md): light by default, dark via prefers-color-scheme. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f4f5fb;
  --surface: #ffffff;
  --text: #1a1b2b;
  --muted: #5f6379;
  --border: #e6e8f1;
  --coach: #4f46e5;
  --on-coach: #ffffff;
  --indigo: #4f46e5;
  --button: #4f46e5;
  --on-button: #ffffff;
  --mint: #dcf2e6;
  --on-mint: #0e6a43;
  --butter: #fff0c0;
  --on-butter: #755600;
  --sky: #daedfc;
  --on-sky: #0f4f80;
  --peach: #ffe5d3;
  --on-peach: #9a4510;
  --lavender: #e8e7fd;
  --on-lavender: #3a33b8;
  --radius-tile: 30px;
  --radius-large: 28px;
  --radius-pill: 24px;
  --gutter: 16px;
  --gap: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f17;
    --surface: #181925;
    --text: #f0f1fa;
    --muted: #a0a4bc;
    --border: #2a2c3e;
    --coach: #5148d8;
    --indigo: #9b9cff;
    --button: #9b9cff;
    --on-button: #0e0f17;
    --mint: #17382a;
    --on-mint: #7fddae;
    --butter: #3a3012;
    --on-butter: #f3d874;
    --sky: #173048;
    --on-sky: #97ccff;
    --peach: #412a1b;
    --on-peach: #ffbe92;
    --lavender: #26264f;
    --on-lavender: #c9c9ff;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--indigo);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: var(--gutter);
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 12px;
  z-index: 10;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

header.site {
  padding: 20px 0 8px;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

main {
  flex: 1;
  padding: 8px 0 40px;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 10px;
}
footer.site p {
  margin: 0;
}

/* Wordmark: lowercase "formm", the last m in indigo */
.wordmark {
  display: inline-block;
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.wordmark .m {
  color: var(--indigo);
}

header.site nav {
  display: flex;
  gap: 6px;
}
header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 22px;
}
header.site nav a:hover,
header.site nav a[aria-current="page"] {
  background: var(--lavender);
  color: var(--on-lavender);
}

/* Type */
h1 {
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 4px 8px;
}
h2 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 28px 0 8px;
}
h3 {
  font-size: 18px;
  margin: 18px 0 6px;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 4px 18px;
}

/* Bento tiles */
.tile {
  border-radius: var(--radius-tile);
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tile h2,
.tile h3 {
  margin-top: 0;
}
.tile p:last-child {
  margin-bottom: 0;
}
.tile.mint {
  background: var(--mint);
  border-color: transparent;
}
.tile.butter {
  background: var(--butter);
  border-color: transparent;
}
.tile.sky {
  background: var(--sky);
  border-color: transparent;
}
.tile.peach {
  background: var(--peach);
  border-color: transparent;
}
.tile.lavender {
  background: var(--lavender);
  border-color: transparent;
}
.tile.coach {
  background: var(--coach);
  color: var(--on-coach);
  border-color: transparent;
}
.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.mint .label {
  color: var(--on-mint);
}
.butter .label {
  color: var(--on-butter);
}
.sky .label {
  color: var(--on-sky);
}
.peach .label {
  color: var(--on-peach);
}
.lavender .label {
  color: var(--on-lavender);
}
.tile .big {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 6px;
  color: var(--text);
}

.coach .note {
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin: var(--gap) 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 15px;
  background: var(--button);
  color: var(--on-button);
  text-decoration: none;
}
/* Spacing that used to be inline style attributes, which the site's Content-Security-Policy blocks. */
.cta {
  margin: 18px 4px;
}
.cta.cta-top {
  margin: 0 4px 18px;
}
.tile.gap {
  margin-top: 10px;
}

.pill.soft {
  background: var(--lavender);
  color: var(--on-lavender);
}

.placeholder {
  background: var(--butter);
  color: var(--on-butter);
  border-radius: 8px;
  padding: 1px 6px;
  font-weight: 600;
}

/* Draft banner (legal pages and anything with unfilled brackets) */
.draft-banner,
blockquote {
  background: var(--butter);
  color: var(--on-butter);
  border-radius: 20px;
  padding: 12px 16px;
  margin: 12px 0 18px;
  font-weight: 600;
}
blockquote p {
  margin: 0;
}

/* Long-form text (legal pages) */
article p,
article li {
  max-width: 68ch;
}
article ul {
  padding-left: 22px;
}
article li {
  margin: 4px 0;
}
.table-scroll {
  overflow-x: auto;
  margin: 12px 0;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 14px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
tr:last-child td {
  border-bottom: 0;
}

ol.steps {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  margin: 12px 0;
}
ol.steps li {
  counter-increment: step;
  position: relative;
  min-height: 30px;
  padding-left: 42px;
  margin: 10px 0;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--butter);
  color: var(--on-butter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Password reset form (reset-password.html). Classes, not inline styles: the site's Content-Security-Policy blocks style attributes. */
[hidden] {
  display: none !important;
}
.field {
  margin: 14px 0;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 0 4px 6px;
}
.field input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
}
.field input:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}
.form-error {
  margin: 0 4px;
  color: var(--on-peach);
  background: var(--peach);
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 15px;
}
button.pill {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
button.pill:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (min-width: 640px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
  .grid .wide {
    grid-column: 1 / -1;
  }
}
