@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/courier-prime-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/courier-prime-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --sheet: #fbf9f1;
  --canary: #f6d84a;
  --pink: #f2b8c6;
  --navy: #1c2a6b;
  --navy-deep: #141f52;
  --navy-soft: #4d5a93;
  --rule: #9aa3c7;
  --hair: #c9cee3;
  --ink: #2140b8;
  --pencil: #5d6690;
  --red: #c4312a;
  --printed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  --typed: "Courier Prime", "Courier New", monospace;
  --feed: clamp(18px, 3.2vw, 46px);
  --gutter: clamp(18px, 3.4vw, 56px);
  color-scheme: light;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--navy);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  min-height: 100vh;
}
::selection {
  background: var(--canary);
  color: var(--navy-deep);
}
:focus-visible {
  outline: 3px solid var(--canary);
  outline-offset: 3px;
}
.sheet :focus-visible {
  outline-color: var(--ink);
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--canary);
  color: var(--navy-deep);
  font-weight: 500;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* Masthead: printed on the navy desk above the form. */
.masthead {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px calc(var(--feed) + var(--gutter));
  color: var(--sheet);
  font-family: var(--printed);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand img {
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgb(251 249 241 / 0.25);
}
.form-id {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c6cbe6;
}
.form-id span {
  letter-spacing: 0.02em;
  text-transform: none;
  margin-left: 10px;
  color: #9fa7d1;
}
.masthead nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 1.12rem;
  font-weight: 500;
}
.masthead nav a {
  text-decoration: none;
}
.masthead nav a:hover {
  text-decoration: underline;
}
.stamp-link {
  padding: 6px 14px;
  border: 2px solid var(--canary);
  color: var(--canary);
  letter-spacing: 0.03em;
}
.stamp-link:hover {
  background: var(--canary);
  color: var(--navy-deep);
  text-decoration: none !important;
}

/* The continuous-feed set: pin-feed margins left and right, canary and pink
   copies showing at the right edge and bottom. */
