/* Free tools for voiceover artists (voicefolk.com/tools).
   Builds on site.css and overlays.css, so the tools look like the rest of Voicefolk:
   paper and ink, hand-drawn frames, Familjen Grotesk headings and handwritten notes. */

/* header: the homepage menu lives on the homepage, so tool pages show a "Free tools" pill on small screens instead */
.tools-header .t-all { display: none; }
@media (max-width: 899.98px) { .tools-header .t-all { display: inline-flex; } }
@media (max-width: 400px) { .tools-header .t-voice { display: none; } }
.site-nav a[aria-current="page"] { background-size: 100% .32em; }

/* page top */
.tool-hero { padding-block: clamp(1.8rem, 4vw, 3.2rem) .5rem; }
.crumbs { font-size: .92rem; color: var(--ink-2); margin-bottom: 1.1rem; }
.crumbs a { color: var(--tomato-ink); }
.tool-hero .kicker { margin-bottom: .4rem; }
.tool-title { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.1rem); line-height: 1.02; letter-spacing: -.02em; max-width: 17ch; text-wrap: balance; }
.tool-hero .lead { margin-top: 1rem; }

/* the tool itself */
.tool-band { padding-block: 1.25rem clamp(3rem, 5vw, 4.5rem); }
.tool { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.tool--wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 879.98px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.panel { position: relative; isolation: isolate; padding: clamp(1.1rem, 2.4vw, 1.7rem); display: grid; gap: 1.1rem; min-width: 0; }
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 1px solid transparent; border-image: url("../../assets/ui/frame-card-paper.svg") 30 fill / 26px stretch;
}
.panel--wash { background: url("../../assets/ui/wash-mustard.webp") center / calc(100% - 14px) calc(100% - 14px) no-repeat; }
.panel--wash::before { border-image: url("../../assets/ui/frame-card.svg") 30 / 26px stretch; }
.panel h2 { font-size: 1.35rem; }
.panel__label { font: 600 1.35rem/1 var(--hand); color: var(--tomato-ink); }
textarea.t-textarea { min-height: 280px; resize: vertical; line-height: 1.6; font-size: 1.02rem; }
.t-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.t-row--between { justify-content: space-between; }
.filters { margin-top: 0; }
.filter { cursor: pointer; }
.t-range { display: grid; gap: .35rem; }
.t-range__top { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: .95rem; }
.t-range__top output { font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--tomato); min-height: 32px; }
.t-help { font-size: .88rem; color: var(--ink-2); }

