/* ByteFlowAI neumorphic surface. Depth comes from paired shadows only. */
:root {
  --bg: #E0E5EC;
  --brand: #0A66C2;
  --brand-dark: #084E99;
  --fg: #3D4852;
  --muted: #6B7280;
  --danger: #E57373;
  --warn: #E07B39;
  --sh-lg: 12px 12px 20px rgba(163,177,198,0.7), -12px -12px 20px rgba(255,255,255,0.6);
  --sh-md: 9px 9px 16px rgba(163,177,198,0.6), -9px -9px 16px rgba(255,255,255,0.5);
  --sh-sm: 5px 5px 10px rgba(163,177,198,0.6), -5px -5px 10px rgba(255,255,255,0.5);
  --sh-in: inset 6px 6px 10px rgba(163,177,198,0.6), inset -6px -6px 10px rgba(255,255,255,0.5);
  --sh-in-sm: inset 3px 3px 6px rgba(163,177,198,0.6), inset -3px -3px 6px rgba(255,255,255,0.5);
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}
main { max-width: 760px; margin: 0 auto; padding: 40px 22px 24px; }
main.wide { max-width: 960px; }

.wordmark { font-family: Inter, var(--display); font-weight: 700; letter-spacing: 0.08em; font-size: 13px; color: var(--fg); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 5vw, 30px); line-height: 1.2; margin: 18px 0 10px; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.lede { font-size: 17px; max-width: 58ch; }
.meta { color: var(--muted); font-size: 13px; }

.card { background: var(--bg); border-radius: 26px; box-shadow: var(--sh-md); padding: 24px; margin: 22px 0; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.num {
  width: 52px; height: 52px; border-radius: 16px; box-shadow: var(--sh-in);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--brand);
}
.step.done .num { background: var(--brand); color: #fff; box-shadow: var(--sh-sm); }

label.field { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="datetime-local"], select, textarea {
  width: 100%; border: 0; border-radius: 14px; background: var(--bg); box-shadow: var(--sh-in-sm);
  padding: 13px 14px; font: inherit; color: var(--fg);
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices span {
  display: block; padding: 10px 16px; border-radius: 12px; box-shadow: var(--sh-sm);
  font-weight: 600; font-size: 14px;
}
.choices input:checked + span { box-shadow: var(--sh-in-sm); color: var(--brand); }
.choices input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.check { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; cursor: pointer; }
.check input { appearance: none; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; box-shadow: var(--sh-in-sm); margin: 0; cursor: pointer; }
.check input:checked {
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/18px no-repeat;
  box-shadow: var(--sh-sm);
}

button, .btn {
  border: 0; border-radius: 14px; background: var(--bg); color: var(--fg); box-shadow: var(--sh-sm);
  padding: 13px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { box-shadow: var(--sh-md); }
button:active, .btn:active { box-shadow: var(--sh-in-sm); }
button.primary, .btn.primary { background: var(--brand); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--brand-dark); }
button.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
button[disabled] { opacity: 0.6; cursor: default; }

.note { border-radius: 14px; box-shadow: var(--sh-in-sm); border-left: 3px solid var(--brand); padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.note.warn { border-left-color: var(--warn); }
.note.danger { border-left-color: var(--danger); }
.pill { display: inline-block; white-space: nowrap; border-radius: 9999px; box-shadow: var(--sh-in-sm); padding: 4px 12px; font-size: 11px; font-weight: 600; color: var(--muted); }
.pill.ready { color: var(--brand); }
.pill.open { color: var(--warn); }

.result { text-align: center; padding: 34px 24px; }
.result .big { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 6vw, 36px); margin: 12px 0 8px; }
.symbol { width: 84px; height: 84px; border-radius: 26px; box-shadow: var(--sh-in); display: grid; place-items: center; margin: 0 auto; color: var(--brand); }

.tablewrap { border-radius: 16px; box-shadow: var(--sh-in-sm); overflow-x: auto; margin-top: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { background: var(--brand); color: #fff; text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; text-align: left; padding: 10px 12px; white-space: nowrap; }
td { padding: 10px 12px; vertical-align: top; border-top: 1px solid rgba(163,177,198,0.35); }
tr:hover td { background: rgba(10,102,194,0.03); }
td.job { min-width: 220px; }

.stat { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stat b { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--brand); }
.bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

/* Mandatory 4-card CTA footer */
.cta { max-width: 960px; margin: 28px auto 0; padding: 0 22px 48px; }
.cta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cta-card { border-radius: 22px; box-shadow: var(--sh-md); padding: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.cta-card svg { color: var(--brand); }
.cta-card h3 { font-family: var(--display); font-size: 15px; font-weight: 700; margin: 0; }
.cta-card p { margin: 0; color: var(--muted); flex: 1; }
.cta-card .btn { padding: 9px 12px; font-size: 13px; text-align: center; color: var(--brand); }
.cta-card .btn.primary { color: #fff; }
.tagline { text-align: center; font-family: var(--display); font-weight: 800; letter-spacing: 0.12em; font-size: 12px; color: var(--muted); margin-top: 26px; }

[hidden] { display: none !important; }

@media (max-width: 860px) { .cta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  main { padding: 26px 16px 16px; }
  .card { padding: 18px; border-radius: 22px; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .cta { padding: 0 16px 36px; }
  .cta-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .btn, .choices span { transition: box-shadow 0.15s ease, background 0.15s ease; }
}
