/* 에브리골프 법인 사이트 — 주식회사 오감랩스
 *
 * 색은 브랜드 팔레트 셋(#00BBA7 · #111111 · #FFFFFF)이 정본이다.
 * 중성색은 순회색을 쓰지 않고 청록 쪽으로 살짝 기울였다 — 브랜드색 옆에서
 * 순회색은 탁해 보인다.
 */

:root {
  --brand: #00bba7;
  --brand-deep: #00584f;
  --brand-wash: #eef8f6;

  --ink: #111111;
  --ink-2: #40484a;
  --ink-3: #6e7a7b;
  --ink-4: #9aa4a5;

  --paper: #ffffff;
  --surface: #f3f7f6;
  --line: #e2e9e7;
  --line-strong: #cdd8d6;

  --measure: 66ch;
  --spine: 1080px;

  --step-1: 0.8125rem;
  --step0: 0.9375rem;
  --step1: 1.0625rem;
  --step2: 1.375rem;
  --step3: 1.875rem;
  --step4: 2.625rem;
  --step5: 3.5rem;

  --sans: "IBM Plex Sans KR", -apple-system, "Apple SD Gothic Neo",
    "Malgun Gothic", system-ui, sans-serif;
  --display: "Gothic A1", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #16cdb9;
    --brand-deep: #9fe8de;
    --brand-wash: #10231f;

    --ink: #f2f6f5;
    --ink-2: #c3cdcc;
    --ink-3: #93a09f;
    --ink-4: #6d7a79;

    --paper: #0d1211;
    --surface: #141b1a;
    --line: #223029;
    --line-strong: #2f403a;
  }
}

:root[data-theme="dark"] {
  --brand: #16cdb9;
  --brand-deep: #9fe8de;
  --brand-wash: #10231f;

  --ink: #f2f6f5;
  --ink-2: #c3cdcc;
  --ink-3: #93a09f;
  --ink-4: #6d7a79;

  --paper: #0d1211;
  --surface: #141b1a;
  --line: #223029;
  --line-strong: #2f403a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--step0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── 뼈대 ─────────────────────────────────────────────────────────── */

.spine {
  width: 100%;
  max-width: var(--spine);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .spine {
    padding-left: 20px;
    padding-right: 20px;
  }
}

section {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

section:first-of-type {
  border-top: 0;
}

section.tint {
  background: var(--surface);
}

/* ── 타이포 ───────────────────────────────────────────────────────── */

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: var(--step5);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--step3);
  font-weight: 800;
}

h3 {
  font-size: var(--step1);
  font-weight: 700;
}

p {
  margin: 0;
  max-width: var(--measure);
}

.lede {
  font-size: var(--step1);
  color: var(--ink-2);
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0;
}

.note {
  font-size: var(--step-1);
  color: var(--ink-3);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

a {
  color: var(--brand-deep);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── 헤더 ─────────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead .spine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  display: block;
}

.brand svg {
  height: 19px;
  width: auto;
  display: block;
}

.brand svg path {
  fill: var(--ink);
}

nav.menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav.menu a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--step0);
  font-weight: 500;
  white-space: nowrap;
}

nav.menu a:hover,
nav.menu a[aria-current="page"] {
  color: var(--ink);
}

nav.menu a[aria-current="page"] {
  font-weight: 600;
}

@media (max-width: 560px) {
  .masthead .spine {
    height: auto;
    padding-block: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  nav.menu {
    gap: 18px;
  }
}

/* ── 히어로 ───────────────────────────────────────────────────────── */

.hero {
  padding-block: 96px 96px;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lede {
  margin-top: 22px;
  font-size: var(--step2);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 44ch;
}

.launch {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper);
}

.launch::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  flex: none;
}

/* 티 시트 눈금 — 앱의 1·2·3부 시간대 구분을 그대로 옮겼다.
 * 골프 부킹에만 있는 단위라 장식이 아니라 내용이다. */
