/* ==========================================================================
   Shared Components
   ========================================================================== */

/* ---- Buttons -------------------------------------------------------------
   .btn            base
   .btn-blue       filled var(--color-blue)  -> hover: darkblue bg / white text
   .btn-darkblue   filled var(--color-darkblue) -> hover: darkblue bg / white text (no visible change, kept for source fidelity)
   .btn--cta       EXCEPTION (CTA section only): hover -> white bg / darkblue text
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
  font-size: clamp(15px, calc(15px + (22 - 15) * ((100vw - 375px) / (1440 - 375))), 22px);
  line-height: 1.45;
  padding: clamp(12px, calc(12px + (22 - 12) * ((100vw - 375px) / (1440 - 375))), 22px)
           clamp(20px, calc(20px + (38 - 20) * ((100vw - 375px) / (1440 - 375))), 38px);
}
.btn:active { transform: scale(0.98); }
@media (max-width: 767px) {
  .btn { border-radius: 10px; }
}

.btn-blue { background: var(--color-blue); color: var(--color-white); }
.btn-darkblue { background: var(--color-darkblue); color: var(--color-white); }
.btn-blue:hover, .btn-darkblue:hover { background: var(--color-darkblue); color: var(--color-white); }

.btn-pill {
  border-radius: 500px;
  padding: 14px 20px;
  font-size: clamp(14px, calc(14px + (18 - 14) * ((100vw - 375px) / (1440 - 375))), 18px);
}
@media (min-width: 1024px) {
  .btn-pill {
    border-radius: 500px;
    padding: 14px 20px;
    font-size: clamp(14px, calc(14px + (18 - 14) * ((100vw - 375px) / (1440 - 375))), 16px);
  }
}

/* CTA section exception: hover inverts to white bg / darkblue text */
.btn--cta:hover { background: var(--color-white) !important; color: var(--color-darkblue) !important; }

/* ---- Badge / pill tag (main-title_tag) ------------------------------------ */
.badge-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--color-darkblue);
  border-radius: 50px;
  background: var(--color-white);
  color: var(--color-darkblue);
  font-weight: 500;
  white-space: nowrap;
  padding: clamp(5px, calc(5px + (0) * ((100vw - 375px) / (1440 - 375))), 5px) clamp(9px, calc(9px + (12 - 9) * ((100vw - 375px) / (1440 - 375))), 12px);
  font-size: clamp(11px, calc(11px + (16 - 11) * ((100vw - 375px) / (1440 - 375))), 16px);
}
@media (min-width: 1024px) {
  .badge-tag {
    padding: clamp(7px, calc(5px + (0) * ((100vw - 375px) / (1440 - 375))), 5px) clamp(9px, calc(9px + (12 - 9) * ((100vw - 375px) / (1440 - 375))), 14px);
    font-size: clamp(11px, calc(11px + (16 - 11) * ((100vw - 375px) / (1440 - 375))), 16px);
    line-height: normal;
  }
}

/* ---- Repeated section title block (section-title / Frame238 / TitleMo) --- */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, calc(12px + (30 - 12) * ((100vw - 375px) / (1440 - 375))), 30px);
  text-align: center;
  width: 100%;
}
.section-title__badge { margin: 0 auto; }
.section-title__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, calc(8px + (24 - 8) * ((100vw - 375px) / (1440 - 375))), 24px);
}
.section-title__heading {
  font-weight: 700;
  color: var(--color-black);
  font-size: clamp(20px, calc(20px + (34 - 20) * ((100vw - 375px) / (1440 - 375))), 34px);
  line-height: 1.35;
}
.section-title__desc {
  font-weight: 400;
  color: var(--color-grey-900);
  font-size: clamp(14px, calc(14px + (18 - 14) * ((100vw - 375px) / (1440 - 375))), 18px);
  line-height: 1.45;
}

