/* =========================================================================
   디지털해결사 — 기본 리셋 + 시니어 타이포그래피
   원칙: 흰 배경, 진한 글씨, 큰 글씨/버튼. 색은 포인트로만.
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;  /* 모바일에서 자동 확대 방지 */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-app-bg);
  -webkit-font-smoothing: antialiased;
  /* iOS 노치/홈바 안전영역 대응 */
  padding-bottom: env(safe-area-inset-bottom);
  /* 제목/버튼 등 UI를 길게 눌러도 '복사' 블록이 안 뜨게(안드로이드 텍스트 선택 방지).
     실제 입력은 input/textarea에서만 허용(아래). */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 입력칸만 텍스트 선택·편집 허용 */
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

h1, h2, h3, p {
  margin: 0 0 var(--space-3);
}

h1 { font-size: var(--fs-hero); line-height: 1.3; }
h2 { font-size: var(--fs-title); line-height: 1.35; }
h3 { font-size: var(--fs-lead); line-height: 1.4; }
h1, h2, h3 { letter-spacing: -0.015em; } /* 제목 살짝 좁혀 또렷하게 */

p { font-size: var(--fs-body); }

a {
  color: var(--color-text);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 버튼 공통: 충분히 크게, 누르기 쉽게 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-min-h);
  padding: var(--space-3) var(--space-5);
  font-family: inherit;
  font-size: var(--fs-btn);
  font-weight: 700;
  line-height: 1.2;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.05s ease, filter 0.15s ease;
}

/* 입체 버튼: 아래에 진한 띠 그림자 → 누르면 그 띠 속으로 쑥 들어가는 촉감 */
.btn:active {
  transform: translateY(3px);
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent1);
  outline-offset: 2px;
}

/* 핵심 행동 버튼(설치/쿠팡 등) — 노랑 강조색 */
.btn--primary {
  background: linear-gradient(180deg, #ffc63a, var(--color-accent1));
  color: var(--color-on-accent1);
  box-shadow: 0 4px 0 #d99a00, 0 6px 14px rgba(217, 154, 0, 0.28);
}
.btn--primary:hover { filter: brightness(0.97); }
.btn--primary:active { box-shadow: 0 1px 0 #d99a00; }

/* 보조 버튼 — 라임 */
.btn--brand {
  background: linear-gradient(180deg, #cce884, var(--color-main));
  color: var(--color-on-main);
  box-shadow: 0 4px 0 var(--color-main-dark), 0 6px 14px rgba(164, 201, 74, 0.28);
}
.btn--brand:hover { filter: brightness(0.97); }
.btn--brand:active { box-shadow: 0 1px 0 var(--color-main-dark); }

/* 외곽선 버튼 */
.btn--outline {
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn--block {
  display: flex;
  width: 100%;
}

/* 화면에는 안 보이지만 스크린리더용 */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

/* 접근성: 움직임을 줄이고 싶다고 설정한 사용자에게는 애니메이션을 끈다 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
