:root {
  color-scheme: light;
  --icon-blue: #28a2ec;
  --icon-gold: #e5ebaa;
  --blue-complement: #d75d13;
  --gold-complement: #1a1455;
  --bg: #fbfcf8;
  --surface: #eef8fc;
  --surface-blue: #e2f5fd;
  --surface-warm: #fbf8df;
  --surface-strong: #d4eef9;
  --ink: #18153f;
  --muted: #5d6275;
  --soft: #8b8fa2;
  --line: rgba(26, 20, 85, 0.13);
  --accent: #168fd4;
  --accent-strong: #0a6fa8;
  --accent-soft: #e0f3fc;
  --gold: #d9cb65;
  --warm-accent: #b84d12;
  --shadow-soft: 0 24px 70px rgba(26, 20, 85, 0.12);
  --wrap: 60rem;
  --wrap-wide: 68rem;
  --nav-height: 4rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  text-wrap: pretty;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(229, 235, 170, 0.34), rgba(40, 162, 236, 0.13) 44%, rgba(251, 252, 248, 0) 72%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(100%, var(--wrap));
  min-height: var(--nav-height);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(251, 252, 248, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.brand {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links,
.locale-links,
.actions,
.stat-row,
.locale-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links,
.locale-links {
  gap: 1.8rem;
}

.nav-links a,
.locale-links a {
  color: var(--muted);
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  font-size: 0.98rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a.active,
.locale-links a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-links a:hover,
.locale-links a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.62rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--gold-complement), #123f77 56%, var(--accent-strong));
  border-color: rgba(26, 20, 85, 0.78);
  color: #ffffff;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 162, 236, 0.38);
  box-shadow: 0 12px 28px rgba(26, 20, 85, 0.1);
}

.nav-links a:focus-visible,
.locale-links a:focus-visible,
.button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.hero {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 6.5rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  text-align: center;
}

body.page-home .hero,
body.page-marketing .hero {
  min-height: auto;
  padding-top: 6.8rem;
}

body.page-support .hero {
  padding-top: 8rem;
  padding-bottom: 4.5rem;
}

.hero-copy {
  width: 100%;
  max-width: 54rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  width: 100%;
  max-width: 12em;
  margin: 0;
  font-size: 4.4rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

body.page-home h1,
body.page-marketing h1 {
  font-size: 4.9rem;
  line-height: 0.98;
}

body.page-support h1 {
  max-width: 11em;
}

.lede {
  width: 100%;
  max-width: 38rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.8;
}

body.page-home .lede,
body.page-marketing .lede {
  font-size: 1.22rem;
}

.actions {
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.stat-row {
  width: 100%;
  justify-content: center;
  gap: 0.7rem;
  max-width: 48rem;
  margin-top: 1.6rem;
}

.stat-row span {
  max-width: 100%;
  padding: 0.48rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(23rem, 82vw);
  aspect-ratio: 1;
  margin-top: 0.4rem;
}

body.page-home .hero-art,
body.page-marketing .hero-art {
  width: min(25rem, 82vw);
  aspect-ratio: 1 / 1.14;
}

body.page-support .hero-art {
  display: none;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 2.4rem;
  background: linear-gradient(135deg, var(--icon-gold), #a8d9cd 44%, var(--icon-blue));
  transform: rotate(-4deg);
}

body.page-home .hero-art::before,
body.page-marketing .hero-art::before {
  inset: 6% 10% 23%;
}

.app-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 24%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

body.page-home .app-icon,
body.page-marketing .app-icon {
  width: 64%;
  transform: translateY(-10%);
}

.app-store-badge {
  position: absolute;
  bottom: 4%;
  z-index: 2;
  display: block;
  width: auto;
  height: 3rem;
  min-height: 40px;
  max-width: 72%;
}

.mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 2rem;
  background: linear-gradient(135deg, var(--surface-warm), var(--surface-blue));
  box-shadow: var(--shadow-soft);
}

.mark span {
  color: var(--gold-complement);
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.page-404 .hero {
  width: min(100%, var(--wrap-wide));
  min-height: calc(100vh - var(--nav-height) - 7rem);
  padding-top: 5.6rem;
  padding-bottom: 4.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  align-items: center;
  gap: 3rem;
  text-align: left;
}

body.page-404 .hero-copy {
  align-items: flex-start;
  max-width: 43rem;
}

body.page-404 h1 {
  max-width: 10.5em;
  font-size: 4.15rem;
  line-height: 1.02;
}

body.page-404 .lede {
  max-width: 36rem;
}

body.page-404 .actions,
body.page-404 .stat-row {
  justify-content: flex-start;
}

body.page-404 .stat-row {
  max-width: 40rem;
}

body.page-404 .hero-art {
  width: min(22rem, 76vw);
  justify-self: end;
  margin-top: 0;
}

body.page-404 .hero-art::before {
  background: linear-gradient(135deg, var(--icon-gold), var(--surface-strong) 46%, var(--icon-blue));
}

body.page-404 .mark {
  background: linear-gradient(145deg, rgba(251, 248, 223, 0.92), rgba(226, 245, 253, 0.96));
}

body.page-404 .mark span {
  color: var(--accent-strong);
}

body.page-404 footer {
  padding-top: 2.4rem;
}

.section {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 6rem 2rem;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head p {
  margin-bottom: 0;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

h2 {
  max-width: 13em;
  margin: 0 auto;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.06;
}

h2 + p,
.section-head .kicker + h2 + p {
  margin-top: 1.2rem;
}

.section p,
.section li,
details p,
.locale-card p,
.fineprint {
  color: var(--muted);
  line-height: 1.8;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 3.2rem;
}

.feature {
  position: relative;
  padding-top: 1.1rem;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 0.18rem;
  border-radius: 999px;
  background: var(--accent);
}

.feature:nth-child(2n)::before {
  background: var(--gold);
}

.feature:nth-child(4n + 3)::before {
  background: var(--warm-accent);
}

.feature:nth-child(4n)::before {
  background: var(--gold-complement);
}

.feature h3,
.panel h3,
.locale-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
}

.feature p,
.panel p,
.locale-card p {
  margin-top: 0;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  gap: 2.5rem;
  align-items: start;
}

.band h2 {
  margin-left: 0;
}

body.page-marketing .band,
body.page-home .band {
  padding: 2.6rem;
  border-radius: 2.4rem;
  background: linear-gradient(135deg, rgba(229, 235, 170, 0.42), rgba(226, 245, 253, 0.86));
}

body.page-marketing .band .panel,
body.page-home .band .panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.panel,
.locale-card {
  padding: 1.7rem;
  border: 1px solid rgba(40, 162, 236, 0.12);
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(251, 248, 223, 0.72), rgba(226, 245, 253, 0.8));
}

body.page-support .band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-support .panel {
  border-radius: 2.2rem;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 0.92rem 0;
  border-top: 1px solid var(--line);
}

.list li:first-child {
  border-top: 0;
}

details {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

details:first-child {
  border-top: 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  margin-left: 1rem;
  color: var(--warm-accent);
}

details[open] summary::after {
  content: "-";
}

details p {
  margin-bottom: 0;
}

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

.locale-card {
  padding: 2rem;
}

.locale-tag {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.locale-actions {
  gap: 0.75rem;
  margin-top: 1.2rem;
}

footer {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

footer p {
  margin: 0 0 0.75rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .nav-links,
  .locale-links {
    gap: 1.1rem;
  }

  .hero,
  body.page-home .hero,
  body.page-marketing .hero,
  body.page-support .hero {
    padding-top: 5rem;
  }

  h1,
  body.page-home h1,
  body.page-marketing h1 {
    font-size: 3.55rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 2.45rem;
  }

  .columns,
  body.page-support .columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .band,
  body.page-support .band {
    grid-template-columns: 1fr;
  }

  body.page-404 .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  body.page-404 .hero-copy {
    align-items: center;
    margin: 0 auto;
  }

  body.page-404 .actions,
  body.page-404 .stat-row {
    justify-content: center;
  }

  body.page-404 .hero-art {
    justify-self: center;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    width: 100%;
  }

  .hero,
  body.page-home .hero,
  body.page-marketing .hero,
  body.page-support .hero {
    padding: 4rem 1.2rem 4.5rem;
  }

  .section {
    padding: 4.4rem 1.2rem;
  }

  h1,
  body.page-home h1,
  body.page-marketing h1 {
    font-size: 2.35rem;
    word-break: break-all;
  }

  body.page-404 h1 {
    font-size: 2.45rem;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 2rem;
  }

  .lede,
  body.page-home .lede,
  body.page-marketing .lede {
    font-size: 1.04rem;
  }

  .columns,
  body.page-support .columns {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  body.page-marketing .band,
  body.page-home .band,
  .panel,
  .locale-card {
    border-radius: 1.5rem;
    padding: 1.45rem;
  }

  body.page-404 .hero-art {
    width: min(18rem, 70vw);
  }

  body.page-404 .mark span {
    font-size: 3.35rem;
  }

  .app-store-badge {
    height: 2.5rem;
  }

  .actions,
  .locale-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 22rem;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
