/* 环行志 CJourney — marketing homepage
   Direction: clean travel archive on cool paper
   Brand cues from App Store art: bright blue accent, navy ink */

:root {
  --ink: #0f1a2b;
  --ink-soft: #2b3a52;
  --muted: #5a6880;
  --line: color-mix(in oklab, #0f1a2b 5%, transparent);
  --paper: #f7f9fc;
  --paper-2: #eef4fc;
  --accent: #007aff;
  --accent-hover: #0068d9;
  --accent-ink: #0062cc;
  --accent-soft: #d6e7ff;
  --white: #ffffff;
  --shadow: 0 24px 60px color-mix(in oklab, #0f1a2b 16%, transparent);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html:lang(zh-Hans) {
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

html:lang(zh-Hant) {
  --font-sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", system-ui, sans-serif;
}

html:lang(ja) {
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", system-ui, sans-serif;
}

html:lang(ko) {
  --font-sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif;
  word-break: keep-all;
}

html:lang(ja) body {
  line-break: strict;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 50% -10%, color-mix(in oklab, var(--accent-soft) 70%, transparent), transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: color-mix(in oklab, var(--ink) 4%, transparent);
  background: color-mix(in oklab, var(--paper) 92%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  box-shadow: 0 8px 20px color-mix(in oklab, var(--ink) 12%, transparent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.lang-switch {
  font-size: 0.88rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--ink) 6%, transparent);
  background: color-mix(in oklab, var(--white) 65%, transparent);
  color: var(--ink-soft);
}

.lang-switch:hover {
  color: var(--ink);
  border-color: color-mix(in oklab, var(--ink) 12%, transparent);
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu-list {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 9.5rem;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  box-shadow: var(--shadow);
}

.lang-menu-list a {
  padding: 0.5rem 0.7rem;
  border-radius: 0.7rem;
  white-space: nowrap;
}

.lang-menu-list a:hover {
  background: var(--paper-2);
}

.lang-menu-list a[aria-current],
.mobile-langs a[aria-current],
.footer-langs a[aria-current] {
  font-weight: 600;
  color: var(--accent-ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white) !important;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.menu-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--ink) 4%, transparent);
  background: color-mix(in oklab, var(--white) 70%, transparent);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid color-mix(in oklab, var(--ink) 4%, transparent);
  background: color-mix(in oklab, var(--paper) 96%, transparent);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  text-decoration: none;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 4%, transparent);
  color: var(--ink-soft);
}

.mobile-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 4%, transparent);
}

.mobile-nav .mobile-langs a {
  padding: 0.45rem 0;
  border-bottom: 0;
  font-size: 0.92rem;
}

.mobile-nav .mobile-langs a:not([aria-current]) {
  font-weight: 400;
  color: var(--ink-soft);
}

.mobile-nav a:last-child {
  border-bottom: 0;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 860px) {
  .nav { display: flex; }
  .menu-toggle,
  .mobile-nav { display: none !important; }
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: clip;
}

.hero-glow {
  position: absolute;
  inset: auto auto -20% 40%;
  width: min(60vw, 640px);
  height: min(60vw, 640px);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-soft) 80%, white), transparent 68%);
  pointer-events: none;
  filter: blur(10px);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.hero h1,
.section-head h2,
.card-copy h3,
.privacy-panel h2,
.download-panel h2,
.steps h3,
.module-card h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.hero-headline,
.section-head h2,
.card-copy h3,
.privacy-panel h2,
.download-panel h2,
.steps h3,
.module-card h3 {
  text-wrap: balance;
}

html:lang(ja) h1,
html:lang(ja) h2,
html:lang(ja) h3,
html:lang(ja) .section-lead {
  word-break: auto-phrase;
}

.hero-lead,
.section-lead,
.card-copy p,
.steps p,
.module-card p,
.privacy-note {
  text-wrap: pretty;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  color: var(--ink);
}

.hero-accent {
  color: var(--accent);
}

.hero-lead,
.section-lead,
.download-panel > div > p,
.steps p,
.module-card p {
  color: var(--muted);
}

