/* ===== Toolmato Reviews: inner pages (loads after main.css) ===== */

/* Accessibility helpers */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .table-wrap:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Active nav link */
.main-nav a[aria-current="page"] { color: var(--tomato); font-weight: 600; }
.main-nav a[aria-current="page"]::after { width: 100%; }

/* ===== Page hero ===== */
.page-hero {
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 90, 60, 0.16), transparent 45%),
    radial-gradient(circle at 4% 100%, rgba(255, 184, 48, 0.18), transparent 40%),
    var(--cream);
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.9rem, 4.8vw, 3.1rem); margin-bottom: 12px; max-width: 840px; }
.page-hero .lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 680px; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead { margin-inline: auto; }
.page-hero.center .breadcrumb { justify-content: center; }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero .cat-hero-icon { font-size: 3rem; display: block; margin-bottom: 8px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #c9b8ad; }
.breadcrumb a:hover { color: var(--tomato); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--tomato); cursor: pointer; font: inherit; font-weight: 600;
  background: var(--tomato); color: var(--white); padding: 11px 24px; border-radius: 999px;
  transition: background .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--tomato-dark); border-color: var(--tomato-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--tomato-soft); border-color: var(--tomato-soft); color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Review page hero ===== */
.review-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.review-thumb { width: 128px; height: 128px; border-radius: 28px; display: grid; place-items: center; font-size: 3.8rem; box-shadow: var(--shadow); }
.review-hero .lead { margin-bottom: 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { background: var(--white); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.pill.verdict-pill { color: var(--leaf); font-weight: 600; border-color: #bfe6d3; background: #eefaf3; }
.score-circle {
  width: 112px; height: 112px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: grid; place-content: center; text-align: center; box-shadow: var(--shadow); border: 5px solid var(--sun);
}
.score-circle strong { font-family: "Fraunces", serif; font-size: 2.1rem; line-height: 1; }
.score-circle span { font-size: 0.72rem; color: #c9c9df; }

/* ===== Content layout ===== */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.block { margin-bottom: 38px; }
.block > h2 { font-size: 1.6rem; margin-bottom: 14px; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.side-box h3 { font-size: 1.1rem; margin-bottom: 14px; }
.side-box p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }
.facts { display: grid; gap: 12px; margin-bottom: 18px; }
.facts div { border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.facts dd { font-weight: 600; }
.side-list { list-style: none; }
.side-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { font-weight: 600; }
.side-list a:hover { color: var(--tomato); }
.side-note { font-size: 0.8rem; color: var(--ink-soft); }
.side-note a { color: var(--tomato); text-decoration: underline; }

.verdict-box { background: var(--tomato-soft); border-left: 5px solid var(--tomato); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px; }
.verdict-box h2 { font-size: 1.25rem; margin-bottom: 8px; }
.verdict-box p { color: var(--ink); }

/* ===== Prose ===== */
.prose h2 { font-size: 1.6rem; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; color: #33334a; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; color: #33334a; }
.prose a { color: var(--tomato-dark); font-weight: 600; text-decoration: underline; }
.prose .updated { font-size: 0.88rem; color: var(--ink-soft); }
.legal { max-width: 780px; }

/* ===== Pros and cons ===== */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pc-box { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: var(--white); }
.pc-box.pros { border-top: 4px solid var(--leaf); }
.pc-box.cons { border-top: 4px solid var(--tomato); }
.pc-box.plain { border-top: 4px solid var(--sun); }
.pc-box.plain.alt { border-top-color: var(--ink); }
.pc-box h3 { font-size: 1.1rem; margin-bottom: 12px; }
.pc-box ul { list-style: none; }
.pc-box li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 0.95rem; }
.pc-box li:last-child { margin-bottom: 0; }
.pc-box li::before { position: absolute; left: 0; font-weight: 700; }
.pc-box.pros li::before { content: "✓"; color: var(--leaf); }
.pc-box.cons li::before { content: "✕"; color: var(--tomato); }
.pc-box.plain li::before { content: "•"; color: var(--sun); font-size: 1.2rem; line-height: 1.3; }
.pc-box.plain.alt li::before { color: var(--ink); }

/* ===== Score bars ===== */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 38px; gap: 12px; align-items: center; font-size: 0.92rem; }
.bar { height: 10px; background: var(--tomato-soft); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--tomato), var(--sun)); border-radius: 999px; }
.bar-row b { text-align: right; }
.score-note { margin-top: 14px; font-size: 0.82rem; color: var(--ink-soft); }
.score-note a { color: var(--tomato-dark); text-decoration: underline; }

/* ===== FAQ ===== */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--tomato); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--tomato-dark); }
.faq details p { padding: 0 20px 18px; color: var(--ink-soft); }

