/* ============================================================
   Social-Fame — footer-menu pages (About, How it works, Reviews,
   FAQ, Contact, Terms, Privacy, Refunds, Legal). Loaded after
   styles.css; the wrapper carries .ip plus one layout class:
     .ip--legal    sticky contents rail (21st.dev "Table of Contents",
                   built by info-pages.js) + hairline-ruled sections
     .ip--about    bento grid, "How we're different" as check tiles
     .ip--steps    intro + 2×2 numbered step cards + check tiles
     .ip--contact  split card: intro left, form right
     .ip--faq      sticky title + CTA left, accordion right
     .ip--reviews  score header + masonry review wall
   Page text is unchanged; only layout lives here.
   ============================================================ */
.ip {
  --hair: rgba(0,0,0,.08);
  --soft: #FAFAFA;
  --ease: cubic-bezier(.2,.7,.2,1);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  flex: 1;
  width: 100%;
  max-width: 1232px;
  min-height: 0;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) clamp(64px, 8vw, 112px);
  line-height: 1.6;
  overflow-x: clip;
}
.ip .sl4-article { max-width: none; padding: 0; }

/* ---------- page title band (grid pattern fading out, like the homepage intro) ---------- */
.ip .sl4-title,
.ip .sl3-head,
.ip .rv-head {
  position: relative;
  isolation: isolate;
  margin: 0 0 clamp(28px, 4vw, 48px);
  padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--hair);
}
.ip .sl4-title::before,
.ip .sl3-head::before,
.ip .rv-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -48px;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 20% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 90% at 20% 0%, #000 20%, transparent 100%);
}
.ip .sl4-title,
.ip .sl3-title,
.ip .rv-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.ip .sl4-rte { font-size: 15.5px; color: var(--text-2); }
.ip .sl4-rte h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.9vw, 23px); letter-spacing: -.02em; color: var(--ink); margin: 0 0 12px; }
.ip .sl4-rte a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.ip .sl4-card { background: var(--white); border-radius: 0; padding: 0; }

/* check tiles: any <ul> inside an about/steps card becomes a tile grid */
.ip--about .sl4-rte ul,
.ip--steps .sl4-rte ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
}
.ip--about .sl4-rte li,
.ip--steps .sl4-rte li {
  position: relative;
  margin: 0;
  padding: 58px 18px 18px;
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: var(--soft);
  font-size: 14.5px;
  line-height: 1.55;
}
.ip--about .sl4-rte li::before,
.ip--steps .sl4-rte li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--check) center / 15px no-repeat, var(--pink);
}
.ip--about .sl4-rte li strong,
.ip--steps .sl4-rte li strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 16px; color: var(--ink); }

/* ---------- legal pages: contents rail + ruled sections ---------- */
.ip--legal .sl4-article {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 72px);
}
.ip--legal .sl4-title { grid-column: 1 / -1; }
.ip--legal .sl4-rte { grid-column: 2; display: block; max-width: 760px; }
.ip--legal .sl4-card { padding: 30px 0; border-top: 1px solid var(--hair); scroll-margin-top: 96px; }
.ip--legal .sl4-card:first-child {
  padding: 24px 26px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--soft);
  margin-bottom: 18px;
}
.ip--legal .sl4-card:first-child + .sl4-card { border-top: 0; }
.ip--legal .sl4-rte p { margin: 0 0 14px; }
.ip--legal .sl4-rte ul { margin: 0 0 14px; padding-left: 20px; }
.ip--legal .sl4-rte li { margin: 0 0 9px; padding-left: 4px; }
.ip--legal .sl4-rte li::marker { color: var(--pink); }
.ip-toc {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100svh - 120px);
  overflow-y: auto;
}
.ip-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hair); }
.ip-toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-3);
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.ip-toc a:hover { color: var(--ink); }
.ip-toc a[aria-current="true"] { border-left-color: var(--pink); color: var(--ink); font-weight: 500; }

/* ---------- about: bento ---------- */
.ip--about .sl4-rte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}
.ip--about .sl4-card { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--hair); border-radius: 24px; }
.ip--about .sl4-card:first-child,
.ip--about .sl4-card:has(ul) { grid-column: 1 / -1; }
.ip--about .sl4-card:first-child p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.42;
  letter-spacing: -.018em;
  color: var(--ink);
}
.ip--about .sl4-card:first-child {
  border-color: transparent;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(213,0,109,.10), transparent 60%),
    var(--soft);
}
.ip--about .sl4-rte p { margin: 0 0 12px; }
.ip--about .sl4-card > :last-child { margin-bottom: 0; }

