/* =========================================================================
   San Francisco — Mobile App Development Company page
   Scoped with the "sf-" prefix so it never collides with the shared
   header.css / footer.css / style.css files.
   ========================================================================= */

/* ============ GLOBAL ============ */
:root {
  --sf-ink: #1A182B;
  --sf-text: #5B5870;
  --sf-muted: #716F7E;
  --sf-soft: #8A87A0;
  --sf-purple: #5632E6;
  --sf-purple-deep: #4A1FF5;
  --sf-purple-bright: #6E47FF;
  --sf-cream: #FAF5F1;
  --sf-lilac: #F1EDFF;
  --sf-lilac-soft: #F6F3FF;
  --sf-peach: #FFB48F;
  --sf-line: rgba(26, 24, 43, .09);
  --sf-card-line: rgba(26, 24, 43, .09);
  --sf-ring: 0 0 0 1px rgba(26, 24, 43, .09);
  --sf-radial: radial-gradient(125% 98% at 45% 100%, #8B6CFF 0%, #6E47FF 26%, #4E32B5 55%, #2E1E6B 78%, #150079 100%);
  --sf-white: #FFFFFF;
  --sf-ease: cubic-bezier(.22, .61, .36, 1);
  --sf-gutter: clamp(16px, 8.34vw, 120px);
  --sf-radius: 24px;
  --sf-shadow: 0 10px 30px rgba(26, 24, 43, .06);
  --sf-shadow-hover: 0 18px 40px rgba(62, 36, 160, .12);
  --sf-section-y: clamp(56px, 6.25vw, 90px);
  --sf-gradient: linear-gradient(120deg, #13007A 0%, #3A16D1 52%, #7553FF 100%);
}

html:has(.sf-body) {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body.sf-body {
  margin: 0;
  background: var(--sf-white);
  color: var(--sf-text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Full-width header bar on large screens, as in the Figma */
@media (min-width: 1200px) {
  body.sf-body .hero-header__header-section {
    left: 40px;
    right: 40px;
    width: auto;
    max-width: none;
    transform: none;
  }
}

.sf-page {
  overflow-x: clip;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--sf-text);
}

.sf-page *,
.sf-page *::before,
.sf-page *::after {
  box-sizing: border-box;
}

.sf-page :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) {
  margin: 0;
}

.sf-page :where(ul, ol) {
  padding: 0;
  list-style: none;
}

/* style.css pins paragraphs to 16px; let the page control its own sizes.
   :where() keeps this at element specificity so .sf-* class sizes still win. */
:where(.sf-page) p,
:where(.sf-page) li {
  font-size: inherit;
}

.sf-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Plain text links inherit; buttons keep their own colours */
.sf-page a:not(.sf-btn) {
  color: inherit;
}

.sf-page :focus-visible {
  outline: 2px solid var(--sf-purple-bright);
  outline-offset: 3px;
}

.sf-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--sf-ink);
  color: var(--sf-white);
  font: 600 14px/1 "Manrope", sans-serif;
  text-decoration: none;
  transition: top .2s var(--sf-ease);
}

.sf-skip-link:focus {
  top: 16px;
}

.sf-visually-hidden,
.sf-radio {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sf-container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--sf-gutter));
  margin: 0 auto;
  padding-inline: var(--sf-gutter);
}

.sf-section {
  padding-block: var(--sf-section-y);
}

.sf-cream {
  background: var(--sf-cream);
}

.sf-center {
  text-align: center;
}

/* Cards */
.sf-card {
  position: relative;
  border: 1px solid var(--sf-card-line);
  border-radius: var(--sf-radius);
  background: var(--sf-white);
  transition: transform .45s var(--sf-ease), box-shadow .45s var(--sf-ease), border-color .45s var(--sf-ease);
}

/* Buttons */
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 16px/1.2 "Manrope", sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--sf-ease), background-color .3s var(--sf-ease), color .3s var(--sf-ease), box-shadow .3s var(--sf-ease), border-color .3s var(--sf-ease);
}

.sf-btn:hover {
  transform: translateY(-2px);
}

.sf-btn:active {
  transform: translateY(0);
}

.sf-btn-white {
  background: var(--sf-white);
  color: var(--sf-ink);
}

.sf-btn-white:hover {
  box-shadow: 0 12px 28px rgba(10, 4, 60, .28);
}

.sf-btn-glass {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  color: var(--sf-white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sf-btn-glass:hover {
  background: rgba(255, 255, 255, .22);
}

.sf-btn-dark {
  background: var(--sf-ink);
  color: var(--sf-white);
}

.sf-btn-dark:hover {
  background: #2C2944;
  box-shadow: 0 12px 26px rgba(26, 24, 43, .22);
}

.sf-btn-primary {
  background: var(--sf-purple-bright);
  color: var(--sf-white);
}

.sf-btn-primary:hover {
  background: #5C35F2;
  box-shadow: 0 12px 26px rgba(92, 53, 242, .3);
}

.sf-btn-soft {
  border-color: #E7E6EB;
  background: #F2F2F4;
  color: var(--sf-ink);
}

.sf-btn-soft:hover {
  border-color: var(--sf-ink);
  background: var(--sf-ink);
  color: var(--sf-white);
}

.sf-btn-block {
  width: 100%;
}

.sf-btn-wide {
  min-width: 260px;
}

.sf-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sf-lilac);
  color: var(--sf-purple);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

/* ============ TYPOGRAPHY ============ */
.sf-h2 {
  color: var(--sf-ink);
  font-size: clamp(30px, 3.75vw, 54px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.sf-h2-light {
  color: var(--sf-white);
}

.sf-lead {
  color: var(--sf-muted);
  font-size: clamp(16px, 1.18vw, 17px);
  line-height: 1.65;
}

.sf-lead-sm {
  margin-top: 12px;
  font-size: 15px;
}

.sf-section-head {
  max-width: 960px;
  margin: 0 auto clamp(36px, 3.9vw, 56px);
  text-align: center;
}

.sf-section-head .sf-lead {
  max-width: 880px;
  margin-top: 18px;
  margin-inline: auto;
}

.sf-section-head .sf-lead-sm {
  margin-top: 10px;
}

.sf-lead-narrow {
  max-width: 760px;
}

.sf-card-title {
  color: var(--sf-ink);
  font-size: clamp(19px, 1.53vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.sf-card-title-lg {
  font-size: clamp(20px, 1.67vw, 24px);
}

/* ============ HEADER ============
   The header markup and styles come from the shared ../header.php and
   ../assets/css/header.css. Only the width override above is page-specific. */

/* ============ HERO ============ */
.sf-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(104px, 10.4vw, 150px);
  border-radius: 0 0 clamp(28px, 4.45vw, 64px) clamp(28px, 4.45vw, 64px);
  background: #0E0638;
  color: var(--sf-white);
}

.sf-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center 30%;
}

.sf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 4, 48, .55) 0%, rgba(10, 4, 48, 0) 28%),
    linear-gradient(100deg, rgba(14, 5, 66, .94) 0%, rgba(31, 10, 120, .84) 46%, rgba(54, 24, 170, .66) 100%);
}

.sf-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 512px);
  gap: clamp(32px, 6.4vw, 92px);
  align-items: start;
}

