@charset "utf-8";

/* ---------------------------------------------------------------------------
   우산각 — 랜딩

   구성 원리: 스크롤이 곧 날씨 변화다.
   비(파랑) → 맑음(주홍) → 눈(청회색) 순으로 화면 전체가 바뀌고,
   각 장면마다 우산이 크게 선다. 앱에서 우산의 펼침/접힘이 답이었던 것처럼
   여기서도 우산이 설명보다 먼저 말한다.

   색은 앱의 SkyPalette 에서 그대로 가져왔다.
--------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;

  /* 한국어 조판 — 어절 단위로 끊고, 한 줄에 한 글자만 남는 일을 막는다 */
  line-height: 1.78;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

img, svg { max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- 토큰 ---------------------------------------------------------------- */

:root {
  --page: #fdfbfa;
  --ink: #1a1512;
  --ink-soft: #6d625c;
  --line: #eae3df;

  /* 비 */
  --rain-bg: #e7f0fd;
  --rain-deep: #1d6fdb;
  --rain: #2884f6;
  --rain-soft: #87bffe;
  --rain-ink: #14212c;

  /* 맑음 */
  --dry-bg: #fff0e6;
  --dry-deep: #d8402a;
  --dry: #f6533c;
  --dry-soft: #ff9876;
  --dry-ink: #2c1a15;

  /* 눈 */
  --snow-bg: #eaf1f8;
  --snow-deep: #3d7ea8;
  --snow: #4d92c1;
  --snow-soft: #afcee5;
  --snow-ink: #18242f;

  --wrap: 1120px;

  /* 큰 화면에서 크게, 작은 화면에서 과하지 않게 */
  --t-display: clamp(2.6rem, 8.5vw, 5.6rem);
  --t-title: clamp(2rem, 5.6vw, 3.6rem);
  --t-lede: clamp(1.05rem, 2.1vw, 1.35rem);
  --t-body: clamp(1rem, 1.6vw, 1.12rem);
  --t-label: .78rem;
}

/* --- 레이아웃 ------------------------------------------------------------ */

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.scene {
  padding-block: clamp(96px, 15vw, 190px);
  position: relative;
  overflow: hidden;
}

.scene-rain { background: var(--rain-bg); color: var(--rain-ink); }
.scene-dry  { background: var(--dry-bg);  color: var(--dry-ink); }
.scene-snow { background: var(--snow-bg); color: var(--snow-ink); }
.scene-plain { background: var(--page); color: var(--ink); }

/* --- 글자 ---------------------------------------------------------------- */

h1, h2, h3 { margin: 0; font-weight: 700; }

.label {
  margin: 0 0 clamp(18px, 3vw, 30px);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .18em;
  color: currentColor;
  opacity: .5;
}

.display {
  font-size: var(--t-display);
  line-height: 1.14;
  letter-spacing: -.05em;
}

.title {
  font-size: var(--t-title);
  line-height: 1.24;
  letter-spacing: -.042em;
}

/*
  제목과 부제의 너비를 따로 준다.
  둘을 한 상자에 묶어 max-width 를 걸면, 좁은 화면에서 부제가 제목 폭에 끌려가
  두세 글자씩 끊기며 읽기가 나빠진다.
*/
.title { max-width: 15em; }   /* 한글 약 15자 */

.lede {
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-size: var(--t-lede);
  line-height: 1.8;
  max-width: 30em;   /* 한글 약 30자 — 한국어 본문에 편한 길이 */
  opacity: .74;
}

.body {
  margin: 0;
  font-size: var(--t-body);
  line-height: 1.85;
  max-width: 32em;
  opacity: .74;
}

.body + .body { margin-top: 1.1em; }

@media (max-width: 820px) {
  /* 좁은 화면에서는 억지로 좁히지 않는다 — 줄바꿈은 화면이 정하게 둔다 */
  .title, .lede, .body { max-width: none; }
}

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

.site-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.04em;
  text-decoration: none;
}

.wordmark svg { width: 23px; height: 27px; display: block; }

.site-head nav { display: flex; gap: 28px; font-size: .92rem; opacity: .62; }
.site-head nav a { text-decoration: none; }
.site-head nav a:hover { opacity: .55; }

/* --- 우산 ---------------------------------------------------------------- */

.umbrella {
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 48px 70px rgba(20, 40, 70, .16));
}

.umbrella-xl { width: min(58vw, 360px); }
.umbrella-lg { width: min(58vw, 380px); }
.umbrella-sm { width: auto; height: clamp(150px, 24vw, 205px); }

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 132px 84px;
  text-align: center;
}

