:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #56565b;
  --rule: #dedee0;
  --quiet: #f5f5f6;
  --focus: #2664b0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding: .55rem max(clamp(20px, 5vw, 72px), (100vw - 1440px) / 2);
  border-bottom: 1px solid var(--rule);
}
.identity { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.identity img { display: block; width: clamp(146px, 16vw, 182px); height: auto; }
.home-link {
  padding: .65rem 0;
  color: var(--muted);
  font-size: .89rem;
  text-decoration: none;
}
.home-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .22em; }
.application-layout {
  width: min(calc(100% - 40px), 520px);
  margin: 0 auto;
  padding: clamp(58px, 9vw, 126px) 0 clamp(64px, 9vw, 136px);
}
.application-layout-wide { width: min(calc(100% - 40px), 620px); padding-top: clamp(48px, 7.6vw, 106px); }
.introduction { text-align: center; }
h1, h2, p { margin: 0; }
h1 {
  font-size: clamp(2.65rem, 5.5vw, 4.6rem);
  font-weight: 630;
  line-height: 1.02;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.application-intro, .thanks-intro {
  max-width: 39ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.5;
  margin-inline: auto;
  text-align: center;
  text-wrap: pretty;
}
.application-intro { margin-top: 1.15rem; }
.application-body { min-width: 0; margin: clamp(26px, 3.5vw, 42px) auto 0; }
.application-layout:not(.application-layout-wide) .application-body { max-width: 425px; }
.privacy-body { display: grid; gap: 2rem; line-height: 1.6; }
.privacy-body h2 { margin-bottom: .5rem; font-size: 1.24rem; }
.privacy-body p { color: var(--muted); margin-bottom: .7rem; overflow-wrap: anywhere; }
.apply-buttons { display: grid; gap: 10px; }
.provider, .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border: 1px solid transparent;
  border-radius: 100px;
  min-height: 48px;
  padding: 12px 23px;
  line-height: 1.25;
  font-size: 1rem;
  font-weight: 550;
  text-align: center;
  text-decoration: none;
}
.provider { min-height: 51px; }
.provider img { display: block; flex: none; }
.google { background: #fff; border-color: #b7b7bb; color: var(--ink); }
.google:hover { background: var(--quiet); }
.apple, .pill { background: var(--ink); color: #fff; }
.apple:hover, .pill:hover { background: #343436; }
.pill:disabled { cursor: wait; opacity: .65; }
.email-choice { margin-top: 1.1rem; border-bottom: 1px solid var(--rule); }
.email-choice summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 14px 3px;
  min-height: 48px;
  font-size: .98rem;
  line-height: 1.4;
}
.email-choice summary::-webkit-details-marker { display: none; }
.email-choice summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  margin: -5px 4px 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.email-choice[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.email-choice summary:hover { text-decoration: underline; text-underline-offset: .22em; }
.email-choice form { padding: 5px 0 20px; }
.email-choice label, .form-grid label {
  display: block;
  font-size: .94rem;
  line-height: 1.4;
  font-weight: 550;
}
.email-choice label { margin-bottom: 7px; }
.email-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.email-fields input { flex: 1 1 155px; }
.application-note, .demo-note { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.application-note { margin-top: 1.2rem; }
.demo-note { margin-top: .45rem; }
.application-layout:not(.application-layout-wide) .application-note { text-align: center; }
.mail-card { margin: 3px 0 18px; padding: clamp(18px, 3vw, 28px); border-radius: 18px; background: var(--quiet); }
.mail-meta { display: grid; gap: .17rem; padding-bottom: .9rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--rule); }
.mail-meta strong { font-size: 1.02rem; font-weight: 630; letter-spacing: -.03em; }
.mail-meta small { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.mail-card h2 { font-size: 1.4rem; font-weight: 620; line-height: 1.15; letter-spacing: -.04em; }
.mail-card p { line-height: 1.5; margin-top: .8rem; }
.mail-card .pill, #restart { margin-top: 1.2rem; }
#thanks-link { display: flex; width: fit-content; margin: 1.5rem auto 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { align-self: end; }
.optional { color: var(--muted); font-size: .83rem; font-weight: 400; }
.optional::before { content: "("; }
.optional::after { content: ")"; }
.form-grid input, .form-grid select, .form-grid textarea, .email-fields input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .66rem .85rem;
  color: var(--ink);
  border: 1px solid #a7a7ac;
  border-radius: 10px;
  background-color: white;
  font-weight: 400;
  font-size: 1rem;
}
.form-grid input, .form-grid select, .form-grid textarea { margin-top: .45rem; }
.form-grid input[readonly] { color: var(--muted); background: var(--quiet); border-color: #ceced1; }
.form-grid textarea { min-height: 7rem; resize: vertical; }
.form-grid select {
  appearance: none;
  padding-right: 2.15rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.preferences { border: 0; padding: 0; margin: 1.9rem 0 0; }
.preferences legend { padding: 0; font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.preferences label { display: flex; align-items: start; gap: .65rem; padding: .38rem 0; line-height: 1.45; }
.preferences input { width: 1.05rem; height: 1.05rem; margin: .15rem 0 0; flex: none; accent-color: var(--ink); }
#complete-form .application-note { margin-top: .5rem; }
#complete-form > .pill { margin-top: 1.7rem; }
#finish-status { line-height: 1.5; }
.message { color: #9c252b; margin: 1rem 0 0; line-height: 1.5; }
@media (max-width: 520px) {
  .masthead { min-height: 58px; }
  .application-layout { padding-top: 49px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .email-fields { display: grid; }
  #complete-form > .pill { width: 100%; }
}