.teesheet {
  margin-top: 64px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.teesheet div {
  padding-top: 14px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.teesheet div:first-child {
  border-left: 0;
  padding-left: 0;
}

.teesheet dt {
  font-family: var(--mono);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--brand-deep);
  letter-spacing: 0.04em;
}

.teesheet dd {
  margin: 4px 0 0;
  font-size: var(--step-1);
  color: var(--ink-3);
}

@media (max-width: 560px) {
  .hero {
    padding-block: 60px 56px;
  }
  /* 세 칸을 375px 에 욱여넣으면 `1부 04:30 —` 에서 줄이 꺾인다.
   * 좁은 폭에서는 세로로 쌓고 설명을 살린다 */
  .teesheet {
    margin-top: 44px;
    grid-template-columns: 1fr;
  }
  .teesheet div {
    border-left: 0;
    padding-left: 0;
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }
  .teesheet div:last-child {
    border-bottom: 0;
  }
  .teesheet dd {
    margin: 0;
    text-align: right;
  }
}

/* ── 기능 카드 ────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.features > div {
  background: var(--paper);
  padding: 26px 22px 30px;
}

.features h3 {
  margin-bottom: 8px;
}

.features p {
  font-size: var(--step-1);
  color: var(--ink-3);
  line-height: 1.7;
}

.features .idx {
  font-family: var(--mono);
  font-size: var(--step-1);
  color: var(--brand);
  display: block;
  margin-bottom: 14px;
}

@media (max-width: 860px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ── 앱 화면 ──────────────────────────────────────────────────────── */

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  /* 760px 이었다. 세 대가 너무 작아 글자가 안 읽혔다 */
  max-width: 940px;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.shot figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: var(--step-1);
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

@media (hover: hover) {
  .shot img {
    transition:
      transform 320ms cubic-bezier(0.2, 0.7, 0.3, 1),
      box-shadow 320ms;
  }
  .shot:hover img {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.4);
  }
}




.row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--paper);
}

.row .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.row .t {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
}

.row .fee {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--mono);
}

.row .meta {
  color: var(--ink-4);
  font-size: 10px;
}

.chip {
  align-self: flex-start;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
}

.band {
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--mono);
  padding-top: 2px;
}


.screens + .note {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .screens {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}

/* ── 표 ───────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step0);
}

th,
td {
  text-align: left;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink-3);
  border-bottom-color: var(--line-strong);
  white-space: nowrap;
}

tbody th {
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  width: 1%;
  padding-right: 32px;
}

td {
  color: var(--ink-2);
}

td.val {
  font-family: var(--mono);
  font-size: var(--step-1);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

td strong,
th strong {
  color: var(--ink);
  font-weight: 600;
}

/* 단계 목록 — 순서가 실제로 의미 있는 곳에만 쓴다 */
ol.steps {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

ol.steps li {
  counter-increment: s;
  background: var(--paper);
  padding: 24px 20px 26px;
}

ol.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono);
  font-size: var(--step-1);
  color: var(--brand);
  display: block;
  margin-bottom: 12px;
}

ol.steps h3 {
  margin-bottom: 6px;
}

ol.steps p {
  font-size: var(--step-1);
  color: var(--ink-3);
  line-height: 1.7;
}

@media (max-width: 860px) {
  ol.steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  ol.steps {
    grid-template-columns: 1fr;
  }
}

/* ── 공지 블록 ────────────────────────────────────────────────────── */

.callout {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 18px;
}

.callout p + p {
  margin-top: 10px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
}

ul.plain {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

ul.plain li {
  padding-left: 16px;
  position: relative;
  color: var(--ink-2);
}

ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand);
}

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 720px) {
  .two {
    grid-template-columns: 1fr;
  }
}

.contact {
  font-family: var(--mono);
  font-size: var(--step1);
  color: var(--ink);
  font-weight: 500;
}

/* ── 푸터 ─────────────────────────────────────────────────────────── */

footer.site {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 48px 56px;
  font-size: var(--step-1);
  color: var(--ink-3);
  line-height: 1.85;
}