.feed {
  --edge: 30px;
  position: relative;
  isolation: isolate;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 calc(var(--edge) * 2) 18px 0;
}
.feed::before,
.feed::after {
  content: "";
  position: absolute;
  z-index: -1;
}
.feed::before {
  inset: 9px var(--edge) 9px 9px;
  background: var(--canary);
}
.feed::after {
  inset: 18px 0 0 18px;
  background: var(--pink);
  z-index: -2;
}
.edge {
  position: absolute;
  top: 150px;
  width: var(--edge);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  font: 700 0.86rem/1 var(--printed);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.edge-canary {
  right: var(--edge);
}
.edge-pink {
  right: 0;
  top: 420px;
}
.sheet {
  position: relative;
  z-index: 1;
  background: var(--sheet);
  padding: 0 calc(var(--feed) + var(--gutter));
  background-image:
    radial-gradient(circle at center, var(--navy) 0 5px, transparent 5.5px),
    radial-gradient(circle at center, var(--navy) 0 5px, transparent 5.5px);
  background-size:
    var(--feed) 0.5in,
    var(--feed) 0.5in;
  background-position:
    left top 0.25in,
    right top 0.25in;
  background-repeat: repeat-y;
}
.sheet::before,
.sheet::after {
  /* Perforation between pin-feed strip and form. */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed var(--rule);
}
.sheet::before {
  left: var(--feed);
}
.sheet::after {
  right: var(--feed);
}

/* Parts are separated by perforations. */
.part {
  position: relative;
  padding: clamp(44px, 6vw, 84px) 0;
}
.part + .part {
  border-top: 2px dashed var(--rule);
}
.part h2 {
  font-family: var(--printed);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: clamp(24px, 3vw, 40px);
  text-wrap: balance;
}
.part-letter {
  display: inline-grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.3em;
  border: 2px solid var(--navy);
  font-size: 0.8em;
  vertical-align: 0.08em;
}

/* Part A: the application. */
.part-a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
h1 {
  font-family: var(--printed);
  font-weight: 700;
  font-size: clamp(3rem, 7.2vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  max-width: 11ch;
  text-wrap: balance;
}
.lede {
  margin-top: 22px;
  max-width: 58ch;
  font-size: 1.15rem;
  color: var(--navy-soft);
}
.demo {
  margin-top: clamp(28px, 4vw, 44px);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--navy);
  border-left: 1px solid var(--navy);
}
.field {
  position: relative;
  min-height: 78px;
  padding: 8px 12px 10px;
  border-right: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  display: grid;
  align-content: space-between;
  gap: 6px;
}
.field.wide {
  grid-column: 1 / -1;
}
.label {
  font-family: var(--printed);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.label b {
  display: inline-grid;
  place-items: center;
  min-width: 1.5em;
  height: 1.5em;
  margin-right: 6px;
  background: var(--navy);
  color: var(--sheet);
  font-weight: 700;
  letter-spacing: 0;
}
.entry {
  justify-self: start;
  border-bottom: 1.5px dotted transparent;
  font-family: var(--typed);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  color: var(--ink);
  min-height: 1.5em;
  overflow-wrap: anywhere;
  transition:
    color 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.entry small {
  display: block;
  font-size: 0.78rem;
  color: var(--navy-soft);
  font-family: var(--body);
}
.margin-note {
  font-family: var(--typed);
  font-size: 0.95rem;
  color: var(--red);
}
.margin-note::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 8px;
  vertical-align: 0.3em;
  background: var(--red);
}

/* Preview before write: queued values are pencilled, then inked. */
.demo[data-state="queued"] .entry:not(.blank) {
  color: var(--pencil);
  border-bottom: 1.5px dotted var(--pencil);
}
.demo[data-state="queued"] .entry.inked {
  color: var(--ink);
  border-bottom-color: transparent;
}
.demo-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  min-height: 46px;
}
.approved {
  flex: none;
  padding: 6px 10px;
  border: 2px solid var(--red);
  color: var(--red);
  font: 700 0.95rem/1 var(--printed);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  animation: stamp 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes stamp {
  from {
    transform: rotate(-4deg) scale(1.25);
    opacity: 0;
  }
}
.demo-state {
  font-size: 0.92rem;
  color: var(--navy-soft);
}
.ink-button {
  flex: none;
  white-space: nowrap;
  font: 700 1.05rem var(--printed);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--sheet);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}
.ink-button:hover {
  background: var(--sheet);
  color: var(--ink);
}
.ink-button:disabled {
  cursor: default;
  opacity: 0.45;
}

/* Office use only column. */
.office {
  border: 2px solid var(--red);
  padding: 18px 20px 20px;
  margin-top: clamp(0px, 1vw, 12px);
  color: var(--navy);
}
.office h2 {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--red);
}
.fee-lines div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
}
.fee-lines dt {
  font-size: 0.98rem;
}
.fee-lines dd {
  font-family: var(--typed);
  font-size: 1.15rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fee-lines .cap {
  border-bottom: 2px solid var(--navy);
}
.fee-lines .cap dt {
  font-weight: 500;
}
.stamp {
  display: grid;
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--navy);
  color: var(--sheet);
  text-decoration: none;
  font: 700 1.5rem/1 var(--printed);
  letter-spacing: 0.02em;
  text-align: center;
  transition: background-color 160ms ease;
}
.stamp span {
  margin-top: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--canary);
}
.stamp:hover {
  background: var(--ink);
}
.office-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--navy-soft);
}

