/* 공개 대문 페이지(tips.html, 검색엔진 노출 대상) 전용 스타일 — css/input.css와 독립적, 공유 클래스 없음 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #F4F6F8;
  color: #1E2A38;
}

/* 헤더: 화면 전체 폭, 좌측 로고 + 우측 로그인/계정 영역. 콘텐츠가 길어질 예정이라 항상 상단에
   고정(sticky)하고, 나중에 본문에 색이 들어와도 위화감 없도록 반투명+블러로 떠있는 느낌을 줌 */
.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 217, 217, 0.6);
}

.page-header-inner {
  max-width: 1296px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 10px;
  gap: 16px;
}

@media (max-width: 1024px) {
  .page-header-inner {
    max-width: 850px;
    padding: 16px 24px;
  }
}

@media (max-width: 480px) {
  .page-header-inner {
    padding: 14px 16px;
  }
}

.page-logo {
  font-size: 24px;
  font-weight: 700;
  color: #0C447C;
  flex-shrink: 0;
  white-space: nowrap;
}

.page-header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

/* 헤더 상시 노출 Play 스토어 링크 — 로그인 상태와 무관하게 항상 보이는 설치 유도 CTA */
.btn-playstore-header {
  display: inline-block;
  padding: 8px 16px;
  background-color: #378ADD;
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .btn-playstore-header {
    padding: 7px 12px;
    font-size: 12px;
  }
}

.header-account {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.user-email {
  font-size: 14px;
  color: #4B5D6B;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* PC 전용 기능 바로가기라 모바일(좁은 화면)에서는 노출하지 않음 — 좁은 헤더에서
   다른 요소를 밀어내 레이아웃이 깨지는 원인이기도 했음(2026-11-11) */
@media (max-width: 640px) {
  #input-link {
    display: none !important;
  }

  .user-email {
    max-width: 140px;
  }
}

/* 로그인 상단 안내 배너 — 브랜드 블루 배경 위 큰 워드마크가 가운데, 아래 여백은 본문 패널이
   타고 올라와 겹치는 공간(.page의 음수 margin-top과 짝을 이룸) */
.hero-banner {
  background-color: #378ADD;
  text-align: center;
}

.hero-banner-inner {
  max-width: 1296px;
  margin: 0 auto;
  padding: 48px 48px 140px;
}

.hero-logo-wrap {
  margin-bottom: 20px;
}

.hero-graphic {
  width: 450px;
  height: auto;
  max-width: 100%;
}

/* 히어로의 큰 설치 CTA — 배경이 브랜드 블루라 흰 채움으로 대비를 둠 */
.hero-playstore-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 32px;
  background-color: #FFFFFF;
  color: #0C447C;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .hero-banner-inner {
    max-width: 850px;
    padding: 40px 24px 120px;
  }

  .hero-graphic {
    width: 347px;
  }

  .hero-playstore-btn {
    margin-top: 24px;
    padding: 12px 28px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero-banner-inner {
    padding: 32px 16px 96px;
  }

  .hero-graphic {
    width: 243px;
  }

  .hero-playstore-btn {
    margin-top: 20px;
    padding: 11px 24px;
    font-size: 14px;
  }
}

/* 본문 패널이 히어로 배너 위/아래 블루 영역에 둘 다 얹히도록 음수 margin으로 끌어올리고
   끌어내림. position+z-index로 패널(.page)이 아래쪽 마감 띠(.closing-banner)보다 항상
   위에 그려지게 해서, 블루가 패널의 둥근 모서리 바깥으로만 살짝 비치는 효과를 냄 */
.page {
  position: relative;
  z-index: 2;
  max-width: 1296px;
  margin: -96px auto -96px;
  padding: 0 48px;
}