footer.site .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

footer.site .links a {
  color: var(--ink-2);
  text-decoration: none;
}

footer.site .links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

footer.site .links a.em {
  font-weight: 700;
  color: var(--ink);
}

footer.site .corp {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

footer.site .corp > div {
  min-width: 0;
}

footer.site b {
  color: var(--ink);
  font-weight: 600;
}

footer.site .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

footer.site .rights {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 12px;
}

.tbd {
  font-family: var(--mono);
  font-size: 0.95em;
  color: var(--ink-4);
  border-bottom: 1px dotted var(--ink-4);
}

/* ══════════════════════════════════════════════════════════════════
 * 모션
 *
 * 규칙 셋을 지킨다.
 *
 *  1. **JS 를 쓰지 않는다.** 스크롤 연출은 `animation-timeline` 이 한다
 *  2. **`@supports` 로 감싼다.** 미지원 브라우저(파이어폭스)와 크롤러에서는
 *     연출이 통째로 빠지고 **내용은 처음부터 보인다.** `opacity: 0` 에
 *     멈춘 페이지는 검색엔진에도 사람에게도 빈 화면이다
 *  3. **`prefers-reduced-motion` 가드가 파일 맨 끝에서 전부 끈다**
 * ══════════════════════════════════════════════════════════════════ */

/* ── 페이지 전환 ──────────────────────────────────────────────────
 * MPA 인 채로 페이지가 부드럽게 넘어간다. 워드마크는 이름을 줘서
 * 두 페이지에 걸쳐 같은 요소로 이어진다. 미지원 브라우저는 평범하게
 * 이동할 뿐이라 깨지지 않는다. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
}

.masthead .brand {
  view-transition-name: brand;
}

/* ── 스크롤 등장 ──────────────────────────────────────────────────
 * `view()` 는 요소가 뷰포트에 들어온 정도를 타임라인으로 쓴다.
 * 스크롤 위치에 묶이므로 되감으면 되감긴다 — IntersectionObserver 로
 * 한 번 켜고 마는 것과 다르다. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@supports (animation-timeline: view()) {
  .rise {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 4% cover 22%;
  }

  /* 줄줄이 들어오는 것은 순서를 준다 — 한꺼번에 뜨면 움직임이 안 읽힌다 */
  .features > div,
  .teesheet div {
    animation: rise linear both;
    animation-timeline: view();
  }

  .features > div:nth-child(1) { animation-range: entry 2% cover 18%; }
  .features > div:nth-child(2) { animation-range: entry 6% cover 22%; }
  .features > div:nth-child(3) { animation-range: entry 10% cover 26%; }
  .features > div:nth-child(4) { animation-range: entry 14% cover 30%; }

  .teesheet div:nth-child(1) { animation-range: entry 2% cover 16%; }
  .teesheet div:nth-child(2) { animation-range: entry 6% cover 20%; }
  .teesheet div:nth-child(3) { animation-range: entry 10% cover 24%; }

  .screens > .shot:nth-child(1) { animation-range: entry 2% cover 24%; }
  .screens > .shot:nth-child(2) { animation-range: entry 7% cover 29%; }
  .screens > .shot:nth-child(3) { animation-range: entry 12% cover 34%; }

  /* 섹션 제목 아래 규칙선이 왼쪽에서 그어진다 */
  .eyebrow::after {
    animation: draw linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 20%;
  }
}

/* 눈금선 — 위 애니메이션이 없어도 그냥 보이는 상태가 기본이다 */
/* 눈금선은 라벨의 상자 **안**에 둔다. 밖으로 띄우면 `.stack-sm` 의
 * 10px 간격을 통째로 먹어서 선이 제목 윗변에 붙는다 — 실제로 붙어 있었다.
 * 패딩으로 선 자리를 만들고, 마진으로 선과 제목 사이를 벌린다. */
.eyebrow {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 8px;
}

.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: var(--brand);
  transform-origin: left center;
}

