/* ==========================================================================
   ToolFlect File Readiness Checker — css/styles.css
   --------------------------------------------------------------------------
   Suite-scoped stylesheet. The design tokens below are byte-identical to
   image-tools/css/styles.css so this page is visually indistinguishable from
   the existing tool suites. No new colour, font, radius or shadow is
   introduced anywhere in this file — every rule composes the tokens below.
   ========================================================================== */

/* ---------- Design tokens (same values as image-tools / pdf-tools) ---------- */
:root {
  --brand: #5b5ce2;
  --brand-600: #4a4bd0;
  --brand-050: #eef0ff;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --good: #16a34a;
  --good-bg: #ecfdf5;
  --bad: #dc2626;
  --bad-bg: #fef2f2;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #f7f8ff 0%, #ffffff 260px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }

.container { width: min(1080px, 100% - 2rem); margin-inline: auto; }

/* Accessible-only text (same technique as the WordPress homepage section). */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { color: var(--brand); font-size: 1.35rem; line-height: 1; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.05rem; font-weight: 700; }
.brand__tag { font-size: .7rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.site-header__cta { margin-left: .5rem; }

/* ---------- Hero ---------- */
.hero { padding: 3.25rem 0 2rem; text-align: center; }
.breadcrumb { display: flex; gap: .4rem; justify-content: center; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); }
.crumb-sep { color: var(--line-strong); }
.hero__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .75rem; }
.hero__subtitle { max-width: 680px; margin: 0 auto 1.5rem; color: var(--ink-soft); font-size: 1.06rem; }
.hero__actions { margin-bottom: 1.5rem; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; padding: 0; margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- Buttons (identical to the existing suites) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease, transform .05s ease;
}
.btn:hover { background: var(--surface-soft); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--brand-600); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--surface-soft); }
.btn--lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn--sm { padding: .4rem .7rem; font-size: .82rem; }

/* Visible focus for every interactive element, including the dropzone. */
.btn:focus-visible,
.frc__dropzone:focus-visible,
.frc__select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Tool card (matches the existing suites) ---------- */
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; margin: .75rem 0 3rem; }
.tool-card__head { margin-bottom: 1.25rem; }
.tool-card__title { font-size: 1.4rem; }
.tool-card__sub { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Feature-scoped privacy note ---------- */
.frc__privacy {
  margin: 0 0 1.25rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--good);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: .88rem;
}

/* ---------- Dropzone ---------- */
.frc__dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  padding: 2.25rem 1rem;
  text-align: center;
}
.frc__dropzone:hover, .frc__dropzone--active { border-color: var(--brand); background: var(--brand-050); }
.frc__dropzone__icon { color: var(--brand); margin-bottom: .5rem; }
.frc__dropzone__title { margin: 0; font-weight: 600; font-size: 1.05rem; }
.frc__dropzone__sub { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.frc__dropzone__actions { margin-top: 1rem; display: flex; justify-content: center; }

.frc__notice { margin: .85rem 0 0; color: var(--muted); font-size: .8rem; text-align: center; }

/* ---------- Results region ----------
   min-height reserves space so selecting a file causes no layout shift. */
.frc__results { margin-top: 1.75rem; min-height: 26rem; }
.frc__results[hidden] { display: none; }
.frc__section { margin-top: 1.75rem; }
.frc__section:first-child { margin-top: 0; }

/* ---------- Loading ---------- */
.frc__loading { display: flex; align-items: center; gap: .6rem; color: var(--brand); font-weight: 600; font-size: .92rem; }
.frc__spinner {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  border: 3px solid var(--line-strong); border-top-color: var(--brand);
  animation: frc-spin .7s linear infinite;
}
@keyframes frc-spin { to { transform: rotate(360deg); } }

/* ---------- Summary card ---------- */
.frc__card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); padding: 1rem 1.1rem; }
.frc__card__title { font-size: 1.02rem; margin: 0 0 .6rem; }
.frc__dl { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: .35rem 1rem; margin: 0; font-size: .9rem; }
.frc__dt { color: var(--muted); font-weight: 600; }
.frc__dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

/* ---------- Fields ---------- */
.frc__field { display: flex; flex-direction: column; gap: .4rem; max-width: 30rem; }
.frc__field + .frc__field { margin-top: .9rem; }
.frc__label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.frc__select {
  font: inherit; font-size: .92rem; color: var(--ink);
  padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); width: 100%;
}
.frc__hint { font-size: .78rem; color: var(--muted); margin: 0; }

/* ---------- Readiness badge ----------
   Icon AND text label: status is never communicated by colour alone. */