.hero-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.14em;
  color: var(--accent);
  font-size: clamp(3.6rem, 8.5vw, 6.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-number small {
  font-size: 0.34em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-headline {
  display: block;
  margin-top: 0.8rem;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.store-badge {
  display: inline-flex;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.store-badge:hover {
  transform: translateY(-1px);
}

.store-badge img {
  width: auto;
  height: 3.25rem;
}

.sample-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.2s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 28px color-mix(in oklab, var(--accent) 28%, transparent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: color-mix(in oklab, var(--white) 70%, transparent);
  border: 1px solid color-mix(in oklab, var(--ink) 4%, transparent);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 14px 30px color-mix(in oklab, black 22%, transparent);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 28rem;
}

/* Phone mockup */

.phone-stage {
  position: relative;
  width: min(100%, 440px);
  height: clamp(460px, 58vw, 560px);
}

.device {
  position: relative;
  width: min(100%, 260px);
  z-index: 2;
}

.device-hero {
  position: absolute;
  right: 0;
  top: 0;
  width: min(60%, 255px);
}

.device-hero-back {
  position: absolute;
  width: min(52%, 220px);
  left: 0;
  top: 11%;
  z-index: 1;
  transform: rotate(-6deg);
}

.device-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2.15rem;
  padding: 0.55rem;
  background: linear-gradient(160deg, #2a2d33 0%, #111318 45%, #1b1e24 100%);
  box-shadow:
    0 28px 50px color-mix(in oklab, var(--ink) 18%, transparent),
    inset 0 0 0 1px color-mix(in oklab, white 8%, transparent);
}

.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: 1.7rem;
  background: #0f1114;
  aspect-ratio: 1320 / 2868;
  isolation: isolate;
  transform: translateZ(0);
  clip-path: inset(0 round 1.7rem);
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: inherit;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Sections */

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

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
}

.section-lead {
  margin: 0.9rem 0 0;
  text-wrap: balance;
  font-size: 1.05rem;
}

.features {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1rem, 3vw, 2rem);
}

/* Feature cards: bento grid on desktop, swipeable row below 960px */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  outline-offset: 4px;
}

.card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.75rem 1.6rem 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid color-mix(in oklab, var(--ink) 5%, transparent);
  box-shadow: 0 12px 30px color-mix(in oklab, var(--ink) 4%, transparent);
}

.card-tint {
  background: linear-gradient(150deg, color-mix(in oklab, var(--accent-soft) 45%, white), color-mix(in oklab, var(--accent-soft) 18%, white));
  border-color: color-mix(in oklab, var(--accent) 8%, transparent);
}

.card-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em;
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: clamp(2.3rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.card-number small {
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-copy h3 {
  margin: 0;
  font-size: 1.22rem;
}

.card-copy > p:last-child {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 22.5rem;
  margin: auto -1.6rem 0;
  padding-top: 1.5rem;
}

.card-visual .device {
  width: 13.75rem;
  flex: none;
}

.cutout {
  position: absolute;
  z-index: 3;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 16px 36px color-mix(in oklab, var(--ink) 24%, transparent);
}

.guess-photo {
  flex: none;
  width: 92%;
  height: auto;
  border-radius: 1.1rem;
  box-shadow: 0 14px 30px color-mix(in oklab, var(--ink) 16%, transparent);
}

.cutout-guess-result {
  left: 9%;
  top: 11rem;
  width: 82%;
}

.cutout-ranking {
  left: 6%;
  top: 7.5rem;
  width: 88%;
}

.card-places .card-visual .device {
  transform: translateX(14%);
}

.chips {
  position: absolute;
  z-index: 3;
  left: 1rem;
  top: 3.5rem;
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px color-mix(in oklab, var(--ink) 16%, transparent);
}

.chips li:nth-child(even) {
  margin-left: 1.25rem;
}

@media (min-width: 960px) {
  .card-wide {
    grid-column: span 12;
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
    padding: 0 2.75rem;
  }

  .card-wide .card-copy {
    flex: 1 1 46%;
    align-self: center;
    padding: 2.5rem 0;
  }

  .card-wide .card-number {
    font-size: clamp(3.5rem, 6vw, 5rem);
  }

  .card-wide .card-copy h3 {
    font-size: 1.6rem;
  }

  .card-wide .card-copy > p:last-child {
    font-size: 1.02rem;
  }

  .card-wide .card-visual {
    flex: 1 1 54%;
    height: auto;
    min-height: 28rem;
    margin: 0;
    padding-top: 0;
  }

  .card-wide .card-visual .device {
    position: absolute;
    top: 2.25rem;
    left: 50%;
    width: 17rem;
    transform: translateX(-50%);
  }

  .card-map .cutout-map-stats {
    left: 0;
    bottom: 3rem;
    width: 19rem;
  }

  .card-achievements {
    grid-column: span 8;
  }

  .card-achievements .card-copy {
    flex: 1 1 50%;
  }

  .card-achievements .card-number {
    font-size: clamp(3rem, 5vw, 4.25rem);
  }

  .card-achievements .card-visual .device {
    left: 60%;
    width: 14.5rem;
  }

  .card-achievements .cutout-profile {
    left: 0;
    top: 6.5rem;
    width: 15.5rem;
  }
}

@media (max-width: 959px) {
  .bento {
    display: flex;
    gap: 0.85rem;
    margin-inline: -1.25rem;
    padding: 0 1.25rem 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .bento::-webkit-scrollbar {
    display: none;
  }

  .card {
    flex: 0 0 min(84%, 21.5rem);
    scroll-snap-align: start;
  }

  .cutout-map-stats {
    left: 6%;
    bottom: 2.5rem;
    width: 88%;
  }

  .cutout-profile {
    left: 6%;
    top: 6.5rem;
    width: 88%;
  }
}

/* How — text-only steps */

.how {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background:
    linear-gradient(180deg, transparent, color-mix(in oklab, var(--paper-2) 70%, transparent) 20%, transparent),
    transparent;
}

.how-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 3rem;
  }

  .how-grid .section-head {
    margin-bottom: 0;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.25rem;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--white) 75%, transparent);
  border: 1px solid color-mix(in oklab, var(--ink) 3%, transparent);
  box-shadow: 0 8px 20px color-mix(in oklab, var(--ink) 3%, transparent);
}