.sf-hero-title {
  color: var(--sf-white);
  /* Sized so the title balances onto 2 lines in the ~600px hero column. */
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.sf-hero-lead {
  margin-top: 22px;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(17px, 1.39vw, 20px);
  font-weight: 500;
  line-height: 1.5;
}

.sf-hero-text {
  margin-top: 16px;
  color: rgba(255, 255, 255, .74);
  font-size: 15px;
  line-height: 1.7;
}

.sf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.sf-hero-advantages {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.sf-hero-caption {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sf-hero-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 18px;
}

.sf-hero-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.5;
}

.sf-hero-checks img {
  flex: none;
  margin-top: 2px;
}

.sf-quote-frame {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 36px;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.sf-quote-card {
  padding: clamp(22px, 2.2vw, 32px);
  border-radius: 28px;
  background: var(--sf-white);
  color: var(--sf-text);
  box-shadow: 0 30px 60px rgba(8, 2, 40, .35);
}

.sf-quote-title {
  color: var(--sf-ink);
  font-size: clamp(24px, 1.95vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sf-quote-text {
  margin: 8px 0 20px;
  color: var(--sf-muted);
  font-size: 14px;
  line-height: 1.55;
}

.sf-hero-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 104px));
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.sf-hero-badges li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 18px;
  background: var(--sf-white);
  transition: transform .35s var(--sf-ease), box-shadow .35s var(--sf-ease);
}

.sf-hero-badges img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sf-logos {
  margin-top: clamp(48px, 5vw, 72px);
  padding: 26px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.sf-logos-track,
.sf-marquee-track {
  display: flex;
  width: max-content;
}

.sf-logos-list {
  display: flex;
  flex: none;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-right: clamp(40px, 5vw, 72px);
}

/* Home hero logo sizing (assets/css/home/header.css): fixed 140x36 box, contained. */
.sf-logos-list img {
  flex: 0 0 auto;
  width: 140px;
  height: 36px;
  object-fit: contain;
  opacity: .85;
  transition: opacity .3s var(--sf-ease);
}

.sf-logos-list img:hover {
  opacity: 1;
}

/* Forms (hero quote + contact) */
.sf-form {
  display: grid;
  gap: 14px;
}

.sf-quote-card.sf-form {
  gap: 12px;
}

.sf-quote-card .sf-quote-text {
  margin: -4px 0 4px;
}

.sf-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sf-field-wrap {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sf-field-wrap label {
  color: #3F3C52;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sf-field {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #E6E4EC;
  border-radius: 12px;
  background: var(--sf-white);
  color: var(--sf-ink);
  font: 400 15px/1.4 "Manrope", sans-serif;
  transition: border-color .25s var(--sf-ease), box-shadow .25s var(--sf-ease);
}

.sf-field::placeholder {
  color: #A3A1B1;
}

.sf-field:focus {
  border-color: var(--sf-purple-bright);
  outline: none;
  box-shadow: 0 0 0 4px rgba(110, 71, 255, .14);
}

select.sf-field {
  padding-right: 40px;
  background: var(--sf-white) url("../../images/sanfransico/icons/chevron-down-muted.svg") no-repeat right 16px center / 16px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

textarea.sf-field {
  height: 84px;
  padding: 12px 14px;
  resize: vertical;
}

.sf-form-note {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  color: var(--sf-soft);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.sf-form-status {
  min-height: 0;
  color: #1E8E57;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.sf-form-status:empty {
  display: none;
}

/* Live form validation (same look as the Dallas forms) */
.sf-form-status.is-error { color: #D93036; }
.sf-form-status.is-success { color: #1E8E57; }
.sf-field[aria-invalid="true"] { border-color: #E5484D; }
.sf-field-error { display: block; margin-top: 4px; color: #D93036; font-size: 12px; line-height: 1.35; }
.sf-form[aria-busy="true"] button[type="submit"] { opacity: .7; cursor: progress; }

/* ============ STATS ============ */
.sf-stats {
  padding-top: clamp(40px, 4.2vw, 60px);
}

.sf-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1152px;
  margin: 0 auto;
  padding-bottom: clamp(36px, 3.9vw, 56px);
  border-bottom: 1px solid var(--sf-line);
}

.sf-stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  padding: 8px clamp(16px, 2.2vw, 32px);
  text-align: center;
}

.sf-stat + .sf-stat {
  border-left: 1px solid var(--sf-line);
}

.sf-stat-value {
  color: var(--sf-ink);
  font-size: clamp(36px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.sf-stat-label {
  color: var(--sf-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ============ INTRO / WHY APPAGENTIX ============ */
.sf-why-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(36px, 3.9vw, 56px);
}

.sf-why-text {
  display: grid;
  gap: 16px;
  color: var(--sf-muted);
  font-size: clamp(15px, 1.11vw, 16px);
  line-height: 1.7;
}

.sf-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sf-why-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.2vw, 32px);
  font-size: 15px;
  line-height: 1.6;
}

.sf-why-num {
  margin-bottom: 18px;
  color: var(--sf-purple-bright);
  font-size: clamp(30px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.sf-why-summary {
  justify-content: center;
  border-color: transparent;
  background: var(--sf-lilac-soft);
  color: var(--sf-text);
  font-size: 15px;
}

/* ============ SERVICES ============ */
.sf-services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.sf-service {
  display: flex;
  flex-direction: column;
  padding: 14px;
  overflow: hidden;
}

.sf-service-half {
  grid-column: span 3;
}

.sf-service-third {
  grid-column: span 2;
}

.sf-service-wide {
  grid-column: span 4;
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
}

.sf-service-media {
  overflow: hidden;
  border-radius: 16px;
  background: var(--sf-lilac-soft);
}

.sf-service-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1126 / 460;
  object-fit: cover;
  transition: transform .7s var(--sf-ease);
}

.sf-service-third .sf-service-media img {
  aspect-ratio: 720 / 380;
}

.sf-service-wide .sf-service-media {
  flex: 0 0 46%;
}

.sf-service-wide .sf-service-media img {
  aspect-ratio: auto;
  min-height: 240px;
}

.sf-service-body {
  display: grid;
  gap: 10px;
  padding: 20px 12px 12px;
  font-size: 15px;
  line-height: 1.65;
}

.sf-service-wide .sf-service-body {
  align-content: center;
  padding: 20px 20px 20px 24px;
}

.sf-service-cta {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  justify-content: center;
  gap: 14px;
  padding: clamp(26px, 2.4vw, 36px);
  border-radius: var(--sf-radius);
  background: var(--sf-gradient);
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 20px 44px rgba(65, 7, 233, .22);
}

.sf-service-cta h3 {
  color: var(--sf-white);
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.sf-service-cta .sf-btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ============ AI SERVICES ============ */
.sf-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sf-ai-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.2vw, 32px);
  font-size: 15px;
  line-height: 1.65;
}

.sf-ai-icon {
  width: 44px;
  height: 44px !important;
  margin-bottom: 10px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  transition: transform .45s var(--sf-ease);
}

/* ============ CTA BANDS ============ */
.sf-cta {
  padding-block: clamp(20px, 2.8vw, 40px);
}

.sf-cta-inner {
  position: relative;
}

.sf-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0 var(--sf-gutter);
  z-index: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 180, 143, .28), transparent 38%),
    var(--sf-gradient);
  box-shadow: 0 24px 50px rgba(65, 7, 233, .2);
}

.sf-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.sf-cta-copy,
.sf-cta-action {
  position: relative;
  z-index: 1;
}

.sf-cta-copy {
  padding: clamp(32px, 3.6vw, 52px) 0 clamp(32px, 3.6vw, 52px) clamp(24px, 3.6vw, 56px);
  color: rgba(255, 255, 255, .8);
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.6;
}

.sf-cta-title {
  margin-bottom: 12px;
  color: var(--sf-white);
  font-size: clamp(26px, 2.64vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.sf-cta-action {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 0 clamp(24px, 3.6vw, 56px) 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  text-align: center;
}

/* ============ CASE STUDIES ============ */
.sf-tabset {
  position: relative;
}

.sf-case-tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(28px, 3vw, 44px);
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--sf-card-line);
  border-radius: 999px;
  background: var(--sf-white);
  scrollbar-width: none;
}

.sf-case-tab {
  display: inline-flex;
  flex: none;
  gap: 10px;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  color: var(--sf-muted);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s var(--sf-ease), color .3s var(--sf-ease);
}

.sf-case-tab:hover {
  color: var(--sf-ink);
}

.sf-case-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.4vw, 64px);
  align-items: center;
  animation: sf-panel-in .55s var(--sf-ease);
}

#sf-case-1:checked ~ .sf-case-panels .sf-case-panel-1,
#sf-case-2:checked ~ .sf-case-panels .sf-case-panel-2,
#sf-case-3:checked ~ .sf-case-panels .sf-case-panel-3 {
  display: grid;
}

#sf-case-1:checked ~ .sf-case-tabs [for="sf-case-1"],
#sf-case-2:checked ~ .sf-case-tabs [for="sf-case-2"],
#sf-case-3:checked ~ .sf-case-tabs [for="sf-case-3"] {
  background: var(--sf-lilac);
  color: var(--sf-purple);
}

#sf-case-1:focus-visible ~ .sf-case-tabs [for="sf-case-1"],
#sf-case-2:focus-visible ~ .sf-case-tabs [for="sf-case-2"],
#sf-case-3:focus-visible ~ .sf-case-tabs [for="sf-case-3"] {
  outline: 2px solid var(--sf-purple-bright);
  outline-offset: 2px;
}

.sf-case-copy {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.sf-case-title {
  color: var(--sf-ink);
  font-size: clamp(26px, 2.36vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.sf-case-label {
  margin-top: 6px;
  color: var(--sf-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sf-case-list {
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.55;
}

.sf-case-list li {
  position: relative;
  padding-left: 20px;
}

.sf-case-list li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sf-purple-bright);
}

.sf-case-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--sf-card-line);
  border-radius: 20px;
  background: var(--sf-white);
}

.sf-case-stats > div {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--sf-lilac-soft);
}

.sf-case-stats dt {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--sf-ink);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.sf-case-stats dd {
  margin-top: 4px;
  color: var(--sf-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sf-case-media {
  overflow: hidden;
  border-radius: 28px;
  background: var(--sf-lilac);
}

.sf-case-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1248 / 1120;
  object-fit: cover;
  transition: transform .8s var(--sf-ease);
}

.sf-case-media-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  aspect-ratio: 1248 / 1120;
  padding: clamp(20px, 3vw, 44px);
  background: linear-gradient(150deg, #EEE9FF 0%, #D9CEFF 55%, #B8A5FF 100%);
}

.sf-case-media-duo img {
  aspect-ratio: auto;
  height: 100%;
  border-radius: 18px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(41, 16, 140, .22));
}

.sf-case-media-duo img:nth-child(2) {
  transform: translateY(6%);
}

/* ============ TESTIMONIALS ============ */
.sf-reviews {
  margin: 0 clamp(0px, 2.8vw, 40px);
  border-radius: clamp(28px, 3.3vw, 48px);
  background:
    radial-gradient(circle at 12% 110%, rgba(255, 180, 143, .22), transparent 40%),
    linear-gradient(120deg, #13007A 0%, #3A16D1 55%, #7553FF 100%);
  color: var(--sf-white);
}

.sf-reviews-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5.5vw, 80px);
  align-items: center;
}

.sf-reviews-intro {
  display: grid;
  gap: 32px;
  justify-items: start;
}

.sf-arrows {
  display: flex;
}

.sf-arrow-set {
  display: none;
  gap: 12px;
}

#sf-review-1:checked ~ .sf-reviews-intro .sf-arrow-set-1,
#sf-review-2:checked ~ .sf-reviews-intro .sf-arrow-set-2,
#sf-review-3:checked ~ .sf-reviews-intro .sf-arrow-set-3,
#sf-review-4:checked ~ .sf-reviews-intro .sf-arrow-set-4,
#sf-review-5:checked ~ .sf-reviews-intro .sf-arrow-set-5 {
  display: flex;
}

.sf-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: transform .3s var(--sf-ease), background-color .3s var(--sf-ease);
}

.sf-arrow:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-2px);
}

.sf-arrow img {
  width: 44px;
  height: 44px;
}

.sf-reviews-body {
  position: relative;
}

.sf-quote-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
}

.sf-slide {
  display: none;
  animation: sf-panel-in .6s var(--sf-ease);
}

#sf-review-1:checked ~ .sf-reviews-body .sf-slide-1,
#sf-review-2:checked ~ .sf-reviews-body .sf-slide-2,
#sf-review-3:checked ~ .sf-reviews-body .sf-slide-3,
#sf-review-4:checked ~ .sf-reviews-body .sf-slide-4,
#sf-review-5:checked ~ .sf-reviews-body .sf-slide-5 {
  display: block;
}