/* ---------- how it works: numbered step cards ---------- */
.ip--steps .sl4-rte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ip--steps .sl4-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--hair);
  border-radius: 24px;
}
.ip--steps .sl4-card:first-child,
.ip--steps .sl4-card:last-child { grid-column: 1 / -1; }
.ip--steps .sl4-card:first-child { border-color: transparent; background: var(--soft); }
.ip--steps .sl4-card:first-child p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.42;
  letter-spacing: -.018em;
  color: var(--ink);
}
/* step cards (headings already carry "1." … "4."): pink rule along the top */
.ip--steps .sl4-card:not(:first-child):not(:last-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(24px, 3vw, 34px);
  width: 40px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--pink);
  transition: width .3s var(--ease);
}
.ip--steps .sl4-card:not(:first-child):not(:last-child):hover::before { width: 88px; }
.ip--steps .sl4-rte p { margin: 0; }
.ip--steps .sl4-card:last-child p { margin-top: 22px; }
.ip--steps .sl4-card:last-child p a,
.ip--about .sl4-card:last-child p:last-child a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, transform .2s var(--ease);
}
.ip--steps .sl4-card:last-child p a:hover,
.ip--about .sl4-card:last-child p:last-child a:hover { background: var(--pink); transform: translateY(-2px); }
.ip--steps .sl4-card:last-child li { padding-top: 18px; padding-left: 58px; }
.ip--steps .sl4-card:last-child li::before { top: 50%; transform: translateY(-50%); }
.ip--steps .sl4-card:last-child li { display: flex; align-items: center; min-height: 64px; padding-bottom: 18px; }

/* ---------- contact: split card ---------- */
.ip--contact .sl4-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px clamp(28px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--hair);
  border-radius: 28px;
  background:
    radial-gradient(50% 80% at 0% 0%, rgba(213,0,109,.08), transparent 60%),
    var(--white);
}
.ip--contact .sl4-card > p:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
  letter-spacing: -.015em;
  color: var(--ink);
}
.ip--contact .sl4-form { grid-column: 2; margin: 0; }
.ip--contact #cf-status { grid-column: 2; margin: 0; }
.ip .sl4-form label { font-size: 13.5px; font-weight: 500; }
.ip .sl4-form input,
.ip .sl4-form textarea {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.ip .sl4-form input:focus,
.ip .sl4-form textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(213,0,109,.12); }
.ip .sl4-form button {
  min-height: 52px;
  padding: 0 30px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 14px 30px -14px rgba(213,0,109,.8);
}

/* ---------- faq: sticky side + accordion ---------- */
.ip--faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-areas: "head head" "side list";
  column-gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.ip--faq .sl3-head { grid-area: head; max-width: none; text-align: left; }