.frc__badge { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-soft); }
.frc__badge__icon { font-size: 1.2rem; line-height: 1.3; flex: 0 0 auto; }
.frc__badge__label { font-weight: 700; font-size: 1.02rem; margin: 0; }
.frc__badge__meta { margin: .15rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.frc__badge--ready { border-color: var(--good); background: var(--good-bg); }
.frc__badge--ready .frc__badge__icon { color: var(--good); }
.frc__badge--warnings { border-color: var(--amber); background: var(--amber-bg); }
.frc__badge--warnings .frc__badge__icon { color: var(--amber); }
.frc__badge--blocked { border-color: var(--bad); background: var(--bad-bg); }
.frc__badge--blocked .frc__badge__icon { color: var(--bad); }
.frc__badge--unknown { border-color: var(--line-strong); background: var(--surface-soft); }
.frc__badge--unknown .frc__badge__icon { color: var(--muted); }

/* ---------- Check list ---------- */
.frc__counts { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .5rem; padding: 0; margin: 0 0 .9rem; }
.frc__count { font-size: .76rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); }

.frc__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.frc__check { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
.frc__check__icon { flex: 0 0 auto; font-size: 1rem; line-height: 1.4; font-weight: 700; }
.frc__check__body { min-width: 0; }
.frc__check__title { margin: 0; font-size: .94rem; font-weight: 700; }
.frc__check__message { margin: .2rem 0 0; font-size: .87rem; color: var(--ink-soft); }
.frc__check__rec { margin: .35rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.frc__check__rec b { font-weight: 700; }

.frc__check--fail { border-left-color: var(--bad); }
.frc__check--fail .frc__check__icon { color: var(--bad); }
.frc__check--warning { border-left-color: var(--amber); }
.frc__check--warning .frc__check__icon { color: var(--amber); }
.frc__check--pass { border-left-color: var(--good); }
.frc__check--pass .frc__check__icon { color: var(--good); }
.frc__check--unavailable { border-left-color: var(--line-strong); }
.frc__check--unavailable .frc__check__icon { color: var(--muted); }

/* ---------- Recommended fixes ---------- */
.frc__fixes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.frc__fix { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
.frc__fix__text { font-size: .87rem; color: var(--ink-soft); }
.frc__fix__link { font-weight: 700; font-size: .9rem; }

/* ---------- Error state ---------- */
.frc__error { border: 1px solid var(--bad); border-left-width: 4px; background: var(--bad-bg); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.frc__error__title { margin: 0; font-size: .98rem; font-weight: 700; color: var(--bad); }
.frc__error__message { margin: .3rem 0 0; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Actions ---------- */
.frc__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }

/* ---------- SEO / info sections (mirrors the existing suites) ---------- */
.seo-section { margin: 3rem 0; }
.seo-section__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 1.25rem; }
.ht-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ht-step { display: flex; gap: 1rem; align-items: flex-start; }
.ht-step__num {
  flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--brand-050); color: var(--brand-600); font-weight: 800;
  display: grid; place-items: center; margin-top: .1rem;
}
.ht-step__title { margin: 0 0 .15rem; font-size: 1.02rem; }
.ht-step__text { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 480px; }
.comparison-table th, .comparison-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.comparison-table thead th { background: var(--surface-soft); font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.comparison-table tbody tr:last-child th, .comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody th { font-weight: 600; color: var(--ink); }

.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-item__q { cursor: pointer; padding: .85rem 1rem; font-weight: 600; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item__q::after { content: "+"; font-size: 1.2rem; color: var(--brand); transition: transform .15s ease; }
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a { padding: 0 1rem 1rem; color: var(--ink-soft); font-size: .9rem; }

.privacy-box { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); padding: 1rem 1.1rem; }
.privacy-box p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 .75rem; }
.privacy-box p:last-of-type { margin-bottom: 0; }
.privacy-box ul { margin: .75rem 0 0; padding-inline-start: 1.25rem; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.75rem 0; color: var(--muted); font-size: .85rem; text-align: center; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; margin-bottom: .75rem; font-weight: 500; }
.site-footer__nav a { color: var(--ink-soft); }
.site-footer__nav a:hover { color: var(--brand); }
.site-footer__nav--legal { font-size: .8rem; gap: 1rem; }
.site-footer__nav--legal a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .tool-card { padding: 1.1rem; }
  .hero { padding-top: 2.5rem; }
  .site-header__cta { display: none; }
  .brand__tag { display: none; }
  .frc__dl { grid-template-columns: 1fr; gap: .1rem; }
  .frc__dt { margin-top: .5rem; }
}

/* ---------- Reduced motion ----------
   Respects the user's OS setting: no spinner, no transitions. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .frc__spinner { animation: none; border-top-color: var(--line-strong); }
}
