/* 안녕오늘 (hellotoday.uk) 공용 스타일.
   디자인 원본은 html/home/design/ 의 .dc.html 번들과 README.md 다.
   수치를 고칠 때는 그쪽 "Design Tokens" 절과 어긋나지 않게 한다. */

:root {
  /* 색 — 순백/순흑이 아닌 웜 뉴트럴. 액센트는 테라코타 단색이며 그라디언트는 쓰지 않는다. */
  --bg: #F6F4F1;
  --surface: #FFFFFF;
  --fg: #15130F;
  --muted: #6C665F;
  --line: rgba(21, 19, 15, .10);
  --line-strong: rgba(21, 19, 15, .18);
  --accent: #C4552F;
  --chip: rgba(196, 85, 47, .10);
  --shadow: 0 1px 2px rgba(21, 19, 15, .05), 0 12px 32px rgba(21, 19, 15, .06);

  /* 서체 — 본문은 Pretendard, 모노는 숫자·코드·라벨 전용이다.
     한글에는 모노를 절대 쓰지 않는다 (자간이 벌어져 보인다). */
  --font-body: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* 레이아웃 */
  --content-width: 1080px;
  --content-padding: 28px;
  --split-gap: 48px;
  --split-label-width: 220px;

  /* 스크린샷 한 장의 가로세로. 기본은 폰 전체 화면이고, 앱인토스 미니앱은
     토스 앱이 위아래를 차지해 더 짧다(콘솔 규격 636×1048). 같은 칸에 넣으면
     좌우가 잘려 글자가 사라지므로 틀 높이를 이 비율로 잡는다. */
  --shot-aspect: 180 / 380;
  --shot-aspect-miniapp: 636 / 1048;

  /* 모서리 */
  --radius-icon-button: 10px;
  --radius-button: 12px;
  --radius-card: 20px;
  --radius-shot: 22px;
  --radius-phone-card: 26px;
  --radius-phone-hero: 38px;
  --radius-pill: 999px;
}

/* 다크값. site.js 가 첫 페인트 전에 data-theme 을 light/dark 중 하나로 확정하므로
   여기 한 곳에만 두면 되고 prefers-color-scheme 을 따로 볼 필요가 없다. */
