/* Inner pages (services, case-studies, how-we-work, about, faq, contact) — same look as the homepage:
   3D picture in the hero, Phosphor icon tiles, soft cards, navy closing band. Prefix ip-. */

.ip-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 110px);
  background: linear-gradient(90deg, #ecf6fd 0%, #ecf6fd 50%, #c8e2fa 100%);
}

.ip-hero__art {
  position: absolute;
  top: -20px;
  bottom: -20px;
  right: clamp(-80px, calc((100vw - 1180px) / 2 - 140px), 300px);
  aspect-ratio: 1672 / 941;
  background: url("../../images/hero-wide.webp") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%, #000 85%, transparent 100%), linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 35%, #000 85%, transparent 100%), linear-gradient(180deg, #000 72%, transparent 100%);
  mask-composite: intersect;
}

.ip-hero .container {
  position: relative;
  z-index: 1;
}

.ip-hero__copy {
  max-width: 640px;
}

.ip-hero h1 {
  max-width: none;
  font-size: clamp(2.15rem, 4.2vw, 3.5rem);
}

.ip-hero h1 em {
  color: var(--ocean-600);
  font-style: normal;
}

.ip-hero .lead {
  max-width: 560px;
}

.ip-hero .button-group {
  margin-top: 28px;
}

/* cards with an icon tile */
.ip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ip-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ip-card {
  height: 100%;
  padding: clamp(24px, 3vw, 32px);
  border: var(--border);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: 0 14px 34px -26px rgba(6, 23, 42, .4);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ip-card:hover {
  box-shadow: 0 22px 40px -26px rgba(6, 23, 42, .5);
  transform: translateY(-3px);
}

.ip-card h3 {
  margin: 0 0 8px;
}

.ip-card p,
.ip-card li {
  color: var(--muted);
}

.ip-card ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.ip-card li + li {
  margin-top: 6px;
}

.ip-card--feature {
  border-color: #a7deba;
  box-shadow: 0 22px 44px -28px rgba(22, 163, 74, .45);
}

.ip-tile {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #eaf4fc, #e3f6ec);
}

.ip-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: 99px;
  background: #e8f7ee;
  color: #12723a;
  font-size: .8125rem;
  font-weight: var(--weight-semibold);
}

.ip-tag--blue {
  background: #e6f2fb;
  color: var(--ocean-700);
}

.ip-fit {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: var(--border);
  font-size: .9375rem;
}

/* compare table */
.ip-compare {
  width: 100%;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
}

.ip-compare th,
.ip-compare td {
  padding: 14px 18px;
  border-bottom: var(--border);
  text-align: left;
}

.ip-compare tr:last-child td {
  border-bottom: 0;
}

.ip-compare thead th {
  background: var(--surface);
  color: var(--navy-950);
}

.ip-compare td:not(:first-child),
.ip-compare th:not(:first-child) {
  width: 22%;
  text-align: center;
}

