/* Log: system font, light and dark themes, frosted nav, rounded cards. */

:root {
  color-scheme: light dark;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #5f5f64;
  --hairline: rgba(0, 0, 0, 0.1);
  --hairline-strong: rgba(0, 0, 0, 0.18);
  --nav-bg: rgba(251, 251, 253, 0.72);
  --nav-fallback: #fbfbfd;

  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-press: #006edb;
  --link: #0066cc;
  --on-blue: #ffffff;
  --focus: #0071e3;
  --blue-wash: rgba(0, 113, 227, 0.07);

  --code-bg: #f2f2f5;
  --code-ink: #1d1d1f;

  --high: #1b7a37;
  --high-bg: #e6f4ea;
  --medium: #8a5300;
  --medium-bg: #fdf1dc;
  --low: #b3261e;
  --low-bg: #fdecea;
  --none: #5f5f64;
  --none-bg: #ececf0;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 14px 36px rgba(0, 0, 0, 0.09);

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --page: 1024px;
  --gutter: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #232326;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --hairline: rgba(255, 255, 255, 0.12);
    --hairline-strong: rgba(255, 255, 255, 0.24);
    --nav-bg: rgba(22, 22, 23, 0.72);
    --nav-fallback: #161617;

    --link: #2997ff;
    --focus: #2997ff;
    --blue-wash: rgba(41, 151, 255, 0.12);

    --code-bg: #111113;
    --code-ink: #e8e8ed;

    --high: #4cd471;
    --high-bg: rgba(48, 209, 88, 0.16);
    --medium: #ffc35a;
    --medium-bg: rgba(255, 159, 10, 0.16);
    --low: #ff8a80;
    --low-bg: rgba(255, 69, 58, 0.16);
    --none: #b8b8bd;
    --none-bg: rgba(255, 255, 255, 0.1);

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.55), 0 14px 36px rgba(0, 0, 0, 0.55);
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--on-blue);
  font-size: 14px;
}
.skip:focus {
  top: 10px;
  text-decoration: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Navigation */

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-fallback);
  border-bottom: 1px solid var(--hairline);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .app-header {
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}
.nav-inner {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand-dot {
  color: var(--blue);
  animation: brand-dot 1.1s ease-in-out infinite;
}
@keyframes brand-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
footer {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: 8px auto 32px;
}
.footer-links {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}
.brand-sub {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a,
.nav .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.01em;
  opacity: 0.86;
  transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover,
.nav .link-button:hover {
  opacity: 1;
  text-decoration: none;
  background: var(--hairline);
}
.nav a[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
  background: var(--hairline);
}
.nav .link-button {
  border: 0;
  background: transparent;
}
.nav .soon {
  margin-left: 6px;
  font-size: 11px;
  color: var(--muted);
}

/* Page */

main {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 0 0 96px;
}
main:focus {
  outline: none;
}

.hero {
  text-align: center;
  padding: 72px 0 44px;
}
.hero.compact {
  padding: 56px 0 32px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1,
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.028em;
  margin: 0;
  overflow-wrap: anywhere;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.17;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
.lede {
  margin: 16px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 21px);
  line-height: 1.38;
  letter-spacing: -0.012em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

/* Cards */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}
@media (prefers-color-scheme: dark) {
  .card {
    border-color: var(--hairline);
  }
}
.pad {
  padding: 32px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 24px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 980px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--on-blue);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.18;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), transform 0.12s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  background: var(--blue-hover);
  text-decoration: none;
}
.btn:active {
  background: var(--blue-press);
  transform: scale(0.98);
}
.btn.secondary {
  background: transparent;
  color: var(--link);
  border-color: var(--link);
}
.btn.secondary:hover {
  background: var(--blue-wash);
}
.btn.quiet {
  background: transparent;
  color: var(--link);
  border-color: transparent;
  padding-inline: 12px;
}
.btn.quiet:hover {
  background: var(--blue-wash);
}
.btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}
.btn:focus-visible {
  border-radius: 980px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* Upload */

.drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 36px 24px;
  text-align: center;
  border: 2px dashed var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.drop:hover {
  border-color: var(--link);
}
.drop:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.drop.hot {
  border-color: var(--blue);
  border-style: solid;
  background: var(--blue-wash);
  transform: scale(1.01);
}
.drop.has-file {
  border-style: solid;
  border-color: var(--high);
}
.drop-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-wash);
  color: var(--link);
}
.drop-icon svg {
  width: 24px;
  height: 24px;
}
.drop p {
  margin: 0;
}
.drop-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.drop-title .link {
  color: var(--link);
}
.hint {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.file-name {
  margin-top: 8px !important;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.drop.has-file .file-name {
  color: var(--high);
  font-weight: 600;
}

.field-label {
  display: block;
  margin: 24px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
textarea,
.input {
  width: 100%;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea {
  min-height: 200px;
  padding: 14px 16px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}
.input {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 17px;
}
textarea:focus,
.input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 4px var(--blue-wash), 0 0 0 1px var(--focus);
}
textarea::placeholder,
.input::placeholder {
  color: var(--muted);
}

/* Side notes */

.side h2 {
  font-size: 21px;
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.47;
}
.steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}

/* Recent list */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 64px 0 20px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 32px);
}
.list {
  display: grid;
  gap: 12px;
}
.job {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  color: inherit;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.job:hover {
  text-decoration: none;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.job:focus-visible {
  border-radius: var(--radius);
}
.job strong {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.job .meta {
  display: block;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.job .part-cell {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.chevron {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
@media (prefers-color-scheme: dark) {
  .job {
    border: 1px solid var(--hairline);
  }
}

.empty,
.banner,
.loading {
  margin: 0;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}
.loading::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  vertical-align: -1px;
  border-radius: 50%;
  border: 2px solid var(--hairline-strong);
  border-top-color: var(--link);
  animation: spin 0.8s linear infinite;
}
.banner {
  margin-top: 16px;
  background: var(--low-bg);
  color: var(--low);
  font-weight: 500;
}

/* Confidence badge */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  white-space: nowrap;
  background: var(--none-bg);
  color: var(--none);
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.high {
  background: var(--high-bg);
  color: var(--high);
}
.pill.medium {
  background: var(--medium-bg);
  color: var(--medium);
}
.pill.low {
  background: var(--low-bg);
  color: var(--low);
}

/* Result */

.result {
  margin-top: 40px;
}
.result-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.back {
  font-size: 15px;
}
.result-label {
  margin: 28px 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.part {
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.1;
  margin: 0;
}
.quiet {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.model-order {
  margin-top: 24px;
}
.your-model {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 17px;
}
.your-model .tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-wash);
  font-size: 13px;
  font-weight: 600;
}
.model-order .disclosure {
  border-top: 0;
}
.fix {
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.47;
  max-width: 40em;
}
.caveat {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
}
.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.sources a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--blue-wash);
  font-size: 14px;
}
.download {
  margin: 24px 0 0;
  font-size: 15px;
}

details.disclosure {
  border-top: 1px solid var(--hairline);
}
details.disclosure:first-child {
  border-top: 0;
}
details.disclosure > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
details.disclosure > summary::-webkit-details-marker {
  display: none;
}
details.disclosure > summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--ease);
}
details.disclosure[open] > summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
details.disclosure > summary .count {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
  font-size: 15px;
}
details.disclosure > summary .summary-text {
  flex: 1;
}
.disclosure-body {
  padding: 0 0 24px;
}
details.disclosure[open] > .disclosure-body {
  animation: fade-down 0.3s var(--ease);
}
.details-card {
  padding: 8px 32px;
}

.also {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.also li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 15px;
}
.also li span:first-child {
  overflow-wrap: anywhere;
}
.also .also-part {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.fields {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  margin: 0;
}
.fields dt,
.fields dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.fields dt {
  color: var(--muted);
  font-size: 15px;
}
.fields dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.fields dt:last-of-type,
.fields dd:last-of-type {
  border-bottom: 0;
}
pre.panic {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0;
  line-height: 1.5;
  max-height: 420px;
  overflow: auto;
}

/* Rules */

.search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto 28px;
}
.search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px 12px 44px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  box-shadow: var(--shadow);
}
.search:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 4px var(--blue-wash), 0 0 0 1px var(--focus);
}
.result-count {
  margin: -16px 0 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background-color 0.15s var(--ease);
}
tbody tr:hover {
  background: var(--surface-2);
}
th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
td {
  font-size: 15px;
}
td:first-child {
  font-weight: 600;
}