/* ---- Case comparison card (Frame197 / Frame286 / Frame398 pattern) ------- */
.case-card {
  width: 100%;
  max-width: 900px;
  background: var(--color-white);
  border: 1px solid var(--color-bluegrey-300);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, calc(14px + (26 - 14) * ((100vw - 375px) / (1440 - 375))), 26px);
  padding: clamp(18px, calc(18px + (30 - 18) * ((100vw - 375px) / (1440 - 375))), 30px)
           clamp(16px, calc(16px + (39 - 16) * ((100vw - 375px) / (1440 - 375))), 39px);
}
.case-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.case-card__num {
  font-weight: 600;
  color: var(--color-darkblue);
  font-size: clamp(12px, calc(12px + (20 - 12) * ((100vw - 375px) / (1440 - 375))), 20px);
}
.case-card__title {
  font-weight: 700;
  color: var(--color-black);
  font-size: clamp(16px, calc(16px + (25 - 16) * ((100vw - 375px) / (1440 - 375))), 25px);
  line-height: 1.35;
  margin-top: 4px;
}
.case-card__chip {
  flex-shrink: 0;
  background: var(--color-skyblue);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 37px;
  white-space: nowrap;
  font-size: clamp(11px, calc(11px + (18 - 11) * ((100vw - 375px) / (1440 - 375))), 18px);
  padding: clamp(4px, calc(4px + (7 - 4) * ((100vw - 375px) / (1440 - 375))), 7px)
           clamp(9px, calc(9px + (16 - 9) * ((100vw - 375px) / (1440 - 375))), 16px);
}
.case-card__compare {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.case-card__col { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.case-card__label { font-weight: 700; font-size: clamp(14px, calc(14px + (22 - 14) * ((100vw - 375px) / (1440 - 375))), 22px); }
.case-card__label--miss { color: var(--color-red); }
.case-card__label--now { color: var(--color-blue); }
.case-card__text { font-weight: 400; color: var(--color-grey-900); font-size: clamp(13px, calc(13px + (16 - 13) * ((100vw - 375px) / (1440 - 375))), 16px); line-height: 1.5; }
.case-card__divider { flex-shrink: 0; width: 1px; align-self: stretch; background: var(--color-bluegrey-300); }

/* ---- Success story card (Frame257 / Frame258 / Frame259 / Frame260 / Frame261 - 264 pattern) ----
   Measured px — MO(375) 375→768 slopes in the mobile media query below; TA(768) and PC(1440)
   share identical px values in this component, so the >=768px default rules are flat (no clamp
   needed there). ---------------------------------------------------------------------------- */
.story-card { width: 100%; max-width: 531px; border-radius: 20px; overflow: hidden; border: 1px solid var(--color-bluegrey-300); display: flex; flex-direction: column; }
.story-card__top { flex: 1 1 auto; background: var(--color-white); display: flex; align-items: flex-start; gap: 32px; padding: 28px; }
.story-card__text { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.story-card__thumb { flex-shrink: 0; border: 1px solid var(--color-bluegrey-500); width: 38%; height: auto; object-fit: cover; }
@media (min-width: 1024px) {
  .story-card__thumb { width: 32%; }
}
.story-card__title { font-weight: 700; color: var(--color-black); font-size: 20px; line-height: 1.5; word-break: keep-all; }
.story-card__desc { font-weight: 400; color: var(--color-grey-900); font-size: 16px; line-height: 1.5; word-break: keep-all; }
.story-card__bottom { background: var(--color-darkblue); color: var(--color-white); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; padding: 15.5px 32px; font-size: 28px; line-height: 1.4; }
.story-card__arrow { flex-shrink: 0; }
.story-card__amount { text-align: right; }

@media (max-width: 767px) {
  .story-card { border-radius: clamp(12.81px, calc(12.81px + (20 - 12.81) * ((100vw - 375px) / (768 - 375))), 20px); }
  .story-card__top { gap: clamp(20px, calc(20px + (32 - 20) * ((100vw - 375px) / (768 - 375))), 32px); padding: clamp(20px, calc(20px + (32 - 20) * ((100vw - 375px) / (768 - 375))), 32px); }
  .story-card__text { gap: clamp(8px, calc(8px + (12 - 8) * ((100vw - 375px) / (768 - 375))), 12px); }
  .story-card__thumb { width: clamp(103px, calc(103px + (161 - 103) * ((100vw - 375px) / (768 - 375))), 161px); height: clamp(131px, calc(131px + (204 - 131) * ((100vw - 375px) / (768 - 375))), 204px); }
  .story-card__title { font-size: clamp(14.3px, calc(14.3px + (22 - 14.3) * ((100vw - 375px) / (768 - 375))), 22px); }
  .story-card__desc { font-size: clamp(12.1px, calc(12.1px + (17.6 - 12.1) * ((100vw - 375px) / (768 - 375))), 17.6px); }
  .story-card__bottom { padding: clamp(9.5px, calc(9.5px + (15.5 - 9.5) * ((100vw - 375px) / (768 - 375))), 15.5px) clamp(20px, calc(20px + (32 - 20) * ((100vw - 375px) / (768 - 375))), 32px); font-size: clamp(18px, calc(18px + (28 - 18) * ((100vw - 375px) / (768 - 375))), 28px); }
}

/* ---- FAQ accordion (Component12) ------------------------------------------ */
.faq-item { width: 100%; max-width: 800px; background: var(--color-white); border: 1px solid var(--color-bluegrey-300); border-radius: 20px; padding: clamp(16px,calc(16px + (20 - 16)*((100vw - 375px)/(1440 - 375))),20px) clamp(20px,calc(20px + (36 - 20)*((100vw - 375px)/(1440 - 375))),36px); transition: border-color .2s ease; }
.faq-item__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding-left: 0; padding-right: 0; text-align: left; background: none; border: none; cursor: pointer; }
.faq-item__q-text { font-weight: 600; color: var(--color-grey-900); font-size: clamp(15px,calc(15px + (20 - 15)*((100vw - 375px)/(1440 - 375))),20px); }
.faq-item__icon { flex-shrink: 0; width: clamp(11.2px,calc(11.2px + (16 - 11.2)*((100vw - 375px)/(1440 - 375))),16px); height: clamp(11.2px,calc(11.2px + (16 - 11.2)*((100vw - 375px)/(1440 - 375))),16px); position: relative; transition: transform .3s ease; }
@media (max-width: 767px) {
  .faq-item__icon { align-self: flex-start; margin-top: 3px; }
}
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; background: var(--color-grey-900); border-radius: 2px; }
.faq-item__icon::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-item__icon::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); transition: opacity .2s ease; }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item.is-open { border-color: var(--color-blue); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item__a-inner { padding-top: clamp(12px,calc(12px + (16 - 12)*((100vw - 375px)/(1440 - 375))),16px); color: var(--color-grey-900); font-weight: 400; font-size: clamp(14px,calc(14px + (16 - 14)*((100vw - 375px)/(1440 - 375))),16px); line-height: 1.55; }
@media (max-width: 767px) {
  .faq-item { border-radius: 10px; }
}

/* ---- Lawyer profile card (Frame220 / Frame68 / Frame84) ------------------- */
.profile-card { background: var(--color-white); border: 1px solid var(--color-bluegrey-300); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; padding: 20px; }
.profile-card__title { font-weight: 700; color: var(--color-darkblue); font-size: clamp(16px,calc(16px + (22 - 16)*((100vw - 375px)/(1440 - 375))),22px); line-height: 1.4; }
.profile-card__desc { font-weight: 400; color: var(--color-grey-900); font-size: clamp(14px,calc(14px + (18 - 14)*((100vw - 375px)/(1440 - 375))),18px); }

.lawyer-card { display: flex; align-items: center; gap: 7.6px; background: var(--color-white); border: 0.76px solid var(--color-bluegrey-300); border-radius: 10px; padding: 16px; }
.lawyer-card__photo { flex-shrink: 0; width: 89px; height: 89px; border-radius: 6px; overflow: hidden; }
.lawyer-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.lawyer-card__name { font-weight: 600; color: var(--color-black); font-size: 16px; }
.lawyer-card__role { font-weight: 500; color: var(--color-darkblue); font-size: 11px; }

/* ---- Content list card (Frame214 pattern) --------------------------------- */
.content-card { width: 100%; max-width: 531px; background: var(--color-white); border: 1px solid var(--color-bluegrey-300); border-radius: 20px; padding: clamp(24px,calc(24px + (45 - 24)*((100vw - 375px)/(1440 - 375))),45px) clamp(20px,calc(20px + (35 - 20)*((100vw - 375px)/(1440 - 375))),35px) clamp(24px,calc(24px + (45 - 24)*((100vw - 375px)/(1440 - 375))),45px); display: flex; flex-direction: column; gap: clamp(18px,calc(18px + (30 - 18)*((100vw - 375px)/(1440 - 375))),30px); }
.content-card__eyebrow { font-weight: 600; color: var(--color-blue); font-size: clamp(15px,calc(15px + (20 - 15)*((100vw - 375px)/(1440 - 375))),20px); }
.content-card__title { font-weight: 700; color: var(--color-darkblue); font-size: clamp(22px,calc(22px + (34 - 22)*((100vw - 375px)/(1440 - 375))),34px); line-height: 1.35; }
.content-card__list { display: flex; flex-direction: column; gap: clamp(10px,calc(10px + (16 - 10)*((100vw - 375px)/(1440 - 375))),16px); }
.content-card__list li { position: relative; padding-left: 18px; font-weight: 400; color: var(--color-black); font-size: clamp(14px,calc(14px + (20 - 14)*((100vw - 375px)/(1440 - 375))),20px); line-height: 1.4; }
.content-card__list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
