/* MOHE design tokens — from the app design system (lib/core/theme) + landing scale. */
:root {
  /* Brand */
  --brand: #917eff;
  --brand-dark: #553fdd;
  --brand-deep: #7864f6;
  --brand-alt: #7867e5;
  --lavender: #b77eff;
  --lavender-light: #c1b9f3;
  --brand-surface: #e7e5fa;
  --brand-surface-light: #f5f6ff;
  --brand-surface-faint: #efeef6;

  /* Marketing accents (store screenshot 01 / reference hero) */
  --mint: #7df3e1;
  --teal: #8fd8e8;

  /* Neutral */
  --white: #ffffff;
  --neutral-50: #f9fafb;
  --neutral-200: #ececec;
  --neutral-300: #e5e7eb;
  --neutral-500: #99a1af;
  --neutral-700: #4a5565;
  --neutral-800: #101828;

  /* Landing-only: deep indigo heading ink seen in the design render */
  --ink: #1f1a4d;
  --ink-soft: #5c5f7e;
  --phone-bezel: #1b1b2f;
  --phone-screen: #1e1a3a;

  --border: rgba(0, 0, 0, 0.1);
  --border-on-dark: rgba(255, 255, 255, 0.45);

  /* Type */
  --font-sans: 'Roboto', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai',
    system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Comic Sans MS', cursive;
  --font-hand-ko: 'Gaegu', 'Caveat', cursive;

  --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --text-h2: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  --text-h2-xl: clamp(2.5rem, 1.2rem + 3.6vw, 4rem);
  --text-hero: clamp(3.25rem, 1.5rem + 9.5vw, 9.25rem);

  /* Space (app scale + web sections) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --container: 1248px;

  /* Radius */
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-card: 20px;
  --radius-panel: 32px;
  --radius-pill: 100px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(13, 13, 18, 0.06);
  --shadow-sm: 0 1px 3px rgba(25, 33, 61, 0.1);
  --shadow-card: 0 18px 40px -18px rgba(53, 41, 140, 0.35);
  --shadow-photo: 0 24px 48px -16px rgba(30, 22, 90, 0.45);

  /* Motion */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--neutral-700);
  background: var(--brand-surface);
  overflow-x: hidden;
}

/* Per-language primary font (set on <html> by js/i18n.js) */
html[lang='ko'] body { font-family: 'Noto Sans KR', var(--font-sans); word-break: keep-all; overflow-wrap: anywhere; }
html[lang='ja'] body { font-family: 'Noto Sans JP', var(--font-sans); }
html[lang='zh-CN'] body { font-family: 'Noto Sans SC', var(--font-sans); }
html[lang='zh-TW'] body { font-family: 'Noto Sans TC', var(--font-sans); }
html[lang='th'] body { font-family: 'Noto Sans Thai', var(--font-sans); }

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

/* Set by js/boot.js until the non-English dictionary is applied — prevents an English flash. */
html[data-i18n-pending] [data-i18n],
html[data-i18n-pending] [data-i18n-placeholder],
html[data-i18n-pending] .lang-select {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.skip-link:focus-visible {
  top: var(--space-4);
}

/* Icons: stroke-based inline SVGs */
.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 50px;
  padding: 14px 28px;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.25;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-fast),
    color var(--duration-fast),
    box-shadow var(--duration-fast);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.btn--white {
  background: var(--white);
  color: var(--brand-dark);
}
.btn--white:hover {
  background: var(--brand-surface-light);
}
.btn--brand {
  background: var(--brand);
  color: var(--white);
  border-color: transparent;
}
.btn--brand:hover {
  background: var(--brand-dark);
}
.btn--lg {
  min-height: 60px;
  padding: 16px 40px;
  font-size: var(--text-lg);
  font-weight: 600;
}

/* ─── Brand lockup ────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 40px;
  height: auto;
}
.brand-word {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand);
  line-height: 1;
}


/* ─── Language pill (native <select> inside a styled shell) ─ */
.lang-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 50px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--duration-fast);
}
.lang-pill:hover {
  background: var(--brand-surface-light);
}
.lang-pill .icon--chevron {
  width: 1em;
  height: 1em;
  pointer-events: none;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  max-width: 9.5em;
}
.lang-select:focus-visible {
  outline-offset: 10px;
}
.lang-select option {
  color: var(--ink);
  background: var(--white);
}
.lang-pill--ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lang-pill--ghost:hover {
  background: rgba(255, 255, 255, 0.75);
}
