/* motiners_deeplink_web/public/style.css — 안내 페이지 화면(설계 9.5). 외부 글꼴을 쓰지 않는다(CSP default-src 'none')
   접근성(M09): 버튼 높이 48px 이상, 본문 대비 4.5:1 이상, :focus-visible 외곽선, 200% 확대에서 가로 스크롤 없음, 움직임 줄이기 존중 */

:root {
  color-scheme: light;                 /* 로고가 검은 글자라 어두운 배경을 쓰지 않는다 */
  --ink: #141414;                      /* 흰 배경 대비 18.4:1 */
  --ink-sub: #4a4a4a;                  /* 흰 배경 대비 8.9:1 */
  --brand: #ffd426;                    /* 앱 아이콘 노랑. 위 글자 --ink 대비 12.9:1 */
  --line: #141414;
  --bg: #ffffff;
}

/* JS 꺼짐·실패 대체 화면은 클래스로 고른다(<noscript><style> 은 CSP 에 막힌다). head.js 가 js, app.js 가 js fallback 을 단다 */
.no-js #state-main, .js #state-fallback { display: none; }
.fallback #state-main { display: none; }
.fallback #state-fallback { display: block; }

[hidden] { display: none !important; }   /* .btn 의 display 가 hidden 속성을 덮지 않게 한다 */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic",
    "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;             /* 긴 단어·주소가 가로 스크롤을 만들지 않게 */
  word-break: keep-all;
}

.wrap {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: max(2.5rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right))
           max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}

.logo { display: block; width: 7.5rem; height: auto; margin: 0 0 2rem; }

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 span { display: block; margin-top: 0.25rem; font-size: 1rem; font-weight: 500; color: var(--ink-sub); }

p { margin: 0 0 1rem; }
#desc { color: var(--ink-sub); }
#desc:empty { display: none; }

.btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.3em;                   /* 대체 화면의 "웹으로 가기 · Website" 사이 공백(flex 가 끝 공백을 지운다) */
  width: 100%;
  min-height: 3.25rem;                 /* 52px, 48px 이상 */
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--line);
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease-out, background-color 0.12s ease-out;
}
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn:active { transform: scale(0.985); }
.btn.primary:hover { background: #ffcc00; border-color: #ffcc00; }
.btn.ghost:hover { background: #f5f5f5; }
#state-main .btn.primary { margin-top: 1.5rem; }

.note, .guide {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--ink-sub);
}
.guide { padding: 0.875rem 1rem; border-radius: 0.75rem; background: #f5f5f5; }   /* #4a4a4a 대비 8.1:1 */

.link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;                    /* 48px */
  padding: 0 0.25rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  width: calc(100% - 2.5rem);
  max-width: 26rem;
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.9375rem;
  transform: translateX(-50%);
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
}
/* 토스트 영역은 hidden·display:none 으로 숨기지 않는다. 접근성 트리에 늘 있어야 글자가 바뀔 때 읽힌다(9.5). 비었을 때는 보이지만 않게 한다 */
.toast:empty { padding: 0; background: none; box-shadow: none; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.btn.primary:focus-visible { box-shadow: 0 0 0 3px #ffffff inset; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:active { transform: none; }
}