[data-theme="dark"] {
  --bg: #111110;
  --surface: #1A1917;
  --fg: #F1EEE9;
  --muted: #9A938B;
  --line: rgba(241, 238, 233, .12);
  --line-strong: rgba(241, 238, 233, .22);
  --accent: #E4794D;
  --chip: rgba(228, 121, 77, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;                 /* 한글이 단어 중간에서 끊기지 않게 */
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
a[aria-current="page"] { color: var(--fg); }
::selection { background: var(--chip); }
img { display: block; max-width: 100%; }

/* --- 레이아웃 뼈대 ---------------------------------------------------------- */

.page { min-height: 100vh; display: flex; flex-direction: column; }

.shell {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: var(--content-padding);
}

/* 섹션 구분은 윗선 하나로만 한다. 배경색을 번갈아 쓰지 않는다. */
.section { border-top: 1px solid var(--line); }
.section--grow { flex: 1; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* 섹션 라벨은 본문 서체 600 이다. 모노스페이스·uppercase 로 되돌리지 말 것
   (한글에서 깨져 실제로 되돌린 적이 있다). */
.section-label { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.section-note { font-size: 14px; color: var(--muted); }

/* 라벨 / 본문 2열. 라벨 폭만 다른 곳이 있어 변수로 뺀다. */
.split {
  display: grid;
  grid-template-columns: minmax(0, var(--split-label-width)) minmax(0, 1fr);
  gap: var(--split-gap);
}
.split--narrow { --split-label-width: 200px; }

/* --- 버튼 ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.btn--secondary { background: var(--surface); border-color: var(--line-strong); color: var(--fg); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 스토어 마커. 지금은 임시 글리프이며 공식 배지 SVG 로 교체해야 한다. */
.store-mark { font-size: 14px; }

/* 웹에서 누를 주소가 없는 스토어(앱인토스 미니앱)의 앱을 어떻게 실행하는지.
   버튼 줄 안에 들어가되 한 줄을 통째로 쓴다. */
.store-guide {
  flex-basis: 100%;
  margin: 0;
  max-width: 32em;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

.status-chip {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--chip);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.status-chip--lg { padding: 6px 13px; font-size: 12.5px; }

/* 플랫폼 표기. 값이 ANDROID · IOS 라 모노가 맞다. */
.platform-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}
.platform-label--lg { font-size: 12.5px; }

/* --- 헤더 ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 14px var(--content-padding);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; color: var(--fg); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}
.brand-name { font-size: 15.5px; }

.nav-spacer { flex: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
  color: var(--muted);
}
.nav-links a { color: inherit; }

.theme-toggle {
  width: 34px; height: 34px;
  border-radius: var(--radius-icon-button);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  font-size: 14px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* --- 푸터 ------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  padding-block: 36px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* --- 홈 히어로 -------------------------------------------------------------- */

.home-hero { padding-block: 104px 80px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 26px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.eyebrow-mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }

.home-title {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
}
.home-lede {
  margin: 26px 0 0;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.5;
  letter-spacing: -.02em;
  max-width: 19em;
}
.home-body {
  margin: 22px 0 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}
.home-hero .button-row { margin-top: 38px; }

/* --- 앱 목록 ---------------------------------------------------------------- */

.apps-section { padding-block: 72px 84px; }
.apps-section .section-head { margin-bottom: 44px; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-card-shot {
  display: flex;
  justify-content: center;
  padding: 30px 30px 0;
  background: var(--chip);
}
.app-card-shot:hover { text-decoration: none; }

/* 폰 목업 — 아랫변이 카드에 잠기므로 border-bottom 이 없다. */
.phone-frame {
  width: 186px;
  height: 250px;
  border-radius: var(--radius-phone-card) var(--radius-phone-card) 0 0;
  border: 1px solid var(--line-strong);
  border-bottom: none;
  background: var(--bg);
  padding: 7px 7px 0;
  overflow: hidden;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: var(--chip);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* 스크린샷이 아직 없는 앱 자리 */
.phone-screen--empty {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.app-card-body {
  padding: 26px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.app-card-title-line { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.app-card-name { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.app-card-name a { color: var(--fg); }
.app-card-name a:hover { color: var(--accent); text-decoration: none; }
.app-card-en { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.app-card-summary { margin: 0; font-size: 15px; line-height: 1.68; color: var(--muted); text-wrap: pretty; }
.app-card-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-card-more { font-size: 14px; font-weight: 600; }

.app-card--upcoming {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  color: var(--muted);
}
.app-card--upcoming h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--fg); letter-spacing: -.02em; }
.app-card--upcoming p { margin: 0; font-size: 14.5px; line-height: 1.6; }

/* --- 앱 상세 ---------------------------------------------------------------- */

.app-hero { padding-block: 56px 72px; }

.back-link { font-size: 14px; color: var(--muted); }
.back-link:hover { color: var(--accent); }

.app-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: start;
  margin-top: 34px;
}

.app-title-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.app-title {
  margin: 0;
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
}
.app-en { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.app-hero .status-chip { margin-top: 18px; }
.app-lede {
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.66;
  letter-spacing: -.015em;
  max-width: 30em;
  text-wrap: pretty;
}
.app-hero .button-row { margin-top: 34px; }
.app-hero .platform-label { display: block; margin-top: 30px; }

.phone-hero-wrap { display: flex; justify-content: center; }
.phone-frame--hero {
  width: 262px;
  height: 534px;
  border-radius: var(--radius-phone-hero);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 9px;
}
.phone-frame--hero .phone-screen { border-radius: 30px; }

/* 미니앱 화면은 폰 전체 화면보다 짧다. 고정 높이에 cover 로 넣으면 좌우가
   잘려 글자가 사라지므로, 틀 높이를 화면 비율에 맡긴다. */
.phone-frame--miniapp { --shot-aspect: var(--shot-aspect-miniapp); height: auto; }
.phone-frame--miniapp .phone-screen { height: auto; }
.phone-frame--miniapp .phone-screen img { height: auto; aspect-ratio: var(--shot-aspect); }

.section-body { padding-block: 72px; }

/* 앱 설명 본문 */
.prose { max-width: 36em; }
.prose h3 { margin: 34px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.prose p { margin: 18px 0 0; font-size: 16.5px; line-height: 1.8; text-wrap: pretty; }
.prose > :first-child { margin-top: 0; }

.bullet {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.bullet-mark { color: var(--accent); font-size: 15px; line-height: 1.75; }
.bullet p { margin: 0; font-size: 16.5px; line-height: 1.75; }

.shots-section .section-head { margin-bottom: 36px; }
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 196px);
  justify-content: start;
  gap: 20px;
}
.shot-frame {
  border-radius: var(--radius-shot);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--shadow);
}
.shots-grid--miniapp { --shot-aspect: var(--shot-aspect-miniapp); }
.shot-frame img {
  width: 180px;
  height: auto;
  aspect-ratio: var(--shot-aspect);
  border-radius: 16px;
  object-fit: cover;
  background: var(--chip);
}

.privacy-note { margin: 0; font-size: 16.5px; line-height: 1.72; max-width: 34em; text-wrap: pretty; }
.privacy-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; font-size: 14.5px; font-weight: 600; }

.cta-section { padding-block: 64px 80px; }
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.cta-desc { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.cta-card .btn { white-space: nowrap; }

/* --- 문의 · 지원 ------------------------------------------------------------ */

.support-hero { padding-block: 76px 60px; }
.page-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 700;
}
.page-lede { margin: 20px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 32em; }
.mail-link {
  display: inline-block;
  margin-top: 30px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--fg);
}
.mail-link:hover { color: var(--accent); }

.business-section { padding-block: 64px 80px; }
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  font-size: 14.5px;
}
.business-label { color: var(--muted); margin-bottom: 6px; }
.business-value { font-weight: 600; }
.business-value--mono { font-family: var(--mono); }
.business-value--links { display: flex; flex-wrap: wrap; gap: 10px; }
.business-separator { color: var(--muted); }

/* --- 좁은 화면 -------------------------------------------------------------- */

/* 라벨 2열이 버티지 못하는 폭에서 한 줄로 편다. */
@media (max-width: 720px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .app-hero-grid { gap: 40px; }
  .home-hero { padding-block: 72px 60px; }
  .shots-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 196px)); }
  .shot-frame img { width: 100%; }
  .cta-card { padding: 26px; }
}

@media (max-width: 420px) {
  :root { --content-padding: 20px; }
  .site-nav { gap: 14px; }
  .nav-links { gap: 16px; }
}
