/* The file-converter page.
   Rides site.css for tokens, buttons, type, nav and footer; this file carries
   only the converter itself. Every colour is a token, so both tones work. */

.cv-top { padding: 92px 0 clamp(56px, 7vw, 96px); }
.cv-h1 {
  margin: 15px 0 16px;
  font-size: clamp(38px, 6vw, 66px); font-weight: 700;
  letter-spacing: -.045em; line-height: 1.02;
}
.cv-sub { max-width: 60ch; }

/* ------------------------------------------------------------- the tool card */
.cv {
  margin-top: 38px; padding: 10px 30px 30px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.cv__row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr);
  gap: 0 16px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.cv__step {
  display: grid; place-items: center; width: 26px; height: 26px; margin-top: 20px;
  border: 1px solid var(--line-2); border-radius: 50%;
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-3);
}
.cv__field { min-width: 0; }
.cv__label {
  display: block; margin-bottom: 9px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
}
.cv__hint { margin-top: 9px; font-size: 12.5px; color: var(--fg-3); }

/* dropzone */
.cv__drop {
  display: flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 16px 20px; cursor: pointer;
  border: 1px dashed var(--line-2); border-radius: var(--r);
  background: var(--bg); color: var(--fg-2);
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.cv__drop:hover, .cv__drop:focus-visible {
  border-color: var(--accent); background: var(--surface-2); outline: none;
}
.cv__drop.is-over { border-color: var(--accent); background: var(--surface-2); }
.cv__drop.is-set { border-style: solid; border-color: var(--line-2); color: var(--fg); }
.cv__dropicon { flex: none; color: var(--fg-3); }
.cv__dropmain { font-size: 15px; letter-spacing: -.015em; }
.cv__dropmain b { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* select */
.cv__select { position: relative; display: block; }
.cv__select select {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 62px; padding: 0 44px 0 20px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg); color: var(--fg);
  font: inherit; font-size: 15px; letter-spacing: -.015em; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}
.cv__select select:hover, .cv__select select:focus-visible {
  border-color: var(--accent); outline: none;
}
.cv__select svg {
  position: absolute; right: 18px; top: 50%; margin-top: -6px;
  pointer-events: none; color: var(--fg-3);
}

.cv__go { width: 100%; margin-top: 26px; }
.cv__go[disabled] { opacity: .4; cursor: not-allowed; }
.cv__go[disabled]:hover { transform: none; }
.cv__err { margin-top: 16px; color: var(--t-crimson); font-size: 14.5px; }

/* ---------------------------------------------------------------- the result */
.cv-out {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  margin-top: 26px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.cv-out__stage {
  position: relative; min-height: 360px; background: var(--render-bg);
  display: flex; align-items: center; justify-content: center;
}
.cv-out__stage canvas { display: block; width: 100%; height: auto; }
.cv-out__busy {
  position: absolute; inset: 0; display: flex; gap: 12px;
  align-items: center; justify-content: center;
  background: rgba(11, 10, 13, .55); color: #FBF8F2; font-size: 14.5px;
}
.cv-out__side {
  display: flex; flex-direction: column; gap: 20px;
  padding: 26px; border-left: 1px solid var(--line);
}
.cv-out__pair { font-size: 11.5px; letter-spacing: .12em; color: var(--accent); }
.cv-out__spec { margin: 0; display: grid; gap: 15px; }
.cv-out__spec dt {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
}
.cv-out__spec dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
/* .btn is nowrap and fixed height — right for a button row, wrong for a
   full-width one carrying a sentence like "Create a free account to download" */
.cv-out__dl {
  margin-top: auto; white-space: normal; height: auto; min-height: 46px;
  padding-top: 11px; padding-bottom: 11px; line-height: 1.3;
}
/* The single line of selling on this page: quiet, under the button, and only for
   a format the free editor cannot write. It must never outweigh the download. */
.cv-out__pro {
  margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--fg-3); text-align: center;
}
.cv-out__pro a { color: var(--fg-2); font-weight: 640; text-decoration: underline;
  text-underline-offset: 2px; }
.cv-out__pro a:hover { color: var(--fg); }

.cv-again { margin-top: 18px; text-align: center; }
.cv-again .tlink {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--fg-2);
}
.cv-again .tlink:hover { color: var(--fg); }

/* ----------------------------------------------------------------- the pitch */
.cv-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cv-pill { padding: 0 30px 0 0; }
.cv-pill + .cv-pill { padding-left: 30px; border-left: 1px solid var(--line); }
.cv-pill h3 { font-size: 16px; font-weight: 650; letter-spacing: -.022em; margin-bottom: 9px; }
.cv-pill p { font-size: 14.5px; color: var(--fg-2); line-height: 1.55; }

/* --------------------------------------------------------------- the formats */
.cv-seclabel { color: var(--fg-3); margin-top: 14px; }
.cv-h2 {
  margin: 10px 0 26px; max-width: 22ch;
  font-size: clamp(25px, 3.2vw, 35px); font-weight: 680;
  letter-spacing: -.03em; line-height: 1.12;
}
.cv-fmts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.fmt { background: var(--bg); padding: 18px 16px; }
.fmt b { display: block; font-size: 15.5px; letter-spacing: -.02em; }
.fmt span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--fg-3); line-height: 1.45; }

@media (max-width: 900px) {
  .cv-pills { grid-template-columns: 1fr; gap: 26px; }
  .cv-pill { padding: 0; }
  .cv-pill + .cv-pill { padding-left: 0; padding-top: 26px; border-left: 0; border-top: 1px solid var(--line); }
  .cv-fmts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cv { padding: 6px 18px 22px; }
  .cv__row { grid-template-columns: 1fr; gap: 0; }
  .cv__step { display: none; }
  .cv-out { grid-template-columns: 1fr; }
  .cv-out__side { border-left: 0; border-top: 1px solid var(--line); }
}
