/* 유인도 랜딩 공통 스타일. 기준은 docs/design-guide.md 입니다. */

:root {
  /* 색 */
  --bg: #ffffff;
  --soft: #f3f4f6;
  --ink: #1d1e20;
  --sub: #6b6e7b;
  --line: #e4e4e1;
  --brand: #d9583a; /* 대표 색 코랄: 섬에 켜진 불빛 */
  --accent: #e2f5e9;
  --on-accent: #17693f;

  /* 글꼴 */
  --body: "Wanted Sans Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic",
    system-ui, sans-serif;

  --column: 72rem;
  --narrow: 40rem;
  --gutter: clamp(20px, 5vw, 48px);
  --band: clamp(72px, 14vw, 176px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
}

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

.hero :focus-visible,
.bar.is-over :focus-visible,
.band--ink :focus-visible {
  outline-color: var(--bg);
}

/* 띠(섹션)와 본문 폭. 글은 가운데 정렬이 기본입니다. */

.band {
  padding-block: var(--band);
  text-align: center;
}

/* 바탕은 모두 흰색. 흰 구역이 이어질 때는 여백이 두 번 겹치지 않게 위쪽 여백을 뺍니다. */

.band--soft {
  background: var(--bg);
}

.band:not(.band--ink) + .band:not(.band--ink) {
  padding-top: 0;
}

.band--ink {
  background: var(--ink);
  color: var(--bg);
}

.band--tight-top {
  padding-top: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--column) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 맨 위 메뉴 줄: 화면에 붙어 따라옵니다.
   맨 위 사진 위에 있을 때(.is-over, main.js가 붙임)는 바탕 없이 흰 글씨, 내려가면 흰 바탕에 검정 글씨 */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.bar.is-ready {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bar.is-over {
  border-bottom-color: transparent;
  background: transparent;
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* 휴대폰: 로고 가운데 한 줄, 그 아래 알약 모양 메뉴 한 줄. 좁으면 메뉴를 옆으로 밀어 봅니다. */

.bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: clamp(16px, 3.4vw, 48px);
}

.bar .wordmark {
  margin-inline: auto;
  padding-top: 14px;
  font-size: 1.5rem;
  line-height: 1;
}

.menu {
  display: flex;
  gap: 5px;
  width: 100%;
  padding-block: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 0.75rem;
  white-space: nowrap;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu a {
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  line-height: 1.5;
  text-decoration: none;
}

.menu a:hover,
.menu a[aria-current] {
  background: rgba(0, 0, 0, 0.08);
}

.bar.is-over .menu a:hover,
.bar.is-over .menu a[aria-current] {
  background: rgba(255, 255, 255, 0.34);
}

/* 넓은 화면: 한 줄로 합치고, 메뉴는 글씨만. 지금 보는 페이지에는 얇은 밑줄 */

@media (min-width: 40rem) {
  .bar-inner {
    flex-wrap: nowrap;
    min-height: 56px;
  }

  .bar .wordmark {
    margin-inline: 0;
    padding-top: 0;
  }

  .menu {
    gap: clamp(20px, 2.6vw, 40px);
    width: auto;
    margin-left: auto;
    padding-block: 0;
    overflow: visible;
    font-size: 0.8125rem;
  }

  .menu a {
    padding: 14px 0;
    border: 0;
    border-radius: 0;
  }

  .menu a:hover,
  .menu a[aria-current],
  .bar.is-over .menu a:hover,
  .bar.is-over .menu a[aria-current] {
    background: transparent;
    box-shadow: inset 0 -1px 0 currentColor;
  }
}

.bar .bar-btn {
  display: none;
}

/* 첫 화면: 사진 위에 제목과 버튼. 메뉴 줄이 사진 위에 겹쳐 놓입니다.
   휴대폰에서는 사진이 화면을 거의 채우고 글은 사진 아래쪽에 둡니다. */

.hero {
  position: relative;
  display: flex;
  min-height: 88svh;
  overflow: hidden;
  background: var(--ink);
  color: #ffffff;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 홈 사진은 사람이 오른쪽에 있어서, 세로로 긴 화면에서도 사람이 보이게 오른쪽을 기준으로 자릅니다. */
.hero-photo--home {
  object-position: 76% 50%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.44) 45%,
    rgba(0, 0, 0, 0.58) 100%
  );
}

/* 원래 어두운 사진은 덮는 어둠을 빼서 사진의 불빛이 그대로 보이게 합니다. */
.hero--dark-photo::after {
  background: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  padding-block: 120px 56px;
}

.wordmark {
  display: block;
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.86;
  text-decoration: none;
  white-space: nowrap;
  color: inherit;
}

.hero-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

.hero h1 {
  max-width: 14em;
  font-size: clamp(1.625rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-sub {
  margin-top: clamp(12px, 1.6vw, 18px);
  max-width: 34rem;
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  line-height: 1.65;
}

.hero .btn {
  margin-top: clamp(24px, 3vw, 36px);
}

@media (min-width: 40rem) {
  .hero {
    min-height: min(78svh, 46rem);
  }

  .hero-inner {
    padding-block: clamp(120px, 14vw, 150px) clamp(48px, 8vw, 88px);
  }

  .hero-copy {
    justify-content: center;
  }
}

/* 버튼: 알약 모양 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.12s ease;
}

.btn:hover {
  opacity: 0.88;
}

/* 태그 */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.tag--fill {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* 본문 제목 */

.title {
  font-size: clamp(1.25rem, 4.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* 제목 아래 내용: 가운데에 좁은 폭으로 두고, 목록은 왼쪽부터 읽습니다. */

.band--split > .wrap > :not(.title) {
  max-width: var(--narrow);
  margin-inline: auto;
}

/* 이유·특징 카드: 상자 없이 아이콘, 제목, 설명만 */

.cards {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

/* 홈 카드 위 제목: 첫 화면 큰 제목과 같은 크기 */

.title--big {
  font-size: clamp(1.5rem, 5.4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.title + .cards {
  margin-top: clamp(40px, 6vw, 72px);
}

.card-icon {
  display: grid;
  place-items: center;
  height: 28px;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-title {
  font-size: clamp(1.25rem, 4.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.card-text {
  max-width: 25rem;
  text-wrap: balance;
  margin: 8px auto 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0;
}

/* 문제 목록 */

.points {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* 진행 방법 */

.steps {
  display: grid;
  gap: 28px;
  margin-top: 36px;
  text-align: left;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 36px;
  padding-left: 54px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17.5px;
  top: 42px;
  bottom: -22px;
  width: 1px;
  background: var(--line);
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  padding-top: 5px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.steps .plain {
  display: block;
  padding-top: 6px;
  color: var(--ink);
  font-size: 1rem;
}

.steps .tags {
  margin-top: 12px;
}

.note {
  margin-top: 36px;
  color: var(--sub);
  font-size: 0.8125rem;
}

.steps-cta {
  margin-top: 44px;
}

.steps-cta p {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.steps-cta .btn {
  margin-top: 16px;
}

/* 자주 묻는 질문 */

.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.faq div {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.faq dt {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.faq dd {
  margin-top: 6px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0;
}

/* 홈: 짧은 이야기 */

.story {
  display: grid;
  gap: clamp(56px, 10vw, 72px);
}

.story-text {
  max-width: 30rem;
  margin: 14px auto 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.band--ink .story-text {
  color: rgba(255, 255, 255, 0.72);
}

.island-title {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.island-title span {
  display: block;
}

.island-title .empty {
  color: rgba(255, 255, 255, 0.34);
}

.island-title .people {
  color: var(--brand);
}

/* 홈 첫 화면과 마지막: 세 페이지로 가는 버튼. 마지막 띠의 버튼은 테두리만 있는 조용한 모양 */

.targets {
  display: grid;
  gap: 8px;
  margin-top: clamp(36px, 6vw, 64px);
}

.band--ink .targets .btn {
  gap: 8px;
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #ffffff;
  font-size: 0.875rem;
}

.hero .targets {
  width: 100%;
  max-width: 46rem;
  margin-top: clamp(24px, 3vw, 36px);
}

/* 첫 화면의 세 버튼은 코랄 테두리만 두릅니다 (2026-11-23 대표 결정) */
.hero .targets .btn {
  gap: 8px;
  min-height: 46px;
  margin-top: 0;
  border: 1.5px solid var(--brand);
  background: transparent;
  color: #ffffff;
  font-size: 0.875rem;
}

.targets .btn svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 마지막 버튼 */

.final-lead {
  max-width: 16em;
  margin-inline: auto;
  font-size: clamp(1.5rem, 5.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.final .btn {
  margin-top: clamp(26px, 3vw, 40px);
}

/* 바닥 */

.foot {
  padding-block: 26px 34px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.foot .wordmark {
  display: inline-block;
  font-size: 1.375rem;
  line-height: 1;
}

/* PC 화면 */

@media (min-width: 60rem) {
  /* 메뉴는 왼쪽, 로고는 가운데, 신청 버튼은 오른쪽 */
  .bar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 64px;
  }

  .bar .wordmark {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.625rem;
  }

  .menu {
    grid-column: 1;
    grid-row: 1;
    margin-left: 0;
    font-size: 0.875rem;
  }

  .menu a {
    padding-block: 18px;
  }

  .bar .bar-btn {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-height: 36px;
    padding: 6px 18px;
    font-size: 0.8125rem;
  }

  .bar.is-over .bar-btn {
    border-color: currentColor;
    background: transparent;
    color: inherit;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .story--pair {
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 7vw, 112px);
  }

  .targets {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
