/* Karuu 베타 신청 페이지.
   기준(2026-10-23 세계 수준 제품 페이지 12곳 조사): 첫 화면은 포드와 짧은 제목과 버튼 하나,
   구간은 큰 문장 하나로 열고 앞은 진하게 뒤는 연하게, 강조색은 앱 아이콘의 남색과 크림색 하나,
   포드 색은 포드에만, 둥글기는 12·28·알약 셋, 그림자는 거의 쓰지 않는다. 움직임은 처음 한 번만.
   바탕은 기기 설정(밝게, 어둡게)을 따르고, 주소에 ?theme=light 또는 ?theme=dark를 붙여 바꿔 볼 수 있다. */

/* ---------- 색과 크기 ---------- */
/* 밝은 바탕은 차가운 은빛 흰색이다(사용자 2026-10-23 "메탈릭한 화이트 배경"). 맨 위에 빛이 비친 듯한 옅은 광택을 둔다. */
:root {
  color-scheme: light;
  --bg: #eef0f3;
  --sheen: rgba(255, 255, 255, 0.92);
  --surface: #ffffff;
  --text: #1c2129;
  --text-2: #5a616b;
  --text-3: #787e88;      /* 큰 글에만 쓴다. 바탕 대비 3.58:1, 카드 위 4.09:1 */
  --line: #dadde3;
  --accent: #2e3b4a;      /* 앱 아이콘의 남색 */
  --on-accent: #f5f0e8;   /* 앱 아이콘의 크림색 */
  --field: #ffffff;
  --field-line: #d0d4db;
  --seg: #e4e7eb;
  --seg-on: #ffffff;
  --error: #b3261e;
  --ground: rgba(28, 33, 41, 0.14);
  --pod-blue: #6ea8ff;
  --pod-pink: #ff92bd;
  --pod-yellow: #ffd166;
  --pod-mint: #6fe3c1;
  --pod-lilac: #b9a2ff;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --page: 1120px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #11151c;
    --sheen: transparent;
    --surface: #181d27;
    --text: #f5f0e8;
    --text-2: #aab0ba;
    --text-3: #757c88;
    --line: #29303c;
    --accent: #f5f0e8;
    --on-accent: #1d2430;
    --field: #11151c;
    --field-line: #343b48;
    --seg: #222833;
    --seg-on: #39414f;
    --error: #ff8a80;
    --ground: rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11151c;
  --sheen: transparent;
  --surface: #181d27;
  --text: #f5f0e8;
  --text-2: #aab0ba;
  --text-3: #757c88;
  --line: #29303c;
  --accent: #f5f0e8;
  --on-accent: #1d2430;
  --field: #11151c;
  --field-line: #343b48;
  --seg: #222833;
  --seg-on: #39414f;
  --error: #ff8a80;
  --ground: rgba(0, 0, 0, 0.5);
}

/* ---------- 바탕 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1400px 760px at 50% -160px, var(--sheen), transparent 72%) no-repeat, var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
p, h1, h2, h3 { margin: 0; }
strong { font-weight: inherit; }

html[data-lang="ko"] .en,
html[data-lang="en"] .ko { display: none; }
/* lang.js를 받지 못해 언어가 정해지지 않으면 두 언어를 함께 보이고, 영어는 다음 줄로 내린다. */
html:not([data-lang]) .en { display: block; }

.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;
}

