.global-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 16px;
}

/* App Store / Google Play の共通ボタン列 */
.global-store-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;

  @media (max-width: 480px) {
    width: 100%;
    flex-wrap: nowrap;

    > [data-store-download-button] {
      width: 0;
      flex: 1 1 0;
    }
  }
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border-brand-muted);
  backdrop-filter: blur(18px) saturate(140%);

  .global-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    height: 80px;
    padding: 0 32px;
  }

  .global-header__brand-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
  }

  .global-header__menu-button {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    background: var(--bg-base);
    color: var(--text-primary);
    cursor: pointer;

    svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-width: 2;
      color: var(--c-mint-base);
    }
  }

  @media (max-width: 360px) {
    .global-header__inner {
      padding-inline: 16px;
    }

    .global-brand {
      flex-direction: column;
      font-size: var(--fs-2xl);
      line-height: 1.2;
    }
  }
}

.global-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: var(--fs-30);
  font-weight: var(--weight-extra-bold);
  letter-spacing: -0.04em;
  text-decoration: none;

  .global-brand__latin {
    color: var(--text-primary);

    strong {
      color: var(--c-mint-base);
    }
  }

  .global-brand__kana {
    color: var(--text-secondary);
    font-size: var(--fs-10);
    font-weight: var(--weight-extra-bold);
    letter-spacing: 0;
    white-space: nowrap;
  }
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0 32px;
  margin-left: auto;

  .global-nav__link {
    position: relative;
    color: var(--text-primary);
    font-size: var(--fs-md);
    font-weight: var(--weight-bold);
    text-decoration: none;
    white-space: nowrap;
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;

    &:hover,
    &[aria-current="page"] {
      color: var(--c-mint-base);
      text-decoration: none;
    }
  }
}

.global-arrow-icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;

  &.global-arrow-icon--down {
    transform: rotate(90deg);
  }

  &.global-arrow-icon--external {
    transform: rotate(-45deg);
  }
}

.global-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  background: var(--overlay-dark);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;

  &.global-mobile-nav--open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;

    .global-mobile-nav__panel {
      transform: translateX(0);
    }
  }

  .global-mobile-nav__panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(90%, 360px);
    height: 100dvh;
    padding: 8px 16px 32px;
    overflow-y: auto;
    background: var(--bg-base);
    transform: translateX(100%);
    transition: transform 0.32s ease;
  }

  .global-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    & > span {
      color: var(--text-secondary);
      font-size: var(--fs-xs);
      font-weight: var(--weight-bold);
    }
  }

  .global-mobile-nav__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    background: var(--bg-base);
    color: var(--c-mint-base);
    cursor: pointer;

    svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-width: 2;
    }
  }

  .global-mobile-nav__list {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .global-mobile-nav__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--c-mint-base);
    color: var(--text-primary);
    font-size: var(--fs-sm);
    font-weight: var(--weight-bold);
    line-height: 1.6;
    text-decoration: none;

    &:last-child {
      border-bottom: 0;
    }

    &:hover,
    &:focus-visible,
    &[aria-current="page"] {
      color: var(--c-mint-ink);
      text-decoration: none;
    }

    .global-arrow-icon {
      width: 16px;
      height: 16px;
    }
  }
}

