/* iterialab.com — 회사 홈 · 미리미 소개 공용 스타일 (D-091).
   색 · 글꼴은 앱(app/lib/core/theme/app_colors.dart · pubspec 글꼴)과 같다.
   이 파일을 고치면 python3 app/tool/build_legal_web.py 로 web/assets/site.css 에 다시 복사한다. */

@font-face {
  font-family: "Wanted Sans";
  src: url("fonts/wanted-sans.woff2") format("woff2-variations"), url("fonts/wanted-sans.woff2") format("woff2");
  font-weight: 400 1000;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2-variations"), url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --wash: #f4f6f3;
  --line: #e3e7e2;
  --ink: #10211a;
  --ink2: #45554d;
  --ink3: #66746c;
  --marker: #c5f02c;
  --marker-deep: #9dc410;
  --marker-wash: #f0fbc7;
  --o: #12804c;
  --o-wash: #e1f5ea;
  --x: #d13438;
  --x-wash: #fde8e9;
  --sans: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage", "Wanted Sans", -apple-system, "Apple SD Gothic Neo", sans-serif;
  --wrap: 1120px;
  --r: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 머리 ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.logo .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--marker); box-shadow: inset 0 0 0 3px var(--ink); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink2); }
.top nav a:hover { color: var(--ink); }
.top nav .lang { border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px; font-family: var(--display); font-weight: 600; font-size: 13px; }

/* ---------- 형광펜 (서명 요소) ---------- */
/* 앱의 기울어진 라임 판(오늘 탭 숫자 · 스토어 캡션)과 같은 모양. 불러올 때 왼쪽에서 오른쪽으로 칠해진다. */
.mk { position: relative; white-space: nowrap; z-index: 0; }
.mk::before {
  content: ""; position: absolute; z-index: -1;
  left: -.12em; right: -.14em; top: .16em; bottom: .02em;
  background: var(--marker); transform: skewX(-12deg); transform-origin: left;
  animation: swipe .7s cubic-bezier(.2, .8, .2, 1) .35s both;
}
@keyframes swipe { from { transform: skewX(-12deg) scaleX(0); } to { transform: skewX(-12deg) scaleX(1); } }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 16px;
  font: 700 17px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0;
}
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 5px 0 var(--marker); }
.btn-ink[aria-disabled="true"] { cursor: default; }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #c9d0ca, 0 5px 0 #c9d0ca; }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 0 5px 0 var(--ink); }
.btn small { font-weight: 500; opacity: .75; font-size: 13px; }

/* ---------- 공통 구획 ---------- */
section { padding: 112px 0; }
.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--marker-deep); margin-right: 10px; vertical-align: 1px; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.12; }
h1 { font-weight: 900; font-size: clamp(44px, 6.2vw, 80px); line-height: 1.06; letter-spacing: -.05em; }
h2 { font-weight: 850; font-size: clamp(32px, 4.6vw, 54px); }
h3 { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink2); max-width: 34em; margin: 26px 0 0; }
p { margin: 0 0 12px; }