@media (max-width: 1024px) {
  .page {
    max-width: 850px;
    margin-top: -80px;
    margin-bottom: -80px;
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .page {
    margin-top: -64px;
    margin-bottom: -64px;
    padding: 0 16px;
  }
}

/* 본문 패널 아래쪽 마감 띠 — 히어로 배너와 같은 브랜드 블루로 위아래를 감싸는 느낌,
   높이는 히어로 배너 하단 여백과 동일하게 맞춰 톤을 통일함 */
.closing-banner {
  position: relative;
  z-index: 1;
  background-color: #378ADD;
  height: 280px;
}

@media (max-width: 1024px) {
  .closing-banner {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .closing-banner {
    height: 192px;
  }
}

.panel {
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 70px 50px;
  box-shadow: 0 4px 20px rgba(20, 23, 28, 0.08);
}

@media (max-width: 1024px) {
  .panel {
    padding: 32px;
  }
}

@media (max-width: 480px) {
  .panel {
    padding: 20px;
    border-radius: 12px;
  }
}

.tips-section + .tips-section,
.tips-card-section + .tips-card-section,
.tips-card-section + .tips-section {
  margin-top: 70px;
  padding-top: 70px;
  border-top: 1px solid #ECECEC;
}

/* 카드형 섹션(시안 기반) — 색 배경은 아이콘을 감싸는 작은 프레임에만 적용하고, 본문 텍스트는
   배경 없이 패널 위에 바로 얹음. 제목은 텍스트 칸 위쪽에 맞춰 정렬 */
.tips-card-heading {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1E2A38;
}

/* 배경 없는 투명 단색 아이콘 최종본 적용(2026-10-05) — 프레임 자체는 색 배경+둥근모서리를
   담당하고, 아이콘은 안쪽에 여백을 두고 떠 있는 형태 */
.tips-card-icon-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 190px;
  height: 190px;
  padding: 30px;
  border-radius: 24px;
}

.tips-card-icon-frame-blue {
  background-color: #E6F1FB;
}

/* 섹션1만: 아이콘을 본문(텍스트 칸) 세로 중간에 맞춤 — 그리드 기본값(align-items:start)은
   유지하고 이 아이콘만 align-self로 개별 재정렬 */
.tips-card-icon-center {
  align-self: center;
}

.tips-card-icon-frame-cream {
  background-color: #FAEEDA;
}

/* 2번(studying) 아이콘만 원본 그림 비중이 작아 1번과 나란히 두면 작아 보여서 박스 자체를
   키움(선 두께는 svg 쪽 stroke-width를 낮춰 1번과 같은 두께로 맞춰둠, 2026-10-05) */
.tips-card-icon-frame-cream .tips-card-icon {
  width: 120%;
  height: 120%;
}

.tips-card-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tips-card-photo {
  width: 440px;
  height: 330px;
  border-radius: 12px;
  object-fit: cover;
}

.tips-card-text {
  min-width: 0;
}

.tips-card-text p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.8;
  color: #1E2A38;
}

.tips-card-text p:last-child {
  margin-bottom: 0;
}

/* 2단 그리드: 아이콘/사진은 고정폭 컬럼, 텍스트는 가변폭 컬럼. 그리드(아이콘·사진 왼쪽)는
   섹션1·3, 그리드-리버스(아이콘 오른쪽)는 섹션2가 사용 — 컬럼 위치만 거울 대칭으로 뒤집음 */
.tips-card-section-grid,
.tips-card-section-grid-reverse {
  display: grid;
  column-gap: 40px;
  row-gap: 16px;
  align-items: start;
}

.tips-card-section-grid {
  grid-template-columns: 220px 1fr;
}

/* 노트 사진이 작아서 내용이 안 보인다는 피드백으로 사진만 2배 확대(2026-10-05)
   — 섹션1 아이콘 컬럼(220px)과 공유하던 트랙폭을 사진 섹션만 별도로 넓힘 */
.tips-card-section-grid--photo {
  grid-template-columns: 440px 1fr;
}

.tips-card-section-grid-reverse {
  grid-template-columns: 1fr 220px;
}

.tips-card-section-grid .tips-card-heading,
.tips-card-section-grid-reverse .tips-card-heading {
  grid-row: 1;
}

.tips-card-section-grid .tips-card-heading {
  grid-column: 2;
}

.tips-card-section-grid-reverse .tips-card-heading {
  grid-column: 1;
}

.tips-card-section-grid .tips-card-icon-frame,
.tips-card-section-grid .tips-card-photo,
.tips-card-section-grid-reverse .tips-card-icon-frame,
.tips-card-section-grid-reverse .tips-card-photo {
  grid-row: 2;
  justify-self: center;
}

.tips-card-section-grid .tips-card-icon-frame,
.tips-card-section-grid .tips-card-photo {
  grid-column: 1;
}

.tips-card-section-grid-reverse .tips-card-icon-frame,
.tips-card-section-grid-reverse .tips-card-photo {
  grid-column: 2;
}

.tips-card-section-grid .tips-card-text,
.tips-card-section-grid-reverse .tips-card-text {
  grid-row: 2;
}

.tips-card-section-grid .tips-card-text {
  grid-column: 2;
}

.tips-card-section-grid-reverse .tips-card-text {
  grid-column: 1;
}

@media (max-width: 640px) {
  .tips-card-icon-frame {
    width: 120px;
    height: 120px;
    padding: 19px;
    border-radius: 18px;
  }

  .tips-card-photo {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .tips-card-section-grid,
  .tips-card-section-grid-reverse {
    grid-template-columns: 1fr;
  }

  .tips-card-section-grid .tips-card-heading,
  .tips-card-section-grid-reverse .tips-card-heading {
    grid-column: 1;
    grid-row: 1;
  }

  .tips-card-section-grid .tips-card-icon-frame,
  .tips-card-section-grid .tips-card-photo,
  .tips-card-section-grid-reverse .tips-card-icon-frame,
  .tips-card-section-grid-reverse .tips-card-photo {
    grid-column: 1;
    grid-row: 2;
  }

  .tips-card-section-grid .tips-card-text,
  .tips-card-section-grid-reverse .tips-card-text {
    grid-column: 1;
    grid-row: 3;
  }
}

.tips-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #0C447C;
}

/* 섹션 아이콘 배지 — 색상은 브랜드 팔레트 안에서 3색을 번갈아 써서 리듬감만 줌 */
.tips-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.tips-icon svg {
  width: 20px;
  height: 20px;
}

.tips-icon-blue {
  background-color: #E6F1FB;
  color: #378ADD;
}