.global-section-label {
  margin: 0 0 16px;
  color: #e85e49;
  font-size: var(--fs-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.16em;
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 48px;
  padding: 8px 24px;
  border-radius: var(--r-pill);
  font-weight: var(--weight-bold);
  text-decoration: none;
  transition: transform 0.2s ease;
  &:hover {
    transform: translateY(-2px);
  }

  &:focus-visible {
    outline: 3px solid var(--c-sun-base);
    outline-offset: 3px;
  }

  &.portal-button--primary {
    background: var(--text-primary);
    color: var(--text-inverse);
  }

  &.portal-button--secondary {
    background: var(--bg-base);
    color: var(--text-primary);
  }

}

.portal-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);

  &::before,
  &::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }

  &::before {
    top: -210px;
    left: -150px;
    width: 416px;
    height: 416px;
    background: rgba(114, 219, 199, 0.23);
  }

  &::after {
    right: -180px;
    bottom: -160px;
    width: 360px;
    height: 360px;
    background: rgba(255, 139, 120, 0.19);
  }

  h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(var(--fs-4xl), 4.3vw, var(--fs-5xl));
    font-weight: var(--weight-extra-bold);
    line-height: 1.24;
    letter-spacing: -0.05em;
    text-wrap: balance;
  }

  .portal-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
    align-items: center;
    gap: 48px;
    padding-block: 56px;
  }

  .portal-hero__content {
    position: relative;
    z-index: 2;
  }

  .portal-hero__no-break {
    white-space: nowrap;
  }

  .portal-hero__lead {
    max-width: 648px;
    margin: 24px 0 32px;
    color: var(--text-secondary);
    font-size: clamp(var(--fs-md), 1.6vw, var(--fs-lg));
    line-height: 1.9;
  }

  .portal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .portal-hero__visual {
    position: relative;
    min-height: 400px;

    &::before {
      content: "";
      position: absolute;
      inset: 54px 8px 38px 34px;
      border-radius: 48% 52% 45% 55%;
      background: linear-gradient(145deg, #d9f8f0, #fff4ad);
      transform: rotate(-5deg);
    }
  }

  .portal-hero__icon {
    position: absolute;
    z-index: 2;
    padding: 8px;
    border: 1px solid var(--border-brand-subtle);
    border-radius: 27%;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);

    img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 24%;
    }

    &.portal-hero__icon--photo {
      top: 28px;
      left: 16px;
      width: 232px;
      transform: rotate(-7deg);
    }

    &.portal-hero__icon--banana {
      top: 158px;
      right: 8px;
      width: 208px;
      transform: rotate(8deg);
    }
  }

  .portal-hero__facts {
    position: absolute;
    z-index: 3;
    bottom: 18px;
    left: 2px;
    display: flex;
    gap: 8px;
    margin: 0;

    div {
      min-width: 104px;
      padding: 8px 16px;
      border: 1px solid var(--border-brand-subtle);
      border-radius: var(--r-lg);
      background: var(--bg-base);
    }

    dt {
      color: var(--text-secondary);
      font-size: var(--fs-10);
      font-weight: var(--weight-bold);
    }

    dd {
      margin: 0;
      font-size: var(--fs-xl);
      font-weight: var(--weight-extra-bold);
    }
  }
}

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

.portal-about {
  padding: 88px 0;
  background: var(--bg-base);

  .portal-about__panel {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: 56px;
    padding: 56px;
    border: 1px solid var(--border-brand-subtle);
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #fffaf0, #f0fbf8);
  }

  .portal-about__copy {
    h2 {
      margin: 0 0 16px;
      font-size: clamp(var(--fs-4xl), 4.3vw, var(--fs-5xl));
      font-weight: var(--weight-extra-bold);
      line-height: 1.25;
      letter-spacing: -0.04em;
    }

    & > p:last-child {
      margin: 0;
      color: var(--text-secondary);
      font-size: var(--fs-md);
      line-height: 2;
    }
  }

  .portal-about__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;

    & > div {
      min-width: 0;
      padding: 24px 16px;
      border: 1px solid var(--border-brand-muted);
      border-radius: var(--r-sm);
      background: rgba(255, 255, 255, 0.88);
    }

    dt {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--text-secondary);
      font-size: var(--fs-xs);
      font-weight: var(--weight-extra-bold);

      span {
        display: grid;
        place-items: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--c-mint-base);
        color: var(--text-primary);
        font-size: var(--fs-10);
      }
    }

    & > div:nth-child(2) dt span {
      background: var(--c-sun-base);
    }

    & > div:nth-child(3) dt span {
      background: #ffc2b8;
    }

    dd {
      margin: 16px 0 8px;
      font-size: clamp(var(--fs-md), 1.6vw, var(--fs-lg));
      font-weight: var(--weight-bold);
      line-height: 1.35;
    }

    p {
      margin: 0;
      color: var(--text-secondary);
      font-size: var(--fs-sm);
      line-height: 1.7;
    }
  }
}

.portal-apps {
  scroll-margin-top: 0;
  padding: 104px 0 120px;
  background: linear-gradient(180deg, #f7fcfb, var(--bg-base));

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

.portal-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;

  h2 {
    margin: 0;
    font-size: clamp(var(--fs-3xl), 4.2vw, var(--fs-4xl));
    font-weight: var(--weight-extra-bold);
    line-height: 1.25;
    letter-spacing: -0.04em;
  }

  & > p:last-child {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--fs-md);
    line-height: 1.9;
  }
}

