:root {
  --bg: #0b0d10;
  --bg-glow: #12161d;
  --surface: #12151a;
  --surface-2: #171b21;
  --elevated: #1d222a;
  --field: #0e1116;
  --line: #232830;
  --line-soft: #1a1f26;
  --fg: #e6e9ee;
  --fg-dim: #98a1ae;
  --fg-faint: #6a737f;
  --accent: #4d8df6;
  --accent-h: #3f7ce8;
  --accent-dim: rgba(77, 141, 246, 0.12);
  --ok: #3fb950;
  --warn: #d29922;
  --danger: #f0616d;
  --r: 8px;
  --r-sm: 6px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 380px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, var(--bg-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 940px; width: 100%; margin: 0 auto; padding: 0 24px; position: relative; }
.inline { display: inline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bar-in { display: flex; align-items: center; height: 58px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--fg); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.mark {
  width: 20px; height: 15px;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  position: relative;
  flex: none;
}
.mark::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  transform: translateX(-50%);
  width: 8px; height: 1.5px;
  background: var(--accent);
}
.acct { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.who { color: var(--fg-dim); display: flex; align-items: center; gap: 7px; }
.who b { color: var(--fg); font-weight: 500; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.link { background: none; border: 0; color: var(--fg-dim); cursor: pointer; font-size: 14px; padding: 0; font-family: inherit; }
.link:hover { color: var(--fg); }

main { flex: 1; padding: 56px 0 72px; position: relative; z-index: 1; }
.view { display: none; }
body[data-view="home"] .v-home,
body[data-view="login"] .v-login,
body[data-view="register"] .v-register,
body[data-view="pay"] .v-pay,
body[data-view="thanks"] .v-thanks,
body[data-view="desktop"] .v-desktop { display: block; }

h1 { font-size: 30px; line-height: 1.2; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.022em; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.lede { color: var(--fg-dim); margin: 0 0 28px; max-width: 520px; font-size: 16px; }
.eyebrow { color: var(--fg-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 12px; }

.hero { text-align: center; padding: 12px 0 8px; }
.hero .lede { margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.price-line { margin: 16px 0 0; color: var(--fg-dim); font-size: 14px; }

/* payment step */
.order { border: 1px solid var(--line-soft); border-radius: var(--r-sm); margin: 18px 0; }
.order-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.order-row:first-child { border-top: 0; }
.order-row .k { color: var(--fg-dim); }
.order-row .v { font-family: var(--mono); font-size: 13px; text-align: right; word-break: break-all; }
.order-total { border-top: 1px solid var(--line); }
.order-total .v { color: var(--fg); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 44px 0 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}
.card p { margin: 0; color: var(--fg-dim); font-size: 14px; }
.card-ico {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  background: var(--accent-dim); border: 1px solid rgba(77, 141, 246, 0.28);
  margin-bottom: 12px;
}

.plan { border: 1px solid var(--line); border-radius: var(--r); max-width: 440px; background: var(--surface); }
.plan-head { display: flex; align-items: baseline; gap: 9px; padding: 18px 20px 14px; }
.plan-head h2 { margin: 0; }
.env { color: var(--fg-faint); font-size: 13px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; border-top: 1px solid var(--line-soft); }
.specs th, .specs td { text-align: left; padding: 9px 20px; border-top: 1px solid var(--line-soft); }
.specs tr:first-child th, .specs tr:first-child td { border-top: 0; }
.specs th { color: var(--fg-dim); font-weight: 400; width: 52%; }
.specs td { color: var(--fg); font-family: var(--mono); font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  padding: 8px 15px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; font-family: inherit;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--accent-h); border-color: var(--accent-h); text-decoration: none; }
.btn.ghost { background: var(--elevated); color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { background: #262c35; border-color: #303743; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth { max-width: 372px; margin: 0 auto; }
.auth .card { padding: 26px; }
.auth h2 { font-size: 19px; margin-bottom: 4px; }
.auth .sub { color: var(--fg-dim); font-size: 14px; margin: 0 0 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--fg-dim); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 9px 11px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--field); color: var(--fg);
  transition: border-color 120ms ease;
}
.field input::placeholder { color: var(--fg-faint); }
.field input:hover { border-color: #2f3641; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.hint { color: var(--fg-faint); font-size: 12px; margin: 6px 0 0; }
.auth-foot { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--fg-dim); }
.cf-turnstile { margin: 16px 0; }

.desk-head { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; flex-wrap: wrap; }
.desk-head h1 { margin: 0; font-size: 22px; }
.desk-head .spacer { margin-left: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; padding: 3px 10px 3px 8px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--fg-dim);
  text-transform: capitalize;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-faint); }
.pill-ready { color: #7ee787; border-color: rgba(63, 185, 80, 0.3); background: rgba(63, 185, 80, 0.1); }
.pill-ready::before { background: var(--ok); }
.pill-on { color: #e3b341; border-color: rgba(210, 153, 34, 0.3); background: rgba(210, 153, 34, 0.1); }
.pill-on::before { background: var(--warn); }

.desk-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0;
  background: var(--surface);
}
.desk-bar .spacer { margin-left: auto; }
.screen {
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r) var(--r);
  overflow: hidden; background: #000;
  aspect-ratio: 16 / 9;
}
.screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.screen:fullscreen { border-radius: 0; aspect-ratio: auto; }
.note { color: var(--fg-faint); font-size: 13px; margin: 12px 0 0; }

.msg { border: 1px solid var(--line); background: var(--surface-2); padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: 14px; }
.msg.bad { color: #ffa8b0; border-color: rgba(240, 97, 109, 0.32); background: rgba(240, 97, 109, 0.09); }
.msg.good { color: #7ee787; border-color: rgba(63, 185, 80, 0.32); background: rgba(63, 185, 80, 0.09); }
.msg.warn { color: #e3b341; border-color: rgba(210, 153, 34, 0.32); background: rgba(210, 153, 34, 0.09); }

/* Subscription notice. Sits above the desktop because it is the one thing a
   lapsed customer needs to act on rather than read and dismiss. */
.sub-notice { line-height: 1.55; }
.sub-link { color: inherit; font-weight: 600; }

/* "My files" panel under the screen, so exporting is a first-class action
   rather than something buried in a menu. */
.myfiles {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.myfiles h2 { font-size: 17px; margin: 0 0 6px; }
.myfiles .sub { margin-bottom: 14px; }
/* Two actions side by side on wide screens, stacked on a phone. flex-wrap with
   a gap rather than a grid, so it degrades without a media query. */
.myfiles .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.myfiles .hint { margin: 0; max-width: 62ch; }

/* Terms / Privacy. Long-form reading column, deliberately narrower than the
   940px app shell. */
.legal { max-width: 720px; margin: 0 auto; padding: 8px 0 20px; }
.legal h1 { font-size: 27px; margin: 0 0 6px; }
.legal h2 {
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--fg-dim); margin: 34px 0 10px;
}
.legal p, .legal li { color: var(--fg-dim); line-height: 1.7; font-size: 15px; }
.legal ul { padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal b { color: var(--fg); }
.legal a { color: var(--accent-h); }
.legal-updated { color: var(--fg-faint); font-size: 14px; margin: 0 0 24px; }
.legal-back { margin-top: 40px; display: flex; gap: 10px; align-items: center; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.legal-table th, .legal-table td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--fg-dim); vertical-align: top; line-height: 1.6;
}
.legal-table th { color: var(--fg); font-weight: 600; white-space: nowrap; }
.legal-table td b { color: #ffa8b0; }
/* Anything the operator has to fill in before publishing. */
.todo {
  background: rgba(210, 153, 34, 0.12); border-bottom: 1px dotted #e3b341;
  color: #e3b341; padding: 0 3px; border-radius: 3px;
}
.legal-links {
  text-align: center; margin: 22px 0 34px; font-size: 14px;
  color: var(--fg-faint);
}
.legal-links a { color: var(--fg-dim); }
.legal-links .sep { margin: 0 8px; color: var(--line); }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 25px; }
  main { padding: 36px 0 52px; }
  .plan { max-width: none; }
}
