/* ============================================================
   tools.css — shared styles for free tool pages
   /tools/key-changer, /tools/song-slowdown
   Inherits design language from landing/styles.css
   ============================================================ */

@import url('../styles.css');

/* ---------- tool layout ---------- */
.tool {
  min-height: calc(100vh - 60px);
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.tool__hero {
  text-align: left;
  max-width: 880px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.tool__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.tool__eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.tool__title {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: 'wdth' 100, 'opsz' 48;
  margin-bottom: 1.4rem;
}
.tool__title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}
.tool__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink);
  max-width: 56ch;
  line-height: 1.5;
}

/* ---------- upload zone ---------- */
.uploader {
  border: 1.5px dashed var(--rule-mid);
  border-radius: 18px;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,0.012) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,0.012) 38px 39px),
    var(--bg-card);
  transition: all .25s ease;
  position: relative;
  cursor: pointer;
}
.uploader:hover, .uploader.is-drag {
  border-color: var(--accent);
  background-color: var(--bg-card-hi);
  box-shadow: 0 0 60px -20px var(--accent-glow);
}
.uploader__icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-mid);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.6rem;
  transition: all .25s;
}
.uploader:hover .uploader__icon {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}
.uploader__icon svg {
  width: 32px; height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.uploader__title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-variation-settings: 'wdth' 100, 'opsz' 48;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.uploader__sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.uploader__sub strong {
  color: var(--accent);
  font-weight: 500;
}
.uploader__formats {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.uploader input[type="file"] { display: none; }

/* ---------- processing state ---------- */
.process {
  border: 1px solid var(--rule-mid);
  background: var(--bg-card);
  border-radius: 18px;
  padding: 2rem;
  display: none;
}
.process.is-active { display: block; animation: fadein .3s ease; }
.process__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 1.5rem;
}
.process__file {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink);
}
.process__file span { color: var(--ink-mute); margin-left: 0.6rem; }
.process__cancel {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
}
.process__cancel:hover { color: var(--red); }
.process__bar {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}
.process__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  width: 0;
  transition: width .4s ease;
  box-shadow: 0 0 10px var(--accent-glow);
}
.process__status {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.process__status .pct { color: var(--accent); }

/* ---------- result state ---------- */
.result {
  border: 1px solid var(--accent);
  background:
    linear-gradient(180deg, oklch(86% 0.21 128 / 0.05), transparent 60%),
    var(--bg-card);
  border-radius: 18px;
  padding: 2rem;
  display: none;
  box-shadow: 0 0 60px -20px var(--accent-glow);
}
.result.is-active { display: block; animation: fadein .4s ease; }
.result__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 1.4rem;
}
.result__title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-variation-settings: 'wdth' 100, 'opsz' 48;
}
.result__check {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.result__player {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.4rem;
}
.result__player audio {
  width: 100%;
  height: 40px;
}
.result__actions {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.result__notice {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}
.result__notice strong { color: var(--accent); }

/* ---------- error state ---------- */
.error-msg {
  display: none;
  padding: 1rem 1.2rem;
  background: color-mix(in oklab, var(--red) 10%, transparent);
  border-left: 2px solid var(--red);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink);
  margin-top: 1rem;
}
.error-msg.is-active { display: block; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- info grid (how it works, faq, etc.) ---------- */
.info-grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}
.info-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.6rem;
  background: var(--bg-card);
}
.info-card__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
}
.info-card__title {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  font-variation-settings: 'wdth' 100, 'opsz' 48;
}
.info-card__body {
  color: var(--ink-mute);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* ---------- upsell band ---------- */
.upsell {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: clamp(2.5rem, 5vw, 4rem) 2rem;
  border: 1px solid var(--accent);
  border-radius: 18px;
  background:
    linear-gradient(135deg, oklch(86% 0.21 128 / 0.06), transparent 60%),
    var(--bg-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.upsell::before, .upsell::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}
.upsell::before { top: -80px; left: -80px; background: var(--accent); }
.upsell::after  { bottom: -80px; right: -80px; background: oklch(45% 0.1 265); }
.upsell__inner { position: relative; z-index: 1; }
.upsell__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.upsell__title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  font-variation-settings: 'wdth' 100, 'opsz' 48;
}
.upsell__title em { color: var(--accent); }
.upsell__body {
  color: var(--ink-mute);
  max-width: 52ch;
  margin: 0 auto 1.8rem;
  font-size: 1rem;
}

/* ---------- mini-faq ---------- */
.mini-faq {
  margin-top: clamp(3rem, 6vw, 5rem);
  max-width: 760px;
}
.mini-faq h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
  font-variation-settings: 'wdth' 100, 'opsz' 48;
}
.mini-faq details {
  border-bottom: 1px solid var(--rule);
  padding-block: 1rem;
}
.mini-faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.05rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-variation-settings: 'wdth' 100, 'opsz' 48;
  transition: color .2s;
}
.mini-faq summary::-webkit-details-marker { display: none; }
.mini-faq summary:hover { color: var(--accent); }
.mini-faq summary::after {
  content: '+';
  color: var(--accent);
  font-family: var(--mono);
  transition: transform .2s;
}
.mini-faq details[open] summary::after { transform: rotate(45deg); }
.mini-faq details p {
  margin-top: 0.7rem;
  color: var(--ink-mute);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- breadcrumb ---------- */
.crumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-bottom: 1.6rem;
}
.crumb a { color: var(--ink-mute); transition: color .2s; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--ink-faint); margin: 0 0.6rem; }