.portal-product-card {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  background: var(--bg-base);

  &.portal-product-card--yellow {
    .portal-product-card__visual {
      background: #fff1a9;
    }
  }

  .portal-product-card__visual {
    position: relative;
    display: grid;
    place-items: center;
    align-self: stretch;
    min-height: 208px;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: #dcfaf4;

    &::before {
      content: "";
      position: absolute;
      right: -55px;
      bottom: -48px;
      width: 128px;
      height: 128px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.52);
    }
  }

  .portal-product-card__icon {
    position: relative;
    z-index: 1;
    display: block;
    width: 128px;
    height: 128px;
    border-radius: 27%;
  }

  .portal-product-card__free {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 0 8px;
    border-radius: var(--r-pill);
    background: var(--bg-base);
    font-size: var(--fs-10);
    font-weight: var(--weight-extra-bold);
    letter-spacing: 0.08em;
  }

  .portal-product-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .portal-product-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;

    span {
      padding: 0 8px;
      border-radius: var(--r-pill);
      background: #f1f5f5;
      color: var(--text-secondary);
      font-size: var(--fs-10);
      font-weight: var(--weight-extra-bold);
    }
  }

  .portal-product-card__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 40px;
    margin-bottom: 8px;
    object-fit: contain;
    object-position: left center;
  }

  .portal-product-card__description {
    margin: 0 0 8px;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
  }

  .portal-product-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: auto;

    .portal-button {
      min-height: 40px;
      padding: 8px 24px;
      font-size: var(--fs-xs);
    }
  }

  .portal-product-card__store-actions {
    width: 100%;
  }
}

.portal-latest {
  scroll-margin-top: 0;
  padding: 104px 0 120px;
  background: var(--bg-warm);

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

  .portal-blog-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(38, 52, 74, 0.09);
    border-radius: var(--r-xl);
    background: var(--bg-base);

    &:hover .portal-blog-card__image-link img {
      transform: scale(1.035);
    }

    a:focus-visible {
      outline: 3px solid var(--c-sun-base);
      outline-offset: 3px;
    }

    h3 {
      margin: 8px 0;
      font-size: var(--fs-lg);
      line-height: 1.55;

      a {
        text-decoration: none;

        &:hover {
          text-decoration: underline;
          text-underline-offset: 4px;
        }
      }
    }
  }

  .portal-blog-card__image-link {
    display: block;
    min-height: 256px;
    overflow: hidden;
    background: #edf1f3;

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
  }

  .portal-blog-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;

    & > p {
      display: -webkit-box;
      margin: 0 0 16px;
      overflow: hidden;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      color: var(--text-secondary);
      font-size: var(--fs-sm);
      line-height: 1.75;
    }
  }

  .portal-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    font-weight: var(--weight-bold);

    span {
      padding: 0 8px;
      border-radius: var(--r-pill);
      background: #e5f8f3;
      color: #258777;
      font-weight: var(--weight-bold);
    }
  }

  .portal-blog-card__read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    font-size: var(--fs-xs);
    font-weight: var(--weight-extra-bold);
    text-decoration: none;

    .global-arrow-icon {
      width: 16px;
      height: 16px;
    }
  }

  .portal-latest__more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
  }
}