.ip--faq .sl3-sub { margin: 16px 0 0; max-width: 56ch; font-size: clamp(15.5px, 1.4vw, 18px); }
.ip--faq .sl3-list { grid-area: list; max-width: none; margin: 0; padding: 0; gap: 10px; }
.ip--faq .sl3-cta {
  grid-area: side;
  position: sticky;
  top: 96px;
  margin: 0;
  padding: 28px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--white);
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}
.ip--faq .sl3-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(80% 90% at 100% 0%, rgba(213,0,109,.5), transparent 60%);
}
.ip--faq .sl3-cta h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 10px; }
.ip--faq .sl3-cta p { color: rgba(255,255,255,.72); margin: 0 0 22px; }
.ip--faq .sl3-cta-btn { min-height: 48px; padding: 0 24px; font-family: var(--font-display); font-size: 16px; font-weight: 500; box-shadow: 0 14px 30px -14px rgba(213,0,109,.9); }
.ip--faq .sl3-item { border: 1px solid var(--hair); border-radius: 18px; background: var(--white); transition: border-color .25s, box-shadow .25s; }
.ip--faq .sl3-item[open] { background: var(--white); border-color: rgba(213,0,109,.3); box-shadow: 0 18px 36px -26px rgba(213,0,109,.6); }
.ip--faq .sl3-q { padding: 18px 20px 18px 22px; font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.ip--faq .sl3-q::after,
.ip--faq .sl3-item[open] .sl3-q::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  font-size: 0;
  background:
    linear-gradient(var(--pink), var(--pink)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--pink), var(--pink)) center / 1.6px 12px no-repeat;
  transition: background-color .25s, transform .25s var(--ease);
}
.ip--faq .sl3-item[open] .sl3-q::after {
  border-color: var(--pink);
  background:
    linear-gradient(#fff, #fff) center / 12px 1.6px no-repeat,
    var(--pink);
}
.ip--faq .sl3-q:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 18px; }
.ip--faq .sl3-ans { padding: 0 22px 20px; font-size: 15px; max-width: 70ch; }
.ip--faq .sl3-item[open] .sl3-ans { animation: ip-in .3s var(--ease); }
@keyframes ip-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* "Popular services" under the FAQ list: chip links across the full width */
.ip--faq .sl3-links { grid-column: 1 / -1; max-width: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 28px 0 0; border-top: 1px solid var(--hair); text-align: left; }
.ip--faq .sl3-links h2 { font-size: 20px; margin: 0 0 14px; }
.ip--faq .sl3-links ul { justify-content: flex-start; gap: 8px; }
.ip--faq .sl3-links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--hair); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; transition: border-color .2s, color .2s; }
.ip--faq .sl3-links a:hover { border-color: var(--pink); color: var(--pink); }
/* related-links card (Reviews and other info pages): chips */
.ip .sl4-links ul { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; }
.ip .sl4-links li { padding: 14px 16px 14px 46px !important; background: var(--white) !important; }
.ip .sl4-links li::before { top: 50% !important; left: 14px !important; width: 22px !important; height: 22px !important; transform: translateY(-50%); background-size: 12px !important; }
.ip .sl4-links li a { color: var(--ink); text-decoration: none; font-weight: 500; }
.ip .sl4-links li a:hover { color: var(--pink); }

/* ---------- reviews: score header + masonry wall ---------- */
.ip--reviews .rv-head { max-width: none; text-align: left; }
.ip--reviews .rv-title { white-space: normal; }
.ip--reviews .rv-summary { justify-content: flex-start; margin-top: 22px; }
.ip--reviews .rv-score { font-family: var(--font-display); font-weight: 700; font-size: 40px; }
.rv-wall { column-count: 3; column-gap: 16px; }
.rv-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 22px;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--white);
  transition: border-color .25s, box-shadow .25s;
}
.rv-card:hover { border-color: rgba(213,0,109,.28); box-shadow: 0 20px 40px -28px rgba(213,0,109,.6); }
.rv-quote { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.rv-who { display: flex; align-items: center; gap: 12px; }
.rv-card .rv-savatar { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
.rv-card .rv-sid b { font-size: 15px; }
.rv-card .rv-sfoot { margin-top: 0; padding-top: 14px; }
.ip--reviews .rv-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: clamp(36px, 6vw, 64px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--white);
}
.ip--reviews .rv-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(60% 90% at 50% 120%, rgba(213,0,109,.55), transparent 70%);
}
.ip--reviews .rv-cta-btn { min-height: 52px; padding: 0 30px; font-family: var(--font-display); font-size: 16px; font-weight: 500; box-shadow: 0 14px 30px -14px rgba(213,0,109,.9); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .ip--legal .sl4-article { display: block; }
  .ip-toc { display: none; }
  .ip--about .sl4-rte ul,
  .ip--steps .sl4-rte ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-wall { column-count: 2; }
  .ip--faq { grid-template-columns: 1fr; grid-template-areas: "head" "list" "side"; }
  .ip--faq .sl3-cta { position: static; margin-top: 28px; }
}
@media (max-width: 700px) {
  .ip--about .sl4-rte,
  .ip--steps .sl4-rte,
  .ip--contact .sl4-card { grid-template-columns: 1fr; }
  .ip--contact .sl4-card > p:first-child,
  .ip--contact .sl4-form,
  .ip--contact #cf-status { grid-column: 1; grid-row: auto; }
  .ip--about .sl4-rte ul,
  .ip--steps .sl4-rte ul { grid-template-columns: 1fr; }
  .ip--about .sl4-card, .ip--steps .sl4-card { border-radius: 20px; }
  .rv-wall { column-count: 1; }
  .ip .sl4-form button { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .ip--faq .sl3-item[open] .sl3-ans { animation: none; }
}