/* Part B: steps as form rows, not cards. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--navy);
}
.step {
  padding: 22px 26px 26px 0;
}
.step + .step {
  padding-left: 26px;
  border-left: 1px solid var(--navy);
}
.step h3 {
  font: 700 1.6rem/1.05 var(--printed);
  margin-bottom: 12px;
}
.step p {
  max-width: 44ch;
  color: var(--navy-soft);
}
.step em {
  font-style: normal;
  font-weight: 500;
  color: var(--navy);
}
.step .aside {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  font-size: 0.93rem;
}
.requirements {
  margin-top: 18px;
  border-top: 1px solid var(--navy);
}
.requirements li {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
}
.requirements li::before {
  content: "";
  grid-row: span 2;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1.5px solid var(--navy);
  background-repeat: no-repeat;
  background-position: center;
}
.requirements .met::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m3.5 9.5 3.6 3.4L14.8 4.6' fill='none' stroke='%232140b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.requirements .miss::before {
  border-color: var(--red);
}
.requirements .evidence {
  font-family: var(--typed);
  font-size: 0.88rem;
  color: var(--ink);
}
.requirements .miss .evidence {
  color: var(--red);
}
.example-note {
  margin-top: 8px;
  font: 500 0.82rem var(--printed);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

/* Part C: fees. */
.fees {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.schedule th,
.schedule td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--hair);
}
.schedule thead th {
  font: 500 0.88rem var(--printed);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
}
.schedule tbody th {
  font-weight: 500;
  width: 32%;
}
.schedule td {
  color: var(--navy-soft);
}
.schedule .num {
  text-align: right;
  padding-right: 0;
  font-family: var(--typed);
  font-size: 1.12rem;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.schedule thead .num {
  font-family: var(--printed);
  color: var(--navy);
  font-size: 0.88rem;
}
.schedule tfoot th,
.schedule tfoot td {
  border-top: 2px solid var(--navy);
  border-bottom: 3px double var(--navy);
  font-weight: 500;
  color: var(--navy);
}
.estimator {
  border: 1px solid var(--navy);
  padding: 18px 18px 20px;
  background: var(--sheet);
  display: grid;
  gap: 10px;
}
.estimator h3 {
  font: 700 1.4rem/1 var(--printed);
  margin-bottom: 6px;
}
.box {
  display: grid;
  grid-template-columns: 1fr 96px;
  align-items: stretch;
  border: 1px solid var(--navy);
}
.box span {
  padding: 8px 10px;
  font: 500 0.95rem/1.2 var(--printed);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: center;
}
.box input {
  border: 0;
  border-left: 1px solid var(--navy);
  background: transparent;
  font: 1.2rem var(--typed);
  color: var(--ink);
  padding: 8px 10px;
  width: 100%;
  min-height: 44px;
  text-align: right;
  caret-color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.box input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 3px double var(--navy);
  font: 700 1.25rem var(--printed);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.total output {
  font: 700 2rem var(--typed);
  color: var(--ink);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.fine {
  font-size: 0.9rem;
  color: var(--navy-soft);
}
.fees-note {
  margin-top: 22px;
  max-width: 70ch;
}

/* Part D: the three copies. */
/* One carbon set: each lower copy is shifted right and down, so its right
   and bottom edges stick out past the sheet above it. */
.copies {
  display: grid;
  max-width: 880px;
}
.copy {
  position: relative;
  padding: 20px 26px 22px;
  border: 1px solid var(--navy);
}
.copy-white {
  z-index: 3;
  margin-right: 48px;
}
.copy-canary {
  z-index: 2;
  margin: -18px 24px 0 24px;
  padding-top: 36px;
}
.copy-pink {
  z-index: 1;
  margin: -18px 0 0 48px;
  padding-top: 36px;
}
.copy h3 {
  font: 700 1.45rem/1.05 var(--printed);
  margin-bottom: 10px;
}
.copy p {
  max-width: 40ch;
  color: var(--navy);
}
.copy em {
  font-style: normal;
  font-weight: 500;
}
.copy-white {
  background: var(--sheet);
}
.copy-canary {
  background: var(--canary);
}
.copy-pink {
  background: var(--pink);
}
.providers {
  margin-top: 22px;
  max-width: 72ch;
  color: var(--navy-soft);
}

/* Close: the signature line. */
.part-close h2 {
  margin-bottom: 18px;
}
.signature {
  display: flex;
  align-items: end;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.sig-line {
  flex: 1 1 320px;
  min-height: 70px;
  border-bottom: 2px solid var(--navy);
  padding: 0 0 2px 12px;
  display: flex;
  align-items: end;
}
.sig-line svg {
  max-width: 100%;
  height: auto;
}
.stamp.big {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  padding: 18px 28px;
}
.part-close .fine {
  margin-top: 14px;
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px calc(var(--feed) + var(--gutter)) 40px;
  color: #c6cbe6;
  font: 500 1rem var(--printed);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 1320px;
  margin: 0 auto;
}
.colophon nav {
  display: flex;
  gap: 22px;
}

/* Secondary pages share the sheet. */
.doc {
  padding: clamp(44px, 6vw, 84px) 0;
  max-width: 74ch;
}
.doc h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 16ch;
  margin-bottom: 24px;
}
.doc h2 {
  font: 700 1.6rem/1.1 var(--printed);
  margin: 36px 0 10px;
}
.doc p,
.doc li {
  color: var(--navy-soft);
}
.doc p + p {
  margin-top: 12px;
}
.doc ol {
  list-style: decimal;
  padding-left: 1.4em;
  display: grid;
  gap: 8px;
}
.doc ul {
  list-style: square;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}
.doc .stamp {
  display: inline-grid;
  margin-top: 28px;
  padding-inline: 28px;
}

@media (max-width: 1000px) {
  .form-id span {
    display: none;
  }
  .part-a,
  .fees {
    grid-template-columns: 1fr;
  }
  .office {
    max-width: 520px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step,
  .step + .step {
    padding: 22px 0;
    border-left: 0;
  }
  .step + .step {
    border-top: 1px solid var(--navy);
  }
  .copy-white {
    margin-right: 24px;
  }
  .copy-canary {
    margin: -14px 12px 0 12px;
  }
  .copy-pink {
    margin: -14px 0 0 24px;
  }
}
@media (max-width: 700px) {
  :root {
    font-size: 16px;
    --feed: 16px;
    --gutter: 16px;
  }
  .masthead {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 14px 20px;
  }
  .form-id {
    display: none;
  }
  .masthead nav {
    gap: 16px;
    font-size: 1rem;
  }
  .masthead nav a:not(.stamp-link) {
    display: none;
  }
  .sheet {
    background-size:
      var(--feed) 0.4in,
      var(--feed) 0.4in;
    background-image:
      radial-gradient(circle at center, var(--navy) 0 3.5px, transparent 4px),
      radial-gradient(circle at center, var(--navy) 0 3.5px, transparent 4px);
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .field {
    min-height: 66px;
  }
  .schedule thead {
    display: none;
  }
  .schedule tr {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid var(--hair);
    padding: 10px 0;
  }
  .schedule th,
  .schedule td {
    border: 0;
    padding: 0;
  }
  .schedule tbody th {
    width: auto;
  }
  .schedule td:not(.num) {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.9rem;
    margin-top: 2px;
  }
  .schedule .num {
    grid-row: 1;
    grid-column: 2;
  }
  .schedule tfoot tr {
    border-top: 3px double var(--navy);
    border-bottom: 0;
  }
  .schedule tfoot th,
  .schedule tfoot td {
    border: 0;
  }
  .feed {
    --edge: 0px;
    padding: 0 12px 44px 0;
  }
  .feed::before {
    inset: 6px 6px 22px 6px;
  }
  .feed::after {
    inset: 12px 0 0 12px;
  }
  .edge {
    writing-mode: horizontal-tb;
    width: auto;
    top: auto;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }
  .edge-canary {
    left: 14px;
    right: auto;
    bottom: 26px;
  }
  .edge-pink {
    left: 22px;
    right: auto;
    bottom: 6px;
  }
  .box {
    grid-template-columns: 1fr 84px;
  }
  .demo-foot {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Account pages: registration, sign-in and billing share the form's boxes. */
.form-boxes {
  margin-top: 28px;
  display: grid;
  border-top: 2px solid var(--navy);
  border-left: 1px solid var(--navy);
  max-width: 560px;
}
.form-boxes .field {
  min-height: 0;
  gap: 8px;
}
.entry-input {
  width: 100%;
  border: 0;
  border-bottom: 1.5px dotted var(--rule);
  background: transparent;
  padding: 4px 0;
  font: 1.25rem var(--typed);
  color: var(--ink);
  caret-color: var(--ink);
}
.entry-input:focus-visible {
  outline: none;
  border-bottom: 2px solid var(--ink);
}
.entry-input.code {
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}
.field.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--navy-soft);
}
.field.check input,
.choice input,
.pack input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 12px;
  border-right: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}
.form-boxes[aria-busy="true"] {
  cursor: progress;
}
.ink-button.working::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.55em;
  vertical-align: -0.08em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* A field with a problem keeps a steady red border and the message until the
   visitor edits it. The same red edge marks problems in every form. */
.form-boxes .field.invalid {
  box-shadow: inset 0 0 0 2px var(--red);
}
.field.invalid .entry-input {
  border-bottom-color: var(--red);
}
.box.invalid {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.box.invalid input {
  border-left-color: var(--red);
}
.field-error,
.box-error {
  display: block;
  width: 100%;
  font: 500 0.95rem var(--body);
  color: var(--red);
}
.field.check .field-error {
  flex-basis: 100%;
}
.field.check.invalid {
  flex-wrap: wrap;
}
@media (prefers-reduced-motion: reduce) {
  .ink-button.working::before {
    animation: none;
  }
}
.text-button {
  border: 0;
  padding: 4px 0;
  background: none;
  font: 500 1rem var(--body);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.text-button:hover {
  color: var(--navy);
}
.text-button:disabled {
  opacity: 0.45;
  cursor: default;
}
.sent {
  padding: 12px;
  border-right: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  color: var(--navy-soft);
}
.typed {
  font-family: var(--typed);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.status {
  min-height: 1.5em;
  margin-top: 16px;
  color: var(--navy);
}
.status.error,
.pay-error {
  color: var(--red);
}
.switch {
  margin-top: 8px;
}

.account {
  max-width: none;
}
.account[aria-busy="true"] .account-grid {
  opacity: 0.55;
}
.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
}
.account-head h1 {
  margin-bottom: 0;
}
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: 8px;
}
.ledger-col h2 {
  margin-top: 0;
}
.ledger-col h2 + * {
  margin-top: 4px;
}
.ledger-col h2:not(:first-child) {
  margin-top: 40px;
}
.promo-code {
  margin-block-start: 40px;
}
.promo-code .form-boxes {
  max-width: none;
  margin-block-start: 12px;
}
.promo-code .field,
.promo-code .form-actions {
  padding: 14px 12px;
}
.rule-note {
  margin-top: 12px;
  max-width: 62ch;
}
.past-due {
  margin-top: 14px;
  padding: 10px 12px;
  border: 2px solid var(--red);
  color: var(--red);
}
[data-remove-card] {
  margin-top: 10px;
}
.history {
  width: 100%;
}
.history tbody th {
  font-weight: 400;
}

.office.pay {
  margin-top: 0;
  display: grid;
  gap: 16px;
}
.office.pay h2 {
  margin-bottom: 0;
}
.choice,
.packs {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}
.option,
.pack {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--navy);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.option:has(input:checked),
.pack:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.option span {
  display: grid;
  gap: 2px;
  font-size: 0.95rem;
  color: var(--navy-soft);
}
.option strong {
  font: 700 1.2rem/1.1 var(--printed);
  color: var(--navy);
}
.packs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.packs legend {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}
.pack {
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}
.pack input {
  position: absolute;
  opacity: 0;
}
.pack strong {
  font: 700 1.35rem/1 var(--typed);
  color: var(--ink);
}
.pack span {
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--navy-soft);
}
.pack:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.payment-element {
  min-height: 120px;
}
.pay-error:empty {
  display: none;
}
button.stamp {
  width: 100%;
  margin-top: 0;
  border: 0;
  cursor: pointer;
}
button.stamp:disabled {
  cursor: default;
  background: var(--navy-soft);
}

@media (max-width: 1000px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
  .office.pay {
    max-width: 560px;
  }
}
@media (max-width: 700px) {
  .masthead nav a.nav-account:not([hidden]) {
    display: inline;
  }
  .packs {
    grid-template-columns: 1fr;
  }
  .pack {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
}

/* Google sign-in, styled to Google's button guidelines. */
.google {
  margin-top: 28px;
  max-width: 560px;
  display: grid;
  gap: 18px;
}
.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #747775;
  background: #fff;
  color: #1f1f1f;
  font: 500 1rem var(--body);
  cursor: pointer;
  transition: background-color 160ms ease;
}
.google-button:hover {
  background: #f2f2f2;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 0.9rem var(--printed);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--rule);
}
.google + .form-boxes {
  margin-top: 0;
}

/* Payment confirmation: a receipt slip over the page, stamped like the
   approve demo, with paper confetti behind it. */
.confetti {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  z-index: 1000;
}
.receipt {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 30px 28px 24px;
  border: 1px solid var(--navy);
  border-top: 6px solid var(--navy);
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--canary);
  overflow: visible;
}
.receipt::backdrop {
  background: rgb(20 31 82 / 0.55);
}
.receipt[open] {
  animation: receipt-in 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes receipt-in {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
}
.receipt h2 {
  margin: 0;
  font: 700 2rem/1.05 var(--printed);
  color: var(--navy);
}
.receipt-lede {
  margin: 10px 0 18px;
  color: var(--navy-soft);
}
.receipt-stamp {
  position: absolute;
  top: 18px;
  right: 20px;
  margin: 0;
  padding: 6px 12px;
  border: 3px solid var(--red);
  color: var(--red);
  font: 700 1.1rem/1 var(--printed);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  animation: receipt-stamp 360ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes receipt-stamp {
  from {
    transform: rotate(-8deg) scale(1.6);
    opacity: 0;
  }
}
.receipt-lines {
  margin: 0;
  border-top: 2px solid var(--navy);
}
.receipt-lines dd {
  font-variant-numeric: tabular-nums;
}
.receipt-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
@media (prefers-reduced-motion: reduce) {
  .receipt[open],
  .receipt-stamp {
    animation: none;
  }
}

/* Pay-first toggle: shown when an account has both credits and a card. */
.pay-first {
  margin: 18px 0 4px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.pay-first legend {
  margin-bottom: 8px;
  padding: 0;
  font: 500 0.95rem/1.2 var(--printed);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--navy);
}
.toggle label {
  position: relative;
  cursor: pointer;
}
.toggle label + label {
  border-left: 2px solid var(--navy);
}
.toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.toggle span {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  font: 0.92rem/1.25 var(--typed);
  color: var(--navy-soft);
  transition:
    background-color 160ms ease,
    color 160ms ease;
}
.toggle strong {
  font: 700 1.15rem/1.1 var(--printed);
  letter-spacing: 0.02em;
  color: var(--navy);
}
.toggle input:checked + span {
  background: var(--ink);
  color: var(--sheet);
}
.toggle input:checked + span strong {
  color: var(--sheet);
}
.toggle input:focus-visible + span {
  outline: 3px solid var(--canary);
  outline-offset: -3px;
}
.pay-first:disabled .toggle {
  opacity: 0.6;
  cursor: progress;
}

/* Profile page: the extension's profile editor, laid out as form boxes. */
.profile-page {
  max-width: 760px;
}
.profile-where {
  margin: 10px 0 0;
}
.profile-page .status {
  margin: 0 0 18px;
}
.profile-page .status:empty {
  display: none;
}
.profile-page .status:not(:empty) {
  padding: 8px 12px;
  border: 1px solid var(--rule);
  background: rgb(33 64 184 / 0.05);
}
.profile-page .status.error:not(:empty) {
  border-color: var(--red);
  background: rgb(196 49 42 / 0.05);
}
.profile-page .intro {
  margin: 8px 0 0;
  font-size: 1.1rem;
  color: var(--navy-soft);
}
.profile-page h1:focus {
  outline: none;
}
.profile-page .section {
  margin-top: 34px;
}
.profile-page .section h2 {
  margin: 0;
}
.profile-page .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.profile-page .row.between {
  justify-content: space-between;
}
.profile-page .row.top-align {
  align-items: flex-start;
}
.profile-page .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 14px;
}
.profile-page .profile-actions {
  margin-top: 22px;
}
/* Fields: each label is a ruled box, like the account forms. */
.profile-page .fields {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 14px;
  border-top: 2px solid var(--navy);
  border-left: 1px solid var(--navy);
}
.profile-page .fields > label,
.profile-page .fields > .csv-row,
.profile-page .fields > p,
.profile-page .fields > .actions,
.profile-page .fields > .row,
.profile-page .split > label {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 12px 12px;
  border-right: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  font: 500 0.92rem/1.2 var(--printed);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.profile-page .fields > p {
  font: 0.95rem/1.45 var(--body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy-soft);
}
.profile-page .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.profile-page .fields input:not([type="checkbox"]):not([type="file"]),
.profile-page .fields select,
.profile-page .fields textarea {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-bottom: 1.5px dotted var(--rule);
  background: transparent;
  padding: 4px 0;
  font: 1.1rem var(--typed);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  caret-color: var(--ink);
}
.profile-page .fields textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.4;
}
.profile-page .fields input:focus-visible,
.profile-page .fields select:focus-visible,
.profile-page .fields textarea:focus-visible {
  outline: none;
  border-bottom: 2px solid var(--ink);
}
.profile-page .fields input::placeholder,
.profile-page .fields textarea::placeholder {
  color: var(--pencil);
}
.profile-page input[type="file"] {
  font: 0.95rem var(--body);
  letter-spacing: 0;
  text-transform: none;
}
.profile-page .input-action {
  display: flex;
  gap: 12px;
  align-items: center;
}
.profile-page .csv-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.profile-page .csv-row a {
  margin-left: 6px;
  font: 500 0.95rem var(--body);
  letter-spacing: 0;
  text-transform: none;
}
.profile-page .editor {
  margin-top: 16px;
  border-top-width: 3px;
  box-shadow: 6px 6px 0 var(--canary);
  background: var(--sheet);
}
/* Buttons, in the site's ink styles. */
.profile-page button.primary,
.profile-page button.secondary {
  flex: none;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  font: 700 1rem var(--printed);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}
.profile-page button.primary {
  background: var(--ink);
  color: var(--sheet);
}
.profile-page button.primary:hover {
  background: var(--sheet);
  color: var(--ink);
}
.profile-page button.secondary {
  background: var(--sheet);
  color: var(--ink);
}
.profile-page button.secondary:hover {
  background: var(--ink);
  color: var(--sheet);
}
.profile-page button.compact {
  padding: 7px 12px;
  font-size: 0.9rem;
}
.profile-page button.quiet {
  border: 0;
  padding: 4px 0;
  background: none;
  font: 500 1rem var(--body);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.profile-page button.danger {
  color: var(--red);
}
.profile-page button:focus-visible {
  outline: 3px solid var(--canary);
  outline-offset: 2px;
}
/* Entries: a ruled ledger of the profile's evidence. */
.profile-page .entries {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 2px solid var(--navy);
}
.profile-page .entries li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.profile-page .entries strong {
  font: 700 1.15rem/1.2 var(--printed);
  color: var(--navy);
}
.profile-page .entries .fine {
  margin: 2px 0 0;
}
/* AI résumé autofill: a fold-out section. */
.profile-page .resume-import {
  margin-top: 26px;
  border: 1px solid var(--navy);
}
.profile-page .resume-import summary {
  padding: 12px 14px;
  font: 700 1.2rem var(--printed);
  color: var(--navy);
  cursor: pointer;
}
.profile-page .resume-import[open] summary {
  border-bottom: 1px solid var(--navy);
}
.profile-page .resume-import .fields {
  margin: 0;
  border-top: 0;
  border-left: 0;
}
.profile-page .resume-import .fields > :last-child {
  border-bottom: 0;
}
.profile-page .resume-choices,
.profile-page .review-evidence {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}
.profile-page .disclosure {
  margin-top: 26px;
}
@media (max-width: 640px) {
  .profile-page .split {
    grid-template-columns: 1fr;
  }
  .profile-page .input-action {
    flex-wrap: wrap;
  }
}
