/* Fix My Speaker — homepage design layer (front page only).
   Light sky-blue theme with colourful cards, matching the approved preview.
   Scoped to the article content so header, footer and the tool stay untouched. */

body.fms-designed {
  background: linear-gradient(180deg, #e8f5ff 0%, #f6faff 430px, #eef5ff 100%);
}
body.fms-designed article.entry.content-bg {
  background: transparent;
  box-shadow: none;
}

/* ---------- Hero / intro ---------- */
.fms-home > h1 {
  text-align: center;
  color: #0f2a4a;
  font-size: 2.05rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}
.fms-home > p:first-of-type {
  text-align: center;
  font-size: 1.06rem;
  color: #33506e;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.fms-home > p { color: #3d5a78; }

.fms-home > p.fms-quick {
  position: relative;
  background: #ffffff;
  border: 2px solid #38bdf8;
  border-radius: 18px;
  padding: 1.7rem 1.2rem 0.8rem;
  max-width: 780px;
  margin: 0.9rem auto 0;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
  color: #33506e;
}
.fms-home > p.fms-quick::before {
  content: "QUICK ANSWER";
  position: absolute;
  top: -13px;
  left: 20px;
  background: linear-gradient(120deg, #38bdf8, #6366f1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 4px 12px;
  border-radius: 99px;
}

/* ---------- Sections ---------- */
.fms-sec { margin-top: 1.3rem; }
.fms-sec > h2 {
  text-align: center;
  color: #0f2a4a;
  font-size: 1.55rem;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}
.fms-sec > h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(120deg, #38bdf8, #6366f1);
  margin: 7px auto 0;
}
.fms-sec > p { color: #3d5a78; }
.fms-sec > h3 { color: #0f2a4a; margin-top: 1.1rem; }

/* ---------- Card grids ---------- */
.fms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 0.55rem;
}
@media (max-width: 1024px) { .fms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fms-grid { grid-template-columns: 1fr; } }

.fms-card {
  background: #ffffff;
  border: 1px solid #e1efff;
  border-top: 4px solid #38bdf8;
  border-radius: 16px;
  padding: 11px 13px 5px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.07);
}
.fms-grid .fms-card:nth-child(6n+2) { border-top-color: #f5a623; }
.fms-grid .fms-card:nth-child(6n+3) { border-top-color: #a06cf5; }
.fms-grid .fms-card:nth-child(6n+4) { border-top-color: #2fbf9b; }
.fms-grid .fms-card:nth-child(6n+5) { border-top-color: #f2604d; }
.fms-grid .fms-card:nth-child(6n)   { border-top-color: #e05a9e; }
.fms-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.35;
  color: #0f2a4a;
}
.fms-card p { font-size: 0.93rem; color: #3d5a78; margin: 0 0 8px; }
.fms-card ul { background: none; border: none; box-shadow: none; padding: 0 0 4px 1.1rem; }
.fms-card ul li::before { display: none; }

/* Numbered step cards */
.fms-steps { counter-reset: fmsstep; }
.fms-steps .fms-card { counter-increment: fmsstep; }
.fms-steps .fms-card h3::before {
  content: counter(fmsstep, decimal-leading-zero);
  display: inline-block;
  background: linear-gradient(120deg, #38bdf8, #6366f1);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 8px;
  padding: 2px 8px;
  margin-right: 9px;
  vertical-align: 2px;
}

/* ---------- Lists as checklist cards ---------- */
.fms-sec > ul,
.fms-sec > ol {
  background: #ffffff;
  border: 1px solid #e1efff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.07);
  padding: 10px 18px 10px 42px;
  list-style: none;
}
.fms-sec > ul li,
.fms-sec > ol li { position: relative; padding: 5px 0; color: #3d5a78; }
.fms-sec > ul li::before,
.fms-sec > ol li::before {
  content: "\2713";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(120deg, #2fbf9b, #0a7d4f);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Images ---------- */
.fms-home figure.wp-block-image img {
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.16);
}
.fms-home figure.wp-block-image figcaption {
  text-align: center;
  color: #6d87a0;
  font-size: 0.86rem;
  margin-top: 9px;
}

/* ---------- Comparison table ---------- */
.fms-home figure.wp-block-table {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.09);
}
.fms-home .fms-sec > figure.wp-block-table { margin: 14px 0 6px; }
.fms-home figure.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  margin: 0;
}
.fms-home figure.wp-block-table th {
  background: linear-gradient(120deg, #38bdf8, #6366f1);
  color: #fff;
  text-align: left;
  padding: 12px;
  font-size: 0.92rem;
}
.fms-home figure.wp-block-table td {
  padding: 11px 12px;
  border-top: 1px solid #e6f1fd;
  color: #3d5a78;
  font-size: 0.92rem;
}

/* ---------- FAQ accordion ---------- */
details.fms-faq {
  background: #ffffff;
  border: 1px solid #e1efff;
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 0 7px;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.06);
}
details.fms-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f2a4a;
  font-size: 1rem;
}
details.fms-faq p { margin: 10px 0 2px; color: #3d5a78; font-size: 0.95rem; }

/* ---------- Heading colour lock (exactly the approved preview) ----------
   Kadence's own heading styles load after this file, so the heading colour
   is locked here with strong selectors to the preview's dark navy ink. */
body.fms-designed .fms-home h1,
body.fms-designed .fms-home h2,
body.fms-designed .fms-home h3,
body.fms-designed .fms-home details.fms-faq summary {
  color: #0f2a4a !important;
}
body.fms-designed .fms-home h1 .fms-grad {
  background: linear-gradient(120deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* ---------- Compact spacing (v1.1.2) ----------
   The page felt too open: Kadence adds large margins around the content
   area and inside the boxed wrapper. Tightened for the homepage only. */
body.fms-designed .content-area { margin-top: 1.2rem !important; margin-bottom: 1.8rem !important; }
body.fms-designed .entry-content-wrap { padding: 1.2rem 1.5rem !important; }
@media (max-width: 640px) {
  body.fms-designed .entry-content-wrap { padding: 0.9rem 0.8rem !important; }
}
body.fms-designed .fms-home > h1 { margin-top: 0.1rem; margin-bottom: 0.45rem; }
body.fms-designed .fms-home > .fms-tool { margin-top: 0.6rem; }
body.fms-designed .fms-home .fms-sec p,
body.fms-designed .fms-home > p { margin-bottom: 0.65rem; }

/* ---------- Tighter cards (v1.1.3) ----------
   Cards in a row no longer stretch to the tallest card, so short cards
   stop showing a big empty white area under their text. */
body.fms-designed .fms-home .fms-card h3 { margin-bottom: 4px; }
body.fms-designed .fms-home .fms-card p { margin-bottom: 0.4rem; line-height: 1.5; }

/* ---------- Side containment (v1.1.4) ----------
   The article was running almost edge-to-edge on wide screens. The whole
   homepage content now sits in a centred 1120px container, and plain text
   (paragraphs, lists, FAQ, images) in a narrower centred 880px column,
   so both sides get proper breathing room like the competitor sites. */
body.fms-designed .fms-home { max-width: 1120px; margin-left: auto; margin-right: auto; }
body.fms-designed .fms-home > p,
body.fms-designed .fms-home .fms-sec > p,
body.fms-designed .fms-home .fms-sec > h3,
body.fms-designed .fms-home .fms-sec > ul,
body.fms-designed .fms-home .fms-sec > ol,
body.fms-designed .fms-home figure.wp-block-image,
body.fms-designed .fms-home details.fms-faq {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
body.fms-designed .fms-home figure.wp-block-image img { width: 100%; }

/* ---------- Equal, polished cards (v1.2.0) ----------
   Every row of cards is level again (equal heights), a lone last-row card
   sits in the centre instead of a corner, and each card carries a small
   gradient bar anchored to its bottom so the card looks finished rather
   than like an empty box. Cards also lift slightly on hover. */
body.fms-designed .fms-home .fms-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.fms-designed .fms-home .fms-card::after {
  content: "";
  display: block;
  width: 30px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(120deg, #38bdf8, #6366f1);
  opacity: 0.55;
  margin-top: auto;
}
body.fms-designed .fms-home .fms-card > :last-child { margin-bottom: 10px; }
@media (hover: hover) {
  body.fms-designed .fms-home .fms-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
  }
}
@media (min-width: 1025px) {
  body.fms-designed .fms-home .fms-grid > .fms-card:last-child:nth-child(3n+1) { grid-column: 2; }
}