.hero-body { display: flex; flex-direction: column; align-items: center; }

/* 앱의 행동 배지를 그대로 옮겼다. 페이지에서 가장 먼저 읽혀야 하는 한마디. */
.action-pill {
  display: inline-block;
  margin-top: clamp(28px, 4vw, 46px);
  padding: clamp(16px, 2.2vw, 24px) clamp(34px, 5vw, 60px);
  border-radius: 999px;
  background: var(--rain);
  color: #fff;
  font-size: clamp(1.6rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
  box-shadow: 0 26px 60px -22px rgba(40, 132, 246, .7);
}

.hero-when {
  margin: clamp(26px, 3.6vw, 40px) 0 0;
  font-size: clamp(1.5rem, 4.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.3;
}

.hero-when b { color: var(--rain-deep); font-variant-numeric: tabular-nums; }

.hero-note { margin: 14px 0 0; font-size: .98rem; opacity: .55; }

.hero h1 {
  margin: clamp(30px, 4vw, 44px) 0 0;
  font-size: clamp(1.22rem, 2.7vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.6;
  opacity: .8;
  max-width: 26ch;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: clamp(34px, 5vw, 52px);
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 17px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .25s ease;
}

.btn-solid { background: currentColor; }
.btn-solid span { color: var(--rain-bg); }
.btn-solid:hover { transform: translateY(-2px); }

.btn-line { border-color: color-mix(in srgb, currentColor 26%, transparent); }
.btn-line:hover { background: color-mix(in srgb, currentColor 7%, transparent); }

.tagline { margin: 22px 0 0; font-size: .92rem; opacity: .5; }

/* --- 비교 ---------------------------------------------------------------- */

.versus {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  margin-top: clamp(48px, 7vw, 80px);
}

@media (min-width: 900px) { .versus { grid-template-columns: 1fr 1fr; } }

.versus-side { display: flex; flex-direction: column; gap: 16px; }

.versus-tag {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .16em;
  opacity: .45;
}

.versus-say {
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.26;
}

.versus-side.is-ours .versus-tag { color: var(--rain-deep); opacity: 1; }
.versus-side.is-ours .versus-say { color: var(--rain-deep); }

.versus-then { margin: 0; font-size: var(--t-body); line-height: 1.85; opacity: .68; }

/* --- 두 장소 ------------------------------------------------------------- */

.legs {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 70px);
  margin-top: clamp(56px, 8vw, 90px);
  text-align: center;
}

@media (min-width: 760px) { .legs { grid-template-columns: 1fr 1fr; } }

.leg-name {
  margin: 26px 0 6px;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .16em;
  opacity: .5;
}

.leg-say { margin: 0; font-size: clamp(1.3rem, 3.4vw, 1.85rem); font-weight: 750; letter-spacing: -.04em; }

.leg-dry .leg-say { color: var(--dry-deep); }
.leg-wet .leg-say { color: var(--rain-deep); }

.legs-line {
  margin: clamp(44px, 6vw, 66px) auto 0;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.4;
  text-align: center;
  max-width: 24ch;
}

/* --- 숫자 하나 ----------------------------------------------------------- */

.figure {
  margin: clamp(40px, 6vw, 66px) 0 0;
  font-size: clamp(4.5rem, 17vw, 11rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .9;
  color: var(--rain-deep);
  font-variant-numeric: tabular-nums;
}

.figure small { font-size: .3em; font-weight: 700; letter-spacing: -.03em; opacity: .6; }

/* --- 하지 않는 것 -------------------------------------------------------- */

.nots {
  list-style: none;
  margin: clamp(48px, 7vw, 76px) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(40px, 5vw, 58px);
}

@media (min-width: 880px) { .nots { grid-template-columns: repeat(3, 1fr); } }

.nots h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  letter-spacing: -.035em;
  margin-bottom: 14px;
  padding-top: 22px;
  border-top: 2px solid var(--dry);
}

/* --- 마무리 -------------------------------------------------------------- */

.closing { text-align: center; }
.closing .title { max-width: none; }
.closing .lede { margin-inline: auto; }

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

.site-foot {
  background: var(--page);
  border-top: 1px solid var(--line);
  padding-block: 54px 72px;
  font-size: .93rem;
  color: var(--ink-soft);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
}

.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

.attribution {
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  line-height: 1.85;
  max-width: 46em;
  opacity: .8;
}

/* --- 문서 페이지 (개인정보·지원) ----------------------------------------- */

.doc {
  padding-block: 120px clamp(80px, 10vw, 130px);
  max-width: 66ch;
}

.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.045em; line-height: 1.2; }

.doc h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  letter-spacing: -.035em;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.doc p { margin-top: 18px; color: var(--ink-soft); line-height: 1.85; }
.doc ul { margin-top: 18px; padding-left: 1.15em; color: var(--ink-soft); }
.doc li { margin-top: 9px; line-height: 1.8; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--rain-deep); }