/* ===== Pill list ===== */
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li a, .pill-list li span { display: inline-block; background: var(--white); border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; }
.pill-list li a:hover { border-color: var(--tomato); color: var(--tomato); }

/* ===== CTA band ===== */
.cta-band { background: var(--ink); color: var(--white); border-radius: 24px; padding: 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 240px; height: 240px; left: -80px; bottom: -110px; background: var(--tomato); opacity: 0.3; border-radius: 50%; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.cta-band p { color: #c9c9df; margin: 0 auto 20px; max-width: 520px; }
.cta-band .btn-row { justify-content: center; }
.section.tight { padding: 48px 0; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.93rem; vertical-align: top; }
table.data thead th { background: var(--ink); color: var(--white); font-family: "Inter", sans-serif; font-size: 0.85rem; font-weight: 600; }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody th { background: var(--cream); font-weight: 600; width: 26%; }
table.data td a { color: var(--tomato-dark); font-weight: 600; }
table.data .score { white-space: nowrap; }

/* ===== Pick cards (best-of, alternatives) ===== */
.pick { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; transition: .25s; }
.pick:hover { box-shadow: var(--shadow-hover); border-color: var(--tomato); }
.pick-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pick-num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--tomato); color: var(--white); font-weight: 700; font-family: "Fraunces", serif; }
.pick:first-of-type .pick-num { background: var(--sun); color: var(--ink); }
.pick-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tomato-dark); }
.pick h2 { font-size: 1.35rem; }
.pick-score { margin-left: auto; flex-shrink: 0; font-weight: 700; color: var(--leaf); background: #eefaf3; padding: 4px 14px; border-radius: 999px; }
.pick p { color: var(--ink-soft); margin-bottom: 16px; }

/* ===== Category extras ===== */
.cat-count { margin-top: 10px; font-weight: 600; font-size: 0.85rem; color: var(--tomato-dark); }
.empty-state { background: var(--white); border: 2px dashed #e3d3c8; border-radius: var(--radius); padding: 40px 24px; text-align: center; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); margin: 0 auto 18px; max-width: 480px; }
.filter-panel { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 22px; margin-bottom: 34px; }
.filter-panel .search { margin: 0 auto 16px; box-shadow: none; background: var(--cream); }
.filter-panel .chips { margin-bottom: 0; }

/* ===== Info cards ===== */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info-card .cat-icon { margin-bottom: 14px; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.info-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* ===== Forms ===== */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; width: 100%; padding: 12px 14px; border: 1px solid #e3d3c8; border-radius: 12px; background: var(--cream); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--tomato); outline-offset: 1px; border-color: var(--tomato); }
.field textarea { min-height: 150px; resize: vertical; }
.form-msg { min-height: 1.4em; font-weight: 600; color: var(--leaf); }
.form-msg.error { color: var(--tomato-dark); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }

/* ===== 404 ===== */
.nf { text-align: center; padding: 80px 0 90px; }
.nf .big { font-family: "Fraunces", serif; font-size: clamp(5.5rem, 22vw, 10rem); line-height: 1; color: var(--tomato); }
.nf h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 10px 0; }
.nf p { color: var(--ink-soft); margin: 0 auto 24px; max-width: 460px; }
.nf .btn-row { justify-content: center; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { padding: 28px 0 34px; }
  .review-hero { grid-template-columns: 1fr; gap: 18px; }
  .review-thumb { width: 96px; height: 96px; font-size: 2.8rem; border-radius: 22px; }
  .score-circle { width: 96px; height: 96px; }
  .pros-cons, .form-row { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 96px 1fr 34px; gap: 10px; }
  .cta-band { padding: 32px 22px; }
}
@media (max-width: 560px) {
  .info-grid { grid-template-columns: 1fr; }
  .pick { padding: 20px; }
  .pick-head { flex-wrap: wrap; }
  .form { padding: 20px; }
  .btn-row .btn { width: 100%; }
}
