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

:root {
  color-scheme: light;
  --surface: #ffffff;
  --text: #101512;
  --muted: #59635c;
  --accent: #258b42;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--surface);
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-record {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  color: #7a837d;
  background: #fff;
}

.site-record a {
  color: inherit;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.site-record a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.brand-lockup {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  z-index: 2;
  width: clamp(150px, 18vw, 210px);
}

.brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 52px;
  padding: 5px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(238, 243, 239, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.site-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  color: #101820;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__item[aria-current="page"],
a.site-nav__item:hover {
  color: #176b32;
  background: rgba(21, 104, 49, 0.1);
}

a.site-nav__item:active { transform: translateY(1px); }

a.site-nav__item:focus-visible {
  outline: 2px solid #258b42;
  outline-offset: -2px;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 100dvh;
  padding: clamp(150px, 22vh, 220px) clamp(24px, 6vw, 92px) clamp(48px, 8vh, 84px);
}

.page-intro { max-width: 920px; }

.page-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(72px, 14vw, 190px);
  font-weight: 560;
  line-height: 0.84;
  letter-spacing: -0.07em;
}

.page-summary {
  max-width: 36ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.purchase-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 170px 32px 88px;
}

.purchase-header {
  max-width: 920px;
}

.purchase-header h1 {
  font-size: clamp(72px, 12vw, 150px);
}

.purchase-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(72px, 11vh, 120px);
  border-top: 1px solid #dfe5e0;
}

.purchase-channel {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 28px;
  min-width: 0;
  padding: 54px 28px 16px;
  text-align: center;
}

.purchase-channel + .purchase-channel {
  border-left: 1px solid #e7ebe8;
}

.purchase-channel--link {
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.purchase-channel--link:hover {
  opacity: 0.78;
  transform: translateY(-2px);
}

.purchase-channel--link:active {
  transform: translateY(1px);
}

.purchase-channel--link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.purchase-channel img {
  display: block;
  width: clamp(140px, 15vw, 184px);
  height: clamp(140px, 15vw, 184px);
  object-fit: contain;
}

.purchase-channel__copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.purchase-channel__copy p {
  margin: 9px 0 0;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.45;
}

.download-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 170px 32px 88px;
}

.download-header {
  max-width: 760px;
}

.download-header h1 {
  font-size: clamp(74px, 12vw, 150px);
}

.download-list {
  margin-top: clamp(72px, 11vh, 120px);
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding: 44px 0;
}

.download-platform {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.download-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.download-copy > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.download-item--android {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.download-item--official {
  grid-template-columns: 180px minmax(0, 1fr);
}

.download-app-icon {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.download-title-secondary {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.58em;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.download-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.download-action {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.download-status {
  color: #7a847d;
  font-size: 12px;
  white-space: nowrap;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  background: #176b32;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 120ms ease;
}

.download-button:hover { background: #115626; }
.download-button:active { transform: translateY(1px); }
.download-button:focus-visible { outline: 3px solid rgba(37, 139, 66, 0.34); outline-offset: 3px; }

.download-button--disabled,
.download-button--disabled:hover {
  background: #dce2de;
  color: #6c766f;
  transform: none;
  cursor: default;
}

.products-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1360px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 154px 32px 96px;
}

.products-header {
  max-width: 920px;
}

.products-header h1 {
  font-size: clamp(72px, 12vw, 150px);
}

.products-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  height: 480px;
  min-height: 0;
  overflow: hidden;
  background: #f4f6f5;
}

.product-feature__media {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 480px;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.product-feature__media img {
  display: block;
  width: min(94%, 660px);
  height: 450px;
  object-fit: contain;
}

.product-feature--portrait .product-feature__media img {
  width: auto;
  max-width: 90%;
  height: 460px;
}

.product-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(42px, 6vw, 88px);
}

.product-series {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.product-feature__copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 580;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.product-color {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 34px;
  padding: 0 24px;
  border: 1px solid var(--text);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, transform 120ms ease;
}

.product-link:hover {
  background: var(--text);
  color: #ffffff;
}

.product-link:active {
  transform: translateY(1px);
}

.product-link:focus-visible {
  outline: 3px solid rgba(37, 139, 66, 0.34);
  outline-offset: 3px;
}

.product-detail-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1360px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 126px 32px 56px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  min-height: calc(100dvh - 182px);
  overflow: hidden;
  background: #f4f6f5;
}

.product-detail__media {
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
}

.product-detail__media img {
  display: block;
  width: min(92%, 720px);
  height: min(92%, 720px);
  object-fit: contain;
}

.product-detail--portrait .product-detail__media img {
  width: auto;
  max-width: 82%;
  height: min(94%, 760px);
}

.product-detail__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(42px, 6vw, 88px);
}

.product-detail__copy h1 {
  margin: 0;
  font-size: clamp(56px, 7vw, 98px);
  font-weight: 580;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.product-view-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 122px 32px 58px;
}

.product-view {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  align-items: start;
  gap: clamp(42px, 5vw, 76px);
}

.product-gallery {
  min-width: 0;
  outline: none;
}

.product-gallery:focus-visible .product-gallery__stage {
  outline: 3px solid rgba(37, 139, 66, 0.34);
  outline-offset: 3px;
}

.product-gallery__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f3f1;
}

.product-gallery__main {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 140ms ease;
}

.product-gallery__main[data-fit="contain"] {
  object-fit: contain;
  padding: 0;
  background: #ffffff;
}

.product-gallery__main.is-switching {
  opacity: 0.25;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0 0 5px;
  transform: translateY(-50%);
  border: 1px solid rgba(16, 21, 18, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(36, 55, 43, 0.12);
  font: inherit;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, transform 120ms ease;
}

.product-gallery__arrow--prev { left: 16px; }
.product-gallery__arrow--next { right: 16px; }
.product-gallery__arrow:hover { background: #ffffff; }
.product-gallery__arrow:active { transform: translateY(calc(-50% + 1px)); }
.product-gallery__arrow:focus-visible { outline: 3px solid rgba(37, 139, 66, 0.42); outline-offset: 2px; }

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-gallery__thumb {
  aspect-ratio: 1 / 1;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f1f3f1;
  cursor: pointer;
}

.product-gallery__thumb.is-active {
  border-color: var(--accent);
}

.product-gallery__thumb:focus-visible {
  outline: 3px solid rgba(37, 139, 66, 0.34);
  outline-offset: 2px;
}

.product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumb:first-child img {
  object-fit: contain;
  background: #ffffff;
}

.product-info {
  position: sticky;
  top: 118px;
  padding-top: 24px;
}

.product-info h1 {
  margin: 0;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 580;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.product-info__features {
  display: grid;
  gap: 15px;
  margin: 36px 0 0;
  padding-left: 1.2em;
  color: #303a33;
  font-size: 17px;
  line-height: 1.5;
}

.product-info__description {
  max-width: 42ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.product-view-loading,
.product-view-error {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 168px);
  color: var(--muted);
}

.product-view-error h1 {
  color: var(--text);
  font-size: clamp(54px, 8vw, 110px);
}

.products-message {
  margin: 0;
  padding: 100px 0;
  color: var(--muted);
  font-size: 18px;
}

.product-info__color {
  display: grid;
  gap: 12px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid #dfe5e0;
  color: var(--muted);
  font-size: 15px;
}

.product-info__color strong {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
}

.product-info__color i {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 1px solid #cbd0cc;
  border-radius: 50%;
  background: #d9dbd8;
}

.product-info__color .product-color-dot--black {
  border-color: #101512;
  background: #232724;
}

.product-info__color .product-color-dot--white {
  border-color: #cbd0cc;
  background: #f7f8f7;
}

.product-info__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 36px;
  border-radius: 12px;
  background: var(--text);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 120ms ease;
}

.product-info__primary:hover { background: #273029; }
.product-info__primary:active { transform: translateY(1px); }
.product-info__primary:focus-visible { outline: 3px solid rgba(37, 139, 66, 0.42); outline-offset: 3px; }

.product-info__back {
  display: table;
  margin: 26px auto 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  text-underline-offset: 5px;
}

.policy-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 160px 32px 100px;
}

.policy-header {
  padding-bottom: 54px;
  border-bottom: 1px solid #dfe5e0;
}

.policy-header h1 {
  max-width: 920px;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.policy-date {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.policy-body {
  width: min(100%, 760px);
  padding-top: 62px;
}

.policy-section {
  padding: 0 0 44px;
}

.policy-section + .policy-section {
  padding-top: 44px;
  border-top: 1px solid #e7ebe8;
}

.policy-section h2 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.policy-section h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.policy-section h4 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.35;
}

.policy-section p,
.policy-section li,
.policy-section dd {
  color: #39423c;
  font-size: 16px;
  line-height: 1.72;
}

.policy-section p { margin: 0 0 18px; }
.policy-section p:last-child { margin-bottom: 0; }

.policy-section ul {
  margin: 0 0 20px;
  padding-left: 1.25rem;
}

.policy-section li + li { margin-top: 8px; }
.policy-section strong { color: #17201a; }

.policy-note,
.policy-supplement {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: #f4f8f5;
}

.policy-supplement { margin-top: 24px; }
.policy-supplement ul { margin-bottom: 0; }

.contact-list {
  margin: 0;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
}

.contact-list dt {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.contact-list dd { margin: 0; }

.policy-checklist {
  margin-top: 18px;
  padding: 36px;
  border: 1px solid #dce6de;
  border-radius: 14px;
  background: #f7faf8;
}

.policy-checklist h3 {
  margin-top: 30px;
  color: #8a4a1d;
}

@media (max-width: 699px) {
  .brand-lockup {
    top: calc(max(10px, env(safe-area-inset-top)) + 62px);
    left: max(10px, env(safe-area-inset-left));
    width: 108px;
  }

  .site-nav {
    top: max(10px, env(safe-area-inset-top));
    width: calc(100% - 20px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    border-radius: 13px;
  }

  .site-nav__item {
    min-width: 0;
    padding: 0 2px;
    border-radius: 9px;
    font-size: 12px;
  }

  .page-shell { padding: 160px 20px 44px; }
  h1 { font-size: clamp(62px, 22vw, 96px); letter-spacing: -0.06em; }
  .page-summary { margin-top: 22px; font-size: 18px; }

  .purchase-shell { padding: 158px 20px 58px; }
  .purchase-header h1 { font-size: clamp(62px, 21vw, 88px); }
  .purchase-channels { grid-template-columns: 1fr; margin-top: 62px; }
  .purchase-channel {
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 24px;
    padding: 28px 0;
    text-align: left;
  }
  .purchase-channel + .purchase-channel { border-top: 1px solid #e7ebe8; border-left: 0; }
  .purchase-channel img { width: 108px; height: 108px; }

  .download-shell { padding: 158px 20px 58px; }
  .download-header h1 { font-size: clamp(66px, 25vw, 96px); }
  .download-list { margin-top: 62px; }
  .download-item { grid-template-columns: 1fr; gap: 28px; padding: 34px 0; }
  .download-item--official { grid-template-columns: 112px minmax(0, 1fr); gap: 22px; }
  .download-item--android { grid-template-columns: 1fr; }
  .download-app-icon { width: 112px; height: 112px; }
  .download-action { justify-items: stretch; }
  .download-status { text-align: center; }
  .download-button { width: 100%; }

  .products-shell { padding: 150px 20px 56px; }
  .products-header h1 { font-size: clamp(62px, 21vw, 88px); }
  .products-list { gap: 16px; margin-top: 16px; }
  .product-feature { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .product-feature__media { height: 340px; min-height: 0; }
  .product-feature__media img { width: min(94%, 420px); height: 310px; }
  .product-feature--portrait .product-feature__media img { width: auto; max-width: 80%; height: 320px; }
  .product-feature__copy { padding: 34px 24px 40px; }
  .product-series { margin-bottom: 16px; }
  .product-feature__copy h2 { font-size: clamp(38px, 13vw, 54px); }
  .product-color { margin-top: 18px; font-size: 16px; }
  .product-link { margin-top: 28px; }

  .product-detail-shell { padding: 138px 20px 30px; }
  .product-detail { grid-template-columns: 1fr; min-height: 0; }
  .product-detail__media { min-height: 390px; }
  .product-detail__media img { width: min(94%, 430px); height: 350px; }
  .product-detail--portrait .product-detail__media img { width: auto; max-width: 80%; height: 370px; }
  .product-detail__copy { padding: 36px 24px 44px; }
  .product-detail__copy h1 { font-size: clamp(52px, 17vw, 76px); }

  .product-view-shell { padding: 138px 20px 44px; }
  .product-view { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery__stage { aspect-ratio: 3 / 4; }
  .product-gallery__arrow { width: 44px; height: 44px; font-size: 32px; }
  .product-gallery__arrow--prev { left: 10px; }
  .product-gallery__arrow--next { right: 10px; }
  .product-gallery__thumbs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 88px;
    overflow-x: auto;
    padding: 3px 3px 10px;
    scroll-snap-type: x proximity;
  }
  .product-gallery__thumb { scroll-snap-align: start; }
  .product-info { position: static; padding-top: 4px; }
  .product-info h1 { font-size: clamp(50px, 15vw, 68px); }
  .product-info__features { margin-top: 30px; font-size: 16px; }
  .product-info__color { margin-top: 32px; }

  .policy-shell { padding: 158px 20px 64px; }
  .policy-header { padding-bottom: 38px; }
  .policy-header h1 { font-size: clamp(50px, 17vw, 72px); letter-spacing: -0.055em; }
  .policy-body { padding-top: 42px; }
  .policy-section { padding-bottom: 34px; }
  .policy-section + .policy-section { padding-top: 34px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 5px; }
  .policy-checklist { padding: 24px 20px; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav {
    background: #eef3ef;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