/* Auth */

.auth-card {
  max-width: 480px;
  margin: 0 auto;
}
.auth {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}
.auth label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.auth .actions {
  margin-top: 8px;
}
.auth .btn[type="submit"] {
  flex: 1 1 auto;
}

/* Schematics */

.placeholder {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.placeholder .lede {
  margin-top: 0;
}
.placeholder-art {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--muted);
}
.placeholder-art svg {
  width: 36px;
  height: 36px;
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.reveal {
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .loading::before {
    animation: none !important;
  }
  .brand-dot {
    animation: none !important;
    opacity: 1 !important;
  }
  .drop.hot,
  .job:hover,
  .btn:active {
    transform: none;
  }
}

/* Small screens */

@media (max-width: 834px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .brand-sub {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .nav-inner {
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 8px 0;
  }
  .nav {
    gap: 2px;
    justify-content: flex-start;
  }
  .nav a,
  .nav .link-button {
    padding: 4px 10px;
    font-size: 14px;
  }
  .nav .soon {
    display: none;
  }
  .hero {
    padding: 44px 0 28px;
  }
  .hero.compact {
    padding: 36px 0 24px;
  }
  .pad {
    padding: 22px 18px;
  }
  .details-card {
    padding: 4px 18px;
  }
  .drop {
    padding: 28px 16px;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .job {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 16px 18px;
  }
  .job .part-cell {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .chevron {
    display: none;
  }
  .fix {
    font-size: 17px;
  }
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .fields dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }
  .fields dd {
    padding-top: 0;
  }
  .section-head {
    margin-top: 48px;
  }
  th,
  td {
    padding: 14px 14px;
  }
}

/* Keep the rule table readable; the card scrolls sideways on narrow screens. */
.table-card table {
  min-width: 640px;
}
.table-card:focus-visible {
  border-radius: var(--radius);
}
.auth-card {
  margin-top: 72px;
}
.auth-card .headline {
  font-size: clamp(32px, 5vw, 40px);
}
.auth-lede {
  margin: 10px 0 20px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .auth-card {
    margin-top: 36px;
  }
}
/* Paper landing section. Existing workbench styles stay below the hero. */
.landing-page {
  color-scheme: light;
  --bg: #f6f6f4;
  --surface: #fff;
  --surface-2: #fbfbfd;
  --ink: #111;
  --muted: #5c5c5c;
  --hairline: #e4e4e0;
  --hairline-strong: rgba(0, 0, 0, 0.18);
  --nav-bg: rgba(251, 251, 253, 0.72);
  --nav-fallback: #fbfbfd;
  --link: #0066cc;
  --focus: #0071e3;
  --blue-wash: rgba(0, 113, 227, 0.07);
  --code-bg: #f2f2f5;
  --code-ink: #1d1d1f;
  --high: #1b7a37;
  --high-bg: #e6f4ea;
  --medium: #8a5300;
  --medium-bg: #fdf1dc;
  --low: #b3261e;
  --low-bg: #fdecea;
  --none: #5f5f64;
  --none-bg: #ececf0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 14px 36px rgba(0, 0, 0, 0.09);
  --font: "Inter", Arial, sans-serif;
  --font-display: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", monospace;
  background: #f6f6f4;
  color: #111;
  letter-spacing: 0;
}
.landing-page .app-header {
  position: relative;
  background: #f6f6f4;
  backdrop-filter: none;
  border-color: #e4e4e0;
}
.landing-page .nav-inner {
  width: auto;
  max-width: 1440px;
  min-height: 72px;
  padding: 0 48px;
  gap: 24px;
}
.landing-page .brand { color: #111; font: 700 18px/22px "Inter", Arial, sans-serif; gap: 0; }
.landing-page .brand-dot { color: #0a6cff; }
.landing-page footer { width: auto; max-width: 1440px; margin: 0 auto; padding: 8px 48px 48px; }
.landing-page .nav { gap: 36px; flex-wrap: wrap; }
.landing-page .nav a, .landing-page .nav .link-button { color: #111; font: 500 15px/18px "Inter", Arial, sans-serif; }
.landing-page .nav a[aria-current="page"] { background: transparent; color: #111; }
.landing-page .nav .soon { display: inline; color: #5c5c5c; font-size: 10px; }
.landing-page main { width: auto; max-width: 1440px; margin: 0 auto; padding: 0 48px 64px; }
.landing { position: relative; min-height: 788px; padding-top: 88px; padding-bottom: 188px; isolation: isolate; }
.landing-copy { position: relative; z-index: 1; width: 684px; max-width: 100%; display: flex; flex-direction: column; gap: 40px; }
.landing-announcement { align-self: flex-start; display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 38px; border: 1px solid #c9c9c4; background: #fff; box-shadow: 3px 3px #e4e4e0; color: #111; font: 400 13px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.announcement-dot { width: 8px; height: 8px; flex: 0 0 8px; background: #111; }
.announcement-new { color: #5c5c5c; }
.landing h1 { margin: 0; max-width: none; font: 300 88px/88px "Newsreader", Georgia, serif; letter-spacing: -.03em; color: #111; }
.landing-gradient { background: linear-gradient(90deg, #0a6cff, #22b8cf); background-clip: text; -webkit-background-clip: text; color: transparent; }
.landing-body { margin: 0; width: 620px; max-width: 100%; color: #5c5c5c; font: 400 20px/31px "Inter", Arial, sans-serif; letter-spacing: 0; }
.landing-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.landing-upload, .landing-secondary { min-height: 48px; display: inline-flex; align-items: center; gap: 12px; border-radius: 2px; }
.landing-upload { background: #111; color: #fff; padding: 0 22px; font: 400 14px/18px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.landing-secondary { background: #fff; border: 1px solid #c9c9c4; color: #111; padding: 0 16px; font: 400 15px/18px "Inter", Arial, sans-serif; }
.landing-phone { position: absolute; z-index: -1; top: 78px; left: 772px; width: max-content; margin: 0; padding: 0; border: 0; background: transparent; color: #111; font: 400 11px/13px "IBM Plex Mono", monospace; letter-spacing: 0; white-space: pre; pointer-events: none; }
.landing-page main { overflow: clip; }
.landing-models { position: absolute; bottom: 40px; left: 0; right: 0; }
.landing-models p { margin: 0 0 16px; color: #5c5c5c; font: 400 13px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.landing-model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #e4e4e0; border-left: 1px solid #e4e4e0; }
.landing-model { display: flex; justify-content: center; align-items: center; height: 72px; border-right: 1px solid #e4e4e0; border-bottom: 1px solid #e4e4e0; font: 600 17px/22px "Inter", Arial, sans-serif; }
#upload { scroll-margin-top: 24px; }
@media (min-width: 1025px) and (max-width: 1350px) {
  .landing-phone { left: 680px; }
}
@media (max-width: 1024px) {
  .landing-page .nav-inner { padding: 16px 24px; }
  .landing-page footer { padding-inline: 24px; }
  .landing-page .nav { gap: 18px; }
  .landing-page main { padding-inline: 24px; }
  .landing { padding-top: 56px; }
  .landing-phone { left: auto; right: -180px; opacity: .12; }
}
@media (max-width: 640px) {
  .landing-page .nav-inner { align-items: flex-start; flex-direction: column; gap: 18px; padding: 20px; }
  .landing-page .nav { width: 100%; gap: 16px; justify-content: flex-start; }
  .landing-page .nav a, .landing-page .nav .link-button { font-size: 13px; padding: 0; }
  .landing-page .nav .planned { display: flex; flex-direction: column; gap: 4px; }
  .landing-page main { padding: 0 20px 40px; }
  .landing-page footer { padding: 8px 20px 32px; }
  .landing { min-height: auto; padding: 40px 0 0; }
  .landing-copy { gap: 28px; }
  .landing-announcement { font-size: 10px; line-height: 16px; padding: 8px 10px; gap: 8px; letter-spacing: .03em; }
  .landing h1 { font-size: clamp(40px, 12vw, 58px); line-height: 1.04; }
  .landing-body { font-size: 17px; line-height: 27px; }
  .landing-phone { position: relative; top: auto; left: auto; right: auto; opacity: 1; font-size: 5px; line-height: 6px; margin: 36px auto; grid-row: 2; }
  .landing { display: grid; }
  .landing-copy { grid-row: 1; }
  .landing-models { position: static; margin-bottom: 40px; }
  .landing-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-model { height: 60px; font-size: 15px; }
}
.landing-page .nav .open-shop { border: 1px solid #0a6cff; border-radius: 2px; padding: 10px 14px; color: #0a6cff; background: #fff; font: 400 13px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) {
  .landing-page .nav .open-shop { padding: 8px 10px; font-size: 11px; }
}
@media (max-width: 640px) {
  .landing { grid-template-columns: minmax(0, 1fr); }
  .landing-copy, .landing-models { min-width: 0; width: 100%; }
  .landing-phone { justify-self: center; min-width: 0; max-width: 100%; }
}
.landing-motion-control { position: absolute; top: 600px; right: 12px; z-index: 2; border: 1px solid #c9c9c4; border-radius: 2px; padding: 6px 10px; background: #f6f6f4; color: #5c5c5c; font: 400 11px/16px var(--mono); cursor: pointer; }
.landing-motion-control:disabled { cursor: default; }
@media (max-width: 640px) {
  .landing-motion-control { position: static; grid-row: 3; justify-self: center; margin: -24px 0 28px; }
}

/* Fixed text layers avoid per-character layout in the decorative rows. */
.hero-motion-row { position: relative; display: inline-block; width: 74ch; height: 1lh; vertical-align: top; contain: layout paint; mask-image: linear-gradient(to right, rgba(0,0,0,.08), #000 15ch, #000 59ch, rgba(0,0,0,.08)); }
.hero-motion-left, .hero-motion-right { color: #a3a3a0; }
.hero-motion-tokens, .hero-motion-borders { position: absolute; left: 0; top: 0; }
.hero-motion-borders { color: #111; }

/* Guide, how-it-works, and pricing pages use the same paper shell as the hero. */
.landing-page .nav {
  gap: 4px 16px;
  justify-content: flex-end;
}
.landing-page .nav-inner {
  align-items: center;
}
.landing-page .nav a,
.landing-page .nav .link-button {
  min-height: 44px;
}
.landing-page .nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.doc {
  max-width: 760px;
  padding-top: 48px;
}
.doc h1 {
  margin: 0;
  font: 300 clamp(40px, 7vw, 68px) / 1.05 "Newsreader", Georgia, serif;
  letter-spacing: -0.03em;
  color: #111;
}
.doc .kicker {
  margin: 0 0 12px;
  color: #5c5c5c;
  font: 400 13px/16px "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc .lede {
  margin: 20px 0 0;
  max-width: 40em;
  color: #5c5c5c;
  font: 400 20px/31px "Inter", Arial, sans-serif;
}
.doc h2 {
  margin: 36px 0 12px;
  font: 300 32px/1.2 "Newsreader", Georgia, serif;
  letter-spacing: -0.02em;
  color: #111;
}
.doc p,
.doc li {
  font: 400 17px/28px "Inter", Arial, sans-serif;
  color: #111;
}
.doc ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}
.doc a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc a.guide-card {
  text-decoration: none;
}
.doc a.guide-card h2 {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
}
.doc-code {
  margin: 16px 0 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid #e4e4e0;
  background: #fff;
  color: #111;
  font: 400 14px/22px "IBM Plex Mono", monospace;
  white-space: pre-wrap;
}
.planned-flag {
  display: inline-block;
  margin: 0;
  border: 1px solid #e4e4e0;
  background: #fff;
  padding: 8px 10px;
  color: #5c5c5c;
  font: 400 12px/16px "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.guide-card,
.tier {
  display: block;
  min-height: 44px;
  border: 1px solid #e4e4e0;
  background: #fff;
  padding: 20px;
  color: #111;
}
.guide-card {
  text-decoration: none;
}
.guide-card h2,
.tier h2 {
  margin: 0 0 8px;
  font-size: 28px;
}
.guide-card p,
.tier p {
  margin: 12px 0 0;
}
.guide-card p {
  color: #5c5c5c;
}
.guide-card:hover {
  text-decoration: none;
  border-color: #111;
}
.related {
  margin-top: 36px;
  padding-top: 8px;
  border-top: 1px solid #e4e4e0;
}
.related ul {
  list-style: none;
  padding: 0;
}
.related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.sample-part {
  margin: 8px 0 0;
  font: 300 clamp(32px, 5vw, 48px) / 1.1 "Newsreader", Georgia, serif;
  color: #111;
}
.sample-result {
  margin-top: 28px;
  border: 1px solid #e4e4e0;
  background: #fff;
  padding: 20px;
}
.account-facts {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 8px 16px;
  margin: 20px 0;
}
.account-facts dt {
  color: var(--muted);
}
.account-facts dd {
  margin: 0;
}
.noscript-note {
  margin: 0;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e4e4e0;
}
@media (max-width: 1100px) {
  .landing-page .nav-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 24px;
  }
  .landing-page .nav {
    flex: 1 1 280px;
    width: auto;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .landing-page .nav .planned {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }
}
@media (max-width: 640px) {
  .doc {
    padding-top: 28px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .doc h2,
  .guide-card h2,
  .tier h2 {
    font-size: 26px;
  }
}