/* ── 상단 바 ──────────────────────────────────────────────────────
 * 스크롤을 내리면 배경이 차오르고 헤어라인이 생긴다. `scroll(root)` 이
 * 문서 스크롤을 타임라인으로 쓴다. */
@keyframes mast-settle {
  from {
    background-color: transparent;
    border-bottom-color: transparent;
  }
  to {
    background-color: var(--paper);
    border-bottom-color: var(--line);
  }
}

@supports (animation-timeline: scroll()) {
  .masthead {
    animation: mast-settle linear both;
    animation-timeline: scroll(root);
    animation-range: 0 90px;
  }
}

/* ── 히어로 티 시트 티커 ──────────────────────────────────────────
 * 실제 티 시트는 7~8분 간격으로 시각이 줄줄이 적힌 표다. 그 표가
 * 천천히 흐른다. **장식이므로 `aria-hidden` 이고** 내용이 아니다 —
 * 검색엔진에도 스크린리더에도 안 읽힌다. */
.hero {
  position: relative;
  overflow: hidden;
}

.hero > .spine {
  position: relative;
  z-index: 1;
}

.ticker {
  position: absolute;
  top: 0;
  /* 스파인 오른쪽 끝에 맞춘다 — 본문 격자 밖으로 새면 떠 보인다 */
  right: max(20px, calc(50% - var(--spine) / 2));
  width: 104px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  font-family: var(--mono);
  font-size: var(--step-1);
  line-height: 2.4;
  color: var(--ink-4);
  /* 위아래로 사라지게 — 잘린 티가 나면 지저분하다 */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 22%,
    #000 78%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 22%,
    #000 78%,
    transparent
  );
}

.ticker ol {
  margin: 0;
  padding: 0;
  list-style: none;
  animation: ticker-roll 42s linear infinite;
}

.ticker li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-block: 1px;
  opacity: 0.75;
}

.ticker li b {
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.ticker li[data-open] b {
  color: var(--brand-deep);
}

.ticker li span {
  font-size: 0.85em;
  letter-spacing: 0.02em;
}

.ticker li[data-open] span {
  color: var(--brand);
}

/* 목록을 두 벌 넣고 한 벌 높이만큼 올린다 — 이음매가 안 보인다 */
@keyframes ticker-roll {
  to {
    transform: translateY(-50%);
  }
}

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

/* 티커는 스파인 오른쪽 끝보다 조금 더 바깥으로 빼서 앱 화면 **뒤로**
 * 지나가게 한다. 겹치는 만큼 깊이가 생긴다. `.hero` 가 `overflow: hidden`
 * 이라 가로 스크롤은 생기지 않는다 */
@media (min-width: 861px) {
  .ticker {
    right: max(-40px, calc(50% - var(--spine) / 2 - 44px));
    z-index: 0;
  }
}

/* ── 히어로 2단 ───────────────────────────────────────────────────
 * 왼쪽에 글, 오른쪽에 앱 화면. 좁아지면 한 단으로 쌓이고 화면은
 * 글 아래로 내려간다. */
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 56px;
  }
}

.hero-shot {
  margin: 0;
  justify-self: center;
}

.hero-shot img {
  display: block;
  width: 100%;
  max-width: 286px;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  /* 흰 화면이 흰 바탕에 놓이면 테두리만 남는다. 살짝 띄운다 */
  box-shadow: 0 26px 50px -30px rgb(0 0 0 / 0.45);
  background: var(--paper);
}

.hero-more {
  margin: 20px 0 0;
  font-size: var(--step0);
}

.hero-more a {
  font-weight: 500;
  color: var(--brand-deep);
}

.hero-more a::after {
  content: " →";
  font-family: var(--mono);
}

/* ── 폰 목업 ──────────────────────────────────────────────────────
 * 가리키면 살짝 일어선다. 손가락 기기에서는 hover 가 없으니
 * `@media (hover: hover)` 로 가둔다. */

