/* Editorial grid: numbered rows, hairline rules, mono labels, one accent per tool. */
:root {
  --bg: #ffffff;
  --sunk: #f8fafc;
  --fg: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #0f172a;
  --brand: #0f172a;
  --on-brand: #ffffff;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --warn: #9a3412;
  --warn-soft: #fff7ed;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* site / SketchUp */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff4ff;
  --on-accent: #ffffff;
  /* grid columns: number | label | content */
  --c1: 64px;
  --c2: 200px;
}
body[data-tool="ableton"], [data-tool="ableton"] { --accent: #0f766e; --accent-hover: #115e59; --accent-soft: #effaf8; }
body[data-tool="publisher"], [data-tool="publisher"] { --accent: #c2410c; --accent-hover: #9a3412; --accent-soft: #fff5ef; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --sunk: #111827;
    --fg: #e2e8f0;
    --muted: #94a3b8;
    --faint: #64748b;
    --line: #1e293b;
    --line-strong: #e2e8f0;
    --brand: #e2e8f0;
    --on-brand: #0b1120;
    --ok: #4ade80;
    --ok-soft: #0f2418;
    --warn: #fdba74;
    --warn-soft: #2a1709;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-soft: #13213d;
    --on-accent: #0b1120;
  }
  body[data-tool="ableton"], [data-tool="ableton"] { --accent: #2dd4bf; --accent-hover: #5eead4; --accent-soft: #0c2724; }
  body[data-tool="publisher"], [data-tool="publisher"] { --accent: #fb923c; --accent-hover: #fdba74; --accent-soft: #2a1709; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 Inter, system-ui, sans-serif; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1.02; max-width: 15ch; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; }
.muted { color: var(--muted); }
.i { width: 18px; height: 18px; flex: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { border-bottom: 1px solid var(--line-strong); }
.top-in { display: flex; align-items: stretch; gap: 32px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.logo { width: 22px; height: 22px; padding: 4px; border-radius: 4px; background: var(--brand); color: var(--on-brand); }
.tools, .langs, .site { display: flex; gap: 24px; }
.tools a, .langs a, .site a { display: flex; align-items: center; text-decoration: none; color: var(--muted); font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.tools a:hover, .langs a:hover, .site a:hover, .tools a[aria-current], .langs a[aria-current], .site a[aria-current] { color: var(--fg); }
.tools a[aria-current], .site a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.site { margin-left: auto; }
.langs { gap: 14px; padding-left: 24px; border-left: 1px solid var(--line); }

/* editorial row */
.row-g { display: grid; grid-template-columns: var(--c1) var(--c2) minmax(0, 1fr); border-bottom: 1px solid var(--line); padding: 28px 0; }
.row-g > .n, .row-g > .lbl { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding-top: 4px; transition: color .2s; }
.row-g > .lbl { color: var(--muted); }
.row-g .content { min-width: 0; }
.row-g.title { grid-template-columns: var(--c1) minmax(0, 1fr); padding: 64px 0 56px; border-bottom-color: var(--line-strong); }
.row-g.title .n { padding-top: 2px; }
.kicker { display: block; color: var(--accent); margin-bottom: 20px; text-transform: uppercase; letter-spacing: .08em; }
.title .lead { margin-top: 24px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin: 0; }

/* converter rows */
.converter .row-g { align-items: center; }
.converter .row-g[data-step] > .n::before { content: ""; }
.converter .row-g.on > .n, .converter .row-g.on > .lbl { color: var(--accent); }
.converter .row-g.done > .n { color: var(--fg); }
.converter .row-g:last-child { border-bottom-color: var(--line-strong); }
.drop { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border: 1px dashed var(--faint); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop[hidden] { display: none; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop > .i { color: var(--accent); }
.drop strong { font-weight: 500; }
.drop u { color: var(--accent); text-decoration: none; }
.drop .ext { margin-left: auto; }
.chip { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--sunk); border: 1px solid var(--line); }
.chip[hidden] { display: none; }
.chip > .i { color: var(--accent); }
.chip-name { font-size: .85rem; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip-x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; display: grid; }
.chip-x:hover { color: var(--fg); }
select { font: 500 1.05rem Inter, sans-serif; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0; padding: 6px 28px 8px 0; min-width: 260px; max-width: 100%; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select:focus { outline: none; border-bottom-color: var(--accent); }
select option { background: var(--bg); color: var(--fg); }
.go { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 .95rem Inter, sans-serif; color: var(--on-accent); background: var(--accent); border: 0; border-radius: 0; padding: 14px 22px; cursor: pointer; text-decoration: none; transition: background .15s, gap .15s; }
.btn:hover { background: var(--accent-hover); gap: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; justify-content: space-between; }
.price-note { margin: 0; color: var(--muted); font-size: .9rem; max-width: 46ch; }
.linkbtn { background: none; border: 0; color: var(--muted); font: 400 .9rem Inter, sans-serif; cursor: pointer; padding: 12px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--fg); }
.progress { margin-top: 20px; }
.progress[hidden] { display: none; }
.bar { height: 2px; background: var(--line); overflow: hidden; position: relative; }
.bar::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: var(--accent); transition: width .2s; }
.progress.busy .bar::after { width: 30%; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { left: -30%; } to { left: 100%; } }
.progress-label { display: block; color: var(--muted); margin-top: 8px; }
.result:empty { display: none; }
.result { margin-top: 20px; max-width: 520px; }
.done-box { padding: 18px 20px; background: var(--ok-soft); border-left: 2px solid var(--ok); }
.done-box p { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ok); margin: 0 0 14px; }
.warn-box { margin-top: 10px; padding: 14px 20px; background: var(--warn-soft); border-left: 2px solid var(--warn); color: var(--warn); font-size: .88rem; }
.warn-box p { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0 0 4px; }
.warn-box ul { margin: 0; padding-left: 20px; }
.err-box { padding: 14px 20px; background: var(--warn-soft); border-left: 2px solid var(--warn); color: var(--warn); }
.fine { font-size: .8rem; color: var(--faint); margin: 16px 0 0; max-width: 60ch; }

/* content rows */
.trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--fg); text-transform: uppercase; }
.trust li::before { content: "— "; color: var(--accent); }
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.process li { display: flex; flex-direction: column; gap: 6px; }
.process .mono { color: var(--accent); }
.table { margin: 0; }
.tr { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.tr:first-child { border-top: 0; padding-top: 0; }
.tr dt { font-weight: 500; }
.tr dd { margin: 0; }
.price { font-size: 1rem; color: var(--fg); text-align: right; white-space: nowrap; }
.price small { color: var(--muted); font-size: .72rem; }
.faq { border-top: 1px solid var(--line); }
.faq:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 500; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq:first-child summary { padding-top: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 0 0 14px; max-width: 62ch; }
.index { list-style: none; padding: 0; margin: 0 0 8px; columns: 2; column-gap: 32px; }
.index li { break-inside: avoid; border-top: 1px solid var(--line); }
.index a { display: block; padding: 9px 0; text-decoration: none; font-size: .92rem; color: var(--muted); transition: color .15s, padding .15s; }
.index a:hover { color: var(--accent); padding-left: 6px; }
.sub { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 400; margin: 0 0 10px; }
.sub:not(:first-child) { margin-top: 28px; }

/* hub tool index */
.tool-index { list-style: none; padding: 0; margin: 0; }
.tool-index li { border-top: 1px solid var(--line); }
.tool-index li:first-child { border-top: 0; }
.tool-index a { display: grid; grid-template-columns: 56px 200px minmax(0, 1fr) 24px; gap: 16px; align-items: baseline; padding: 16px 0; text-decoration: none; }
.tool-index li:first-child a { padding-top: 0; }
.tool-index .tag { color: var(--accent); }
.tool-index .name { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.tool-index .desc { font-size: .95rem; }
.tool-index .i { color: var(--faint); align-self: center; transition: transform .15s, color .15s; }
.tool-index a:hover .name { color: var(--accent); }
.tool-index a:hover .i { color: var(--accent); transform: translateX(4px); }

/* pricing */
.plan-feature { display: grid; gap: 20px; justify-items: start; }
.big-price { font-size: 3rem; letter-spacing: -.04em; line-height: 1; margin: 0; color: var(--fg); }
.big-price small { font-size: .9rem; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks .i { color: var(--accent); width: 16px; height: 16px; }
.tr.cta { grid-template-columns: 160px minmax(0, 1fr) auto 190px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; font-size: .92rem; font-weight: 500; transition: gap .15s; }
.arrow-link:hover { gap: 12px; }
.arrow-link .i { width: 16px; height: 16px; }
.tr.cta dd:last-child { text-align: right; }
.strong { color: var(--fg); font-size: .9rem; }

/* account + email capture */
.login { display: grid; gap: 20px; max-width: 420px; }
.field-line { display: grid; gap: 6px; }
.field-line[hidden] { display: none; }
.field-line input, .email-me input { font: 500 1.05rem Inter, sans-serif; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0; padding: 6px 0 8px; width: 100%; }
.field-line input:focus, .email-me input:focus { outline: none; border-bottom-color: var(--accent); }
.field-line input[name=code] { font-family: var(--mono); letter-spacing: .3em; }
.login-msg { margin: 0; font-size: .9rem; min-height: 1.5em; }
.email-me { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 14px; }
.email-me input { flex: 1; min-width: 180px; font-size: .95rem; }
.email-me .linkbtn { width: auto; padding: 0; }
.email-me .muted { font-size: .85rem; }

/* paid page */
.n.ok { color: var(--ok); }
.n.ok .i { width: 22px; height: 22px; }
.title .btn { margin-top: 28px; }

/* blog */
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { border-top: 1px solid var(--line); }
.posts li:first-child { border-top: 0; }
.posts a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; }
.posts li:first-child a { padding-top: 0; }
.post-t { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; transition: color .15s; }
.post-d { font-size: .92rem; max-width: 70ch; }
.posts a:hover .post-t { color: var(--accent); }
.article-h1 { max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.article-dates { margin: 20px 0 0; }
.title .arrow-link { margin-top: 12px; }
.convert-anchor { scroll-margin-top: 16px; }
.prose { max-width: 68ch; font-size: 1.05rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .5em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .4em; letter-spacing: -.02em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.prose figure { margin: 0 0 1.6em; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 0 0 1.1em; padding: 4px 0 4px 18px; border-left: 2px solid var(--accent); color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--sunk); padding: 1px 5px; }
.prose pre { background: var(--sunk); border: 1px solid var(--line); padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* footer */
.foot { display: grid; grid-template-columns: var(--c1) var(--c2) minmax(0, 1fr); padding: 28px 20px 64px; margin-top: 0; }
.foot .mono { grid-column: 2; color: var(--muted); padding-top: 2px; }
.foot p { grid-column: 3; margin: 0; font-size: .8rem; color: var(--faint); max-width: 60ch; }
.foot > div { grid-column: 3; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.foot-links a { font-size: .82rem; color: var(--muted); text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--fg); }

@media (max-width: 860px) {
  :root { --c1: 44px; --c2: 140px; }
  .tools { display: none; }
  .tr.cta { grid-template-columns: minmax(0, 1fr) auto; }
  .tr.cta .muted { grid-column: 1 / -1; grid-row: 2; }
  .tr.cta dd:last-child { grid-column: 1 / -1; text-align: left; }
  .process { grid-template-columns: 1fr; gap: 14px; }
  .tool-index a { grid-template-columns: 48px minmax(0, 1fr) 24px; }
  .tool-index .desc { grid-column: 2; }
  .index { columns: 1; }
}
@media (max-width: 600px) {
  .top-in { gap: 14px; }
  .brand span { display: none; }
  .site { gap: 14px; }
  .langs { padding-left: 14px; gap: 10px; }
  /* Label moves above content; number stays in its own narrow column. */
  .row-g { grid-template-columns: 36px minmax(0, 1fr); row-gap: 10px; padding: 22px 0; }
  .row-g > .lbl { grid-column: 2; padding-top: 0; }
  .row-g > .n { grid-row: span 2; align-self: start; }
  .row-g > .content { grid-column: 2; }
  .row-g.title { grid-template-columns: 36px minmax(0, 1fr); padding: 36px 0 32px; }
  .drop { flex-wrap: wrap; }
  .drop .ext { margin-left: 0; width: 100%; }
  select { min-width: 0; width: 100%; }
  .go { flex-direction: column; align-items: stretch; }
  .btn { justify-content: space-between; }
  .tr { grid-template-columns: minmax(0, 1fr) auto; }
  .tr .muted { grid-column: 1 / -1; grid-row: 2; }
  .foot { grid-template-columns: 36px minmax(0, 1fr); row-gap: 8px; }
  .foot .mono, .foot p, .foot > div { grid-column: 2; }
}