.tips-icon-amber {
  background-color: #FAEEDA;
  color: #BA7517;
}

.tips-icon-coral {
  background-color: #FBE7E0;
  color: #D85A30;
}

.tips-section p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.8;
  color: #1E2A38;
}

.tips-section p:last-child {
  margin-bottom: 0;
}

.tips-section ul {
  margin: 0;
  padding-left: 20px;
}

.tips-section li {
  font-size: 18px;
  line-height: 1.8;
  color: #1E2A38;
}

/* "툭탁의 기능" 섹션처럼 소제목 아래 여러 줄 팁이 이어지는 경우 — 소제목은 리스트와 가깝게,
   리스트는 다음 소제목과는 넉넉하게 띄워서 그룹을 구분(2026-10-06) */
p.tips-feature-label {
  margin: 0 0 12px;
}

ul.tips-feature-list {
  margin: 0 0 24px;
  margin-left: 36px;
  padding-left: 22px;
}

ul.tips-feature-list li + li {
  margin-top: 6px;
}

.tips-faq-item + .tips-faq-item {
  margin-top: 20px;
}

.tips-faq-q {
  font-weight: 700;
}

.tips-faq-a {
  color: #4B5D6B !important;
}

/* 본문 마지막 — FAQ 다음, 패널이 끝나기 전 마무리 설치 CTA */
.tips-cta-section {
  text-align: center;
  padding-top: 24px;
  border-top: none;
}

.tips-cta-text {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  color: #1E2A38;
}

.btn-playstore-large {
  display: inline-block;
  padding: 16px 40px;
  background-color: #378ADD;
  color: #FFFFFF;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.btn-google {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: none;
  border: 1.5px solid #D9D9D9;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #1E2A38;
  cursor: pointer;
}

.btn-google svg {
  width: 16px;
  height: 16px;
}

.btn-text {
  background: none;
  border: none;
  color: #378ADD;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 8px;
  white-space: nowrap;
}

/* 로그인 후 노출되는 input.html 바로가기 — 이 페이지의 유일한 게이팅 CTA라 눈에 띄게 채움 처리 */
.btn-primary-link {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 16px;
  background-color: #378ADD;
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* 푸터: 화면 전체 폭, 로고+링크+저작권을 가운데 정렬 */
.page-footer {
  border-top: 1px solid #ECECEC;
  padding: 32px 48px 40px;
}

.page-footer-inner {
  max-width: 1296px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.page-footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: #0C447C;
}

.page-footer-links {
  display: flex;
  gap: 20px;
}

.page-footer-links a {
  font-size: 13px;
  color: #4B5D6B;
  text-decoration: none;
}

.page-footer-links a:hover {
  text-decoration: underline;
}

.page-footer-copy {
  font-size: 12px;
  color: #7C8A96;
  margin: 0;
}

@media (max-width: 1024px) {
  .page-footer {
    padding: 28px 24px 32px;
  }
}

@media (max-width: 480px) {
  .page-footer {
    padding: 24px 16px 28px;
  }

  .page-footer-links {
    gap: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #14171C;
    color: #F4F6F8;
  }

  .page-header {
    background-color: rgba(26, 30, 37, 0.75);
    border-bottom-color: rgba(42, 46, 54, 0.6);
  }

  .panel {
    background-color: #1A1E25;
    box-shadow: none;
  }

  .tips-section + .tips-section,
  .tips-card-section + .tips-card-section,
  .tips-card-section + .tips-section {
    border-top-color: #2A2E36;
  }

  .tips-section p,
  .tips-section li {
    color: #F4F6F8;
  }

  .tips-card-heading {
    color: #E5E8ED;
  }

  .tips-card-icon-frame-blue {
    background-color: rgba(55, 138, 221, 0.16);
  }

  .tips-card-icon-frame-cream {
    background-color: rgba(186, 117, 23, 0.18);
  }

  .tips-card-text p {
    color: #F4F6F8;
  }

  /* 아이콘 자체가 브랜드 블루/코랄 단색이라(흑백 선화가 아님) 다크모드에서도
     반전 필터 없이 원래 색 그대로 둠(2026-10-05) */

  .tips-card-photo {
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .tips-faq-a {
    color: #9CA4B0 !important;
  }

  .user-email {
    color: #9CA4B0;
  }

  .btn-google {
    background-color: #1A2434;
    border-color: #2A2E36;
    color: #3993FF;
  }

  .tips-icon-blue {
    background-color: rgba(55, 138, 221, 0.16);
    color: #6EB4F5;
  }

  .tips-icon-amber {
    background-color: rgba(186, 117, 23, 0.18);
    color: #E0A552;
  }

  .tips-icon-coral {
    background-color: rgba(216, 90, 48, 0.18);
    color: #E8916D;
  }

  .page-footer {
    border-top-color: #2A2E36;
  }

  .page-footer-logo {
    color: #E5E8ED;
  }

  .page-footer-links a {
    color: #9CA4B0;
  }

  .page-footer-copy {
    color: #7C8A96;
  }

  .tips-cta-text {
    color: #F4F6F8;
  }
}
