/* 1PM Studio 홈페이지 — 정적 · 반응형
   기준 폭: 데스크톱 1440~1680 시안, 태블릿 ≤ 960, 모바일 ≤ 640 */

:root {
  --bg: #F8F2EF;          /* 히어로 · 벽 색 = 원본 일러스트 바탕(assets/hero.webp에서 잰 값) */
  --surface: #FCFBF9;     /* 앱 목록 띠 */
  --ink: #141414;
  --ink-2: #55524D;
  --ink-3: #8A857D;
  --line: #E6E0D7;
  --accent: #3F63A6;      /* 링크 · View All(시안의 남색) */
  --dark: #17171A;

  --wrap: 1560px;
  --gutter: clamp(20px, 4.2vw, 72px);
  --radius: 22px;

  --font: "Pretendard", "SF Pro Display", -apple-system, BlinkMacSystemFont,
          "Inter", "Helvetica Neue", "Segoe UI", Roboto, "Apple SD Gothic Neo",
          "Noto Sans KR", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--dark); color: #fff;
}
.skip:focus { top: 12px; }

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

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── 헤더 ───────── */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
}
.site-header.is-stuck {
  position: fixed;
  background: rgba(248, 242, 239, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  animation: drop .35s var(--ease);
}
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }

.header-inner {
  display: flex; align-items: center; gap: 40px;
  height: 104px;
}
.is-stuck .header-inner { height: 72px; }

.logo { display: block; margin-right: auto; }
/* 브랜드 가로형 로고(docs/brand/1pm-studio-lockup-horizontal-cream.svg) — 시계가 높이를 정해
   글자는 높이의 절반쯤. 44px이면 글자가 시안의 30px 글자 로고와 비슷한 무게 */
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 42px; font-size: 18px; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.pill-btn {
  display: grid; place-items: center;
  width: 50px; height: 34px; border-radius: 99px;
  background: var(--dark); color: #fff; font-size: 18px;
  transition: transform .25s var(--ease), background .25s;
}
.pill-btn:hover { transform: translateX(3px); background: #000; }

.menu-btn { display: none; }

/* ───────── 히어로 ───────── */
.hero {
  position: relative;
  background: var(--bg);
  min-height: clamp(560px, 44vw, 760px);
  overflow: hidden;
  display: flex; align-items: center;
}
.hero-inner { position: relative; z-index: 2; padding-top: 104px; padding-bottom: 72px; }
.hero-copy { max-width: 46%; }

.hero-title {
  font-size: clamp(56px, 5.9vw, 108px);
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.hero-lead {
  margin-top: 36px;
  font-size: clamp(17px, 1.45vw, 24px);
  color: var(--ink-2);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.text-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 64px;
  margin-top: 64px; padding-bottom: 12px;
  font-size: 19px; font-weight: 500;
  border-bottom: 1.5px solid var(--ink);
}
.text-link svg { transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(6px); }

/* 원본 일러스트(1012×736, 조명 줄이 위 끝에 닿음)를 히어로 높이에 맞춰 오른쪽 위~아래로 붙인다.
   그림 바탕색이 --bg와 같아 이음매가 없고, 왼쪽 끝만 살짝 흐려 좁은 폭에서 글과 겹쳐도 티 나지 않게 */
.hero-art {
  position: absolute; z-index: 1;
  top: 0; right: 0; bottom: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%);
}
.hero-art img { height: 100%; width: auto; max-width: none; }

/* 들어올 때 살짝 떠오르기 */
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-art { animation: fade 1.1s var(--ease) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-art { animation: none; }
}

/* ───────── 섹션 공통 ───────── */
section h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px;
}
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }

/* ───────── 앱(지금은 Sunday Calculator 하나라 소개 카드로) ───────── */
.apps { padding: 48px 0 96px; background: var(--surface); }
.feature-inner {
  display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 64px;
}
.feature-icon {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 32px;
  background:
    radial-gradient(60% 60% at 50% 45%, #fff 0%, transparent 70%),
    linear-gradient(160deg, #F7F3EA, #E8E1D3);
}
.feature-icon img { width: 44%; filter: drop-shadow(0 24px 30px rgba(40, 30, 20, .18)); }
.feature-copy h3 { margin: 10px 0 0; font-size: clamp(32px, 3.4vw, 52px); letter-spacing: -0.035em; font-weight: 700; line-height: 1.1; }
.feature-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { padding: 7px 14px; border-radius: 99px; background: var(--bg); font-size: 14px; color: var(--ink-2); }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px; padding: 12px 22px 12px 18px; border-radius: 14px;
  background: var(--dark); color: #fff;
  transition: transform .25s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.store-btn span { display: flex; flex-direction: column; font-size: 17px; font-weight: 600; line-height: 1.15; }
.store-btn small { font-size: 11px; font-weight: 400; opacity: .7; }

/* ───────── 회사 소개 ───────── */
.about { padding: 96px 0; background: var(--bg); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about h2 { margin-top: 12px; font-size: clamp(30px, 3.2vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; }
.about-copy { padding-top: 30px; }
.about-copy p { font-size: 18px; color: var(--ink-2); }
.about-copy p + p { margin-top: 16px; }

/* ───────── 문의 ───────── */
.contact { padding: 88px 0; }
.contact-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact h2 { margin-top: 12px; font-size: clamp(30px, 3.2vw, 48px); font-weight: 700; letter-spacing: -0.035em; }
.contact p:not(.eyebrow) { margin-top: 10px; color: var(--ink-2); font-size: 18px; }
.mail-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px; border-radius: 99px;
  background: var(--dark); color: #fff; font-size: 17px; font-weight: 500;
  transition: transform .25s var(--ease);
}
.mail-btn:hover { transform: translateY(-2px); }

/* ───────── 푸터: 회사 링크 · 법적 고지(개인정보 · 약관)는 관례대로 맨 아래 ───────── */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  column-gap: 48px; row-gap: 20px;
}
.logo-sm img { height: 30px; }
.site-footer nav { display: flex; gap: 28px; color: var(--ink-2); font-size: 15px; }
.site-footer nav a:hover { color: var(--ink); }
.footer-legal { grid-column: 3; }
.footer-legal a { color: var(--ink-3); font-size: 14px; }
.copyright { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; }

/* ───────── 개인정보 · 약관 페이지 ───────── */
.page-sub .site-header { position: sticky; top: 0; background: rgba(248, 242, 239, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.page-sub .header-inner { height: 80px; }
.legal { padding: 72px 0 112px; }
.legal .wrap { max-width: 840px; }
.legal h1 { font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; }
.legal .updated { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
.legal .lead { margin-top: 32px; font-size: 18px; color: var(--ink-2); }
.legal h2 { margin: 48px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin-top: 10px; padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }

/* ═════════ 태블릿 (≤ 1100px) ═════════ */
@media (max-width: 1100px) {
  .nav { gap: 28px; font-size: 16px; }
  .hero-copy { max-width: 52%; }
}

/* ═════════ 세로 태블릿 · 모바일 (≤ 860px) ═════════ */
@media (max-width: 860px) {
  .header-inner, .page-sub .header-inner { height: 72px; gap: 16px; }
  .logo img { height: 34px; }
  .pill-btn { display: none; }

  /* 햄버거 */
  .menu-btn {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: none; cursor: pointer; color: var(--ink);
  }
  .menu-btn span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
  .menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(248, 242, 239, .97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 24px rgba(30, 20, 10, .08);
    font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .site-header { position: fixed; background: rgba(248, 242, 239, .97); }

  /* 히어로: 글 위, 그림 아래 */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-inner { padding-top: 120px; padding-bottom: 8px; }
  .hero-copy { max-width: none; }
  .hero-title { font-size: clamp(48px, 12.5vw, 84px); }
  .hero-lead { margin-top: 22px; }
  .br-desk { display: none; }
  .text-link { margin-top: 36px; gap: 48px; font-size: 17px; }
  .hero-art { position: relative; top: auto; bottom: auto; margin: 0 -2% 0 -10%; -webkit-mask-image: none; mask-image: none; }
  .hero-art img { width: 100%; height: auto; }

  .apps { padding: 36px 0 72px; }
  .feature-inner, .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature-copy > p:not(.eyebrow), .about-copy p { font-size: 17px; }
  .about-copy { padding-top: 0; }

  .about, .contact { padding: 72px 0; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { grid-column: auto; }
  .copyright { grid-column: auto; }

  .legal { padding: 48px 0 80px; }
}

/* ═════════ 작은 모바일 (≤ 480px) ═════════ */
@media (max-width: 480px) {
  .mail-btn { width: 100%; justify-content: space-between; font-size: 16px; }
  .site-footer nav { gap: 20px; }
}

/* ───────── 404 ───────── */
.notfound { min-height: 60vh; }
.notfound h1 { margin-top: 12px; }
.notfound .mail-btn { margin-top: 36px; }
/* .legal의 링크 · 문단 색이 버튼 · 작은 제목까지 덮어써서 되돌림 */
.legal .mail-btn { color: #fff; text-decoration: none; }
.legal .eyebrow { color: var(--accent); font-size: 14px; }