.sf-slide-quote {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  color: var(--sf-white);
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.sf-slide-author {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  margin-top: 24px;
  padding-right: 140px;
}

.sf-slide-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.sf-slide-author span {
  display: grid;
  gap: 2px;
}

/* Initials avatar for testimonials without a photo */
.sf-slide-author .sf-avatar {
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sf-peach);
  color: #1B1340;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}

.sf-slide-author strong {
  color: var(--sf-white);
  font-size: 16px;
  font-weight: 600;
}

.sf-slide-author em {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  font-style: normal;
}

.sf-dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.sf-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: width .35s var(--sf-ease), background-color .35s var(--sf-ease);
}

.sf-dot:hover {
  background: rgba(255, 255, 255, .75);
}

#sf-review-1:checked ~ .sf-reviews-body .sf-dot-1,
#sf-review-2:checked ~ .sf-reviews-body .sf-dot-2,
#sf-review-3:checked ~ .sf-reviews-body .sf-dot-3,
#sf-review-4:checked ~ .sf-reviews-body .sf-dot-4,
#sf-review-5:checked ~ .sf-reviews-body .sf-dot-5 {
  width: 28px;
  background: var(--sf-peach);
}

#sf-review-1:focus-visible ~ .sf-reviews-body .sf-dot-1,
#sf-review-2:focus-visible ~ .sf-reviews-body .sf-dot-2,
#sf-review-3:focus-visible ~ .sf-reviews-body .sf-dot-3,
#sf-review-4:focus-visible ~ .sf-reviews-body .sf-dot-4,
#sf-review-5:focus-visible ~ .sf-reviews-body .sf-dot-5 {
  outline: 2px solid var(--sf-white);
  outline-offset: 3px;
}

/* ============ PRICING / ENGAGEMENT COST ============ */
.sf-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.sf-price-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 2.2vw, 32px);
  border-radius: 32px;
  font-size: 15px;
  line-height: 1.6;
}

.sf-price-featured {
  border-color: rgba(110, 71, 255, .45);
  box-shadow: 0 24px 50px rgba(65, 7, 233, .12);
}

.sf-price-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.sf-price-name {
  color: var(--sf-purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sf-price-time {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sf-lilac-soft);
  color: var(--sf-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.sf-price-value {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: baseline;
  letter-spacing: -0.04em;
}

.sf-price-value strong {
  color: var(--sf-ink);
  font-size: clamp(36px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1;
}

.sf-price-value span {
  color: var(--sf-soft);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 500;
}

.sf-price-value small {
  margin-left: 8px;
  color: var(--sf-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

.sf-price-label {
  color: var(--sf-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sf-check-list {
  display: grid;
  gap: 10px;
}

.sf-check-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--sf-text);
}

.sf-check-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: url("../../images/sanfransico/pricing/check-purple.svg") no-repeat center / contain;
}

.sf-price-best {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--sf-line);
}

.sf-price-best strong {
  color: var(--sf-ink);
  font-size: 14px;
  font-weight: 700;
}

.sf-price-best span {
  color: var(--sf-muted);
  font-size: 14px;
}

.sf-price-note {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--sf-muted);
  font-size: 14px;
  text-align: center;
}

.sf-factors-title {
  margin: clamp(48px, 5vw, 72px) 0 24px;
  color: var(--sf-ink);
  font-size: clamp(24px, 2.08vw, 30px);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-align: center;
}

.sf-factors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sf-factor {
  padding: 18px 20px;
  border: 1px solid var(--sf-card-line);
  border-radius: 18px;
  background: var(--sf-white);
  transition: transform .35s var(--sf-ease), border-color .35s var(--sf-ease), box-shadow .35s var(--sf-ease);
}

.sf-factor h4 {
  color: var(--sf-ink);
  font-size: 15px;
  font-weight: 600;
}

.sf-factor p {
  margin-top: 4px;
  color: var(--sf-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ============ PROCESS ============ */
.sf-process-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.sf-process-intro {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 20px;
  justify-items: start;
}

.sf-process-text {
  color: var(--sf-muted);
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.65;
}

.sf-steps {
  position: relative;
  display: grid;
  gap: 32px;
}

.sf-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--sf-purple-bright), rgba(110, 71, 255, .15));
}

.sf-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
}

.sf-step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 4px solid var(--sf-white);
  border-radius: 50%;
  background: var(--sf-lilac);
  color: var(--sf-purple);
  font-size: 17px;
  font-weight: 700;
  transition: background-color .35s var(--sf-ease), color .35s var(--sf-ease), transform .35s var(--sf-ease);
}

.sf-step:hover .sf-step-num {
  background: var(--sf-purple-bright);
  color: var(--sf-white);
  transform: scale(1.06);
}

.sf-step-body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  font-size: 15px;
  line-height: 1.65;
}

.sf-step-title {
  color: var(--sf-ink);
  font-size: clamp(19px, 1.53vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sf-step-get {
  padding: 14px 16px;
  border: 1px solid var(--sf-card-line);
  border-radius: 14px;
  background: var(--sf-lilac-soft);
  font-size: 14px;
}

.sf-step-get strong {
  color: var(--sf-purple);
  font-weight: 700;
}

/* ============ TECH STACK ============ */
.sf-tech {
  overflow: hidden;
}

.sf-marquee {
  display: grid;
  gap: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sf-marquee-list {
  display: flex;
  flex: none;
  gap: 18px;
  padding-right: 18px;
}

.sf-marquee-list li {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(92px, 8.75vw, 126px);
  height: clamp(92px, 8.75vw, 126px);
  overflow: hidden;
  border-radius: 28px;
  background: #F5F5F5;
  transition: transform .35s var(--sf-ease), box-shadow .35s var(--sf-ease);
}

.sf-marquee-list img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Home page technology-stack logos are bare icons (no tile padding baked in),
   so they sit centred in the tile at roughly half its size, like on the home page. */
.sf-tech-list img {
  width: 50%;
  height: 50%;
}

.sf-marquee-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--sf-shadow-hover);
}

/* ============ INDUSTRIES ============ */
.sf-ind-set {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 3.3vw, 48px);
  align-items: start;
}

.sf-ind-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sf-ind-tab {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--sf-card-line);
  border-radius: 999px;
  background: var(--sf-white);
  color: var(--sf-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .3s var(--sf-ease), box-shadow .3s var(--sf-ease), transform .3s var(--sf-ease);
}

.sf-ind-tab:hover {
  border-color: rgba(110, 71, 255, .45);
  transform: translateY(-2px);
}

.sf-ind-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sf-lilac);
}

.sf-ind-chev {
  flex: none;
  margin-left: auto;
  opacity: .5;
  transition: transform .3s var(--sf-ease), opacity .3s var(--sf-ease);
}

.sf-ind-tab:hover .sf-ind-chev {
  opacity: 1;
  transform: translateX(3px);
}

#sf-ind-1:checked ~ .sf-ind-tabs [for="sf-ind-1"],
#sf-ind-2:checked ~ .sf-ind-tabs [for="sf-ind-2"],
#sf-ind-3:checked ~ .sf-ind-tabs [for="sf-ind-3"],
#sf-ind-4:checked ~ .sf-ind-tabs [for="sf-ind-4"],
#sf-ind-5:checked ~ .sf-ind-tabs [for="sf-ind-5"],
#sf-ind-6:checked ~ .sf-ind-tabs [for="sf-ind-6"],
#sf-ind-7:checked ~ .sf-ind-tabs [for="sf-ind-7"],
#sf-ind-8:checked ~ .sf-ind-tabs [for="sf-ind-8"],
#sf-ind-9:checked ~ .sf-ind-tabs [for="sf-ind-9"],
#sf-ind-10:checked ~ .sf-ind-tabs [for="sf-ind-10"] {
  border-color: var(--sf-purple-bright);
  box-shadow: 0 10px 24px rgba(110, 71, 255, .14);
}

#sf-ind-1:checked ~ .sf-ind-tabs [for="sf-ind-1"] .sf-ind-chev,
#sf-ind-2:checked ~ .sf-ind-tabs [for="sf-ind-2"] .sf-ind-chev,
#sf-ind-3:checked ~ .sf-ind-tabs [for="sf-ind-3"] .sf-ind-chev,
#sf-ind-4:checked ~ .sf-ind-tabs [for="sf-ind-4"] .sf-ind-chev,
#sf-ind-5:checked ~ .sf-ind-tabs [for="sf-ind-5"] .sf-ind-chev,
#sf-ind-6:checked ~ .sf-ind-tabs [for="sf-ind-6"] .sf-ind-chev,
#sf-ind-7:checked ~ .sf-ind-tabs [for="sf-ind-7"] .sf-ind-chev,
#sf-ind-8:checked ~ .sf-ind-tabs [for="sf-ind-8"] .sf-ind-chev,
#sf-ind-9:checked ~ .sf-ind-tabs [for="sf-ind-9"] .sf-ind-chev,
#sf-ind-10:checked ~ .sf-ind-tabs [for="sf-ind-10"] .sf-ind-chev {
  opacity: 1;
}

#sf-ind-1:focus-visible ~ .sf-ind-tabs [for="sf-ind-1"],
#sf-ind-2:focus-visible ~ .sf-ind-tabs [for="sf-ind-2"],
#sf-ind-3:focus-visible ~ .sf-ind-tabs [for="sf-ind-3"],
#sf-ind-4:focus-visible ~ .sf-ind-tabs [for="sf-ind-4"],
#sf-ind-5:focus-visible ~ .sf-ind-tabs [for="sf-ind-5"],
#sf-ind-6:focus-visible ~ .sf-ind-tabs [for="sf-ind-6"],
#sf-ind-7:focus-visible ~ .sf-ind-tabs [for="sf-ind-7"],
#sf-ind-8:focus-visible ~ .sf-ind-tabs [for="sf-ind-8"],
#sf-ind-9:focus-visible ~ .sf-ind-tabs [for="sf-ind-9"],
#sf-ind-10:focus-visible ~ .sf-ind-tabs [for="sf-ind-10"] {
  outline: 2px solid var(--sf-purple-bright);
  outline-offset: 3px;
}

