:root {
  color-scheme: light;
  --ink: #171916;
  --muted: #656a61;
  --paper: #f5f4ee;
  --card: #fffefa;
  --line: #d9d9d0;
  --acid: #c8ff45;
  --acid-dark: #9fd41f;
  --forest: #20372c;
  --shadow: 0 24px 70px rgba(31, 38, 29, .11);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  z-index: 10;
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.6px; }
.brand-mark { display: flex; align-items: flex-end; gap: 2px; height: 19px; transform: skewY(-10deg); }
.brand-mark i { display: block; width: 5px; border-radius: 1px; background: var(--ink); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 19px; }
.header-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-family: "DM Mono", monospace; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid-dark); box-shadow: 0 0 0 4px rgba(159, 212, 31, .14); }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 80px; padding: 58px 0 60px; }
.hero .eyebrow { grid-column: 1 / -1; margin-bottom: -36px; }
.eyebrow, .section-kicker { font-family: "DM Mono", monospace; text-transform: uppercase; font-size: 11px; letter-spacing: .11em; color: var(--muted); }
h1 { margin: 0; font-size: clamp(55px, 6vw, 86px); line-height: .94; letter-spacing: -.065em; font-weight: 700; }
h1 em { color: var(--forest); font-family: Georgia, serif; font-weight: 400; }
.hero-copy { max-width: 410px; margin: 0 0 6px; color: var(--muted); font-size: 17px; line-height: 1.7; }