/* ---------- 위 띠 ---------- */
.nav-inner {
  max-width: var(--page); height: 64px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-size: 19px; font-weight: 760; letter-spacing: -0.035em;
  color: var(--text); text-decoration: none;
}
.nav-actions { display: flex; align-items: center; gap: 6px; }
.lang-toggle {
  font: inherit; font-size: 14px; font-weight: 550; color: var(--text-2);
  background: none; border: 0; padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.lang-toggle:hover { color: var(--text); }
/* 응모 칸이 닫힌 소개 판은 언어를 링크로 바꾼다(스크립트 없음). */
a.lang-toggle { display: inline-block; text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 14px; font-weight: 620; letter-spacing: -0.01em; text-decoration: none;
}

/* ---------- 첫 화면 ---------- */
.hero {
  max-width: var(--page); margin: 0 auto; padding: 40px var(--gutter) 128px;
  text-align: center;
}

/* 포드 다섯은 겹쳐 선 한 무리다. 가운데 하나를 가장 크게, 나머지는 각도를 달리한다.
   지금은 색만 칠한 알 모양 자리이고, 그림을 받으면 바꾼다. */
.pod-stage {
  position: relative; width: min(560px, 84vw); aspect-ratio: 560 / 300; margin: 0 auto;
}
.pod-stage::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -3%; height: 14%;
  background: radial-gradient(closest-side, var(--ground), transparent);
}
.pod {
  position: absolute; bottom: 3%; aspect-ratio: 1 / 1.12;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  rotate: var(--r, 0deg);
  animation: rise 0.8s var(--ease) both;
  animation-delay: var(--d, 0s);
  z-index: 1;
}
.pod-blue { background: var(--pod-blue); }
.pod-pink { background: var(--pod-pink); }
.pod-yellow { background: var(--pod-yellow); }
.pod-mint { background: var(--pod-mint); }
.pod-lilac { background: var(--pod-lilac); }
.pod-s3 { width: 38%; left: 31%; bottom: 2%; --r: -3deg; z-index: 3; }
.pod-s2 { width: 25%; left: 11%; --r: -11deg; --d: 0.07s; z-index: 2; }
.pod-s4 { width: 27%; left: 62%; --r: 9deg; --d: 0.1s; z-index: 2; }
.pod-s1 { width: 15%; left: 1%; bottom: 1%; --r: -5deg; --d: 0.14s; }
.pod-s5 { width: 16%; left: 83%; bottom: 1%; --r: 12deg; --d: 0.17s; }

.eyebrow {
  margin-top: 40px; font-size: 15px; font-weight: 620; letter-spacing: -0.01em; color: var(--text-2);
}
.display {
  margin: 10px auto 0; max-width: 14em;
  font-size: clamp(40px, 6.2vw, 64px); line-height: 1.28; font-weight: 700; letter-spacing: -0.022em;
}
html[lang="en"] .display {
  font-size: clamp(46px, 7vw, 76px); line-height: 1.04; font-weight: 650; letter-spacing: -0.035em;
}
.lead {
  margin: 20px auto 0; max-width: 30em;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-2); letter-spacing: -0.01em;
}
html[lang="en"] .lead { line-height: 1.5; }
/* 뜻 덩어리 하나가 줄 중간에서 끊기지 않게, 자리가 모자라면 덩어리째 다음 줄로 넘긴다. */
.chunk { display: inline-block; }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; margin-top: 36px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: 17px; font-weight: 620; letter-spacing: -0.01em; text-decoration: none;
}
a.cta:hover { opacity: 0.88; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.platforms { margin-top: 4px; font-size: 13px; color: var(--text-2); }

.hero .eyebrow, .hero .display, .hero .lead, .hero .cta, .hero .cta-note, .hero .platforms {
  animation: rise 0.8s var(--ease) both;
}
.hero .eyebrow { animation-delay: 0.12s; }
.hero .display { animation-delay: 0.16s; }
.hero .lead { animation-delay: 0.24s; }
.hero .cta { animation-delay: 0.32s; }
.hero .cta-note, .hero .platforms { animation-delay: 0.38s; }

@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- 흐름: 큰 문장 세 줄 ---------- */
.lines { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) 128px; }
.line {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 24px;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.line:last-child { border-bottom: 1px solid var(--line); }
.line-text, .statement {
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.35; font-weight: 700; letter-spacing: -0.022em;
  color: var(--text-3);
}
html[lang="en"] .line-text, html[lang="en"] .statement {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.12; font-weight: 650; letter-spacing: -0.03em;
}
.line-text strong, .statement strong { color: var(--text); }
.line-tag {
  padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); white-space: nowrap;
}
.line-tag.is-soon { color: var(--text-2); }

