/*
 * 알마세일 소개 랜딩 — almasale.com
 * 시안: https://claude.ai/artifact/3CXuDXJAPXyEHB1TCw8orn (오너 승인 2026-11-20)
 * 색 · 글자 규칙은 알마세일 디자인 시스템(packages/ui/src/styles/globals.css)과 같은 값이다.
 * 스크립트가 없다. 첫 화면 그림은 CSS 애니메이션이고, 움직임 줄이기를 켠 사람에게는 멈춘 그림을 보인다.
 */

/* Wanted Sans — 이 페이지가 쓰는 굵기 셋(400 · 600 · 700). 글자 수를 줄인 파일이다(scripts/subset-fonts.py). 라이선스 SIL OFL 1.1. */
@font-face {
  font-family: 'Wanted Sans';
  src: url('/fonts/WantedSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Wanted Sans';
  src: url('/fonts/WantedSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Wanted Sans';
  src: url('/fonts/WantedSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --fg: oklch(0.21 0.02 260);
  --mut: oklch(0.48 0.02 260);
  --line: oklch(0.91 0.008 260);
  --input: oklch(0.6 0.015 260);
  --sunk: oklch(0.975 0.004 260);
  --navy: #24418f;
  --deep: #16265a;
  --gold: #e3b55b;
  --on-deep: oklch(0.88 0.02 262);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--fg);
  font-family:
    'Wanted Sans',
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    Roboto,
    'Helvetica Neue',
    'Segoe UI',
    'Apple SD Gothic Neo',
    'Noto Sans KR',
    'Malgun Gothic',
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
  font-synthesis: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.nb {
  display: inline-block;
}

.txt:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.sec {
  padding-block: clamp(64px, 8vw, 120px);
}

.sec-sunk {
  background: var(--sunk);
  border-block: 1px solid var(--line);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 64px);
}

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.gold-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

h2 {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}
.btn-solid {
  background: var(--navy);
  color: #fff;
}
.btn-solid:hover {
  background: var(--deep);
}
.btn-line {
  border: 1px solid var(--input);
  background: #fff;
}
.btn-line:hover {
  background: var(--sunk);
}
.btn-white {
  background: #fff;
  color: var(--deep);
}
.btn-white:hover {
  background: oklch(0.95 0.03 262);
}
.btn-white:focus-visible {
  outline-color: #fff;
}
.btn-text {
  padding-inline: 8px;
  color: var(--navy);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

/* ① 머리 */
.hdr {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  flex: none;
  width: 28px;
  height: 28px;
}
/* 글자 간판 — packages/ui 의 BrandLogo(md)와 같은 값이다 */
.logo-word {
  display: inline-flex;
  align-items: flex-start;
  font-size: 1.4875rem;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.logo-word b {
  color: var(--navy);
  font-weight: inherit;
}
.logo-word i {
  width: 0.28rem;
  height: 0.28rem;
  margin-top: 0.2em;
  margin-left: 0.1em;
  border-radius: 50%;
  background: var(--gold);
}
.logo-word-sm {
  font-size: 1.25rem;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 0.9375rem;
  color: var(--mut);
}
.nav a:hover {
  color: var(--fg);
}
.hdr-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* ② 첫 화면 */
.hero {
  background: var(--sunk);
  border-bottom: 1px solid var(--line);
}
.hero-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
  padding-block: clamp(56px, 7vw, 104px);
}
.hero-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-art {
  flex: 1 1 460px;
  min-width: 0;
}
h1 {
  font-size: clamp(2.125rem, 4.5vw, 3.625rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead {
  max-width: 34em;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--mut);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--mut);
}
.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.facts .gold-dot {
  width: 5px;
  height: 5px;
}

/* 첫 화면 그림 — 주문 → 발주 → 출고 → 송장이 12초에 한 바퀴 돈다. 자리는 600×450 틀의 %로 잡는다. */
.lv {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 450;
}
.lv-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  opacity: 0.55;
}
.lv-lines path {
  animation: lv-dash 1.6s linear infinite;
}
.lv-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  padding: 3.6cqw;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 4px 12px rgb(20 24 38 / 0.08),
    0 1px 2px rgb(20 24 38 / 0.05);
}
.lv-row-card {
  flex-direction: row;
  align-items: center;
  gap: 3cqw;
}
.lv-seller {
  left: 0;
  top: 0;
  width: 40%;
  height: 46%;
}
.lv-hub {
  left: 60%;
  top: 8.9%;
  width: 40%;
  height: 24.4%;
  border-color: var(--navy);
}
.lv-supplier {
  left: 60%;
  top: 55.6%;
  width: 40%;
  height: 44.4%;
}
.lv-buyer {
  left: 0;
  top: 66.7%;
  width: 40%;
  height: 28.9%;
}
.lv-cap {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  font-size: clamp(10px, 2.3cqw, 14px);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.lv-cap .gold-dot {
  width: 1.4cqw;
  height: 1.4cqw;
}
.lv-sub {
  font-size: clamp(9px, 2cqw, 12.5px);
  line-height: 1.35;
  color: var(--mut);
}
.lv-sub-end {
  margin-top: auto;
}
.lv-text {
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
  min-width: 0;
}
.lv-rows {
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
}
.lv-row {
  display: flex;
  align-items: center;
  gap: 2cqw;
  height: 5.2cqw;
}
.lv-bar {
  height: 1.5cqw;
  border-radius: 1cqw;
  background: oklch(0.9 0.008 260);
}
.lv-bar-1 {
  width: 42%;
  animation: lv-type 12s ease-out infinite;
}
.lv-bar-2 {
  width: 54%;
}
.lv-bar-3 {
  width: 34%;
}
.lv-bdg {
  position: relative;
  flex: none;
  width: 9.5cqw;
  height: 4.4cqw;
  margin-left: auto;
}
.lv-bdg span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: clamp(8px, 1.85cqw, 11.5px);
  font-weight: 600;
  white-space: nowrap;
}
.lv-prog {
  background: oklch(0.95 0.0385 245);
  color: oklch(0.4 0.11 245);
}
.lv-done {
  background: oklch(0.95 0.0297 170);
  color: oklch(0.4 0.085 170);
}
.lv-live.lv-prog {
  opacity: 0;
  animation: lv-prog 12s linear infinite;
}
.lv-live.lv-done {
  opacity: 0;
  animation: lv-done 12s linear infinite;
}
.lv-mark {
  position: relative;
  flex: none;
  width: 9cqw;
  height: 9cqw;
}
.lv-mark svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.lv-pulse {
  position: absolute;
  inset: 0;
  border-radius: 26%;
  background: var(--navy);
  opacity: 0;
  animation: lv-pulse 12s ease-out infinite;
}
.lv-shelf {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 2cqw;
  padding-bottom: 1cqw;
  border-bottom: 2px solid oklch(0.85 0.01 260);
}
.lv-box {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lv-box-big {
  width: 13cqw;
  height: 13cqw;
  animation: lv-bump 12s ease-out infinite;
}
.lv-box-small {
  width: 9cqw;
  height: 9cqw;
  stroke: var(--input);
}
.lv-fill {
  fill: #eef2fb;
}
.lv-fill-white {
  fill: #fff;
}
.lv-tape {
  stroke: var(--gold);
}
.lv-home {
  flex: none;
  width: 10cqw;
  height: 10cqw;
}
.lv-got {
  width: 3cqw;
  height: 3cqw;
  fill: none;
  stroke: oklch(0.47 0.09 170);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  animation: lv-got 12s ease-out infinite;
}
.lv-tk {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 1cqw 2.2cqw;
  border-radius: 999px;
  font-size: clamp(9px, 2cqw, 12.5px);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgb(20 24 38 / 0.16);
}
.lv-tk svg {
  width: 2.6cqw;
  height: 2.6cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.lv-tk1 {
  left: 40%;
  top: 21.1%;
  background: var(--navy);
  color: #fff;
  animation: lv-tk1 12s ease-in-out infinite;
}
.lv-tk2 {
  left: 80%;
  top: 33.3%;
  background: var(--navy);
  color: #fff;
  animation: lv-tk2 12s ease-in-out infinite;
}
.lv-tk3 {
  left: 60%;
  top: 81.1%;
  border: 1px solid var(--line);
  background: #fff;
  animation: lv-tk3 12s ease-in-out infinite;
}
.lv-tk4 {
  left: 80%;
  top: 55.6%;
  background: var(--gold);
  color: #2a2108;
  animation: lv-tk4 12s ease-in-out infinite;
}

@keyframes lv-dash {
  to {
    stroke-dashoffset: -24;
  }
}
@keyframes lv-type {
  0% {
    width: 0;
  }
  7%,
  100% {
    width: 42%;
  }
}
@keyframes lv-tk1 {
  0%,
  8% {
    left: 40%;
    opacity: 0;
  }
  10% {
    left: 40%;
    opacity: 1;
  }
  22% {
    left: 60%;
    opacity: 1;
  }
  24%,
  100% {
    left: 60%;
    opacity: 0;
  }
}
@keyframes lv-tk2 {
  0%,
  26% {
    top: 33.3%;
    opacity: 0;
  }
  28% {
    top: 33.3%;
    opacity: 1;
  }
  40% {
    top: 55.6%;
    opacity: 1;
  }
  42%,
  100% {
    top: 55.6%;
    opacity: 0;
  }
}
@keyframes lv-tk3 {
  0%,
  48% {
    left: 60%;
    opacity: 0;
  }
  50% {
    left: 60%;
    opacity: 1;
  }
  64% {
    left: 40%;
    opacity: 1;
  }
  66%,
  100% {
    left: 40%;
    opacity: 0;
  }
}
@keyframes lv-tk4 {
  0%,
  52% {
    left: 80%;
    top: 55.6%;
    opacity: 0;
  }
  54% {
    left: 80%;
    top: 55.6%;
    opacity: 1;
  }
  64% {
    left: 80%;
    top: 33.3%;
    opacity: 1;
  }
  66% {
    left: 80%;
    top: 33.3%;
    opacity: 0;
  }
  68% {
    left: 60%;
    top: 21.1%;
    opacity: 0;
  }
  70% {
    left: 60%;
    top: 21.1%;
    opacity: 1;
  }
  82% {
    left: 40%;
    top: 21.1%;
    opacity: 1;
  }
  84%,
  100% {
    left: 40%;
    top: 21.1%;
    opacity: 0;
  }
}
@keyframes lv-prog {
  0%,
  23% {
    opacity: 0;
  }
  25%,
  83% {
    opacity: 1;
  }
  85%,
  100% {
    opacity: 0;
  }
}
@keyframes lv-done {
  0%,
  83% {
    opacity: 0;
  }
  85%,
  97% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes lv-got {
  0%,
  65% {
    opacity: 0;
    transform: scale(0.6);
  }
  68%,
  97% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes lv-pulse {
  0%,
  21% {
    transform: scale(1);
    opacity: 0;
  }
  22% {
    transform: scale(1);
    opacity: 0.5;
  }
  28% {
    transform: scale(1.9);
    opacity: 0;
  }
  63% {
    transform: scale(1);
    opacity: 0;
  }
  64% {
    transform: scale(1);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
@keyframes lv-bump {
  0%,
  40% {
    transform: translateY(0);
  }
  43% {
    transform: translateY(-1.6cqw);
  }
  46%,
  100% {
    transform: translateY(0);
  }
}

/* ③ 핵심 가치 */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  border-top: 1px solid var(--fg);
}
.value {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px clamp(0px, 2.4vw, 32px) 32px 0;
  border-bottom: 1px solid var(--line);
}
.value h3 {
  font-size: 1.3125rem;
}
.value p {
  max-width: 30em;
  color: var(--mut);
}
.icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ④ 이용 흐름 */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 32px 24px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 2px solid var(--navy);
}
.step-no {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.step p {
  font-size: 0.9375rem;
  color: var(--mut);
}

/* ⑤ 공급사 입점 */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(32px, 6vw, 80px);
}
.split-center {
  align-items: center;
}
.split-copy {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.split-copy > p:not(.eyebrow) {
  max-width: 32em;
  color: var(--mut);
}
.points {
  flex: 1 1 400px;
  min-width: 0;
  border-top: 1px solid var(--fg);
}
.points li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.points p {
  font-size: 0.9375rem;
  color: var(--mut);
}

/* ⑥ 비공개 베타 */
.beta {
  background: var(--deep);
  color: #fff;
}
.beta .eyebrow {
  color: var(--gold);
}
.beta .split-copy > p:not(.eyebrow) {
  color: var(--on-deep);
}
.beta a:focus-visible {
  outline-color: #fff;
}
.beta-facts {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgb(255 255 255 / 0.28);
}
.beta-facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.28);
}
.beta-facts dt {
  font-size: 0.875rem;
  color: var(--on-deep);
}
.beta-facts dd {
  font-size: 1.125rem;
  font-weight: 600;
}
.beta-facts .beta-date {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ⑦ 아래쪽 */
.ftr-in {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 56px 48px;
}
.ftr-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 64px;
}
.ftr-biz {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.biz {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 0.875rem;
  color: var(--mut);
}
.biz dd {
  color: var(--fg);
}
.ftr-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9375rem;
}
.ftr-nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
}
.ftr-nav .strong {
  font-weight: 700;
}
.copy {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--mut);
}

/* 없는 주소(404.html) */
.lost {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background: var(--sunk);
}
.lost-in {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}
.lost p {
  color: var(--mut);
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

@media (max-width: 520px) {
  :root {
    --header-h: 64px;
  }
  .hdr-sup {
    display: none;
  }
  .btn-row .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .lv *,
  .lv-lines path {
    animation: none !important;
  }
  /* 멈춘 그림: 주문이 출고까지 끝난 모습 */
  .lv-live.lv-done,
  .lv-got {
    opacity: 1;
  }
}