/* ---------- 첫 화면 ---------- */
.hero { padding: 64px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero .note { margin-top: 20px; font-size: 14px; color: var(--ink3); }

/* 잠금 화면 + 알림 (미리미 첫 화면의 서명 요소) */
.lock {
  position: relative; aspect-ratio: 9 / 13.4; max-width: 390px; margin-left: auto; width: 100%;
  border-radius: 44px; padding: 40px 18px 18px;
  background:
    radial-gradient(120% 70% at 20% 0%, #dff7a0 0%, rgba(223, 247, 160, 0) 60%),
    radial-gradient(90% 60% at 100% 100%, #cfe8d6 0%, rgba(207, 232, 214, 0) 65%),
    var(--wash);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(16, 33, 26, .35);
}
.lock .clock { text-align: center; font-family: var(--display); font-weight: 700; font-stretch: 80%; font-size: 76px; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.lock .date { text-align: center; font-size: 15px; color: var(--ink2); margin: 8px 0 30px; }
.notif {
  background: rgba(255, 255, 255, .96); border-radius: 24px; padding: 16px 16px 18px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(16, 33, 26, .28);
  animation: arrive .6s cubic-bezier(.2, .8, .2, 1) .9s both;
}
@keyframes arrive { from { opacity: 0; transform: translateY(-26px) scale(.98); } to { opacity: 1; transform: none; } }
.notif .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink3); }
.notif .who img { width: 22px; height: 22px; border-radius: 6px; }
.notif .who b { color: var(--ink2); font-weight: 700; }
.notif .q { font-weight: 700; font-size: 18px; line-height: 1.45; margin: 10px 0 14px; letter-spacing: -.01em; }
.notif .ox { display: flex; gap: 10px; }
.notif .ox button {
  flex: 1; height: 52px; border-radius: 14px; border: 0; cursor: pointer;
  font: 800 22px/1 var(--display); color: var(--ink);
  background: #fff; box-shadow: inset 0 0 0 1.5px #c9d0ca, 0 4px 0 #c9d0ca;
  transition: transform .08s, background .2s, box-shadow .2s;
}
.notif .ox button:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 0 4px 0 var(--ink); }
.notif .ox button:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--ink), 0 1px 0 var(--ink); }
.notif .ox button.right { background: var(--o-wash); box-shadow: inset 0 0 0 2px var(--o), 0 4px 0 var(--o); color: var(--o); }
.notif .ox button.wrong { background: var(--x-wash); box-shadow: inset 0 0 0 2px var(--x), 0 4px 0 var(--x); color: var(--x); }
.notif .ox button[disabled] { cursor: default; }
.notif .ans { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.notif .ans.show { display: block; animation: arrive .35s ease both; }
.notif .ans.right { background: var(--o-wash); color: #0b5f38; }
.notif .ans.wrong { background: var(--x-wash); color: #9e2227; }
.notif .ans b { display: block; font-size: 16px; margin-bottom: 2px; }
.notif .again { margin-top: 10px; background: none; border: 0; padding: 0; font: 600 14px var(--sans); color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lock .tip { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 13px; color: var(--ink3); }
.notif.earlier { margin-top: 10px; padding: 12px 16px; opacity: .78; transform: scale(.96); animation-delay: .6s; }
.notif.earlier .q { font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.lock .tip::before { content: "↑ "; }

/* ---------- 순서 (실제로 순서가 있는 흐름) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }
.step { position: relative; display: flex; flex-direction: column; }
.step .n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--marker); font: 800 18px/1 var(--display); margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink2); font-size: 16px; margin-bottom: 28px; }
.step .shot { margin-top: auto; }

/* 화면 그림 */
.shot {
  border-radius: 28px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -34px rgba(16, 33, 26, .38);
}
.shot img { width: 100%; }

/* ---------- 기능 (그림 + 글 번갈아) ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 48px 0; }
.feat + .feat { border-top: 1px solid var(--line); }
.feat .shot { max-width: 270px; justify-self: center; }
.feat:nth-child(even) .copy { order: 2; }
.feat .copy h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 850; letter-spacing: -.035em; line-height: 1.2; }
.feat .copy p { color: var(--ink2); font-size: 18px; margin-top: 16px; max-width: 26em; }

/* ---------- 문제 형식 ---------- */
.formats { background: var(--wash); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.chip {
  padding: 14px 20px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 17px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.chip.alt { background: transparent; box-shadow: inset 0 0 0 1.5px #c9d0ca; color: var(--ink2); font-weight: 600; }
.chips-note { margin-top: 22px; color: var(--ink3); font-size: 15px; }

/* ---------- 잉크 띠 (개인정보) ---------- */
.inkband { background: var(--ink); color: #eaf1ec; }
.inkband h2 { color: #fff; }
.inkband .eyebrow { color: #bdc9c1; }
.inkband .eyebrow::before { background: var(--marker); }
.inkband .mk { color: var(--ink); }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.promise { border-radius: var(--r); padding: 28px; background: #1a2d24; box-shadow: inset 0 0 0 1px #25342c; }
.promise h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.promise p { color: #bdc9c1; font-size: 16px; margin: 0; }
.inkband .more { display: inline-block; margin-top: 36px; color: var(--marker); font-weight: 700; text-underline-offset: 4px; }

/* ---------- 문서 목록 ---------- */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.doc {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 128px;
  padding: 22px; border-radius: 18px; text-decoration: none; background: var(--wash);
  transition: background .2s, transform .2s;
}
.doc:hover { background: var(--marker-wash); transform: translateY(-2px); }
.doc b { font-size: 18px; letter-spacing: -.02em; }
.doc span { font-size: 14px; color: var(--ink3); }
.doc span::after { content: " →"; }

/* ---------- 회사 홈 ---------- */
.co-hero { padding: 96px 0 72px; }
.co-hero h1 { font-size: clamp(52px, 10vw, 132px); letter-spacing: -.06em; }
.product {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end;
  background: var(--ink); color: #eaf1ec; border-radius: 36px; padding: 56px 56px 0; overflow: hidden;
}
.product .app { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.product .app img { width: 64px; height: 64px; border-radius: 16px; }
.product .app b { display: block; font-size: 26px; color: #fff; letter-spacing: -.02em; }
.product .app span { font-size: 14px; color: #93a199; }
.product h2 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); }
.product p { color: #bdc9c1; font-size: 18px; margin: 18px 0 32px; max-width: 26em; }
.product .copy { padding-bottom: 56px; }
.product .btn-ink { background: var(--marker); color: var(--ink); box-shadow: 0 5px 0 var(--marker-deep); }
.product .shots { display: flex; gap: 18px; align-self: end; }
.product .shots .shot { border-radius: 26px 26px 0 0; box-shadow: none; flex: 1; }
.product .shots .shot:nth-child(2) { transform: translateY(44px); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.value { border-top: 2px solid var(--ink); padding-top: 22px; }
.value h3 { margin-bottom: 10px; }
.value p { color: var(--ink2); font-size: 16px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--marker-wash); border-radius: 30px; padding: 48px 56px; }
.contact h2 { font-size: clamp(28px, 3.4vw, 40px); }
.contact a.mail { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); text-underline-offset: 6px; }

/* ---------- 바닥 ---------- */
footer.site { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: 14px; color: var(--ink3); }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
footer.site dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 14px 0 0; }
footer.site dt { color: var(--ink3); }
footer.site dd { margin: 0; color: var(--ink2); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-content: start; justify-content: flex-end; }
footer.site .links a { color: var(--ink2); text-decoration: none; }
footer.site .links a:hover { color: var(--ink); text-decoration: underline; }
footer.site .copy { grid-column: 1 / -1; margin-top: 12px; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .hero .wrap, .feat, .product, footer.site .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .lock { margin: 8px auto 0; max-width: 360px; }
  .steps, .promises, .values { grid-template-columns: 1fr; gap: 40px; }
  .step .shot { max-width: 320px; }
  .feat { gap: 36px; }
  .feat:nth-child(even) .copy { order: 0; }
  .docs { grid-template-columns: 1fr 1fr; }
  .product { padding: 40px 28px 0; }
  .product .copy { padding-bottom: 0; }
  .contact { padding: 36px 28px; }
  footer.site .links { justify-content: flex-start; }
  .top nav .hide-sm { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .top nav { gap: 14px; }
  .docs { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