.ip-yes { color: #16a34a; font-weight: var(--weight-semibold); }
.ip-no { color: var(--line-strong); }

.ip-table-wrap {
  overflow-x: auto;
}

/* steps: an icon per step with a small step label */
.ip-steps {
  display: grid;
  max-width: 820px;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ip-steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 18px;
  padding: 22px 24px;
  border: var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.ip-step-icon {
  display: grid;
  width: 56px;
  height: 56px;
  grid-row: span 3;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #eaf4fc, #e3f6ec);
}

.ip-step-no {
  color: var(--ocean-700);
  font-size: .8125rem;
  font-weight: var(--weight-semibold);
}

.ip-steps h3 { margin: 2px 0 4px; }
.ip-steps p { margin: 0; color: var(--muted); }

.ip-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ip-link {
  margin: 0 0 6px;
  font-weight: var(--weight-semibold);
}

/* mini chat for the examples page */
.ip-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  border: var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.ip-example + .ip-example {
  margin-top: 24px;
}

.ip-example ol {
  margin: 14px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.ip-example li + li { margin-top: 6px; }

.ip-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  background: #eef3f8;
}

.ip-chat p {
  max-width: 85%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: .9375rem;
  line-height: 1.45;
}

.ip-chat .in { align-self: flex-start; border-bottom-left-radius: 6px; background: #fff; color: var(--ink); }
.ip-chat .out { align-self: flex-end; border-bottom-right-radius: 6px; background: #16a34a; color: #fff; }
.ip-chat .chip { align-self: center; border: 1px solid #a7deba; border-radius: 99px; background: #e8f7ee; color: var(--navy-950); font-size: .8125rem; }

.ip-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: .875rem;
}

/* FAQ */
.ip-faq-group + .ip-faq-group {
  margin-top: 44px;
}

.ip-faq-group h2 {
  margin-bottom: 18px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.ip-faq details {
  margin-bottom: 12px;
  padding: 18px 22px;
  border: var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.ip-faq summary {
  color: var(--navy-950);
  cursor: pointer;
  font-weight: var(--weight-semibold);
}

.ip-faq details p { margin: 10px 0 0; color: var(--muted); }

.ip-faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.ip-faq-nav a {
  padding: 8px 16px;
  border: var(--border-strong);
  border-radius: 99px;
  background: #fff;
  color: var(--navy-950);
  text-decoration: none;
}

/* closing band — same as the homepage */
.ip-cta {
  padding: 88px 0;
  background:
    radial-gradient(ellipse 60% 120% at 50% 120%, rgba(33, 193, 223, .28), transparent 60%),
    radial-gradient(ellipse 40% 90% at 85% -20%, rgba(22, 163, 74, .22), transparent 60%),
    var(--navy-950);
  color: #fff;
  text-align: center;
}

.ip-cta h2 { max-width: none; margin: 0 0 10px; color: #fff; }
.ip-cta p { margin: 0 auto 26px; color: #b8c7d6; }
.ip-cta .button { background: #fff; color: var(--navy-950); }
.ip-cta .button--secondary { border-color: rgba(255, 255, 255, .4); background: transparent; color: #fff; }
.ip-cta .button-group { justify-content: center; }

@media (max-width: 900px) {
  .ip-grid, .ip-grid--4 { grid-template-columns: 1fr; }
  .ip-grid--2 { grid-template-columns: 1fr; }
  .ip-example { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .ip-hero__art { display: none; }
  .ip-hero { background: linear-gradient(180deg, #ecf6fd, #ddeefb); }
  .ip-steps li { padding: 18px; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; }
  .ip-step-icon { width: 48px; height: 48px; }
}

/* five steps side by side on wide screens (icon on top), a list on smaller ones */
@media (min-width: 1000px) {
  .ip-steps {
    max-width: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ip-steps li {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .ip-step-icon {
    grid-row: auto;
    margin-bottom: 16px;
  }

  .ip-steps h3 {
    font-size: 1.125rem;
  }

  .ip-steps p {
    font-size: .9375rem;
  }
}

@media (max-width: 1100px) {
  .ip-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* compare table on phones: narrow tick columns, no sideways scrolling */
@media (max-width: 600px) {
  .ip-compare th,
  .ip-compare td {
    padding: 12px 10px;
    font-size: .875rem;
  }

  .ip-compare {
    table-layout: fixed;
  }

  .ip-compare td:not(:first-child),
  .ip-compare th:not(:first-child) {
    width: 80px;
    padding-inline: 4px;
  }

  .ip-compare thead th:not(:first-child) {
    font-size: .8125rem;
  }
}

/* about: story, problem → fix cards, what the shop gets */
.ip-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}

.ip-story .section-heading {
  margin: 0;
}

.ip-story__text {
  padding-left: clamp(18px, 3vw, 32px);
  border-left: 4px solid #16a34a;
}

.ip-story__text p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

.ip-story__text p:last-child {
  margin: 0;
  color: var(--navy-950);
  font-weight: var(--weight-semibold);
}

.ip-tag--warn {
  background: #fdeeee;
  color: #b42318;
}

.ip-fix {
  margin-top: 18px;
  padding-top: 16px;
  border-top: var(--border);
}

.ip-fix p {
  margin: 0;
  color: var(--navy-950) !important;
  font-weight: var(--weight-semibold);
}

.ip-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  max-width: 980px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ip-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border: var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.ip-checks li .ph {
  flex: none;
  margin-top: 2px;
}

@media (max-width: 820px) {
  .ip-checks, .ip-story { grid-template-columns: 1fr; }
}

/* about: company paragraph */
.ip-company {
  max-width: 760px;
}

.ip-company p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

.ip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ip-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: var(--border);
  border-radius: 99px;
  background: #fff;
  color: var(--navy-950);
  font-weight: var(--weight-semibold);
}

/* about: three-step flow */
.ip-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ip-flow li {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border: var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.ip-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -19px;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: .9rem;
  transform: translateY(-50%);
}

.ip-flow h3 { margin: 4px 0 6px; }
.ip-flow p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .ip-flow { grid-template-columns: 1fr; }
  .ip-flow li:not(:last-child)::after { top: auto; right: auto; bottom: -19px; left: 50%; content: "↓"; transform: translateX(-50%); }
}
