/* ClimbLife (클생) marketing site — tokens mirror lib/core/theme in the Flutter app. */

@font-face {
  font-family: 'Pretendard';
  src: url('/site-assets/fonts/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/site-assets/fonts/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/site-assets/fonts/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/site-assets/fonts/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --surface: #f5f5f4;
  --card: #ffffff;

  --heading: #1c1917;
  --body: #57534e;
  --muted: #a8a29e;
  --disabled: #d6d3d1;

  --brand-black: #1a1a1a;
  --brand-red: #ff4040;
  --blue: #0064ff;
  --blue-pressed: #0052d6;
  --blue-border: #2b7fff;
  --blue-surface: #eaf2ff;

  --border: #e7e5e4;
  --border-subtle: #f5f5f4;
  --border-strong: #d6d3d1;

  --radius-control: 10px;
  --radius-card: 12px;
  --radius-input: 14px;
  --radius-sheet: 20px;

  --shadow-medium: 0 20px 45px rgba(28, 25, 23, 0.10);

  --content-width: 1080px;
  --header-height: 64px;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  color: var(--body);
  background: var(--background);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

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

/* ---------- header ---------- */

.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.site-brand img { width: auto; height: 26px; }
.site-brand span {
  font-weight: 700;
  font-size: 17px;
  color: var(--heading);
  letter-spacing: -0.2px;
}

/* ---------- hero (single screen) ---------- */

.hero {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 28px 0 48px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 24px;
  align-items: center;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.9px;
}
.hero h1 u {
  text-decoration: none;
  background: linear-gradient(180deg, transparent 66%, var(--blue-surface) 66%);
}
.hero p.lede {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  max-width: 420px;
}

.hero-actions { margin-top: 30px; }

/* ---------- buttons / store badges ---------- */

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.store-badge {
  display: block;
  height: 50px;
  width: auto;
  border-radius: 9px;
  overflow: hidden;
  transition: transform .15s ease, opacity .15s ease;
}
.store-badge img { height: 100%; width: auto; display: block; }
.store-badge:hover { transform: translateY(-1px); opacity: 0.92; }

/* ---------- phone fan carousel (Swiper coverflow) ---------- */

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.hero-copy { min-width: 0; }
.hero-swiper {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}
.hero-swiper::before,
.hero-swiper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}
.hero-swiper::before {
  left: 0;
  background: linear-gradient(to right, var(--background) 0%, rgba(255, 255, 255, 0) 100%);
}
.hero-swiper::after {
  right: 0;
  background: linear-gradient(to left, var(--background) 0%, rgba(255, 255, 255, 0) 100%);
}
.hero-swiper .swiper-slide {
  width: 290px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity .35s ease;
}
.hero-swiper .swiper-slide-active {
  opacity: 1;
}
.hero-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.phone {
  width: 290px;
  height: 592px;
  border-radius: 42px;
  background: var(--brand-black);
  padding: 10px;
  box-shadow: var(--shadow-medium);
  position: relative;
  flex: none;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  background: var(--brand-black);
  border-radius: 12px;
  z-index: 5;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: var(--border-strong);
  opacity: 1;
  transition: background .15s ease, width .15s ease;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: var(--blue);
  width: 22px;
  border-radius: 100px;
}

@media (max-width: 860px) {
  .hero { padding: 20px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .hero-actions .store-row { justify-content: center; }
  .hero h1 { font-size: 30px; }
  .hero-swiper { padding: 32px 0; }
  /* Every slide's OWN box is fixed at the "active" (largest) size — Swiper reads
     each .swiper-slide's own width/height for its coverflow position math, so if
     only the nested .phone grew on ::active, Swiper kept positioning slides using
     the old (smaller) size, which made the left/right peeks uneven and made the
     whole carousel's height jump (and jank) every transition. Keeping the slide
     box constant and only resizing the smaller .phone *inside* it (centered via
     flex) keeps positions symmetric and the container height fixed. */
  .hero-swiper .swiper-slide {
    width: 285px;
    height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .phone { width: 220px; height: 449px; border-radius: 34px; transition: width .35s ease, height .35s ease; }
  .hero-swiper .swiper-slide-active .phone { width: 285px; height: 580px; }
  .phone-screen { border-radius: 25px; }
  .hero-swiper::before, .hero-swiper::after { width: 80px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 26px; letter-spacing: -0.6px; }
  .hero-swiper .swiper-slide { width: 245px; height: 500px; }
  .phone { width: 190px; height: 388px; }
  .hero-swiper .swiper-slide-active .phone { width: 245px; height: 500px; }
  .hero-swiper::before, .hero-swiper::after { width: 60px; }
  .store-row { justify-content: center; }
  .store-badge { height: 46px; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  flex: none;
  padding-top: 3px;
}
.footer-links a { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--heading); }

.footer-info {
  display: flex;
  gap: 28px;
}
.footer-info dl { margin: 0; }
.footer-info dl div {
  display: flex;
  gap: 8px;
  padding: 3px 0;
  font-size: 12.5px;
  white-space: nowrap;
}
.footer-info dt { color: var(--muted); flex: none; }
.footer-info dd { margin: 0; color: var(--body); }

.footer-copyright {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .footer-info { flex-direction: column; gap: 0; }
}

/* ---------- legal document pages ---------- */

.legal-page { padding: 48px 0 96px; }
.legal-head { max-width: 720px; margin: 0 auto 40px; }
.legal-head h1 {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.5px;
}
.legal-head .eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.legal-head .legal-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 44px 48px;
}
.legal-doc h2 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--heading);
  margin-top: 32px;
  letter-spacing: -0.2px;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--body);
}
.legal-doc ul, .legal-doc ol {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  padding-left: 2px;
}
.legal-doc li {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--body);
  padding-left: 16px;
  position: relative;
}
.legal-doc li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--muted);
}
.legal-doc table {
  margin-top: 12px;
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.legal-doc table th, .legal-doc table td {
  border: 1px solid var(--border);
  padding: 9px 11px;
  text-align: left;
  color: var(--body);
}
.legal-doc table th { background: var(--surface); color: var(--heading); font-weight: 700; width: 30%; }
.legal-doc strong { color: var(--heading); }

@media (max-width: 640px) {
  .legal-doc { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
}
