/* 하차알람 — nomake.app 과 같은 애플 스토어 카탈로그 결(얇은 반투명 머리글, 굵은 한 마디 + 회색 이어 쓰기, 흰 카드).
   첫머리 오른쪽 그림은 앱의 추적 화면(역 안내판 + 노선 막대)을 글자·도형만으로 옮긴 것이다. 색은 앱과 같다. */

:root {
  --page: #f5f5f7;
  --card: #fff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --rule: #d2d2d7;
  --link: #0066cc;
  --focus: #0071e3;
  /* 앱 색: 지하철 초록, 알람 지점 주황, 역 안내판 종이 */
  --subway: #00a652;
  --signal: #ff5c1f;
  --paper: #f1f0eb;
  --hair: #e0dfd9;
  --nav-h: 44px;
  --shadow: 2px 4px 12px rgb(0 0 0 / .08);
  --shadow-hover: 2px 4px 16px rgb(0 0 0 / .16);
  --ease: cubic-bezier(0, 0, .5, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
@media (max-width: 833px) { :root { --nav-h: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px; line-height: 1.47059; letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.more { color: var(--link); }
.more::after { content: "\203A"; margin-left: .25em; }
a.more:hover { text-decoration: underline; }

/* ── 머리글 ── */
.gnav {
  position: sticky; top: 0; z-index: 10;
  height: var(--nav-h);
  background: rgb(250 250 252 / .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.gnav-in {
  max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 19px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.gnav nav { display: flex; gap: 32px; }
.gnav nav a { padding: 12px 0; font-size: 12px; line-height: 1; letter-spacing: -.01em; color: rgb(0 0 0 / .8); }
.gnav nav a:hover { color: #000; }

/* ── 본문 ── */
.page { max-width: 1024px; margin: 0 auto; padding: 0 22px 88px; }
.eyebrow { font-size: 12px; line-height: 1.33337; font-weight: 600; letter-spacing: -.01em; text-transform: uppercase; color: var(--ink-2); }

/* 첫머리 */
.hero { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center; padding: 64px 0 72px; }
.hero h1 { margin-top: 10px; font-size: 48px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero h1 span, .shelf h2 span { color: var(--ink-2); }
.lede { margin-top: 20px; max-width: 520px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 15px; }
.badge {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; letter-spacing: -.01em;
}

/* 앱 화면 그림 */
.phone {
  padding: 12px; border-radius: 48px; background: #111214;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .35), 0 0 0 1px rgb(0 0 0 / .4);
}
.screen { padding: 26px 20px 22px; border-radius: 38px; background: var(--paper); display: grid; gap: 16px; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.status b { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--subway); }
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--subway); }
.board {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 20px; border: 1px solid var(--hair); border-radius: 18px; background: #fff;
  box-shadow: inset 0 -6px 0 var(--subway);
}
.mode {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--subway);
  /* 열차 앞모습: 창 하나 + 바퀴 둘 */
  background-image:
    radial-gradient(circle at 36% 72%, #fff 2.5px, transparent 3px),
    radial-gradient(circle at 64% 72%, #fff 2.5px, transparent 3px),
    linear-gradient(#fff, #fff);
  background-size: 100% 100%, 100% 100%, 16px 9px;
  background-position: 0 0, 0 0, 50% 36%;
  background-repeat: no-repeat;
}
.board-label { font-size: 11px; font-weight: 800; color: var(--subway); }
.board-name { font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.remain { display: flex; align-items: baseline; justify-content: space-between; }
.remain p:first-child { font-size: 20px; font-weight: 800; }
.remain strong { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-right: 2px; }
.eta { display: grid; justify-items: end; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.eta b { font-size: 17px; font-weight: 800; color: var(--ink); }
.clock { font-size: 12px; font-weight: 800; color: var(--subway); }
.strip { position: relative; height: 8px; border-radius: 4px; background: var(--hair); }
.fill { position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: 4px; background: var(--subway); }
.tick { position: absolute; left: 82%; top: -6px; width: 4px; height: 20px; border-radius: 2px; background: var(--signal); }
.end { position: absolute; right: -2px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 5px solid var(--subway); }
.strip-legend { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.strip-legend i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--signal); vertical-align: 1px; }

/* 섹션 공통 */
.shelf { padding-top: 24px; }
.shelf + .shelf { padding-top: 64px; }
.shelf h2 { margin-bottom: 20px; font-size: 28px; line-height: 1.14; font-weight: 800; letter-spacing: -.01em; }

/* 기능 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; min-height: 220px;
  padding: 28px 26px 26px; border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow);
}
.card h3 { margin-top: 6px; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.card-text { margin-top: 10px; font-size: 14px; line-height: 1.5; letter-spacing: -.016em; color: var(--ink-2); }

/* 사용법 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 26px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.steps b {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--subway); color: #fff; font-size: 15px; font-weight: 800;
}
.steps h3 { margin-top: 14px; font-size: 19px; line-height: 1.25; font-weight: 800; }
.steps p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.note { margin-top: 16px; font-size: 13px; color: var(--ink-2); }

/* 개인정보 */
.plain { display: grid; gap: 12px; max-width: 720px; padding: 26px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-size: 15px; line-height: 1.6; color: #424245; }

/* 카드 움직임: 움직임 줄이기를 켠 사람에게는 처음부터 그대로 보인다 */
@media (prefers-reduced-motion: no-preference) {
  .reveal .cards:not(.in) .card { opacity: 0; }
  .cards.in .card { animation: rise .8s var(--ease) calc(var(--i, 0) * .1s) backwards; }
  .fill { animation: ride 2.4s var(--ease) .3s backwards; }
  .live::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--subway);
    animation: pulse 1.4s ease-out infinite;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }
@keyframes ride { from { width: 8%; } }
@keyframes pulse { from { opacity: .5; transform: scale(1); } to { opacity: 0; transform: scale(2.8); } }

/* ── 바닥글 ── */
.foot { color: var(--ink-2); font-size: 12px; line-height: 1.33337; letter-spacing: -.01em; }
.foot-in { max-width: 980px; margin: 0 auto; padding: 32px 0 24px; border-top: 1px solid var(--rule); }
.foot-dir { display: flex; flex-wrap: wrap; gap: 24px 64px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.foot-dir h2 { margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--ink); }
.foot-dir li + li { margin-top: 8px; }
.foot-dir a { color: #424245; }
.foot-dir a:hover { text-decoration: underline; }
.foot-legal { padding-top: 16px; }
@media (max-width: 1024px) { .foot-in { margin: 0 22px; } }

/* ── 좁은 화면 ── */
@media (max-width: 833px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 44px 0 56px; }
  .phone { width: min(340px, 100%); justify-self: center; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 734px) {
  .gnav-in, .page { padding-left: 16px; padding-right: 16px; }
  .gnav nav { gap: 20px; }
  .gnav nav a { font-size: 14px; }
  .page { padding-bottom: 64px; }
  .hero h1 { font-size: 34px; line-height: 1.12; }
  .lede { font-size: 17px; }
  .shelf + .shelf { padding-top: 48px; }
  .shelf h2 { margin-bottom: 16px; font-size: 23px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 0; padding: 24px 22px 22px; }
  .foot-in { margin: 0 16px; padding-top: 24px; }
  .foot-dir { gap: 24px 40px; }
}

/* 404 */
.notfound {
  min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px 16px; text-align: center;
}
.notfound h1 { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.01em; }
.notfound p { font-size: 17px; color: var(--ink-2); }
