/* ==========================================================================
   Cortaí — folha de estilo única
   ========================================================================== */

:root {
  --ink: #12161c;
  --ink-soft: #333b46;
  --muted: #5c6672;
  --line: #e6e4dd;
  --line-strong: #d3d0c8;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f3ee;
  --brand: #f4511e;
  --brand-dark: #d63f10;
  --brand-ink: #8f2c0a;
  --tint: #fff2ec;
  --cool: #0e7490;
  --ok: #16803c;
  --ok-tint: #eefaf1;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(18, 22, 28, .06), 0 2px 6px rgba(18, 22, 28, .04);
  --shadow: 0 10px 30px -18px rgba(18, 22, 28, .35), 0 2px 8px rgba(18, 22, 28, .05);
  --shadow-lg: 0 30px 60px -30px rgba(18, 22, 28, .45);
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas, video, audio { max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 750;
  color: var(--ink);
}

p { margin: 0 0 1em; }
a { color: inherit; }
b, strong { font-weight: 650; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}
.wrap.narrow { max-width: 780px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

:where(a, button, summary, input, select, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------------------------- header --------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.22rem;
  flex: none;
}
.brand-mark { width: 30px; height: 30px; border-radius: 9px; }

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  font-size: .93rem;
  font-weight: 550;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }

.head-cta { flex: none; }

/* --------------------------------- buttons --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .97rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--brand) 80%, black);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-quiet {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-quiet:hover { background: var(--surface-2); }

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  padding: 10px 18px;
  font-size: .92rem;
}
.btn-ghost:hover { background: var(--surface); }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand-ink);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  margin-left: auto;
}

/* ----------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 26px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 520px;
  background:
    radial-gradient(46% 60% at 18% 20%, #ffe4d6 0%, transparent 70%),
    radial-gradient(40% 55% at 78% 0%, #e6f4f7 0%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 46px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--brand-ink);
  background: var(--tint);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  letter-spacing: -.035em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--brand) 18%, transparent) 0);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 33em;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .88rem;
  font-weight: 550;
  color: var(--ink-soft);
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: var(--cool); }

/* hero demo card */

.hero-demo { perspective: 1200px; }

.demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.hero-demo:hover .demo-card { transform: rotate(0deg) translateY(-3px); }

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.demo-pill {
  font-family: var(--mono);
  font-size: .74rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 7px;
}
.demo-time { font-family: var(--mono); font-size: .74rem; color: var(--muted); }

.demo-track {
  position: relative;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e9eef1, #f2f0ea);
  overflow: hidden;
  margin-bottom: 12px;
}
.demo-clip {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(18,22,28,.07) 0 2px, transparent 2px 18px);
}
.demo-select {
  position: absolute;
  top: 0; bottom: 0;
  left: 18%; right: 34%;
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  border-inline: 2px solid var(--brand);
}
.demo-handle {
  position: absolute;
  top: 50%;
  width: 4px; height: 18px;
  border-radius: 3px;
  background: var(--brand);
  transform: translateY(-50%);
}
.demo-handle.left { left: calc(18% - 2px); }
.demo-handle.right { left: calc(66% - 2px); }

.demo-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 52px;
  margin-bottom: 14px;
}
.demo-wave span {
  flex: 1;
  height: var(--h);
  border-radius: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 60%, white), color-mix(in srgb, var(--brand) 22%, white));
  animation: pulse 2.6s ease-in-out infinite alternate;
}
.demo-wave span:nth-child(2n) { animation-delay: .35s; }
.demo-wave span:nth-child(3n) { animation-delay: .7s; }

@keyframes pulse {
  from { transform: scaleY(.82); opacity: .8; }
  to { transform: scaleY(1); opacity: 1; }
}

.demo-foot { display: flex; align-items: center; justify-content: space-between; }
.demo-badge {
  font-size: .74rem;
  font-weight: 650;
  color: var(--ok);
  background: var(--ok-tint);
  padding: 4px 10px;
  border-radius: 999px;
}
.demo-dl {
  font-size: .8rem;
  font-weight: 650;
  color: #fff;
  background: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ----------------------------------- ads ----------------------------------- */

.ad-slot {
  margin: 26px 0;
  padding: 8px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.ad-label {
  display: block;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9aa1ab;
  margin-bottom: 4px;
}
.ad-box {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: #a9afb8;
  font-size: .8rem;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(18,22,28,.015) 12px 24px);
}
.ad-tall .ad-box { min-height: 250px; }
.ad-slot ins { display: block; }

/* -------------------------------- sections --------------------------------- */

.section-head {
  max-width: 640px;
  margin-bottom: 30px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); margin: 0; }