.global-footer {
  position: relative;
  overflow: hidden;
  padding: 72px 0 24px;
  background: var(--text-primary);
  color: var(--text-inverse);

  &::before,
  &::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }
  &::before {
    top: 250px;
    left: -220px;
    width: 328px;
    height: 328px;
    background: rgba(114, 219, 199, 0.1);
  }
  &::after {
    right: -150px;
    bottom: -100px;
    width: 248px;
    height: 248px;
    background: rgba(255, 139, 120, 0.1);
  }

  a:focus-visible {
    outline: 3px solid var(--c-sun-base);
    outline-offset: 3px;
  }

  .global-footer__inner {
    position: relative;
    z-index: 1;
  }

  .global-footer__cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    padding: 40px;
    border-radius: var(--r-sm);
    background:
      radial-gradient(circle at 92% 16%, var(--c-sun-soft) 0 88px, transparent 88px),
      linear-gradient(120deg, var(--c-mint-soft) 0%, var(--bg-base) 72%);
    color: var(--text-primary);

    &::after {
      content: "";
      position: absolute;
      right: 120px;
      bottom: -112px;
      width: 160px;
      height: 160px;
      border-radius: 50%;
      background: var(--c-sky-soft);
    }

    h2 {
      margin: 0 0 8px;
      font-size: clamp(var(--fs-xl), 1.5vw, var(--fs-2xl));
      font-weight: var(--weight-bold);
      line-height: 1.35;
      text-wrap: balance;
    }
  }

  .global-footer__cta-copy {
    position: relative;
    z-index: 1;
    max-width: 648px;

    & > p {
      display: inline-flex;
      margin: 0 0 16px;
      padding: 8px 16px;
      border-radius: var(--r-pill);
      background: var(--bg-base);
      color: var(--c-mint-deep);
      font-size: var(--fs-10);
      font-weight: var(--weight-extra-bold);
      letter-spacing: 0.16em;
    }

    & > span {
      display: block;
      color: var(--text-secondary);
      font-size: var(--fs-sm);
      line-height: 1.8;
    }
  }

  .global-footer__cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;

    .portal-button {
      gap: 8px;
      padding: 8px 16px;
      border-radius: var(--r-lg);
      font-size: var(--fs-xs);
      font-weight: var(--weight-extra-bold);
    }
  }

  .global-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1.25fr) minmax(
        190px,
        0.7fr
      );
    gap: 64px;
    padding: 64px 0 56px;

    h2 {
      margin: 0 0 16px;
      color: var(--text-inverse);
      font-size: var(--fs-xs);
      letter-spacing: 0.04em;
    }
  }

  .global-footer__brand {
    p {
      max-width: 328px;
      margin: 16px 0;
      color: #c8d1dd;
      font-size: var(--fs-xs);
      line-height: 1.9;
    }
  }

  .global-brand--footer {
    color: var(--text-inverse);
    font-size: var(--fs-36);

    .global-brand__latin,
    .global-brand__kana {
      color: var(--text-inverse);
    }
  }

  .global-footer__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    span {
      padding: 0 8px;
      border: 1px solid var(--border-inverse);
      border-radius: var(--r-pill);
      background: var(--bg-inverse-soft);
      color: #e8edf3;
      font-size: var(--fs-10);
      font-weight: var(--weight-extra-bold);
      line-height: 24px;
    }
  }

  .global-footer__product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .global-footer__product {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--border-inverse-soft);
    border-radius: var(--r-lg);
    background: var(--bg-inverse-soft);
    text-decoration: none;
    transition:
      background-color 0.2s ease,
      transform 0.2s ease;

    &:hover {
      background: var(--border-inverse-soft);
      transform: translateY(-2px);
    }

    & > img {
      display: block;
      flex: 0 0 auto;
      width: 56px;
      height: 56px;
      border-radius: 25%;
    }

    & > span {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    strong {
      overflow: hidden;
      font-size: var(--fs-sm);
      line-height: 1.5;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    small {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 0;
      color: #dbe2eb;
      font-size: var(--fs-xs);
      font-weight: var(--weight-bold);
      line-height: 1.5;

      .global-arrow-icon {
        width: 16px;
        height: 16px;
        filter: grayscale(1);
      }
    }
  }

  .global-footer__support {
    nav {
      display: grid;
      gap: 0;

      a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: #dbe2eb;
        font-size: var(--fs-xs);
        font-weight: var(--weight-bold);
        text-decoration: none;

        &:hover {
          color: var(--text-inverse);
        }

        .global-arrow-icon {
          width: 16px;
          height: 16px;
          filter: grayscale(1);
        }
      }
    }
  }

  .global-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-inverse);
  }

  .global-footer__copyright {
    margin: 0;
    color: #cbd3df;
    font-size: var(--fs-xs);
  }
}

@media (max-width: 1080px) {
  .global-nav {
    .global-nav__link {
      padding-inline: 8px;
      font-size: var(--fs-xs);
    }
  }

  .global-footer {
    .global-footer__main {
      grid-template-columns: minmax(0, 0.85fr) minmax(350px, 1.15fr) minmax(
          170px,
          0.65fr
        );
      gap: 32px;
    }
  }
}

