/* Light, because people read long text here; the accent is the umbrella's orange (Bandi's hoodie,
   docs/BRAND.md) so the tool is told apart from Subtylo's dark look. */
:root {
  --bg: #fffdf9;
  --panel: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --soft: #fff4ec;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { border-bottom: 1px solid var(--line); background: var(--panel); }
header.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.by { color: var(--muted); font-size: 14px; }
.by a { color: var(--muted); }
header nav { margin-left: auto; display: flex; gap: 16px; align-items: center; }
header nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
header nav .linkish { margin: 0; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; padding: 11px 20px; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer; text-align: center; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.big { padding: 15px 30px; font-size: 18px; }
.btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn.wide { display: block; width: 100%; margin: 14px 0 4px; }
.linkish { color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 15px; margin-top: 14px; text-decoration: underline; }
.linkish:hover { color: var(--ink); }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; }
.note { background: #fef3c7; border-bottom: 1px solid var(--line); }
.note p { margin: 0; padding: 10px 0; font-size: 15px; }

.hero { padding: 44px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 22px; max-width: 640px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 18px; border: 2px dashed #d6d3d1; border-radius: var(--radius); background: var(--panel); cursor: pointer; text-align: center; }
.drop.over, .drop:focus-visible { border-color: var(--accent); background: var(--soft); outline: none; }
.hint { color: var(--muted); font-size: 14px; }
.trust { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.mascot { width: 150px; height: auto; }

.work { padding: 10px 20px 30px; }
.progress, .result { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 14px; font-size: 15px; }
.steps li { color: var(--muted); padding: 4px 12px; border-radius: 999px; background: #f5f5f4; }
.steps li.now { color: var(--accent-ink); background: var(--accent); font-weight: 700; }
.steps li.done { color: var(--ink); }
.steps li.done::before { content: "\2713  "; }
.bar { height: 10px; border-radius: 999px; background: #f5f5f4; overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.status { min-height: 1.6em; margin: 12px 0 4px; font-weight: 600; }

.result { margin-top: 14px; }
.result-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.summary { margin: 0; color: var(--muted); font-size: 15px; }
.toggle { font-size: 15px; display: flex; gap: 6px; align-items: center; }
.text { max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 16px; background: #fffefc; overflow-wrap: anywhere; }
.text p { margin: 12px 0; }
.ts { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; margin-right: 4px; }
.exports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.how, .pricing, .faq, .more { padding: 30px 20px; }
h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 14px; }
.how-steps { padding-left: 22px; }
.how-steps li { margin: 8px 0; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tier h3 { margin: 0; }
.price { font-size: 32px; font-weight: 800; margin: 6px 0; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.tier ul { padding-left: 18px; margin: 4px 0 16px; flex: 1; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }
.pages { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; }
.pages a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: none; }
.seo { padding: 20px; }
.seo p, .seo li { color: var(--muted); max-width: 760px; }

dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: min(460px, calc(100vw - 32px)); width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(28,25,23,.55); }
.modal-inner { padding: 22px; position: relative; }
.modal-inner h3 { margin-top: 0; padding-right: 30px; }
.modal-inner .btn { display: block; width: 100%; margin: 10px 0; }
.x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.code { font: 700 18px/1.4 ui-monospace, Menlo, monospace; background: var(--soft); padding: 10px; border-radius: 8px; text-align: center; word-break: break-all; }
.code-in { width: 100%; font: 16px ui-monospace, Menlo, monospace; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }

footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 20px 0 40px; font-size: 14px; color: var(--muted); }
footer .links a { margin-right: 14px; }

@media (max-width: 720px) {
  .hero { padding-top: 26px; }
  .hero-grid { grid-template-columns: 1fr; }
  .mascot { width: 96px; justify-self: center; }
  .tiers { grid-template-columns: 1fr; }
  header nav { margin-left: 0; width: 100%; padding-bottom: 8px; }
  .exports .btn { flex: 1 1 calc(50% - 8px); }
}
