/* The free take-off page's hero: the visitor lands on the drawing, with the
   page's headline on a card over it. The sheet's marks come from .ps-mz-* in
   styles.css. */
.fts {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg-dark);
}
.fts-paper {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.fts-card {
  position: absolute;
  left: max(24px, calc((100vw - 1320px) / 2));
  top: calc(50% + 32px);
  transform: translateY(-50%);
  width: 420px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(13, 13, 12, 0.16);
  z-index: 7;
}
.fts-card h1 {
  margin: 0 0 12px;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.fts-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.fts-card .fts-next {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--accent);
}
.fts-card--done .fts-next {
  font-weight: 600;
}
.fts .ps-hero-cta {
  margin-top: 4px;
  justify-content: center;
  width: 100%;
}
.fts-meta {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.fts .ps-mz-totals {
  right: 24px;
  bottom: 20px;
}
.fts .ps-mz-legend--desk {
  bottom: 34px;
}
.fts .ps-mz-prompt-tool {
  pointer-events: none;
}

/* The tools grid, and the two competitors beside each other. */
.ps-faq .faq-list { margin-top: 24px; }
.fts-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.fts-tool {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.fts-tool svg {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
}
.fts-tool {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.fts-tool:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(13, 13, 12, 0.1);
}
.fts-tool:hover svg > * {
  stroke-dasharray: 1;
  animation: fts-draw 0.8s ease both;
}
@keyframes fts-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fts-tool, .fts-tool:hover { transform: none; transition: none; }
  .fts-tool:hover svg > * { animation: none; }
}
.fts-tool h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}
.fts-tool p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.fts-more {
  margin-top: 24px;
}
.fts-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
.fts-vs {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.fts-vs h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}
.fts-vs p {
  margin: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.fts-vs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fts-vs li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.fts-vs li b {
  display: block;
  color: var(--text-primary);
}

@media (max-width: 1023px) {
  .fts-tools { grid-template-columns: repeat(2, 1fr); }
  .fts-compare { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .fts {
    height: auto;
    min-height: 0;
    padding: 84px 16px 24px;
  }
  .fts-card {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    padding: 22px;
    margin: 16px 0;
  }
  .fts-card h1 { font-size: 1.8rem; }
  .fts .ps-mz-view {
    position: relative;
    inset: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }
  .fts .ps-mz-prompt,
  .fts .ps-mz-legend--desk { display: none; }
  .fts .ps-mz-legend--phone {
    display: flex;
    position: static;
    margin-top: 10px;
    width: fit-content;
  }
  .fts .ps-mz-totals {
    position: static;
    width: auto;
    margin-top: 12px;
  }
  .fts .ps-credit {
    position: static;
    display: block;
    margin-top: 10px;
  }
  .fts-tools { grid-template-columns: 1fr; }
}
