/* /services-guide landing page — scoped to main.sg so the rest of the site is untouched */
.sg {
  --sg-gold: #c4a35a;
  --sg-gold-deep: #b08a3e;
  --sg-gold-soft: #e9dcb5;
}

.sg-hero {
  position: relative;
  padding: 2.6rem 0 3.2rem;
  overflow: hidden;
}
.sg-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -20% -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(60% 60% at 50% 50%, #e7ecd9 0%, transparent 70%);
  pointer-events: none;
}
.sg-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 3rem 4rem;
  align-items: center;
}
.sg-hero-copy { max-width: 40rem; }
.sg-audience {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}
.sg-hero h1 {
  max-width: 12ch;
  text-wrap: balance;
  margin-bottom: 1.15rem;
}
.sg-mark {
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--mark) 55%, transparent), color-mix(in srgb, var(--sg-gold) 55%, transparent));
  background-size: 100% 0.36em;
  background-repeat: no-repeat;
  background-position: 0 88%;
}
.sg-hero .lede { margin: 0 0 1.6rem; }
.sg-actions { margin: 0; }
.sg-download {
  font-size: 1.05rem;
  padding: 0.95rem 1.55rem;
}

.sg-cover-stage {
  justify-self: center;
  width: min(100%, 26rem);
  padding: 1.15rem 1.5rem 2.1rem;
}
.sg-cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.sg-cover-link:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 8px;
  border-radius: 12px;
}
.sg-cover-frame {
  display: block;
  aspect-ratio: 210 / 297;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #fbf8f1;
  transform: rotate(-3.25deg);
  box-shadow:
    0 28px 60px rgba(28, 29, 24, 0.22),
    0 8px 18px rgba(28, 29, 24, 0.1),
    0 0 0 1px rgba(28, 29, 24, 0.06);
}
.sg-cover-frame img,
.sg-cover-frame picture,
.sg-cover-frame source {
  width: 100%;
  height: 100%;
}
.sg-cover-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-inside,
.sg-together {
  padding: 3.2rem 0 3.4rem;
}
.sg-inside h2,
.sg-together h2,
.sg-thumbs-h,
.sg-cta h2 {
  margin-bottom: 0.35rem;
}
.sg-together .lede { margin: 0.4rem 0 1.8rem; }

.sg-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}
.sg-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.7rem 0.7rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.sg-card-illo {
  aspect-ratio: 410 / 310;
  background: #e7ecd9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.95rem;
}
.sg-card-illo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sg-card h3 {
  font-family: var(--font-serif);
  font-weight: 520;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  padding: 0 0.45rem;
}
.sg-card p {
  color: var(--ink-soft);
  margin: 0;
  padding: 0 0.45rem;
  font-size: 0.98rem;
}
@media (min-width: 961px) {
  .sg-card:last-child { grid-column: 2; }
}

.sg-thumbs {
  padding: 2.2rem 0 2.5rem;
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}
.sg-thumbs-h {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  font-weight: 520;
}
.sg-thumbs-row {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.6rem;
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.sg-thumbs-row li {
  flex: 1 1 0;
  min-width: 6.4rem;
  max-width: 8rem;
  scroll-snap-align: start;
}
.sg-thumbs-row a {
  display: block;
  border-radius: 7px;
  text-decoration: none;
}
.sg-thumbs-row a:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}
.sg-thumbs-row picture,
.sg-thumbs-row img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(28, 29, 24, 0.12);
  object-fit: cover;
}

.sg-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.sg-step {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.2rem 1.15rem 1.25rem;
}
.sg-step .ic {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
  margin-bottom: 0.7rem;
}
.sg-step-n {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--sg-gold-deep);
  line-height: 1;
  margin: 0 0 0.45rem;
}
.sg-step h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--sage-deep);
  margin: 0 0 0.4rem;
}
.sg-step p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.sg-cta {
  background: var(--sage-deep);
  color: #fbf8f1;
  padding: 3.1rem 0 3.2rem;
  position: relative;
  overflow: hidden;
}
.sg-cta::before {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -6rem;
  top: -8rem;
  border-radius: 50%;
  background: #4d5c3a;
  opacity: 0.55;
  pointer-events: none;
}
.sg-cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem 2.4rem;
}
.sg-cta-copy { max-width: 36rem; }
.sg-cta-kicker { color: var(--sg-gold-soft); }
.sg-cta h2 {
  color: #fff;
  margin: 0 0 0.5rem;
}
.sg-cta p { margin: 0; color: #dfe4d3; }
.sg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}
.sg-cta-download {
  background: var(--sg-gold);
  color: var(--sage-deep);
  border-color: var(--sg-gold);
  font-size: 1.05rem;
  padding: 0.95rem 1.5rem;
}
.sg-cta-download:hover {
  background: var(--sg-gold-soft);
  color: var(--sage-deep);
  border-color: var(--sg-gold-soft);
}
.sg-cta-contact {
  background: transparent;
  color: #fbf8f1;
  border-color: color-mix(in srgb, #fbf8f1 55%, transparent);
}
.sg-cta-contact:hover {
  background: color-mix(in srgb, #fff 12%, transparent);
  color: #fff;
}

@media (max-width: 960px) {
  .sg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-hero-grid { gap: 2rem 2.4rem; }
}
@media (max-width: 780px) {
  .sg-hero { padding: 0.7rem 0 1.3rem; }
  .sg-hero-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .sg-hero h1 {
    max-width: none;
    font-size: clamp(2.15rem, 10vw, 2.7rem);
    margin-bottom: 0.7rem;
  }
  .sg-audience { margin-bottom: 0.55rem; }
  .sg-hero .lede { margin-bottom: 1rem; }
  .sg-hero .sg-actions { margin-bottom: 0.9rem; }
  .sg-cover-stage {
    width: min(62%, 14.25rem);
    padding: 0.1rem 0.9rem 0.35rem;
    order: -1;
  }
  .sg-cover-frame { transform: rotate(-2deg); }
  .sg-inside, .sg-together { padding: 2.3rem 0 2.5rem; }
}
@media (max-width: 560px) {
  .sg-cards { grid-template-columns: 1fr; }
  .sg-steps { grid-template-columns: 1fr; }
  .sg-cta { padding: 2.4rem 0 2.5rem; }
  .sg-download, .sg-cta-download, .sg-cta-contact { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-cover-frame { transform: none; }
  .sg-cover-stage { padding: 0 0 0.4rem; }
}