.step-num {
  grid-row: span 2;
  align-self: start;
  min-width: 1.6em;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.18;
  color: var(--accent-ink);
}

.steps h3 {
  margin: 0;
  font-size: 1.15rem;
  grid-column: 2;
}

.steps p {
  margin: 0;
  grid-column: 2;
  font-size: 0.96rem;
  color: var(--muted);
}

/* Modules */

.modules {
  padding: 1rem 0 clamp(4rem, 8vw, 6rem);
}

.module-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 720px) {
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.module-card {
  padding: 1.4rem 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, color-mix(in oklab, var(--white) 90%, transparent), color-mix(in oklab, var(--paper-2) 55%, transparent));
  border: 1px solid color-mix(in oklab, var(--ink) 3%, transparent);
  box-shadow: 0 8px 20px color-mix(in oklab, var(--ink) 3%, transparent);
}

.module-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.module-card p {
  margin: 0.55rem 0 0;
  font-size: 0.96rem;
}

/* Privacy */

.privacy {
  padding: 0 0 clamp(3rem, 6vw, 4.5rem);
}

.privacy-panel {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--white);
  border: 1px solid color-mix(in oklab, var(--ink) 5%, transparent);
  box-shadow: 0 14px 36px color-mix(in oklab, var(--ink) 6%, transparent);
}

.privacy-panel h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
}

.privacy-points {
  display: grid;
  gap: 1rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.privacy-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat,
    var(--accent);
}

.privacy-art {
  display: block;
  width: min(100%, 21rem);
  height: auto;
  margin: 2rem auto 0;
}

@media (min-width: 860px) {
  .privacy-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 23rem;
    column-gap: 3rem;
    align-items: center;
  }

  .privacy-art {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    margin: 0;
  }

  .privacy-note {
    grid-column: 1;
  }
}