/* ---------- 베타 응모 ---------- */
.get { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) 128px; text-align: center; }
.statement { max-width: 18em; margin: 0 auto; }
/* 추첨 규칙. 가운데 정렬 절 안에서 목록만 왼쪽 정렬로 읽힌다. */
.rules {
  display: grid; gap: 10px; max-width: 34em; margin: 32px auto 0; padding: 0;
  list-style: none; text-align: left; font-size: 15px; line-height: 1.6; color: var(--text-2);
}
.rules li { position: relative; padding-left: 18px; }
.rules li::before {
  content: ""; position: absolute; left: 2px; top: 0.7em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.mail {
  max-width: 600px; margin: 64px auto 0; padding: 40px; text-align: left;
  background: var(--surface); border-radius: 28px; box-shadow: inset 0 0 0 1px var(--line);
}
.mail-title { font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: -0.025em; }
/* 응모 칸이 닫힌 동안 상자 안의 안내 글. */
.mail-note { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.mail-fallback { margin-top: 12px; font-size: 14px; color: var(--text-2); }
#signup { margin-top: 24px; }

.field {
  display: block; width: 100%; height: 52px; padding: 0 16px;
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--field); border: 1px solid var(--field-line); border-radius: 12px;
}
.field::placeholder { color: var(--text-2); }

.choices { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.choice { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 10px 0; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.choice label { font-size: 16px; line-height: 1.5; cursor: pointer; }
.choice strong { font-weight: 650; }
.choice input:disabled + label { color: var(--text-3); cursor: default; }
.choice-nested { padding-left: 32px; }
.hint { display: block; font-size: 14px; color: var(--text-2); }

.langs { margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.langs-label { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--seg); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: block; padding: 7px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.seg input:checked + span { background: var(--seg-on); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.form-error { margin-top: 16px; font-size: 14px; color: var(--error); }
.form-status { margin-top: 12px; font-size: 14px; color: var(--text-2); }
/* 알림 자리는 늘 남겨 둔다. 숨겼다가 보이면 화면 읽기 도구가 첫 글을 놓칠 수 있다. */
.form-error:empty, .form-status:empty { margin: 0; }
.form-status:focus { outline: none; }

.mail-button {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 24px;
  height: 48px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 620; letter-spacing: -0.01em;
  color: var(--text); background: transparent; border: 1px solid var(--text);
}
.mail-button:hover { background: var(--text); color: var(--bg); }
.mail-button:disabled { opacity: 0.5; cursor: progress; }

.privacy-line {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-2);
}
.privacy { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.privacy summary {
  display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
  font-weight: 600; color: var(--text);
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  rotate: 45deg; translate: 0 -2px; transition: rotate 0.2s var(--ease), translate 0.2s var(--ease);
}
.privacy[open] summary::after { rotate: 225deg; translate: 0 2px; }
.privacy ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 18px; line-height: 1.6; }

/* ---------- 자주 묻는 것 ---------- */
.faq { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) 128px; }
.faq-title { margin-bottom: 24px; font-size: clamp(26px, 3vw, 32px); line-height: 1.3; font-weight: 700; letter-spacing: -0.028em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; list-style: none; cursor: pointer;
  font-size: clamp(17px, 1.6vw, 19px); font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 24px; font-weight: 300; line-height: 1; color: var(--text-3);
  transition: rotate 0.2s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { max-width: 36em; margin: 0 0 22px; color: var(--text-2); }

/* ---------- 바닥 ---------- */
.foot { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); font-size: 14px; color: var(--text-2); }
.foot-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 32px 0 48px; border-top: 1px solid var(--line);
}
.foot .wordmark { font-size: 16px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- 누르는 곳 표시 ---------- */
.wordmark:focus-visible, .nav-cta:focus-visible, .lang-toggle:focus-visible, .cta:focus-visible,
.mail-button:focus-visible, summary:focus-visible, .foot a:focus-visible, .field:focus-visible {
  outline: 2px solid var(--text); outline-offset: 3px;
}
.seg input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

/* ---------- 작은 화면 ---------- */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .hero { padding: 20px var(--gutter) 88px; }
  .pod-stage { width: min(330px, 80vw); aspect-ratio: 560 / 340; }
  .eyebrow { margin-top: 28px; font-size: 14px; }
  .cta { width: 100%; max-width: 360px; margin-top: 28px; }
  .lines, .get, .faq { padding-bottom: 88px; }
  .line { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .line-tag { justify-self: start; }
  .mail { margin-top: 48px; padding: 24px; border-radius: 24px; }
  .mail-button { width: 100%; }
  .faq summary { padding: 18px 0; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .nav-cta { height: 34px; padding: 0 14px; font-size: 13px; }
}

/* 움직임을 줄이도록 해 둔 기기에서는 처음 등장과 펼침 움직임을 끈다. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