/* results */
.big { font: 700 clamp(3.2rem, 2.2rem + 4vw, 5.2rem)/.95 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big small { font-size: .32em; letter-spacing: 0; font-weight: 600; margin-left: .3em; color: var(--ink-2); }
.t-sub { color: var(--ink-2); }
.t-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .8rem; margin: 0; }
.t-stats div { display: grid; gap: .1rem; }
.t-stats dt { font-size: .82rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.t-stats dd { margin: 0; font: 700 1.5rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.t-table-wrap { overflow-x: auto; }
.t-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.t-table th, .t-table td { text-align: left; padding: .55rem .5rem; border-bottom: 1.5px dashed var(--line); vertical-align: top; }
.t-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.t-table tbody th { font-weight: 600; }
.t-table td.num, .t-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t-yes { color: #2F6B3F; font-weight: 700; }
.t-no { color: var(--tomato-ink); font-weight: 700; }
.t-out {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow: auto;
  padding: 1rem 1.1rem; background: #FFFCF6; border: 1.5px dashed var(--line); border-radius: 14px;
  font: 400 1.02rem/1.6 var(--body);
}
.t-list { margin: 0; padding-left: 1.2em; display: grid; gap: .3rem; }
.t-empty { color: var(--ink-2); font-style: italic; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.t-status { font-weight: 600; min-height: 1.5em; }

/* checks list (file checker, room check) */
.checks-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.checks-list li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .5rem; align-items: start; }
.checks-list .mark { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: #2F6B3F; margin-top: .1rem; }
.checks-list .mark--warn { background: var(--tomato); }
.checks-list .mark--info { background: var(--slate); }
.checks-list b { display: block; }
.checks-list span { color: var(--ink-2); font-size: .93rem; }

/* level meter */
.meter { height: 16px; border-radius: 99px; background: var(--paper-2); border: 2px solid var(--ink); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6FA37A 0 70%, var(--mustard) 70% 88%, var(--tomato) 88%); background-size: var(--meter-w, 400px) 100%; transition: width .06s linear; }
.countdown { font: 700 clamp(2.6rem, 2rem + 3vw, 4rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.say-this { font: 600 1.25rem/1.45 var(--display); padding: .8rem 1rem; background: #FFFCF6; border-radius: 12px; border: 1.5px dashed var(--line); }

/* drop zone */
.drop { position: relative; display: grid; place-items: center; gap: .6rem; text-align: center; padding: 2rem 1rem; border: 2px dashed var(--ink-2); border-radius: 18px; background: #FFFCF6; cursor: pointer; }
.drop.is-over { background: var(--peach); border-color: var(--ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wave { width: 100%; height: 90px; display: block; border-radius: 10px; background: #FFFCF6; border: 1.5px dashed var(--line); }

/* guide below the tool */
.guide { padding-block: clamp(3rem, 5vw, 4.5rem); }
.guide__inner { max-width: 46rem; display: grid; gap: 1rem; }
.guide h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); line-height: 1.1; margin-top: 1rem; }
.guide h2:first-child { margin-top: 0; }
.guide h3 { font-size: 1.25rem; margin-top: .6rem; }
.guide p, .guide li { color: var(--ink-2); line-height: 1.65; }
.guide ul { margin: 0; padding-left: 1.2em; display: grid; gap: .35rem; }

/* related tools and the founding-voice note */
.more { padding-block: clamp(3rem, 5vw, 4.5rem); }
.more__inner { display: grid; gap: 2rem; }
.t-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.1rem; }
.t-card { position: relative; isolation: isolate; display: grid; gap: .5rem; align-content: start; padding: 1.3rem 1.4rem 1.4rem; color: var(--ink); text-decoration: none; }
.t-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid transparent; border-image: url("../../assets/ui/frame-card-paper.svg") 30 fill / 24px stretch; transition: rotate .2s var(--ease); }
.t-card:hover::before { rotate: -.6deg; }
.t-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.t-card .icon { width: 34px; height: 34px; color: var(--tomato-ink); }
.t-card h3 { font-size: 1.25rem; line-height: 1.2; }
.t-card p { color: var(--ink-2); font-size: .97rem; }
.t-card__go { font: 600 1.2rem/1 var(--hand); color: var(--tomato-ink); margin-top: .2rem; }
.t-card[aria-current="page"] { opacity: .6; pointer-events: none; }
.more .founding { rotate: -.6deg; max-width: 40rem; }
.more h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }

/* hub */
.hub-hero .tool-title { max-width: 20ch; }
.hub-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.hub-cards .t-card { padding: 1.5rem 1.6rem 1.6rem; }
.hub-cards .t-card .icon { width: 40px; height: 40px; }
.tag-new { display: inline-block; font: 700 .7rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; padding: .3em .55em; border-radius: 6px; background: var(--mustard); color: var(--ink); vertical-align: .2em; margin-left: .4em; }

@media print {
  .site-header, .site-footer, .tool-hero, .guide, .more, .no-print { display: none !important; }
  body::before, body::after { display: none !important; }
  .tool-band { padding: 0; }
  .print-only { display: block !important; }
  .t-out { max-height: none; border: 0; background: none; font-size: 11pt; }
}
.print-only { display: none; }
@media (prefers-reduced-motion: reduce) { .t-card::before, .meter i { transition: none; } }

/* a column of panels */
.t-stack { display: grid; gap: clamp(1.25rem, 3vw, 2rem); min-width: 0; align-content: start; }

/* quote builder */
.checks__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fee-rows { display: grid; gap: .8rem; }
.fee-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: .6rem; align-items: end; }
.fee-row__x { width: 44px; height: 48px; display: grid; place-items: center; background: none; border: 0; color: var(--ink-2); cursor: pointer; border-radius: 10px; }
.fee-row__x:hover { color: var(--tomato-ink); background: var(--paper-2); }
.fee-row__x .icon { width: 18px; height: 18px; }
.opt { font-weight: 400; color: var(--ink-2); font-size: .8em; }
@media print {
  .tool { display: block; }
  .panel { padding: 0; }
  .panel::before { display: none; }
  .panel--wash { background: none; }
}

/* hub groups and the "and the rest" list */
.hub-groups { display: grid; gap: clamp(2.2rem, 5vw, 3.5rem); }
.hub-group { display: grid; gap: 1rem; }
.hub-group__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.more__all h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.more__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.more__links a { color: var(--tomato-ink); font-weight: 600; }