:root {
  --service-shell: min(1160px, calc(100% - 48px));
}

body.service-page {
  color: var(--ink);
  background: #eef1f5;
}

.service-page .site-header {
  position: fixed;
}

.service-page .nav-shell {
  grid-template-columns: auto 1fr auto;
}

.service-page .nav-actions {
  justify-content: flex-end;
}

.service-home-link {
  justify-self: end;
  color: #42505f;
  font-size: 0.82rem;
  font-weight: 760;
}

.service-home-link:hover {
  color: var(--blue);
}

.service-main {
  min-height: 100vh;
  padding: 132px 0 94px;
}

.service-shell {
  width: var(--service-shell);
  min-width: 0;
  margin: 0 auto;
}

.service-hero {
  position: relative;
  min-height: 410px;
  padding: 62px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-radius: 34px;
}

.service-hero::before,
.service-hero::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.service-hero::before {
  top: -160px;
  right: -100px;
  width: 460px;
  height: 460px;
}

.service-hero::after {
  top: -80px;
  right: -20px;
  width: 300px;
  height: 300px;
}

.service-hero[data-tone='blue'] {
  background: var(--blue);
}

.service-hero[data-tone='yellow'] {
  color: var(--ink);
  background: var(--yellow);
}

.service-hero[data-tone='yellow']::before,
.service-hero[data-tone='yellow']::after {
  border-color: rgba(17, 22, 29, 0.12);
}

.service-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 860px;
  overflow-wrap: anywhere;
}

.service-hero .eyebrow {
  margin-bottom: 22px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-hero[data-tone='yellow'] .eyebrow {
  color: var(--blue);
}

.service-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.3rem, 7.2vw, 7.1rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.service-hero p {
  max-width: 720px;
  margin: 28px 0 0;
  color: #c7d0db;
  font-size: 1.04rem;
  line-height: 1.65;
}

.service-hero[data-tone='blue'] p {
  color: #dceeff;
}

.service-hero[data-tone='yellow'] p {
  color: #3d4652;
}

.service-content {
  padding-top: 30px;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 20px;
}

.service-article,
.service-summary,
.service-card {
  min-width: 0;
  padding: 44px;
  overflow-wrap: anywhere;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.service-article h2,
.service-article h3,
.service-summary h2,
.service-summary h3,
.service-card h2,
.service-card h3 {
  margin: 0;
  letter-spacing: -0.035em;
}

.service-article h3 {
  margin-top: 40px;
  font-size: 1.45rem;
}

.service-article h3:first-child {
  margin-top: 0;
}

.service-article p,
.service-article li,
.service-summary p,
.service-summary li,
.service-card p,
.service-card li {
  color: #525d69;
  font-size: 1rem;
  line-height: 1.75;
}

.service-article ul,
.service-article ol,
.service-card ul,
.service-card ol {
  padding-left: 1.35rem;
}

.service-article a,
.service-summary a,
.service-card a {
  color: var(--blue);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.service-summary {
  position: sticky;
  top: 106px;
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.service-summary h2 {
  font-size: 2rem;
}

.service-summary a {
  color: var(--white);
}

.meta-list {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.meta-item {
  padding: 16px;
  color: #dceeff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.meta-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

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

.service-card {
  min-height: 340px;
}

.service-card:nth-child(2) {
  background: #fff0b8;
  border-color: #f0d67d;
}

.service-card h2 {
  margin-bottom: 28px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.service-card .note {
  margin-top: 24px;
  padding: 16px;
  color: var(--ink);
  background: var(--blue-pale);
  border-radius: 14px;
  line-height: 1.55;
}

.service-card:nth-child(2) .note {
  background: rgba(255, 255, 255, 0.55);
}

.download-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.download-card {
  min-width: 0;
  min-height: 360px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.download-card-google {
  color: var(--ink);
  background: #ffd45a;
  border-color: #e8b62b;
}

.download-card-apple {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.download-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 17px;
}

.download-card-google .download-card-icon {
  color: var(--white);
  background: var(--ink);
}

.download-card-apple .download-card-icon {
  color: var(--ink);
  background: var(--yellow);
}

.download-card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.download-card h2 {
  margin: 44px 0 12px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
}

.download-card p {
  margin: 0 0 30px;
  color: var(--muted);
  line-height: 1.6;
}

.download-card-google p {
  color: #42505f;
}

.download-card-apple p {
  color: #ffffff;
}

.download-card .store-badge-link {
  width: 184px;
  height: 72px;
  min-height: 72px;
  padding: 0;
  justify-content: center;
  margin-top: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: transform 160ms ease;
}

.download-card .store-badge-link:hover {
  transform: translateY(-2px);
}

.download-card .store-badge-link img,
.download-card .store-badge-link-apple img,
.download-card .store-badge-link-google img,
.download-card .store-badge-link-google img[src$='.svg'] {
  width: auto;
  max-width: 100%;
  margin: 0;
}

.download-card .store-badge-link-apple img {
  width: 168px;
  height: auto;
}

.download-card .store-badge-link-google img {
  width: 184px;
  height: auto;
}

.download-card .store-badge-link-google img[src$='.svg'] {
  height: 52px;
  margin: 0;
}

.download-note {
  margin-top: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #42505f;
  background: #dff7eb;
  border: 1px solid #b7e5cf;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.download-note svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: #0a835f;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.service-footer {
  padding: 46px 24px;
  color: var(--white);
  background: var(--ink);
}

.service-footer-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}

.service-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.service-footer-links a {
  color: #c7d0db;
  font-size: 0.82rem;
}

.service-footer-links a[aria-current='page'] {
  color: var(--yellow);
}

@media (max-width: 900px) {
  .service-layout,
  .service-grid,
  .download-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-summary {
    position: static;
  }

  .service-card,
  .download-card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --service-shell: calc(100% - 28px);
  }

  .service-page .nav-shell {
    grid-template-columns: auto 1fr;
  }

  .service-page .nav-actions {
    gap: 0;
  }

  .service-home-link {
    display: none;
  }

  .service-page .nav-cta {
    width: 50px;
    overflow: hidden;
    color: transparent;
  }

  .service-page .nav-cta span:last-child {
    color: var(--white);
  }

  .service-main {
    padding: 100px 0 70px;
  }

  .service-hero {
    min-height: 420px;
    padding: 34px 24px;
    border-radius: 26px;
  }

  .service-hero h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
    letter-spacing: -0.065em;
  }

  .service-article,
  .service-summary,
  .service-card,
  .download-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .service-article h3 {
    margin-top: 34px;
  }

  .service-footer-shell {
    grid-template-columns: 1fr;
  }

  .service-footer-links {
    justify-content: flex-start;
  }
}