.workspace { background: var(--card); border: 1px solid #deded5; box-shadow: var(--shadow); padding: 40px; position: relative; overflow: hidden; }
.workspace::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--acid) 0 34%, transparent 34%); }
.workspace-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-kicker { margin: 0 0 7px; color: #7b8177; }
h2 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.secure-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.secure-note svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.wake-notice {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  margin: -7px 0 28px;
  padding: 15px 17px;
  border: 1px solid #dce5c3;
  background: #f6faeb;
}
.wake-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: var(--forest); }
.wake-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wake-notice strong { display: block; margin: 1px 0 3px; color: #2f3d31; font-size: 12px; }
.wake-notice p { margin: 0; max-width: 820px; color: #687064; font-size: 11px; line-height: 1.55; }

label > span, .option-field > span, .quality-row > div > span { display: block; margin-bottom: 9px; color: #42473f; font-size: 12px; font-weight: 700; }
.url-input-wrap { position: relative; }
.url-input-wrap > svg { position: absolute; width: 21px; left: 18px; top: 50%; transform: translateY(-50%); fill: none; stroke: #848a80; stroke-width: 1.7; pointer-events: none; }
.url-input-wrap input {
  width: 100%; height: 64px; padding: 0 54px; border: 1px solid #cfd1c9; outline: 0; background: #fbfbf7; color: var(--ink); font-size: 17px; font-weight: 500; transition: .2s ease;
}
.url-input-wrap input:focus { border-color: #9dae74; box-shadow: 0 0 0 4px rgba(200, 255, 69, .2); background: #fff; }
.url-input-wrap input::placeholder { color: #9da198; }
.clear-button { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 29px; height: 29px; border: 0; border-radius: 50%; color: #73796f; background: #ecece6; cursor: pointer; font-size: 20px; line-height: 1; opacity: 0; pointer-events: none; transition: .2s; }
.url-input-wrap input:not(:placeholder-shown) + .clear-button { opacity: 1; pointer-events: auto; }

.options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
select, .option-static { width: 100%; height: 49px; padding: 0 38px 0 14px; border: 1px solid #d4d5ce; border-radius: 0; outline: 0; background: #fbfbf7; color: var(--ink); font-size: 13px; }
select { cursor: pointer; }
.option-static { display: flex; align-items: center; color: var(--forest); font-weight: 700; background: #f6faeb; border-color: #dce5c3; }
select:focus { border-color: #9dae74; }
.scan-includes { margin: 15px 0 0; color: #737970; font-size: 11px; line-height: 1.55; }
.quality-row { margin-top: 25px; padding: 19px 0 2px; border-top: 1px solid #e6e6df; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.quality-row small { color: #858a81; font-size: 11px; }
.range-wrap { display: flex; align-items: center; gap: 15px; width: min(390px, 50%); }
input[type="range"] { width: 100%; height: 4px; accent-color: var(--forest); cursor: pointer; }
output { min-width: 46px; font-family: "DM Mono", monospace; font-size: 12px; color: var(--forest); }

.primary-button { min-height: 58px; padding: 0 24px; border: 1px solid var(--ink); background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; gap: 45px; text-decoration: none; cursor: pointer; font-weight: 700; font-size: 14px; transition: transform .2s, background .2s; }
form > .primary-button { margin-top: 24px; width: 100%; }
.primary-button:hover { background: var(--forest); transform: translateY(-2px); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.primary-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.terms { text-align: center; color: #94998f; font-size: 10px; margin: 12px 0 0; }
.terms a { color: inherit; text-underline-offset: 2px; }
.turnstile-wrap { margin-top: 22px; min-height: 65px; display: flex; justify-content: center; }
.turnstile-wrap[hidden] { display: none; }
.form-error { min-height: 0; margin-top: 0; color: #a43c2f; font-size: 12px; }
.form-error:not(:empty) { min-height: 20px; margin-top: 14px; }

.process { display: grid; grid-template-columns: repeat(3, 1fr); padding: 110px 0 120px; }
.process article { position: relative; padding: 0 48px; border-left: 1px solid var(--line); }
.process article:first-child { padding-left: 0; border-left: 0; }
.process article:last-child { padding-right: 0; }
.step-number { position: absolute; right: 28px; top: 3px; color: #a1a59d; font-family: "DM Mono", monospace; font-size: 10px; }
.process article:last-child .step-number { right: 0; }
.process h3 { margin: 23px 0 8px; font-size: 17px; letter-spacing: -.02em; }
.process p { max-width: 280px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.step-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--forest); }
.step-icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

footer { border-top: 1px solid var(--line); min-height: 110px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; color: #858a80; font-size: 11px; }
.footer-brand { font-size: 16px; opacity: .72; }
.studio-credit { display: flex; align-items: center; gap: 9px; color: #7a8076; font-family: "DM Mono", monospace; text-transform: uppercase; font-size: 9px; letter-spacing: .06em; }
.studio-credit a { display: block; width: 40px; height: 40px; border-radius: 50%; transition: transform .2s ease, opacity .2s ease; }
.studio-credit a:hover { transform: rotate(3deg) scale(1.05); opacity: .85; }
.studio-credit img { display: block; width: 40px; height: 40px; border-radius: 50%; }
.footer-meta { text-align: right; font-family: "DM Mono", monospace; text-transform: uppercase; font-size: 9px; letter-spacing: .06em; }
.footer-meta nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.footer-meta a { color: inherit; text-underline-offset: 3px; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 50; inset: 0; display: flex; overflow-y: auto; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 21, 17, .74); backdrop-filter: blur(9px); }
.job-card { position: relative; z-index: 1; flex: none; width: min(560px, 100%); margin: auto; padding: 48px; background: var(--card); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 35px 100px rgba(0,0,0,.25); text-align: center; }
.modal-close { position: absolute; right: 17px; top: 14px; border: 0; background: transparent; color: #70766c; font-size: 28px; cursor: pointer; }
.job-orbit { width: 72px; height: 72px; position: relative; margin: 0 auto 27px; border: 1px solid #d7d9d0; border-radius: 50%; animation: spin 6s linear infinite; }
.job-orbit span { position: absolute; inset: 13px; border: 1px solid #d7d9d0; border-radius: 50%; }
.job-orbit i { position: absolute; width: 12px; height: 12px; right: 4px; top: 6px; background: var(--acid); border: 2px solid var(--forest); border-radius: 50%; }
.job-orbit b { position: absolute; width: 8px; height: 8px; left: 20px; top: 31px; background: var(--forest); border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.job-card.complete .job-orbit { animation: none; border-color: var(--acid-dark); background: var(--acid); }
.job-card.ready .job-orbit { animation: none; border-color: var(--acid-dark); }
.job-card.ready .job-orbit i { background: var(--acid); }
.job-card.complete .job-orbit::after { content: ""; position: absolute; width: 22px; height: 11px; left: 23px; top: 24px; border-left: 3px solid var(--forest); border-bottom: 3px solid var(--forest); transform: rotate(-45deg); }
.job-card.complete .job-orbit > * { display: none; }
.job-card.failed .job-orbit { animation: none; }
.job-card.failed .job-orbit::after { content: "!"; display: grid; place-items: center; height: 100%; font: 700 26px "DM Mono", monospace; color: #a43c2f; }
.job-card.failed .job-orbit > * { display: none; }
.job-card h2 { margin-top: 7px; }
.job-message { height: 20px; margin: 12px 0 4px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.keep-open-note { margin: 0 0 22px; color: #90958c; font-size: 10px; }
.progress-track { height: 5px; background: #e4e5df; overflow: hidden; }
.progress-track div { width: 8%; height: 100%; background: var(--forest); transition: width .5s ease; position: relative; }
.progress-track div::after { content: ""; position: absolute; right: 0; top: 0; width: 35px; height: 100%; background: var(--acid); }
.job-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 27px 0 0; }
.job-stats div { border-left: 1px solid var(--line); }
.job-stats div:first-child { border-left: 0; }
.job-stats strong { display: block; font-size: 22px; letter-spacing: -.04em; }
.job-stats span { display: block; margin-top: 3px; color: #8a8f86; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.result-value { margin-top: 24px; padding: 17px 18px; border: 1px solid #dce5c3; background: #f6faeb; text-align: left; }
.result-value > span { display: block; color: #7a8175; font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .09em; }
.result-value strong { display: block; margin-top: 2px; color: var(--forest); font-size: 28px; letter-spacing: -.05em; }
.result-value p { margin: 4px 0 0; color: #687064; font-size: 11px; line-height: 1.5; }
.job-actions { margin-top: 24px; }
.job-actions .primary-button { width: 100%; }
.paid-button { width: 100%; min-height: 67px; margin-top: 10px; padding: 0 20px; border: 1px solid var(--forest); background: var(--acid); color: var(--forest); display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; transition: transform .2s, background .2s; }
.paid-button:hover { transform: translateY(-2px); background: #d4ff6c; }
.paid-button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.paid-button span, .paid-button b, .paid-button small { display: block; }
.paid-button b { font-size: 14px; }
.paid-button small { margin-top: 2px; color: #587048; font-size: 10px; font-weight: 500; }
.paid-button > strong { font: 500 18px "DM Mono", monospace; }
.payment-note { margin: 10px 0 0; color: #92978e; font-size: 9px; }
.download-button { margin-top: 30px; }
.try-again { margin: 24px auto 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }

.legal-main { width: min(800px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 110px; }
.legal-main .eyebrow { margin-bottom: 18px; }
.legal-main h1 { font-size: clamp(46px, 7vw, 76px); }
.legal-intro { margin: 24px 0 50px; padding-bottom: 28px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.7; }
.legal-section { margin-top: 36px; }
.legal-section h2 { margin-bottom: 12px; font-size: 21px; }
.legal-section p, .legal-section li { color: var(--muted); font-size: 13px; line-height: 1.75; }
.legal-section ul { padding-left: 20px; }
.legal-section a { color: var(--forest); }
.legal-updated { color: #8a8f86; font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }

@media (max-width: 780px) {
  .site-header, main, footer, .legal-main { width: min(calc(100% - 30px), 620px); }
  .site-header { height: 70px; }
  .header-meta { display: none; }
  .hero { display: block; padding: 32px 0 42px; }
  .hero .eyebrow { margin: 0 0 23px; }
  h1 { font-size: clamp(49px, 15vw, 74px); }
  .hero-copy { margin-top: 30px; font-size: 15px; }
  .workspace { padding: 28px 20px; }
  .workspace-topline { margin-bottom: 28px; }
  .secure-note { display: none; }
  .wake-notice { grid-template-columns: 30px 1fr; margin-top: -6px; padding: 14px; }
  .wake-icon { width: 30px; height: 30px; }
  .options-grid { grid-template-columns: 1fr; }
  .quality-row { align-items: flex-start; flex-direction: column; }
  .range-wrap { width: 100%; }
  .process { grid-template-columns: 1fr; padding: 72px 0; gap: 48px; }
  .process article, .process article:first-child, .process article:last-child { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 0; }
  .process article:first-child { border-top: 0; padding-top: 0; }
  .step-number, .process article:last-child .step-number { right: 0; top: 32px; }
  .process article:first-child .step-number { top: 2px; }
  footer { grid-template-columns: 1fr auto; min-height: 128px; padding: 20px 0; gap: 12px 24px; }
  .studio-credit { justify-self: end; }
  .footer-meta { grid-column: 1 / -1; text-align: center; }
  .footer-meta nav { justify-content: center; flex-wrap: wrap; }
  .job-card { padding: 42px 20px 30px; }
  .job-message { white-space: normal; height: auto; min-height: 20px; }
  .job-stats strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