@media (max-width: 850px) {
  .global-header {
    .global-header__inner {
      height: 64px;
      gap: 8px;
    }

    .global-header__menu-button {
      display: inline-flex;
      margin-left: auto;
    }
  }

  .global-nav {
    display: none;
  }

  .global-footer {
    padding-top: 48px;

    .global-footer__cta {
      align-items: flex-start;
      flex-direction: column;
      padding: 32px;
    }

    .global-footer__main {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 40px;
      padding-block: 48px 40px;
    }

    .global-footer__brand {
      grid-column: 1/-1;
    }
  }

  .portal-hero {
    min-height: 536px;

    .portal-hero__inner {
      grid-template-columns: 1fr;
      gap: 24px;
      padding-block: 56px;
    }

    .portal-hero__visual {
      width: min(100%, 520px);
      min-height: 440px;
      margin-inline: auto;
    }
  }

  .portal-about {
    .portal-about__panel {
      grid-template-columns: 1fr;
      gap: 32px;
      padding: 40px;
    }
  }

  .portal-section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portal-apps {
    .portal-apps__grid {
      grid-template-columns: 1fr;
    }
  }

  .portal-product-card {
    .portal-product-card__visual {
      min-height: 216px;
    }
  }

  .portal-latest {
    .portal-latest__grid {
      grid-template-columns: 1fr;
    }
  }
}

@media (max-width: 520px) {
  .portal-hero {
    h1 {
      font-size: clamp(var(--fs-34), 9.8vw, var(--fs-4xl));
    }

    .portal-hero__visual {
      min-height: 360px;

      &::before {
        inset: 34px 0 28px 12px;
      }
    }

    .portal-hero__icon.portal-hero__icon--photo {
      top: 12px;
      left: 6px;
      width: 49%;
    }

    .portal-hero__icon.portal-hero__icon--banana {
      top: 102px;
      right: 4px;
      width: 45%;
    }

    .portal-hero__facts {
      bottom: 0;
    }

    .portal-hero__actions {
      .portal-button {
        width: 100%;
      }
    }
  }

  .portal-about,
  .portal-apps,
  .portal-latest {
    padding-block: 72px;
  }

  .portal-about {
    .portal-about__panel {
      gap: 24px;
      padding: 24px 16px;
      border-radius: 28px;
    }

    .portal-about__facts {
      grid-template-columns: 1fr;

      & > div {
        padding: 16px;
      }
    }
  }

  .portal-section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .portal-product-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
    border-radius: var(--r-xl);

    .portal-product-card__visual {
      min-height: 208px;
    }

    .portal-product-card__icon {
      width: 128px;
      height: 128px;
    }

    .portal-product-card__actions {
      .portal-button {
        width: 100%;
      }
    }
  }

  .portal-latest {
    .portal-blog-card {
      grid-template-columns: 1fr;
      border-radius: 20px;
    }

    .portal-blog-card__image-link {
      min-height: auto;
      aspect-ratio: 16/9;
    }

    .portal-blog-card__body {
      padding: 16px;
    }
  }

  .global-footer {
    .global-footer__cta {
      padding: 24px 16px;
      border-radius: var(--r-xl);
    }

    .global-footer__cta-actions {
      width: 100%;

      .portal-button {
        width: 100%;
      }
    }

    .global-footer__main {
      grid-template-columns: 1fr;
      gap: 32px;
    }

    .global-footer__brand {
      grid-column: auto;
    }

    .global-footer__product-list {
      grid-template-columns: 1fr;
    }

    .global-footer__product {
      padding: 8px;
    }

    .global-footer__bottom {
      align-items: flex-start;
      flex-direction: column;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-button {
    transition: none;
  }

  .global-mobile-nav {
    transition: none;

    .global-mobile-nav__panel {
      transition: none;
    }
  }

  .global-nav {
    .global-nav__link {
      transition: none;
    }
  }

  .global-footer {
    .global-footer__product {
      transition: none;
    }
  }

  .portal-latest {
    .portal-blog-card__image-link {
      img {
        transition: none;
      }
    }
  }
}

/* ===== Shared global page heading ===== */

.global-page-head {
  padding: 56px 0;
  text-align: center;

  .global-page-head__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 16px;
  }

  .global-page-head__title {
    margin: 0;
    font-size: var(--fs-3xl);
    font-weight: var(--weight-bold);
    line-height: 1.2;
  }

  .global-page-head__lead {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.9;
  }
}

