@font-face {
  font-family: "Instrument Serif";
  src: url("https://cdn.prod.website-files.com/69982fbce28b9d9d8c665e1b/699839144c88831e60c87c85_instrumentserif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--brand-ink);
  --page: #f4f8fc;
  --brand-ink: #00223d;
  --brand-blue: #1b4aa9;
  --action-blue: #3898ec;
  --on-accent: #ffffff;
  --surface: #ffffff;
  --surface-blue: #eef5fd;
  --border: #d8e4f0;
  --body-copy: #3f586d;
  --muted-copy: #5f7486;
  --progress-track: #e5edf5;
  --state-dot-border: #b8d6f1;
  --error: #b42318;
  --focus-ring: rgba(56, 152, 236, 0.35);
  --ambient-primary: rgba(56, 152, 236, 0.2);
  --ambient-secondary: rgba(27, 74, 169, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: min(34rem, 68vw);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  filter: blur(24px);
  pointer-events: none;
}

body::before {
  top: -20rem;
  right: -8rem;
  background: var(--ambient-primary);
}

body::after {
  bottom: -24rem;
  left: -10rem;
  background: var(--ambient-secondary);
}

.shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.5rem 1.25rem;
}

.panel {
  width: min(100%, 40rem);
  padding: 2.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3.75rem;
}

.brand-logo {
  display: block;
  width: 7.75rem;
  height: auto;
}

.product-context {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-blue);
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 600;
}

.state-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--brand-blue);
  font-size: 0.875rem;
  font-weight: 600;
}

.state-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--state-dot-border);
  border-radius: 50%;
  background: var(--action-blue);
}

h1 {
  margin: 0;
  color: var(--brand-ink);
  font-size: 3.55rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 em {
  color: var(--action-blue);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 115%;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.intro {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--body-copy);
  font-size: 1.05rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.signin-panel,
.progress-panel {
  margin-top: 2rem;
}

#google-signin {
  min-height: 44px;
}

.fine-print,
.detail,
.footer {
  color: var(--muted-copy);
  font-size: 0.8rem;
  line-height: 1.5;
}

.fine-print {
  margin: 0.75rem 0 0;
}

.progress-track {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--progress-track);
}

.progress-fill {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: var(--action-blue);
  transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-panel.is-ready .progress-fill {
  width: 100%;
}

.progress-panel.is-error .progress-fill {
  background: var(--error);
}

.progress-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.status,
.estimate {
  margin: 0;
}

.status {
  color: var(--brand-ink);
  font-weight: 600;
}

.estimate {
  flex: none;
  color: var(--muted-copy);
  font-size: 0.78rem;
}

.detail {
  margin: 0.7rem 0 0;
}

.retry {
  margin-top: 1.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--brand-blue);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-blue);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.retry:hover,
.retry:focus-visible {
  background: var(--brand-blue);
  color: var(--on-accent);
}

.retry:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.footer {
  margin: 0;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #071725;
    --brand-ink: #f4f8fb;
    --brand-blue: #9cc5ff;
    --action-blue: #65b5ff;
    --on-accent: #071725;
    --surface: #0d2233;
    --surface-blue: #15334a;
    --border: #29475c;
    --body-copy: #c6d7e3;
    --muted-copy: #a7bccb;
    --progress-track: #243d4f;
    --state-dot-border: #3c6684;
    --error: #ff8f86;
    --focus-ring: rgba(101, 181, 255, 0.45);
    --ambient-primary: rgba(56, 152, 236, 0.18);
    --ambient-secondary: rgba(27, 74, 169, 0.22);
  }

  .brand-logo {
    filter: brightness(0) invert(1);
    opacity: 0.96;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill {
    transition: none;
  }

  .retry {
    transition: none;
  }
}

@media (max-width: 36rem) {
  .shell {
    justify-content: flex-start;
    padding: 1rem;
  }

  .panel {
    padding: 1.5rem;
  }

  .panel-header {
    margin-bottom: 3rem;
  }

  .brand-logo {
    width: 6.75rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  .intro {
    font-size: 1rem;
  }

  .progress-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}