.privacy-note {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-note a {
  color: var(--accent-ink);
}

/* FAQ */

.faq {
  padding: 0 0 clamp(3rem, 6vw, 4.5rem);
}

.faq-item {
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
}

.faq-item:first-child {
  border-top: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
}

.faq-item summary {
  position: relative;
  padding: 1.05rem 2.25rem 1.05rem 0;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 1.4rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  top: 1.6rem;
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 2.25rem 1.2rem 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.faq-answer p,
.faq-answer ul {
  margin: 0 0 0.6rem;
}

.faq-answer ul {
  padding-left: 1.1rem;
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* Download */

.download {
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.download-panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 3.5vw, 2rem);
  border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(160deg, #dbeaff, var(--paper-2) 70%);
  color: var(--ink);
  overflow: hidden;
}

@media (min-width: 900px) {
  .download-panel {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
}

.download-panel h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  max-width: 20ch;
}

.download-panel > div > p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  max-width: 34rem;
}

.store-hint {
  margin: 1rem 0 0 !important;
  font-size: 0.86rem !important;
  color: var(--muted) !important;
}

.download-visual {
  justify-self: center;
  width: min(100%, 240px);
}

.device-download {
  width: 100%;
}

/* Footer */

.site-footer {
  border-top: 1px solid color-mix(in oklab, var(--ink) 4%, transparent);
  padding: 1.75rem 0 2.25rem;
  background: color-mix(in oklab, var(--white) 55%, transparent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  border-radius: 0.7rem;
}

.footer-brand strong {
  display: block;
  font-size: 0.98rem;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-meta a {
  color: var(--ink-soft);
}

.footer-langs {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.88rem;
}

.footer-langs a {
  color: var(--muted);
  text-decoration: none;
}

.footer-langs a:hover {
  color: var(--ink);
}

.not-found-langs {
  margin-top: 2rem;
}

/* Browser language suggestion */

.lang-suggest {
  position: fixed;
  top: 5rem;
  right: max(1rem, calc((100vw - 1120px) / 2));
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  width: min(23rem, calc(100vw - 1.5rem));
  padding: 1rem 1rem 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid color-mix(in oklab, var(--ink) 7%, transparent);
  box-shadow: var(--shadow);
  animation: lang-suggest-in 0.35s var(--ease);
}

.lang-suggest p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.lang-suggest-switch {
  grid-row: 2;
  justify-self: start;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.lang-suggest-switch:hover {
  background: var(--accent-hover);
}

.lang-suggest-close {
  position: relative;
  grid-row: 1;
  grid-column: 2;
  width: 1.75rem;
  height: 1.75rem;
  margin: -0.2rem -0.2rem 0 0;
  border-radius: 50%;
  color: var(--muted);
}

.lang-suggest-close:hover {
  background: var(--paper-2);
}

.lang-suggest-close::before,
.lang-suggest-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.8rem;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.lang-suggest-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@keyframes lang-suggest-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 959px) {
  .lang-suggest {
    top: auto;
    right: 0.75rem;
    bottom: calc(5rem + env(safe-area-inset-bottom));
  }
}

/* Mobile download bar */

.sticky-cta {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem 0.55rem 0.7rem;
  border-radius: 1.15rem;
  background: color-mix(in oklab, var(--white) 94%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 12px 34px color-mix(in oklab, var(--ink) 22%, transparent);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.35s var(--ease);
}

.sticky-cta.is-visible {
  transform: none;
}

.sticky-cta > img {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
}

.sticky-cta strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 0.95rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sticky-cta .store-badge img {
  height: 2.5rem;
}

@media (min-width: 960px) {
  .sticky-cta {
    display: none;
  }
}

@media (max-width: 959px) {
  .site-footer {
    padding-bottom: 6.5rem;
  }
}

/* Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Privacy policy */

.legal-page {
  background: var(--paper);
}

.legal-shell {
  width: min(760px, calc(100% - 2rem));
  margin-inline: auto;
}

.legal-header {
  border-bottom: 1px solid var(--line);
}

.legal-header-inner {
  padding: 0.9rem 0;
}

.legal-header .brand {
  color: var(--ink);
}

.legal {
  padding: clamp(1.75rem, 5vw, 3rem) 0 2rem;
  overflow-wrap: break-word;
}

.legal:lang(ko) {
  word-break: keep-all;
}

.legal h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.2;
}

.legal-meta {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-intro {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
}

.legal-note {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.88rem;
}

.legal section {
  margin-top: 2.25rem;
}

.legal h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.legal h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1rem;
}

.legal p,
.legal ul,
.legal ol {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.legal ul,
.legal ol {
  padding-left: 1.4rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal a,
.legal-footer a {
  color: var(--accent-ink);
}

.legal-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-footer p {
  margin: 1rem 0 0;
}

/* The policy also opens inside the App, so it follows the system appearance. */
@media (prefers-color-scheme: dark) {
  .legal-page {
    --ink: #eef2f8;
    --ink-soft: #c9d2df;
    --muted: #8e9aad;
    --line: color-mix(in oklab, #ffffff 10%, transparent);
    --paper: #0e141d;
    --paper-2: #18212d;
    --accent-ink: #4da3ff;
  }

  .legal-page .brand-icon {
    box-shadow: none;
  }
}