.doc-meta { margin-top: 14px; font-size: .88rem; letter-spacing: .04em; color: var(--ink-soft); }

.doc-table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: .95rem; }

.doc-table th, .doc-table td {
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

.doc-table th { font-weight: 700; }
.doc-table td { color: var(--ink-soft); }

.doc-note {
  margin-top: 26px;
  padding: 24px 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .97rem;
  line-height: 1.8;
}

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

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-head nav { display: none; }
  .hero { min-height: auto; padding-block: 130px 80px; }
  .btn { padding: 15px 28px; }
}

/* --- 자주 묻는 질문 ------------------------------------------------------ */

.faq {
  margin: clamp(48px, 7vw, 76px) 0 0;
  display: grid;
  gap: clamp(30px, 4vw, 44px);
}

@media (min-width: 880px) { .faq { grid-template-columns: 1fr 1fr; } }

.faq h3 {
  font-size: clamp(1.1rem, 2.3vw, 1.32rem);
  letter-spacing: -.035em;
  line-height: 1.45;
  margin-bottom: 12px;
}

.faq p { margin: 0; font-size: var(--t-body); line-height: 1.85; opacity: .74; max-width: 30em; }

@media (max-width: 820px) { .faq p { max-width: none; } }

/* --- 문장 단위 줄바꿈 ----------------------------------------------------
   한 문장이 앞 줄 끝에서 시작해 다음 줄 중간에서 끝나면, 눈이 매번 문장의
   시작점을 다시 찾아야 한다. 넓은 화면에서는 문장마다 줄을 새로 시작한다.
   좁은 화면에서는 어차피 자연스럽게 접히므로 이어 붙인다.
------------------------------------------------------------------------- */

.s { display: block; }

@media (max-width: 820px) {
  .s { display: inline; }
}

/* --- 모션 ----------------------------------------------------------------
   원칙 두 가지.
   1) 움직임은 읽기를 돕는 선에서만 쓴다. 등장 연출은 한 번, 짧게.
   2) 우산은 비·눈과 함께 움직인다. 장식이 아니라 장면의 일부이기 때문이다.
------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s cubic-bezier(.22, 1, .36, 1) var(--d, 0s),
              transform .85s cubic-bezier(.22, 1, .36, 1) var(--d, 0s);
}

.js .reveal.in { opacity: 1; transform: none; }

/* 스크롤 연동 시차. 우산이 스크롤보다 느리게 따라와 장면에 깊이가 생긴다.
   지원하지 않는 브라우저에서는 그냥 가만히 있는다 — 내용은 그대로다. */
@supports (animation-timeline: view()) {
  .umbrella-xl, .umbrella-lg {
    animation: drift-y linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes drift-y {
    from { translate: 0 54px; }
    to   { translate: 0 -54px; }
  }
}

/* 빗방울 — 떨어지고 사라진다 */
.drip { animation: drip 2.7s ease-in infinite; animation-delay: var(--d, 0s); }

@keyframes drip {
  0%   { transform: translateY(-12px); opacity: 0; }
  22%  { opacity: 1; }
  100% { transform: translateY(36px); opacity: 0; }
}

/* 눈송이 — 천천히 내리며 좌우로 흔들린다 */
.flurry { animation: flurry 6.5s ease-in-out infinite; animation-delay: var(--d, 0s); }

@keyframes flurry {
  0%   { transform: translate(0, -14px); opacity: 0; }
  20%  { opacity: 1; }
  55%  { transform: translate(7px, 12px); }
  100% { transform: translate(-4px, 38px); opacity: 0; }
}

/* 행동 배지 — 아주 느린 숨. 살아 있는 화면이라는 신호만 준다. */
.action-pill { animation: breathe 5.5s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.022); }
}

.wordmark svg { transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.wordmark:hover svg { transform: rotate(-9deg); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .drip, .flurry, .action-pill, .umbrella-xl, .umbrella-lg { animation: none; }
}