.sf-ind-panel {
  display: none;
  gap: 16px;
  padding: 14px 14px 28px;
  border: 1px solid var(--sf-card-line);
  border-radius: 28px;
  background: var(--sf-white);
  font-size: 15px;
  line-height: 1.65;
  animation: sf-panel-in .5s var(--sf-ease);
}

#sf-ind-1:checked ~ .sf-ind-panels .sf-ind-panel-1,
#sf-ind-2:checked ~ .sf-ind-panels .sf-ind-panel-2,
#sf-ind-3:checked ~ .sf-ind-panels .sf-ind-panel-3,
#sf-ind-4:checked ~ .sf-ind-panels .sf-ind-panel-4,
#sf-ind-5:checked ~ .sf-ind-panels .sf-ind-panel-5,
#sf-ind-6:checked ~ .sf-ind-panels .sf-ind-panel-6,
#sf-ind-7:checked ~ .sf-ind-panels .sf-ind-panel-7,
#sf-ind-8:checked ~ .sf-ind-panels .sf-ind-panel-8,
#sf-ind-9:checked ~ .sf-ind-panels .sf-ind-panel-9,
#sf-ind-10:checked ~ .sf-ind-panels .sf-ind-panel-10 {
  display: grid;
}

.sf-ind-panel img {
  width: 100%;
  height: clamp(200px, 18vw, 260px) !important;
  border-radius: 20px;
  object-fit: cover;
}

.sf-ind-panel h3,
.sf-ind-panel p,
.sf-ind-panel .sf-btn {
  margin-inline: 14px;
}

.sf-ind-panel h3 {
  margin-top: 8px;
  color: var(--sf-ink);
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sf-ind-panel .sf-btn {
  justify-self: start;
  margin-top: 6px;
}

/* ============ COMPARISON ============ */
.sf-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sf-card-line);
  border-radius: 28px;
  background: var(--sf-white);
  box-shadow: var(--sf-shadow);
  -webkit-overflow-scrolling: touch;
}

.sf-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.5;
}

.sf-table th,
.sf-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--sf-line);
  text-align: left;
  vertical-align: top;
}

.sf-table tbody tr:last-child th,
.sf-table tbody tr:last-child td {
  border-bottom: 0;
}

.sf-table thead th {
  color: var(--sf-ink);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.sf-table tbody th {
  width: 18%;
  color: var(--sf-ink);
  font-weight: 600;
}

.sf-table td {
  color: var(--sf-text);
}

.sf-table thead .sf-col-us {
  background: var(--sf-purple-bright);
  color: var(--sf-white);
}

.sf-table td.sf-col-us {
  background: var(--sf-lilac-soft);
  color: var(--sf-ink);
  font-weight: 600;
}

.sf-table tbody tr {
  transition: background-color .25s var(--sf-ease);
}

.sf-table tbody tr:hover td:not(.sf-col-us),
.sf-table tbody tr:hover th {
  background: #FCFBFE;
}

.sf-table-note {
  max-width: 820px;
  margin: 24px auto 28px;
  color: var(--sf-muted);
  font-size: 14px;
  text-align: center;
}

/* ============ ENGAGEMENT MODELS ============ */
.sf-engage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sf-engage-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 2.5vw, 36px);
  font-size: 15px;
  line-height: 1.65;
}

.sf-engage-num {
  margin-bottom: 14px;
  color: var(--sf-purple-bright);
  font-size: clamp(44px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

/* ============ COMPLIANCE ============ */
.sf-compliance {
  padding-top: 0;
}

.sf-badge-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.sf-badge-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 24px 12px 20px;
  border: 1px solid var(--sf-card-line);
  border-radius: 22px;
  background: var(--sf-white);
  color: var(--sf-ink);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: transform .35s var(--sf-ease), box-shadow .35s var(--sf-ease), border-color .35s var(--sf-ease);
}

.sf-badge-card img {
  width: auto;
  height: 72px !important;
  object-fit: contain;
  transition: transform .5s var(--sf-ease);
}

/* ============ FAQ ============ */
.sf-faq {
  background: linear-gradient(180deg, var(--sf-white) 0%, var(--sf-lilac-soft) 100%);
}

.sf-faq-set {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(28px, 4.4vw, 64px);
  align-items: start;
}

.sf-faq-side {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 20px;
}

.sf-faq-tabs {
  display: grid;
  gap: 10px;
}

.sf-faq-tab {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 14px 20px;
  border: 1px solid var(--sf-card-line);
  border-radius: 999px;
  background: var(--sf-white);
  color: var(--sf-ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .3s var(--sf-ease), transform .3s var(--sf-ease);
}

.sf-faq-tab:hover {
  border-color: rgba(110, 71, 255, .45);
  transform: translateX(3px);
}

.sf-faq-count {
  display: grid;
  flex: none;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--sf-lilac);
  color: var(--sf-purple);
  font-size: 13px;
  font-weight: 700;
  transition: background-color .3s var(--sf-ease), color .3s var(--sf-ease);
}

#sf-faq-1:checked ~ .sf-faq-side [for="sf-faq-1"],
#sf-faq-2:checked ~ .sf-faq-side [for="sf-faq-2"],
#sf-faq-3:checked ~ .sf-faq-side [for="sf-faq-3"],
#sf-faq-4:checked ~ .sf-faq-side [for="sf-faq-4"],
#sf-faq-5:checked ~ .sf-faq-side [for="sf-faq-5"],
#sf-faq-6:checked ~ .sf-faq-side [for="sf-faq-6"] {
  border-color: var(--sf-purple-bright);
  color: var(--sf-purple);
}

#sf-faq-1:checked ~ .sf-faq-side [for="sf-faq-1"] .sf-faq-count,
#sf-faq-2:checked ~ .sf-faq-side [for="sf-faq-2"] .sf-faq-count,
#sf-faq-3:checked ~ .sf-faq-side [for="sf-faq-3"] .sf-faq-count,
#sf-faq-4:checked ~ .sf-faq-side [for="sf-faq-4"] .sf-faq-count,
#sf-faq-5:checked ~ .sf-faq-side [for="sf-faq-5"] .sf-faq-count,
#sf-faq-6:checked ~ .sf-faq-side [for="sf-faq-6"] .sf-faq-count {
  background: var(--sf-purple-bright);
  color: var(--sf-white);
}

#sf-faq-1:focus-visible ~ .sf-faq-side [for="sf-faq-1"],
#sf-faq-2:focus-visible ~ .sf-faq-side [for="sf-faq-2"],
#sf-faq-3:focus-visible ~ .sf-faq-side [for="sf-faq-3"],
#sf-faq-4:focus-visible ~ .sf-faq-side [for="sf-faq-4"],
#sf-faq-5:focus-visible ~ .sf-faq-side [for="sf-faq-5"],
#sf-faq-6:focus-visible ~ .sf-faq-side [for="sf-faq-6"] {
  outline: 2px solid var(--sf-purple-bright);
  outline-offset: 3px;
}

.sf-faq-card {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 24px;
  border-radius: 24px;
  background: var(--sf-gradient);
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.6;
}

.sf-faq-card h3 {
  color: var(--sf-white);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sf-faq-card .sf-btn {
  margin-top: 6px;
  background: var(--sf-white);
  color: var(--sf-ink);
}

.sf-faq-panel {
  display: none;
  border-top: 1px solid var(--sf-line);
  animation: sf-panel-in .5s var(--sf-ease);
}

#sf-faq-1:checked ~ .sf-faq-panels .sf-faq-panel-1,
#sf-faq-2:checked ~ .sf-faq-panels .sf-faq-panel-2,
#sf-faq-3:checked ~ .sf-faq-panels .sf-faq-panel-3,
#sf-faq-4:checked ~ .sf-faq-panels .sf-faq-panel-4,
#sf-faq-5:checked ~ .sf-faq-panels .sf-faq-panel-5,
#sf-faq-6:checked ~ .sf-faq-panels .sf-faq-panel-6 {
  display: block;
}

.sf-faq-item {
  border-bottom: 1px solid var(--sf-line);
}

.sf-faq-item summary {
  position: relative;
  padding: 24px 52px 24px 0;
  color: var(--sf-ink);
  font-size: clamp(16px, 1.32vw, 19px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  transition: color .25s var(--sf-ease);
}

.sf-faq-item summary::-webkit-details-marker {
  display: none;
}

.sf-faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--sf-lilac-soft) url("../../images/sanfransico/icons/chevron-down.svg") no-repeat center / 18px;
  transition: transform .35s var(--sf-ease), background-color .35s var(--sf-ease);
}

.sf-faq-item summary:hover {
  color: var(--sf-purple);
}

.sf-faq-item[open] summary::after {
  background-color: var(--sf-lilac);
  transform: rotate(180deg);
}

.sf-faq-item p {
  padding: 0 52px 24px 0;
  color: var(--sf-muted);
  font-size: 15px;
  line-height: 1.7;
}

.sf-faq-item[open] p {
  animation: sf-panel-in .45s var(--sf-ease);
}

/* ============ CONTACT ============ */
.sf-contact {
  background:
    radial-gradient(circle at 15% 0%, rgba(178, 156, 255, .35), transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(255, 180, 143, .22), transparent 40%),
    #F6F3FF;
}

.sf-contact-lead {
  max-width: 680px;
}

.sf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: -12px 0 clamp(32px, 3.3vw, 48px);
}

.sf-pills li {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--sf-card-line);
  border-radius: 999px;
  background: var(--sf-white);
  color: var(--sf-ink);
  font-size: 14px;
  font-weight: 600;
}

.sf-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}

.sf-contact-card,
.sf-contact-form {
  padding: clamp(24px, 2.5vw, 36px);
  border: 1px solid var(--sf-card-line);
  border-radius: 28px;
  background: var(--sf-white);
  box-shadow: var(--sf-shadow);
}