.tools { padding: 22px 0 10px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.tool-card h3 { font-size: 1.08rem; }
.tool-card p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.card-link {
  font-size: .85rem;
  font-weight: 650;
  color: var(--brand-ink);
}

.tool-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex: none;
}
.tool-ico svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-cut { color: var(--brand); background: var(--tint); border-color: color-mix(in srgb, var(--brand) 18%, transparent); }
.ico-audio { color: var(--cool); background: #e9f5f8; border-color: #cfe9ef; }
.ico-merge { color: #7c3aed; background: #f3edff; border-color: #e3d8fb; }
.ico-edit { color: #b45309; background: #fdf3e3; border-color: #f6e3c4; }

/* ------------------------------ tool sections ------------------------------ */

.tool-section {
  padding: 54px 0;
  scroll-margin-top: 76px;
  border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  margin-top: 26px;
}
.tool-section.alt {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 55%, transparent), transparent 70%);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 28px;
  align-items: start;
}

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.tool-head {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.tool-head h2 { font-size: 1.42rem; margin-bottom: 4px; }
.tool-head p { color: var(--muted); font-size: .93rem; margin: 0; }

.tool-side { position: sticky; top: 88px; display: grid; gap: 16px; }
.side-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 6px;
  font-size: .88rem;
  color: var(--muted);
}
.side-note h3 { font-size: .95rem; margin-bottom: 8px; color: var(--ink); }
.side-note ul { margin: 0 0 12px; padding-left: 18px; }
.side-note li { margin-bottom: 6px; }
.side-note b { color: var(--ink); }

/* dropzone */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 190px;
  padding: 30px 20px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), transparent 80%);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.dropzone:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line-strong)); background: var(--tint); }
.dropzone.drag {
  border-color: var(--brand);
  background: var(--tint);
  transform: scale(1.005);
}
.dropzone strong { font-size: 1.02rem; }
.dropzone span { font-size: .86rem; color: var(--muted); }
.dz-ico {
  width: 34px;
  height: 34px;
  color: var(--brand);
  margin-bottom: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* editor */

.editor { margin-top: 22px; display: grid; gap: 18px; }
.editor > * { min-width: 0; }

.file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .86rem;
}
.fc-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}
.fc-meta { color: var(--muted); font-size: .8rem; }

.preview {
  width: 100%;
  max-height: 340px;
  background: #0c0f13;
  border-radius: var(--radius-sm);
  display: block;
}
audio.preview { background: var(--surface-2); padding: 0; height: 44px; }

.range-block { display: grid; gap: 14px; }

.timeline {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.tl-selection {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; width: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 70%, white), color-mix(in srgb, var(--brand) 45%, white));
  border-radius: 999px;
}

.range-grid, .slider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.slider-grid { grid-template-columns: repeat(3, 1fr); }

.field { display: grid; gap: 6px; font-size: .84rem; color: var(--muted); }
.field > span { display: flex; justify-content: space-between; gap: 8px; }
.range-grid .field > span,
.slider-grid .field > span { justify-content: flex-start; gap: 7px; }
.field b { color: var(--ink); font-variant-numeric: tabular-nums; }
.field select,
.field input[type="range"] { width: 100%; }
.field-inline { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.field-inline select { max-width: 260px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 2px 6px rgba(18, 22, 28, .18);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
}

select {
  font: inherit;
  font-size: .9rem;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.range-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
}
.chip:hover { background: var(--surface-2); }
.range-hint { font-size: .8rem; color: var(--muted); margin-left: auto; }

.opts {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 0;
  display: grid;
  gap: 8px;
}
.opts legend {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  padding-inline: 6px;
}
.opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  font-size: .88rem;
}
.opt:hover { background: var(--surface-2); }
.opt input { margin-top: 4px; accent-color: var(--brand); }
.opt small { display: block; color: var(--muted); font-size: .78rem; }

.opts-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .87rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.check input { accent-color: var(--brand); width: 16px; height: 16px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* progress */

.progress { display: grid; gap: 8px; }
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #ff9a3d);
  transition: width .2s ease;
}
.progress-bar.indeterminate i {
  width: 35% !important;
  animation: slide 1.2s ease-in-out infinite;
}
@keyframes slide {
  0% { margin-left: -35%; }
  100% { margin-left: 100%; }
}
.progress-text { font-size: .82rem; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }

/* result */