/* ===== Global document layout ===== */

.global-doc {
  .global-doc__layout {
    position: relative;
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: 32px;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 16px;
  }

  .global-doc__toc {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 8px;

    ol {
      display: flex;
      flex-direction: column;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    li {
      position: relative;
      line-height: 1.75;
    }

    a {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border-radius: var(--r-pill);
      color: var(--text-primary);
      font-size: var(--fs-xs);
      font-weight: var(--weight-bold);
      text-decoration: none;

      &:hover {
        background: var(--bg-warm);
        text-decoration: none;
      }
    }
  }

  .global-doc__toc-title {
    padding-left: 16px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
  }

  .global-doc__content {
    padding: 48px;
    border-radius: var(--r-sm);
    background: var(--bg-base);
  }

  .global-doc__intro {
    margin-bottom: 24px;
    padding: 24px;
    border-radius: var(--r-md);
    background: #fafafa;
    color: var(--text-primary);
    font-size: clamp(var(--fs-sm), 0.5vw + var(--fs-xs), var(--fs-md));
    line-height: 1.8;
  }

  .global-doc__section {
    scroll-margin-top: 96px;
    font-size: clamp(var(--fs-sm), 0.5vw + var(--fs-xs), var(--fs-md));

    h2 {
      margin-top: 32px;
      font-size: var(--fs-xl);
      font-weight: var(--weight-bold);
      line-height: 1.45;
    }

    h2 + * {
      margin-top: 16px;
    }

    p {
      color: var(--text-primary);
      line-height: 1.8;
    }

    ul,
    ol {
      padding-left: 24px;
      color: var(--text-primary);
      line-height: 1.8;
      list-style-position: outside;
    }

    ul {
      list-style-type: disc;
    }

    ol {
      list-style-type: decimal;
    }

    li + li {
      margin-top: 8px;
    }

    li ul,
    li ol {
      margin-top: 8px;
      padding-left: 1em;
    }

    a {
      color: inherit;
    }

    strong {
      font-weight: var(--weight-bold);
    }
  }
}

@media (max-width: 1024px) {
  .global-doc {
    .global-doc__toc {
      display: none;
    }
  }
}

@media (max-width: 768px) {
  .global-page-head {
    padding: 40px 0;

    .global-page-head__title {
      font-size: var(--fs-2xl);
    }
  }

  .global-doc {
    .global-doc__layout {
      display: flex;
      flex-direction: column;
      gap: 24px;
      padding-bottom: 56px;
    }

    .global-doc__content {
      padding: 16px;
    }

    .global-doc__intro {
      padding: 16px;
      border-radius: var(--r-lg);
    }
  }
}

/* ===== Global privacy policy ===== */

.global-policy {
  padding: 48px 16px 104px;
  background: var(--bg-base);

  .global-policy__head,
  .global-policy__body {
    width: min(856px, 100%);
    margin-inline: auto;
  }

  .global-policy__head {
    margin-bottom: 48px;
    text-align: center;

    h1 {
      margin: 0 0 16px;
      font-size: clamp(var(--fs-3xl), 5vw, var(--fs-4xl));
      font-weight: var(--weight-extra-bold);
    }

    & > p:last-child {
      color: var(--text-secondary);
      line-height: 1.8;
    }
  }

  .global-policy__body {
    section + section {
      margin-top: 40px;
      padding-top: 32px;
      border-top: 1px solid var(--border-light);
    }

    h2 {
      margin: 0 0 16px;
      font-size: var(--fs-2xl);
    }

    p,
    li {
      color: var(--text-secondary);
      line-height: 2;
    }

    li + li {
      margin-top: 8px;
    }
  }

  .global-policy__effective {
    margin: 40px 0 0;
    font-weight: var(--weight-bold);
    text-align: right;
  }
}

@media (max-width: 600px) {
  .global-policy {
    padding: 40px 16px 80px;
  }
}