.sf-contact-card {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.sf-contact-title,
.sf-contact-form-title {
  color: var(--sf-ink);
  font-size: clamp(22px, 1.95vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sf-contact-rows {
  display: grid;
  gap: 14px;
  width: 100%;
}

.sf-contact-rows li {
  display: flex;
  gap: 14px;
  align-items: center;
}

.sf-contact-rows img {
  flex: none;
  width: 42px;
  height: 42px;
}

.sf-contact-rows span {
  display: grid;
  gap: 2px;
}

.sf-contact-rows a,
.sf-contact-rows strong {
  color: var(--sf-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.sf-contact-rows a:hover {
  color: var(--sf-purple);
}

.sf-contact-rows small {
  color: var(--sf-muted);
  font-size: 13px;
}

.sf-contact-label {
  margin-top: 4px;
  color: var(--sf-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sf-next-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.sf-next-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sf-next-list img {
  flex: none;
  margin-top: 1px;
}

.sf-map {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.sf-map img {
  width: 100%;
  aspect-ratio: 488 / 328;
  object-fit: cover;
  transition: transform .7s var(--sf-ease);
}

.sf-map-link {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sf-white);
  color: var(--sf-ink) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(26, 24, 43, .14);
  transition: transform .3s var(--sf-ease);
}

.sf-map-link:hover {
  transform: translateY(-2px);
}

.sf-contact-form-text {
  margin-top: -6px;
  color: var(--sf-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ============ FOOTER ============
   The footer comes from the shared ../footer.php and ../assets/css/footer.css. */
.sf-body .site-footer,
.sf-body footer {
  position: relative;
}

/* =========================================================================
   FIGMA ALIGNMENT
   Exact spacing, heights, colours and type sizes taken from the Figma
   exports (1440px frame). Values scale down with clamp() and the
   responsive rules further below still apply on smaller screens.
   ========================================================================= */

/* ---- Shared type ---- */
.sf-h2 {
  font-size: clamp(32px, 3.75vw, 54px);
  line-height: 1.185;
  letter-spacing: -0.045em;
}

.sf-lead {
  color: var(--sf-muted);
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.45;
}

.sf-section-head {
  margin-bottom: clamp(36px, 4.2vw, 60px);
}

.sf-section-head .sf-lead {
  margin-top: 20px;
}

.sf-tag {
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--sf-lilac);
  color: var(--sf-purple-bright);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.sf-card {
  border-color: var(--sf-card-line);
}

/* ---- Hero ---- */
.sf-hero {
  border-radius: 0 0 clamp(28px, 3.9vw, 56px) clamp(28px, 3.9vw, 56px);
}

.sf-hero-title {
  line-height: 1.18;
  letter-spacing: -0.059em;
}

.sf-hero-lead {
  margin-top: 20px;
  color: #F1EBFF;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.67;
}

.sf-hero-text {
  margin-top: 20px;
  color: rgba(255, 255, 255, .79);
  font-size: 16px;
  line-height: 26px;
}

.sf-hero-actions {
  gap: 12px;
}

.sf-hero-actions .sf-btn {
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 600;
}

.sf-hero-caption {
  color: rgba(255, 255, 255, .55);
  font-weight: 600;
  letter-spacing: 1.68px;
}

.sf-hero-checks li {
  gap: 11px;
  color: rgba(255, 255, 255, .82);
  line-height: 21px;
}

.sf-quote-frame {
  border-color: rgba(255, 255, 255, .2);
  border-radius: 42px;
}

.sf-quote-card {
  padding: clamp(22px, 2.5vw, 36px);
  border-radius: 34px;
}

.sf-quote-title {
  font-size: clamp(22px, 1.81vw, 26px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.sf-quote-card .sf-quote-text {
  color: var(--sf-text);
  font-size: 14.5px;
  line-height: 1.65;
}

.sf-quote-card .sf-field-wrap {
  gap: 8px;
}

.sf-field-wrap label {
  color: var(--sf-text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.sf-field {
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 14px;
}

textarea.sf-field {
  height: 84px;
  padding: 13px 16px;
}

.sf-quote-card .sf-btn {
  min-height: 58px;
  font-size: 16px;
  font-weight: 600;
}

.sf-form-note {
  color: var(--sf-text);
  font-size: 12px;
}

/* ---- Stats ---- */
.sf-stats {
  padding-top: 34px;
}

.sf-stats-grid {
  padding-bottom: 34px;
}

.sf-stat {
  gap: 4px;
  padding: 4px 16px;
}

.sf-stat-value {
  font-size: clamp(32px, 2.99vw, 43px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.sf-stat-label {
  color: var(--sf-muted);
  font-size: 12px;
  line-height: 20px;
}

/* ---- Why Appagentix ---- */
.sf-why-head {
  gap: 64px;
  margin-bottom: 42px;
}

.sf-why-head .sf-h2 {
  font-size: clamp(32px, 3.34vw, 48px);
  font-weight: 600;
  line-height: 1.083;
  letter-spacing: -0.035em;
}

.sf-why-text {
  gap: 16px;
  color: var(--sf-text);
  font-size: 15px;
  line-height: 1.65;
}

.sf-why-grid {
  gap: 16px;
}

.sf-why-card {
  gap: 8px;
  min-height: 200px;
  padding: 27px;
  border-radius: 24px;
  color: var(--sf-text);
  font-size: 14px;
  line-height: 1.6;
}

.sf-why-num {
  margin-bottom: 17px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.sf-why-card .sf-card-title,
.sf-service .sf-card-title {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.sf-why-summary {
  border-color: var(--sf-card-line);
  background: var(--sf-white);
  color: var(--sf-ink);
  font-size: 14px;
  line-height: 22px;
}

/* ---- Services & AI (17px intro copy) ---- */
.sf-services .sf-lead,
.sf-ai .sf-lead {
  color: var(--sf-text);
  font-size: clamp(16px, 1.18vw, 17px);
  font-weight: 400;
  line-height: 1.6;
}

.sf-services .sf-section-head {
  margin-bottom: 50px;
}

.sf-ai .sf-section-head {
  margin-bottom: clamp(40px, 4.45vw, 64px);
}

.sf-services-grid {
  gap: 16px;
}

.sf-service {
  padding: 14px 14px 0;
  border-radius: 24px;
}

.sf-service-media img {
  height: 230px;
  aspect-ratio: auto;
}

.sf-service-third .sf-service-media img {
  height: 190px;
  aspect-ratio: auto;
}

.sf-service-wide {
  padding-bottom: 14px;
}

.sf-service-wide .sf-service-media img {
  height: 100%;
  min-height: 250px;
}

.sf-service-body {
  gap: 10px;
  padding: 23px 12px 27px;
  font-size: 14px;
  line-height: 1.6;
}

.sf-service-cta {
  gap: 10px;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(145deg, #16052E 6.17%, #5E35DF 93.83%);
  color: #E6DEF9;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: none;
}

.sf-service-cta h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.sf-service-cta .sf-btn {
  min-height: 44px;
  margin-top: 10px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 600;
}

.sf-ai-grid {
  gap: 20px;
}

.sf-ai-card {
  gap: 0;
  min-height: 290px;
  padding: 28px;
  border-radius: 28px;
  color: var(--sf-text);
  font-size: 14px;
  line-height: 22px;
}

.sf-ai-icon {
  width: 60px;
  height: 60px !important;
  margin-bottom: 20px;
  border-radius: 0;
}

.sf-ai-card .sf-card-title {
  padding-bottom: 8px;
  color: #171723;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -0.015em;
}

/* ---- CTA bands (full-bleed radial gradient) ---- */
.sf-cta {
  display: flex;
  align-items: center;
  min-height: 321px;
  padding-block: clamp(40px, 2.92vw, 42px);
  overflow: hidden;
  background: var(--sf-radial);
}

.sf-cta-inner {
  max-width: calc(1104px + 2 * var(--sf-gutter));
  justify-content: space-between;
  gap: 32px;
}

.sf-cta-inner::before {
  content: none;
}

.sf-cta-copy {
  display: grid;
  gap: 20px;
  max-width: 672px;
  padding: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
}

.sf-cta-title {
  margin: 0;
  font-size: clamp(30px, 3.75vw, 54px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.0385em;
}

.sf-cta-action {
  gap: 9px;
  justify-items: stretch;
  width: max-content;
  min-width: 313px;
  max-width: 100%;
  padding: 0;
  color: var(--sf-white);
  font-size: 12px;
  line-height: 20px;
  text-align: left;
}

.sf-cta .sf-btn-wide {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 0 32px;
  border-color: rgba(26, 24, 43, .1);
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Caption under the CTA button stays as wide as the button, not wider */
.sf-cta-action p {
  width: 0;
  min-width: 100%;
}

/* Very small phones: allow the long button label to wrap instead of overflowing */
@media (max-width: 420px) {
  .sf-cta-action {
    min-width: 0;
    width: 100%;
  }

  .sf-cta .sf-btn-wide {
    padding: 12px 22px;
    white-space: normal;
  }
}

/* ---- Case studies ---- */
.sf-cases .sf-section-head {
  margin-bottom: 48px;
}

.sf-case-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  margin: 0 0 56px;
  padding: 6px;
  border: 0;
  background: #FBFBFB;
  box-shadow: 0 0 0 1px rgba(26, 24, 43, .04);
}

.sf-case-tab {
  justify-content: center;
  padding: 14px 20px;
  color: var(--sf-ink);
  font-size: 15px;
  font-weight: 500;
}

#sf-case-1:checked ~ .sf-case-tabs [for="sf-case-1"],
#sf-case-2:checked ~ .sf-case-tabs [for="sf-case-2"],
#sf-case-3:checked ~ .sf-case-tabs [for="sf-case-3"] {
  background: var(--sf-ink);
  color: var(--sf-white);
}

#sf-case-1:checked ~ .sf-case-tabs [for="sf-case-1"] img,
#sf-case-2:checked ~ .sf-case-tabs [for="sf-case-2"] img,
#sf-case-3:checked ~ .sf-case-tabs [for="sf-case-3"] img {
  filter: brightness(0) invert(1);
}

.sf-case-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 624px);
  gap: clamp(28px, 4.2vw, 60px);
  align-items: start;
}

.sf-case-copy {
  gap: 16px;
}

.sf-case-title {
  font-size: clamp(28px, 2.78vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.052em;
}

.sf-case-label {
  margin-top: 4px;
  color: #9693A3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.56px;
}

.sf-case-list {
  color: var(--sf-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.sf-case-stats {
  gap: 8px;
  padding: 8px;
  border: 0;
  border-radius: 24px;
}

.sf-case-stats > div {
  padding: 16px;
  border-radius: 18px;
  background: #FAFAFA;
}

.sf-case-stats dt {
  font-size: clamp(26px, 2.23vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.sf-case-stats dd {
  margin-top: 6px;
  color: var(--sf-muted);
  font-size: 12px;
  line-height: 16px;
}

.sf-case-copy .sf-btn {
  min-height: 56px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
}

.sf-case-media {
  position: relative;
  border-radius: 32px;
  background:
    radial-gradient(108.79% 100% at 50% 0%, rgba(255, 187, 152, 0) 0%, rgba(255, 187, 152, .2) 100%),
    radial-gradient(210.1% 116.78% at 39.65% 0%, #150079 43.61%, #6E47FF 80.43%, #9E84FF 100%);
}

.sf-case-media img {
  aspect-ratio: 624 / 560;
}

.sf-case-media:not(.sf-case-media-duo)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 24, 43, .7) 0%, rgba(26, 24, 43, .1) 50%, rgba(26, 24, 43, .2) 100%);
  pointer-events: none;
}

.sf-case-media-duo {
  aspect-ratio: 624 / 560;
  background:
    radial-gradient(108.79% 100% at 50% 0%, rgba(255, 187, 152, 0) 0%, rgba(255, 187, 152, .2) 100%),
    radial-gradient(210.1% 116.78% at 39.65% 0%, #150079 43.61%, #6E47FF 80.43%, #9E84FF 100%);
}

.sf-case-media-duo img {
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .3);
  filter: none;
}

/* ---- Testimonials ---- */
.sf-reviews {
  margin: 0;
  padding-block: clamp(56px, 5.97vw, 86px) clamp(56px, 6.04vw, 87px);
  border-radius: 0;
  background: var(--sf-radial);
}

.sf-reviews-grid {
  grid-template-columns: minmax(0, 484px) minmax(0, 700px);
  justify-content: space-between;
  gap: 56px;
  align-items: start;
}

.sf-reviews-intro {
  gap: 40px;
}

.sf-reviews .sf-h2 {
  font-size: clamp(32px, 3.34vw, 48px);
  line-height: 1.333;
  letter-spacing: -0.073em;
}

.sf-arrow-set {
  gap: 8px;
}

.sf-arrow {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.sf-arrow:hover {
  background: transparent;
}

.sf-quote-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 19px;
}

.sf-slide-quote {
  padding-bottom: 0;
  border-bottom: 0;
  font-size: clamp(19px, 1.81vw, 26px);
  line-height: 1.56;
  letter-spacing: -0.04em;
}

.sf-slide-author {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.sf-slide-author strong {
  line-height: 20px;
}

.sf-slide-author em {
  color: rgba(255, 255, 255, .6);
  font-size: 16px;
}

.sf-dots {
  bottom: 21px;
  gap: 4px;
}

.sf-dot {
  width: 6px;
  height: 6px;
}

/* ---- Pricing ---- */
.sf-pricing .sf-section-head {
  margin-bottom: clamp(40px, 4.45vw, 64px);
}

.sf-pricing .sf-lead,
.sf-process-text {
  color: var(--sf-text);
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.65;
}

.sf-price-card {
  gap: 20px;
  padding: 32px 30px 30px;
  border-radius: 32px;
  color: var(--sf-muted);
  font-size: 14px;
  line-height: 20px;
}

.sf-price-featured {
  border-color: var(--sf-purple-bright);
  box-shadow: 0 24px 50px rgba(110, 71, 255, .12);
}

.sf-price-name {
  color: var(--sf-purple-bright);
  font-weight: 800;
  letter-spacing: 1.56px;
}

.sf-price-time {
  background: #F6F3FF;
  color: var(--sf-text);
  font-size: 12px;
  font-weight: 700;
}

.sf-price-featured .sf-price-time {
  color: var(--sf-purple-bright);
}

.sf-price-value {
  letter-spacing: -0.075em;
}

.sf-price-value strong {
  font-size: clamp(32px, 2.78vw, 40px);
  font-weight: 700;
}

.sf-price-value span {
  color: var(--sf-muted);
  font-size: clamp(32px, 2.78vw, 40px);
  font-weight: 700;
}

.sf-price-value small {
  color: var(--sf-soft);
  font-weight: 700;
  letter-spacing: 0;
}

.sf-price-text {
  color: var(--sf-muted);
}

.sf-price-label {
  color: var(--sf-muted);
  font-weight: 500;
  letter-spacing: .6px;
}

.sf-check-list {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, .7);
}

.sf-check-list li {
  color: #14121C;
}

.sf-price-best {
  padding-top: 0;
  border-top: 0;
  line-height: 19.6px;
}

.sf-price-card .sf-btn {
  min-height: 56px;
  border-radius: 57px;
  font-weight: 500;
}

.sf-btn-soft {
  border-color: rgba(26, 24, 43, .08);
  background: rgba(26, 24, 43, .05);
}

.sf-price-note {
  margin-top: 18px;
  color: var(--sf-soft);
  line-height: 20.25px;
}

.sf-factors-title {
  margin: clamp(48px, 4.45vw, 64px) 0 20px;
  font-size: clamp(22px, 1.95vw, 28px);
  line-height: 1.57;
  letter-spacing: -0.025em;
}

.sf-factors-grid {
  gap: 12px;
}

.sf-factor {
  padding: 20px 24px;
  border-radius: 20px;
}

.sf-factor h4 {
  font-size: 16px;
  line-height: 25.6px;
}

.sf-factor p {
  color: var(--sf-text);
  font-size: 14px;
  line-height: 22px;
}

/* ---- Process ---- */
.sf-process-grid {
  grid-template-columns: minmax(0, 540px) minmax(0, 608px);
  justify-content: space-between;
  gap: 52px;
}

.sf-process-intro .sf-btn {
  min-height: 56px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
}

.sf-steps {
  gap: 0;
}

.sf-steps::before {
  top: 21px;
  bottom: 40px;
  left: 20px;
  width: 1px;
  background: linear-gradient(180deg, #6E47FF, #E7DDFF);
}

.sf-step {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 32px;
}

.sf-step-num {
  width: 42px;
  height: 42px;
  border: 1px solid var(--sf-card-line);
  background: var(--sf-white);
  color: var(--sf-purple);
  font-size: 13px;
  font-weight: 600;
}

.sf-step:nth-child(2) .sf-step-num {
  background: var(--sf-lilac);
}

.sf-step-body {
  gap: 10px;
  padding-top: 5px;
  color: var(--sf-text);
  font-size: 14px;
  line-height: 24px;
}

.sf-step-title {
  font-size: clamp(20px, 1.67vw, 24px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.023em;
}

.sf-step-get {
  margin-top: 4px;
  padding: 13px 16px 12px;
  background: var(--sf-white);
  font-size: 14px;
  line-height: 21px;
}

.sf-step-get strong {
  font-weight: 600;
}

/* ---- Tech stack ---- */
.sf-tech {
  padding-bottom: clamp(64px, 6.95vw, 100px);
}

.sf-tech .sf-lead {
  line-height: 1.33;
}

.sf-marquee {
  gap: 20px;
}

.sf-marquee-list {
  gap: 24px;
  padding-right: 24px;
}

/* ---- Industries ---- */
.sf-ind-set {
  grid-template-columns: minmax(0, 728px) minmax(0, 440px);
  justify-content: space-between;
  gap: 32px;
}

.sf-ind-tabs {
  gap: 20px 10px;
}

.sf-ind-tab {
  gap: 14px;
  min-height: 70px;
  padding: 14px 16px;
  border-color: transparent;
  border-radius: 24px;
  font-size: 16px;
  line-height: 23.25px;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 2px rgba(26, 24, 43, .03), 0 14px 34px -26px rgba(26, 24, 43, .22);
}

.sf-ind-tab:hover {
  border-color: rgba(110, 71, 255, .35);
}

/* The SVGs are full 42x42 tiles (own background, 12px radius), so show
   them at full size instead of shrinking the whole tile to 20px. */
.sf-ind-icon {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.sf-ind-icon img {
  grid-area: 1 / 1;
  width: 42px;
  height: 42px;
  transition: opacity .3s var(--sf-ease);
}

/* Active state, as on the Dallas page: each tab holds two stacked icons
   (outline + filled purple "-active" version). The selected tab fades to
   the filled one, lifts, and its arrow nudges right. */
.sf-ind-icon img + img {
  opacity: 0;
}

.sf-ind-tab {
  transition: border-color .3s var(--sf-ease), box-shadow .3s var(--sf-ease), transform .3s var(--sf-ease);
}

.sf-ind-tab:hover {
  box-shadow: 0 10px 24px rgba(62, 36, 160, .1);
}

#sf-ind-1:checked ~ .sf-ind-tabs [for="sf-ind-1"] .sf-ind-icon img:first-child,
#sf-ind-2:checked ~ .sf-ind-tabs [for="sf-ind-2"] .sf-ind-icon img:first-child,
#sf-ind-3:checked ~ .sf-ind-tabs [for="sf-ind-3"] .sf-ind-icon img:first-child,
#sf-ind-4:checked ~ .sf-ind-tabs [for="sf-ind-4"] .sf-ind-icon img:first-child,
#sf-ind-5:checked ~ .sf-ind-tabs [for="sf-ind-5"] .sf-ind-icon img:first-child,
#sf-ind-6:checked ~ .sf-ind-tabs [for="sf-ind-6"] .sf-ind-icon img:first-child,
#sf-ind-7:checked ~ .sf-ind-tabs [for="sf-ind-7"] .sf-ind-icon img:first-child,
#sf-ind-8:checked ~ .sf-ind-tabs [for="sf-ind-8"] .sf-ind-icon img:first-child,
#sf-ind-9:checked ~ .sf-ind-tabs [for="sf-ind-9"] .sf-ind-icon img:first-child,
#sf-ind-10:checked ~ .sf-ind-tabs [for="sf-ind-10"] .sf-ind-icon img:first-child {
  opacity: 0;
}

#sf-ind-1:checked ~ .sf-ind-tabs [for="sf-ind-1"] .sf-ind-icon img + img,
#sf-ind-2:checked ~ .sf-ind-tabs [for="sf-ind-2"] .sf-ind-icon img + img,
#sf-ind-3:checked ~ .sf-ind-tabs [for="sf-ind-3"] .sf-ind-icon img + img,
#sf-ind-4:checked ~ .sf-ind-tabs [for="sf-ind-4"] .sf-ind-icon img + img,
#sf-ind-5:checked ~ .sf-ind-tabs [for="sf-ind-5"] .sf-ind-icon img + img,
#sf-ind-6:checked ~ .sf-ind-tabs [for="sf-ind-6"] .sf-ind-icon img + img,
#sf-ind-7:checked ~ .sf-ind-tabs [for="sf-ind-7"] .sf-ind-icon img + img,
#sf-ind-8:checked ~ .sf-ind-tabs [for="sf-ind-8"] .sf-ind-icon img + img,
#sf-ind-9:checked ~ .sf-ind-tabs [for="sf-ind-9"] .sf-ind-icon img + img,
#sf-ind-10:checked ~ .sf-ind-tabs [for="sf-ind-10"] .sf-ind-icon img + img {
  opacity: 1;
}

#sf-ind-1:checked ~ .sf-ind-tabs [for="sf-ind-1"] .sf-ind-chev,
#sf-ind-2:checked ~ .sf-ind-tabs [for="sf-ind-2"] .sf-ind-chev,
#sf-ind-3:checked ~ .sf-ind-tabs [for="sf-ind-3"] .sf-ind-chev,
#sf-ind-4:checked ~ .sf-ind-tabs [for="sf-ind-4"] .sf-ind-chev,
#sf-ind-5:checked ~ .sf-ind-tabs [for="sf-ind-5"] .sf-ind-chev,
#sf-ind-6:checked ~ .sf-ind-tabs [for="sf-ind-6"] .sf-ind-chev,
#sf-ind-7:checked ~ .sf-ind-tabs [for="sf-ind-7"] .sf-ind-chev,
#sf-ind-8:checked ~ .sf-ind-tabs [for="sf-ind-8"] .sf-ind-chev,
#sf-ind-9:checked ~ .sf-ind-tabs [for="sf-ind-9"] .sf-ind-chev,
#sf-ind-10:checked ~ .sf-ind-tabs [for="sf-ind-10"] .sf-ind-chev {
  transform: translateX(3px);
}

.sf-ind-panel {
  gap: 0;
  padding: 12px 12px 20px;
  border-color: transparent;
  border-radius: 32px;
  color: var(--sf-muted);
  font-size: 14px;
  line-height: 1.8;
  box-shadow: 0 1px 2px rgba(26, 24, 43, .03), 0 20px 50px -30px rgba(26, 24, 43, .18);
}

.sf-ind-panel img {
  height: 146px !important;
}

.sf-ind-panel h3,
.sf-ind-panel p,
.sf-ind-panel .sf-btn {
  margin-inline: 8px;
}

.sf-ind-panel h3 {
  margin-top: 24px;
  font-size: clamp(24px, 1.95vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.sf-ind-panel p {
  margin-top: 12px;
}

.sf-ind-panel .sf-btn {
  min-height: 48px;
  margin-top: 24px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
}

/* ---- Comparison ---- */
.sf-compare .sf-section-head {
  margin-bottom: 35px;
}

.sf-compare .sf-lead-sm {
  margin-top: 12px;
  color: var(--sf-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.sf-table-wrap {
  border-color: var(--sf-card-line);
  border-radius: 26px;
  box-shadow: none;
}

.sf-table {
  font-size: 14px;
  line-height: 20px;
}

.sf-table th,
.sf-table td {
  padding: 16px 20px;
  border-bottom-color: var(--sf-card-line);
  vertical-align: middle;
}

.sf-table thead th {
  font-size: 14px;
  font-weight: 600;
}

.sf-table td {
  color: var(--sf-text);
}

.sf-table td.sf-col-us {
  background: var(--sf-lilac);
}

.sf-table-note {
  margin: 24px auto 0;
}

.sf-compare .sf-center {
  padding-top: 24px;
}

.sf-compare .sf-center .sf-btn {
  padding: 0 26px;
  font-size: 15px;
  font-weight: 600;
}

/* ---- Engagement models ---- */
.sf-engage .sf-section-head {
  margin-bottom: clamp(40px, 3.9vw, 56px);
}

.sf-engage .sf-h2 {
  font-size: clamp(34px, 4.45vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.sf-engage .sf-lead {
  color: var(--sf-text);
  font-weight: 400;
  line-height: 1.65;
}

.sf-engage-card {
  gap: 14px;
  min-height: 334px;
  padding: clamp(26px, 2.5vw, 36px);
  border-radius: 30px;
  color: var(--sf-text);
  font-size: 15px;
  line-height: 24px;
}

.sf-engage-num {
  margin-bottom: 0;
  font-size: clamp(44px, 3.9vw, 56px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.sf-engage-card .sf-card-title {
  font-size: clamp(22px, 1.81vw, 26px);
  line-height: 1.31;
  letter-spacing: -0.03em;
}

/* ---- Compliance ---- */
.sf-compliance {
  padding-block: clamp(56px, 5.97vw, 86px) clamp(56px, 5.9vw, 85px);
}

.sf-badge-card {
  gap: 12px;
  align-content: center;
  min-height: 142px;
  padding: 24px 20px;
  border-radius: 26px;
  font-size: 17px;
  line-height: 18px;
  letter-spacing: -0.01em;
}

.sf-badge-card img {
  height: 64px !important;
}

/* ---- FAQ ---- */
.sf-faq {
  background: var(--sf-white);
}

.sf-faq .sf-section-head {
  margin-bottom: clamp(40px, 4.86vw, 70px);
}

.sf-faq .sf-h2 {
  letter-spacing: -0.055em;
}

.sf-faq .sf-lead {
  line-height: 1.33;
}

.sf-faq-set {
  grid-template-columns: minmax(0, 420px) minmax(0, 714px);
  justify-content: space-between;
  gap: clamp(32px, 4.6vw, 66px);
}

.sf-faq-side {
  gap: 28px;
}

.sf-faq-tabs {
  gap: 8px;
}

.sf-faq-tab {
  padding: 14px 20px;
  border-color: var(--sf-card-line);
  border-radius: 18px;
  font-size: 15.5px;
  line-height: 22px;
}

.sf-faq-count {
  background: var(--sf-lilac);
  color: var(--sf-purple-bright);
}

#sf-faq-1:checked ~ .sf-faq-side [for="sf-faq-1"],
#sf-faq-2:checked ~ .sf-faq-side [for="sf-faq-2"],
#sf-faq-3:checked ~ .sf-faq-side [for="sf-faq-3"],
#sf-faq-4:checked ~ .sf-faq-side [for="sf-faq-4"],
#sf-faq-5:checked ~ .sf-faq-side [for="sf-faq-5"],
#sf-faq-6:checked ~ .sf-faq-side [for="sf-faq-6"] {
  color: var(--sf-purple-bright);
}

.sf-faq-card {
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--sf-card-line);
  border-radius: 30px;
  background: var(--sf-white);
  color: var(--sf-text);
  font-size: 15px;
  line-height: 24px;
}

.sf-faq-card h3 {
  color: var(--sf-ink);
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -0.023em;
}

.sf-faq-card .sf-btn {
  min-height: 52px;
  margin-top: 4px;
  padding: 0 28px;
  background: var(--sf-ink);
  color: var(--sf-white);
  font-size: 16px;
  font-weight: 600;
}

.sf-faq-panel {
  border-top-color: var(--sf-card-line);
}

.sf-faq-item {
  border-bottom-color: rgba(26, 24, 43, .1);
}

.sf-faq-item summary {
  padding: 26px 40px 26px 6px;
  font-size: clamp(17px, 1.39vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.sf-faq-item summary::after {
  right: 6px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 0;
  background: transparent url("../../images/sanfransico/icons/chevron-down.svg") no-repeat center / 20px;
}

.sf-faq-item[open] summary::after {
  background-color: transparent;
}

.sf-faq-item p {
  padding: 0 40px 20px 6px;
  color: var(--sf-text);
  font-size: 16px;
  line-height: 1.65;
}

/* ---- Contact (space before footer) ----
   The shared style.css gives the home page's #contact a fixed 1053px height
   on wide screens. This page reuses the #contact anchor, so reset it here or
   the cards spill into the footer and the bottom spacing disappears. */
.sf-page #contact.sf-contact {
  height: auto;
  min-height: 0;
  padding-block: var(--sf-section-y);
}

/* ---- Section rhythm ----
   One vertical spacing value for every content section (88px at 1440px,
   56px on phones). Where two white sections meet, the second one drops its
   top padding so the gap between them is one step, not two. */
.sf-section.sf-tech,
.sf-section.sf-reviews,
.sf-section.sf-compliance {
  padding-block: var(--sf-section-y);
}

.sf-process + .sf-tech,
.sf-engage + .sf-compliance {
  padding-top: 0;
}

/* FAQ: keep its own top spacing so the heading never sits against the
   section above. */
.sf-section.sf-faq {
  padding-top: var(--sf-section-y);
}

/* ---- Figma alignment: tablet & mobile ---- */
@media (max-width: 1024px) {
  .sf-cta {
    min-height: 0;
    padding-block: 48px;
  }

  .sf-cta-copy {
    max-width: none;
    padding: 0;
    text-align: center;
  }

  .sf-cta-action {
    justify-self: center;
    justify-items: center;
    padding: 0;
    text-align: center;
  }

  .sf-why-head {
    gap: 24px;
  }

  .sf-reviews-grid,
  .sf-process-grid,
  .sf-ind-set,
  .sf-faq-set,
  .sf-case-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .sf-ind-panels {
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  .sf-case-tabs {
    display: flex;
    overflow-x: auto;
  }

  .sf-case-tab {
    flex: 1 0 auto;
  }

  .sf-service-media img,
  .sf-service-third .sf-service-media img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .sf-service-wide .sf-service-media img {
    min-height: 0;
    aspect-ratio: 579 / 420;
  }

  .sf-steps::before {
    bottom: 32px;
  }

  .sf-step {
    gap: 16px;
  }
}

/* ============ HOVER EFFECTS (pointer devices) ============ */
@media (hover: hover) and (pointer: fine) {
  .sf-card:hover {
    border-color: rgba(110, 71, 255, .3);
    box-shadow: var(--sf-shadow-hover);
    transform: translateY(-6px);
  }

  .sf-tilt:hover {
    transform: perspective(900px) rotateX(2deg) rotateY(-2deg) translateY(-6px);
  }

  .sf-service:hover .sf-service-media img,
  .sf-case-panel:hover .sf-case-media img,
  .sf-map:hover img {
    transform: scale(1.05);
  }

  .sf-case-panel:hover .sf-case-media-duo img {
    transform: none;
  }

  .sf-case-panel:hover .sf-case-media-duo img:nth-child(2) {
    transform: translateY(6%);
  }

  .sf-ai-card:hover .sf-ai-icon {
    transform: translateY(-3px) rotate(-4deg);
  }

  .sf-factor:hover,
  .sf-badge-card:hover {
    border-color: rgba(110, 71, 255, .3);
    box-shadow: var(--sf-shadow-hover);
    transform: translateY(-4px);
  }

  .sf-badge-card:hover img {
    transform: scale(1.06);
  }

  .sf-hero-badges li:hover {
    box-shadow: 0 14px 30px rgba(8, 2, 40, .35);
    transform: translateY(-4px);
  }

  .sf-logos:hover .sf-logos-track,
  .sf-marquee:hover .sf-marquee-track {
    animation-play-state: paused;
  }

  /* ---- Buttons: lift + light sweep ---- */
  .sf-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  .sf-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform .6s var(--sf-ease);
    pointer-events: none;
  }

  .sf-btn:hover::after {
    transform: translateX(110%);
  }

  .sf-btn:hover {
    transform: translateY(-3px);
  }

  .sf-btn-white:hover,
  .sf-btn-glass:hover {
    box-shadow: 0 14px 30px rgba(10, 4, 60, .3);
  }

  .sf-btn-soft:hover::after {
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
  }

  /* ---- Tabs: clear hover state (hovering also switches the panel) ---- */
  .sf-case-tab:hover {
    background: rgba(26, 24, 43, .06);
  }

  .sf-ind-tab:hover {
    border-color: rgba(110, 71, 255, .35);
    transform: translateY(-2px);
  }

  .sf-faq-tab:hover {
    border-color: rgba(110, 71, 255, .45);
    color: var(--sf-purple-bright);
  }

  .sf-faq-item summary:hover::after {
    background-color: var(--sf-lilac);
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .sf-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  }

  .sf-factors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sf-badge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .sf-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .sf-hero-side {
    width: 100%;
    max-width: 620px;
  }

  .sf-why-head,
  .sf-process-grid,
  .sf-reviews-grid,
  .sf-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sf-process-intro,
  .sf-faq-side {
    position: static;
  }

  .sf-why-grid,
  .sf-ai-grid,
  .sf-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-price-grid .sf-price-card:last-child {
    grid-column: 1 / -1;
  }

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

  .sf-service-half,
  .sf-service-third,
  .sf-service-cta {
    grid-column: span 1;
  }

  .sf-service-wide {
    grid-column: 1 / -1;
  }

  .sf-case-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .sf-case-media {
    order: -1;
  }

  .sf-ind-set,
  .sf-faq-set {
    grid-template-columns: minmax(0, 1fr);
  }

  .sf-cta-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .sf-cta-copy {
    max-width: none;
    padding: 0;
    text-align: center;
  }

  .sf-cta-action {
    justify-self: center;
    justify-items: center;
    padding: 0;
    text-align: center;
  }

  .sf-engage-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .sf-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .sf-stat:nth-child(3) {
    border-left: 0;
  }

  .sf-why-grid,
  .sf-ai-grid,
  .sf-price-grid,
  .sf-services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sf-service-wide {
    flex-direction: column;
  }

  .sf-service-wide .sf-service-media img {
    min-height: 0;
    aspect-ratio: 579 / 420;
  }

  .sf-service-wide .sf-service-body {
    padding: 20px 12px 12px;
  }

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

  .sf-ind-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .sf-case-tabs {
    width: 100%;
    margin-inline: 0;
  }

  .sf-reviews {
    margin-inline: 0;
    border-radius: 0;
  }

  .sf-slide-author {
    padding-right: 0;
  }

  .sf-dots {
    position: static;
    margin-top: 24px;
  }

  .sf-cta {
    padding-block: 44px;
  }

  .sf-btn-wide {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sf-hero-checks,
  .sf-field-row,
  .sf-factors-grid,
  .sf-case-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .sf-hero-actions .sf-btn {
    width: 100%;
  }

  .sf-hero-badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .sf-hero-badges li {
    padding: 8px;
    border-radius: 14px;
  }

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

  .sf-stat {
    padding-inline: 8px;
  }

  .sf-case-tab {
    padding: 10px 16px;
    font-size: 14px;
  }

  .sf-quote-frame {
    border-radius: 28px;
  }

  .sf-quote-card {
    border-radius: 22px;
  }

  .sf-faq-item summary {
    padding-right: 48px;
  }

  .sf-faq-item p {
    padding-right: 0;
  }

  .sf-ind-panel .sf-btn,
  .sf-case-copy .sf-btn,
  .sf-process-intro .sf-btn {
    width: 100%;
  }

  .sf-ind-panel .sf-btn {
    width: auto;
    justify-self: stretch;
  }
}

/* ============ ANIMATIONS ============ */
@keyframes sf-panel-in {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes sf-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes sf-reveal-up {
  from {
    opacity: 0;
    translate: 0 40px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes sf-reveal-left {
  from {
    opacity: 0;
    translate: 48px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes sf-reveal-right {
  from {
    opacity: 0;
    translate: -48px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* Stats counters: counted up once by sanfransico.js (not tied to scroll).
   Tabular figures keep the width steady while the digits change. */
.sf-count-num {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
  .sf-logos-track {
    /* 16 home-page logos (was 6), so a longer loop keeps the same scroll speed. */
    animation: sf-marquee 80s linear infinite;
  }

  .sf-marquee-track {
    animation: sf-marquee 48s linear infinite;
  }

  .sf-marquee-reverse {
    animation-direction: reverse;
  }

  /* Scroll reveal + counters only where scroll-driven animations exist;
     everywhere else, content is simply visible with its final numbers. */
  @supports (animation-timeline: view()) {
    [data-reveal] {
      animation: sf-reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    [data-reveal="left"] {
      animation-name: sf-reveal-left;
    }

    [data-reveal="right"] {
      animation-name: sf-reveal-right;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.sf-body) {
    scroll-behavior: auto;
  }

  .sf-page *,
  .sf-page *::before,
  .sf-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  /* Static logo rows instead of an endless marquee */
  .sf-logos-track,
  .sf-marquee-track {
    width: 100%;
    animation: none;
  }

  .sf-logos-list,
  .sf-marquee-list {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }

  .sf-logos-list[aria-hidden="true"],
  .sf-marquee-list[aria-hidden="true"] {
    display: none;
  }

  .sf-logos,
  .sf-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .sf-marquee {
    padding-inline: var(--sf-gutter);
  }
}

/* ============ SERVICES: updated card images ============
   The service images ship with their own framed backgrounds, so show each
   one whole at its natural shape instead of a fixed height + crop. Scoped
   to .sf-services so the industries section keeps its own image rules. */
.sf-services .sf-service-media {
  line-height: 0;
  background: transparent;
}

.sf-services .sf-service-half .sf-service-media img {
  height: auto;
  aspect-ratio: 833 / 341;
  object-fit: cover;
  object-position: center;
}

.sf-services .sf-service-third .sf-service-media img {
  height: auto;
  aspect-ratio: 533 / 281;
  object-fit: cover;
  object-position: center;
}

/* Desktop: the Future-Ready image fills the left half of its card. */
.sf-services .sf-service-wide .sf-service-media img {
  height: 100%;
  min-height: 0;
  aspect-ratio: 429 / 369;
  object-fit: cover;
  object-position: center;
}

/* Phones: the Future-Ready card stacks, so show its image at full shape. */
@media (max-width: 768px) {
  .sf-services .sf-service-wide .sf-service-media {
    flex: 0 0 auto;
  }

  .sf-services .sf-service-wide .sf-service-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 429 / 369;
  }
}

/* ---- Case-study tabs: full composite screenshots ---- */
.sf-case-media.sf-case-media-shot {
  background: transparent;
  line-height: 0;
}

.sf-case-media.sf-case-media-shot::after {
  content: none;
}

.sf-case-media.sf-case-media-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 624 / 560;
  object-fit: cover;
}

/* ---- Industries: new 488x211 photos, shown whole ---- */
.sf-ind-panel img {
  display: block;
  height: auto !important;
  aspect-ratio: 488 / 211;
  object-fit: cover;
}