/* ── 기능 번호 ────────────────────────────────────────────────────
 * 01~04 는 순서가 있는 목록이라 번호가 내용이다. 뷰에 들어올 때
 * 브랜드색으로 물든다. */
.features > div .idx {
  transition: color 420ms ease;
}

@supports (animation-timeline: view()) {
  @keyframes idx-ink {
    to {
      color: var(--brand);
    }
  }

  .features > div .idx {
    animation: idx-ink linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}

/* ── 링크 ─────────────────────────────────────────────────────────
 * 밑줄이 안쪽에서 자란다. */
main a:not(.brand) {
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 240ms ease;
}

main a:not(.brand):hover,
main a:not(.brand):focus-visible {
  background-size: 100% 1px;
}

/* 나머지 페이지의 덩어리들 — 마크업을 건드리지 않고 선택자로 붙인다 */
@supports (animation-timeline: view()) {
  ol.steps > li,
  .contact,
  .two > *,
  table tbody tr {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 2% cover 20%;
  }

  ol.steps > li:nth-child(2) { animation-range: entry 5% cover 23%; }
  ol.steps > li:nth-child(3) { animation-range: entry 8% cover 26%; }
  ol.steps > li:nth-child(4) { animation-range: entry 11% cover 29%; }

  .two > *:nth-child(2) { animation-range: entry 6% cover 24%; }
}

/* ══════════════════════════════════════════════════════════════════
 * 모션 2단 — 더 올린 것
 * ══════════════════════════════════════════════════════════════════ */

/* ── 스크롤 진행 바 ───────────────────────────────────────────────
 * 상단 바 아래 실선이 문서 진행도만큼 찬다. 긴 페이지에서 어디쯤인지
 * 알려 주는 정보라 장식이 아니다. */
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
}

@keyframes progress {
  to {
    transform: scaleX(1);
  }
}

@supports (animation-timeline: scroll()) {
  .masthead::after {
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
}

/* ── 히어로 진입 ──────────────────────────────────────────────────
 * 스크롤이 아니라 **로드 직후 한 번** 도는 연출이다. 제목·리드·배지·
 * 화면이 차례로 올라온다. 첫인상에만 쓰고 되풀이하지 않는다. */
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1,
.hero .lede,
.hero .launch,
.hero .hero-more,
.hero-shot {
  animation: hero-in 620ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero h1 { animation-delay: 60ms; }
.hero .lede { animation-delay: 150ms; }
.hero .launch { animation-delay: 230ms; }
.hero .hero-more { animation-delay: 300ms; }
.hero-shot { animation-delay: 180ms; }

/* 티커는 흐르기 전에 먼저 나타난다 */
.ticker {
  animation: hero-in 900ms ease 260ms both;
}

/* ── 기능 카드 ────────────────────────────────────────────────────
 * 가리키면 왼쪽에 브랜드색 띠가 자란다. 네 칸이 맞붙은 격자라
 * 그림자 대신 띠를 쓴다 — 그림자는 격자선을 흐린다. */
.features > div {
  position: relative;
}

.features > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (hover: hover) {
  .features > div:hover::before {
    transform: scaleY(1);
  }
}

/* ── 앱 화면 ──────────────────────────────────────────────────────
 * 스크롤이 이 섹션을 지나는 동안 세 대가 차례로 일어선다.
 * `view()` 라 되감으면 되감긴다. */
@supports (animation-timeline: view()) {
  /* 등장만 한다. 지나갈 때 일어서는 연출은 뺐다 — 캡처가 진짜 화면이라
   * 움직임이 하나 더 붙으면 화면을 읽는 것을 방해한다 */
  .screens > .shot {
    animation: rise linear both;
    animation-timeline: view();
  }

  .screens > .shot:nth-child(1) { animation-range: entry 2% cover 24%; }
  .screens > .shot:nth-child(2) { animation-range: entry 7% cover 29%; }
  .screens > .shot:nth-child(3) { animation-range: entry 12% cover 34%; }
}


@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