.result {
  border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent);
  background: var(--ok-tint);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 14px;
}
.result-head { display: flex; gap: 12px; align-items: flex-start; }
.result-ok {
  width: 28px; height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.result-head strong { display: block; }
.result-head p { margin: 2px 0 0; font-size: .84rem; color: #3f6b4d; }
.result .preview { max-height: 220px; }

.fineprint { font-size: .78rem; color: var(--muted); margin: 16px 0 0; }

/* avisos e erros */

.error-box {
  border: 1px solid #f0bcb4;
  background: #fdf3f1;
  color: #7f2318;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .88rem;
}
.error-box strong { display: block; font-weight: 600; }
.error-box details { margin-top: 8px; }
.error-box summary { cursor: pointer; font-size: .78rem; color: #9c4a3d; }
.error-box pre {
  margin: 6px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .72rem;
  font-family: var(--mono);
  color: #7f2318;
  max-height: 160px;
  overflow: auto;
}

.notice {
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent);
  background: var(--tint);
  color: var(--brand-ink);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .84rem;
}

/* barra de consentimento */

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 860px;
  margin-inline: auto;
  background: var(--ink);
  color: #f1f2f4;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  font-size: .88rem;
}
.cookie-bar p { margin: 0; max-width: 56ch; }
.cookie-bar a { color: #ffb59c; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-bar .btn-quiet { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.cookie-bar .btn-quiet:hover { background: rgba(255, 255, 255, .1); }
.cookie-bar .btn-sm { padding: 9px 16px; font-size: .86rem; }

/* botão pequeno */

.btn-sm { padding: 9px 16px; font-size: .86rem; }

/* wave card */

.wave-card {
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.wave-card canvas { width: 100%; height: 90px; display: block; }
.wave-card figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* track list */

.track-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.track-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .87rem;
}
.track-num {
  width: 22px; height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 700;
  color: var(--muted);
}
.track-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-meta { font-size: .76rem; color: var(--muted); flex: none; }
.icon-btn {
  width: 28px; height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .95rem;
  line-height: 1;
}
.icon-btn:hover:not([disabled]) { background: var(--surface); border-color: var(--line); color: var(--ink); }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.icon-btn.danger:hover { color: #b42318; border-color: #f3c6c1; background: #fdf2f1; }

/* ------------------------------ how / steps -------------------------------- */

.how { padding: 58px 0 20px; }

.steps {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { font-size: .89rem; color: var(--muted); margin: 0; }

.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.why-item h3 { font-size: .98rem; margin-bottom: 6px; }
.why-item h3::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--brand);
  margin-right: 8px;
  vertical-align: 2px;
}
.why-item p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ----------------------------------- faq ----------------------------------- */

.faq { padding: 54px 0 30px; }
.faq h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 18px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 9px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------------------------------- footer --------------------------------- */

.site-foot {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-top: 40px;
}
.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 30px;
  padding-bottom: 30px;
}
.foot-brand p { font-size: .88rem; color: var(--muted); max-width: 32em; margin: 12px 0 0; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.foot-nav h4 {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 650;
}
.foot-nav a {
  display: block;
  text-decoration: none;
  font-size: .88rem;
  color: var(--ink-soft);
  padding: 3px 0;
}
.foot-nav a:hover { color: var(--brand); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-block: 16px 24px;
  font-size: .78rem;
  color: var(--muted);
}

/* --------------------------------- páginas --------------------------------- */

.page {
  padding: 46px 0 70px;
}
.page h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.page .updated { font-size: .82rem; color: var(--muted); margin-bottom: 26px; }
.page h2 { font-size: 1.22rem; margin: 34px 0 10px; }
.page p, .page li { color: var(--ink-soft); font-size: .96rem; }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 6px; }
.page .back { display: inline-block; margin-top: 30px; font-size: .9rem; font-weight: 600; color: var(--brand-ink); }

/* -------------------------------- responsivo ------------------------------- */

@media (max-width: 1020px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-side {
    position: static;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-demo { max-width: 460px; }
  .site-nav { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .hero-actions .btn { flex: 1; }
  .tool-panel { padding: 18px; border-radius: 18px; }
  .range-grid, .slider-grid { grid-template-columns: 1fr; }
  .steps, .why { grid-template-columns: 1fr; }
  .tool-side { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
  .tool-head h2 { font-size: 1.24rem; }
  .fc-name { max-width: 45%; }
  .range-hint { margin-left: 0; width: 100%; }
  .ad-tall .ad-box { min-height: 120px; }
  .head-cta { display: none; }
  .track-meta { display: none; }
  .field-inline { grid-template-columns: 1fr; }
}

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

@media print {
  .site-head, .ad-slot, .hero-demo, .site-foot { display: none; }
}
