/* 네 언어 랜딩(/, /en/, /ja/, /zh/)이 함께 쓰는 스타일. 글꼴은 각 페이지가 링크하는
   /assets/fonts/pretendard/의 글꼴 CSS에서 오고(일본어·중국어는 라틴 글자만 쓰는 -latin), 언어별
   덮어쓰기는 각 페이지의 인라인 <style>에 남긴다. */
/* Datum 채팅과 같은 토큰. 브랜드 그라데이션은 datum-mark.svg 색을 따른다. */
:root {
  --ink: #0d0d0d;
  --secondary: #5d5d5d;
  --muted: #6e6e6e;
  --line: #0000001a;
  --surface: #fff;
  --soft: #f3f3f3;
  --accent: #6548ec;
  --accent-hover: #543bd1;
  --brand-from: #9747ff;
  --brand-to: #6746ff;
  --tint: #f5f2ff;
  --radius: 16px;
  --gutter: 32px;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--surface);
}
html[data-theme="dark"] {
  --ink: #ececec;
  --secondary: #b4b4b4;
  --muted: #969696;
  --line: #ffffff1a;
  --surface: #212121;
  --soft: #171717;
  --accent: #a594ff;
  --accent-hover: #bcb0ff;
  --tint: #2a2540;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
/* 등장 효과: 화면에 들어올 때 아래에서 살짝 떠오른다. 반쯤 보이는 상태에서 짧게 시작해 제목·카드가
   흐린 채 머무르지 않게 한다(#301). 순서(--i)는 함께 들어온 요소끼리만 매기고 4번째에서 멈춘다.
   호버의 transform·transition과 겹치지 않게 translate 속성과 animation만 쓴다.
   스크립트가 없으면(.js 없음) 처음부터 보인다. */
.js [data-reveal]:not(.is-in) {
  opacity: 0.4;
  translate: 0 16px;
}
.js [data-reveal].is-in {
  animation: reveal 0.5s var(--ease) both;
  animation-delay: calc(min(var(--i, 0), 4) * 60ms);
}
@keyframes reveal {
  from {
    opacity: 0.4;
    translate: 0 16px;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 28px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
/* 섹션 단위로 스크롤이 멈춘다. 화면이 낮거나 좁으면 섹션이 한 화면을 넘을 수 있어
   가까울 때만 붙는 proximity로 완화한다. */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
@media (max-width: 960px), (max-height: 720px) {
  html {
    scroll-snap-type: y proximity;
  }
}
.hero,
section.block,
.statement {
  scroll-snap-align: start;
}
.footer {
  scroll-snap-align: end;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a {
  color: inherit;
}
/* 줄바꿈: 제목은 줄 길이를 고르게, 본문은 마지막 줄에 한 단어만 남지 않게. */
h1,
h2,
h3,
summary {
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
.wrap {
  width: min(100% - var(--gutter) * 2, 1160px);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 상단 바: 히어로 위에서는 투명, 스크롤하면 면이 생긴다. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 64px;
  color: #fff;
  transition:
    background 0.25s,
    box-shadow 0.25s,
    color 0.25s;
}
.nav.is-scrolled {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
/* 앱바: 로고 | 섹션 메뉴(가운데) | 시작하기. 메뉴를 누르면 같은 페이지 안에서 스크롤한다. */
.nav .wrap {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "brand menu actions";
  align-items: center;
}
.nav .brand {
  grid-area: brand;
  justify-self: start;
}
.nav-menu {
  grid-area: menu;
  display: flex;
  gap: 4px;
}
.nav-menu a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.8;
  transition:
    opacity 0.2s,
    background 0.2s,
    color 0.2s;
}
.nav-menu a:hover {
  opacity: 1;
  background: #ffffff1f;
}
.nav.is-scrolled .nav-menu a:hover,
.nav.is-open .nav-menu a:hover {
  background: var(--soft);
}
.nav-menu a[aria-current="true"] {
  opacity: 1;
  font-weight: 650;
  color: var(--accent);
  background: var(--tint);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: auto;
}
.nav-actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
}
/* 언어 전환: 한국어·English·日本語·简体中文 랜딩 중 하나로 간다. details라 스크립트 없이도
   열리고 닫힌다. 단추는 히어로 위에서 흰 글자, 스크롤하면 본문색이고, 목록은 늘 면 위에 뜬다. */
.lang-menu {
  position: relative;
}
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  opacity: 0.8;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-menu summary:hover,
.lang-menu[open] summary {
  opacity: 1;
  background: #ffffff1f;
}
.nav.is-scrolled .lang-menu summary:hover,
.nav.is-scrolled .lang-menu[open] summary,
.nav.is-open .lang-menu summary:hover,
.nav.is-open .lang-menu[open] summary {
  background: var(--soft);
}
.lang-menu svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.lang-menu .chevron {
  width: 12px;
  height: 12px;
  transition: rotate 0.2s;
}
.lang-menu[open] .chevron {
  rotate: 180deg;
}
.lang-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px #00000029;
}
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  text-decoration: none;
}
.lang-list a:hover {
  background: var(--soft);
}
.lang-list a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}
.lang-list a[aria-current="page"]::after {
  content: "✓";
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* 좁은 화면에서는 지구 모양만 남겨 시작 단추와 메뉴 단추 자리를 지킨다(이름은 화면낭독기에 남는다). */
@media (max-width: 420px) {
  .lang-menu .lang-current {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .lang-menu summary {
    padding: 0 10px;
  }
  .lang-menu .chevron {
    display: none;
  }
}
/* 메뉴 단추: 좁은 화면에서만 보이고, 누르면 섹션 메뉴를 바 아래로 펼친다. */
.nav-toggle {
  grid-area: toggle;
  display: none;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}
.nav-toggle:hover {
  background: #ffffff1f;
}
.nav.is-scrolled .nav-toggle:hover,
.nav.is-open .nav-toggle {
  background: var(--soft);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-open,
.nav-toggle[aria-expanded="false"] .nav-toggle-close {
  display: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
html[data-theme="dark"] .btn-primary {
  color: #171717;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  border-color: currentColor;
}
.btn-ghost:hover {
  background: #ffffff1f;
}
.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

/* 1. 히어로: 엔지니어링 이미지가 천천히 교차하는 배경 위에 카피.
   음수 지연으로 첫 장이 처음부터 보이고, 이후 장은 앞 장이 사라지는 동안 겹쳐 나타난다. */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #0d0d14;
}
/* 스크롤 시차로 움직이는 배경 묶음. 히어로를 꽉 채워 안의 이미지가 이 상자를 기준으로 놓인다. */
.hero-slides {
  position: absolute;
  inset: 0;
  will-change: translate;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.08;
  transition:
    opacity 0.9s var(--ease),
    scale 1.8s var(--ease);
}
.hero-slides img.is-active {
  opacity: 1;
  scale: 1;
}
/* 장면 색조: 단어(장면)마다 --hero-tint가 바뀌고, @property로 등록해 색이 부드럽게 넘어간다. */
@property --hero-tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #2a2145;
}
.hero {
  --hero-tint: #2a2145;
  transition: --hero-tint 0.9s var(--ease);
}
.hero[data-scene="1"] {
  --hero-tint: #1f2a4d;
}
.hero[data-scene="2"] {
  --hero-tint: #33204a;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--hero-tint) 62%, transparent) 0%,
    color-mix(in oklab, var(--hero-tint) 38%, transparent) 45%,
    color-mix(in oklab, #0d0d14 82%, transparent) 100%
  );
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 96px 16px 64px;
  max-width: 880px;
}
.hero-quote {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(1.0625rem, 2.2vw, 1.5rem);
  font-weight: 600;
}
/* 히어로 단어 순환: 강조어가 차례로 바뀌고 브랜드 그라데이션 밑줄이 그 단어로 미끄러진다. */
.hero-quote .mode {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.js .hero-quote .mode {
  opacity: 0.55;
  transition: opacity 0.36s var(--ease);
}
.js .hero-quote .mode:hover {
  opacity: 0.85;
}
.js .hero-quote .mode.is-active {
  opacity: 1;
}
.mode-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c4a6ff, #8f7bff);
  opacity: 0;
  pointer-events: none;
  transition:
    left 0.64s var(--ease),
    top 0.64s var(--ease),
    width 0.64s var(--ease),
    opacity 0.3s;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.hero h1 .thin {
  display: block;
  font-weight: 200;
}
.hero h1 .bold {
  display: block;
  font-weight: 750;
}
/* 문장 단위로 줄을 바꾸고, 좁은 화면에서는 쉼표 구절 단위로만 넘긴다. */
.hero-lead {
  margin: 20px auto 36px;
  max-width: 720px;
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.9;
}
.hero-lead > span {
  display: block;
  text-wrap: balance;
}
.nowrap {
  white-space: nowrap;
}
/* 320px(400% 확대) 폭에서는 줄바꿈을 허용해 가로 스크롤을 만들지 않는다. */
@media (max-width: 360px) {
  .nowrap {
    white-space: normal;
  }
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-primary {
  background: #fff;
  color: #171717;
}
.hero .btn-primary:hover {
  background: #e9e5ff;
}

/* 공통 섹션 머리말: 영문 eyebrow + 큰 제목. */
section.block,
.statement {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 112px 0 72px;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .eyebrow {
  background-image: linear-gradient(90deg, #c4a6ff, #a594ff);
}
.title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
.center {
  text-align: center;
}

/* 2. 소개 + 기능 카드: 호버하면 브랜드 그라데이션 테두리. */
/* 기능 장면: 카드에 커서를 올리면 섹션 배경 색조가 그 기능으로 바뀐다. */
@property --intro-tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #f3f3f3;
}
.intro {
  --intro-tint: var(--soft);
  background: var(--intro-tint);
  transition: --intro-tint 0.7s var(--ease);
}
.intro[data-scene="0"] {
  --intro-tint: color-mix(in oklab, var(--soft) 92%, #6548ec);
}
.intro[data-scene="1"] {
  --intro-tint: color-mix(in oklab, var(--soft) 92%, #3f6fe8);
}
.intro[data-scene="2"] {
  --intro-tint: color-mix(in oklab, var(--soft) 92%, #8a4fe0);
}
.intro[data-scene="3"] {
  --intro-tint: color-mix(in oklab, var(--soft) 92%, #4b4fd6);
}
.js .card.is-active::before {
  opacity: 1;
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.intro-text p,
.team-text p {
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--secondary);
}
/* 단락 사이는 줄 간격보다 확실히 넓게 둔다. */
.intro-text p + p,
.team-text p + p {
  margin-top: 1.4em;
}
.intro-text strong,
.team-text strong {
  font-weight: 650;
  color: var(--ink);
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 28px #0000000f;
  transition: transform 0.25s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
}
.card:hover::before,
.card:focus-within::before {
  opacity: 1;
}
.card-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 999px;
}
.card h3 {
  margin: 14px 0 10px;
  font-size: 1.3125rem;
  letter-spacing: -0.02em;
}
.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--secondary);
  line-height: 1.7;
  font-size: 0.9688rem;
}

/* 2-1. 체험: 실제 Datum 답변을 녹화해 대화창에서 다시 재생한다. 서버 호출은 없다.
   직접 적은 질문은 로그인 뒤 채팅 입력창으로 넘긴다(sessionStorage). */
.try-lead {
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--secondary);
  line-height: 1.7;
}
.try-layout {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.try-picks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.try-pick {
  width: 100%;
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.try-pick:hover {
  border-color: var(--accent);
}
.try-pick[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--tint);
}
.try-pick strong {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.try-pick span:last-child {
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.try-pick .card-tag {
  justify-self: start;
}
.try-window {
  display: flex;
  flex-direction: column;
  height: clamp(400px, 58svh, 600px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 40px #00000012;
  overflow: hidden;
}
.try-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  font-size: 0.9375rem;
}
.try-bar img {
  width: 20px;
  height: auto;
}
.try-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.try-log {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}
.try-empty {
  margin: auto;
  color: var(--muted);
  text-align: center;
  font-size: 0.9375rem;
}
.try-user {
  align-self: flex-end;
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--soft);
  line-height: 1.6;
  font-size: 0.9375rem;
}
.try-answer {
  font-size: 0.9375rem;
  line-height: 1.7;
}
.try-answer > * {
  margin: 0 0 12px;
}
.try-answer > :last-child {
  margin-bottom: 0;
}
.js .try-answer > [data-step]:not(.is-in) {
  opacity: 0;
}
.try-answer > .is-in {
  animation: rise 0.45s var(--ease) both;
}
.try-answer h4 {
  margin-top: 20px;
  font-size: 1rem;
}
.try-answer ul,
.try-answer ol {
  padding-left: 20px;
}
.try-answer .math {
  font-family: "Times New Roman", serif;
  font-style: italic;
  white-space: nowrap;
}
.try-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.try-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.try-table th,
.try-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.try-table th {
  background: var(--soft);
  font-weight: 600;
  white-space: nowrap;
}
.try-table tr:last-child td {
  border-bottom: 0;
}
.try-thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}
.try-thinking::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--tint);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: try-spin 0.8s linear infinite;
}
@keyframes try-spin {
  to {
    rotate: 1turn;
  }
}
.try-time {
  color: var(--muted);
  font-size: 0.75rem;
}
.try-compose {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 14px;
  border-top: 1px solid var(--line);
}
.try-compose textarea {
  flex: 1;
  /* 글자에 맞춰 늘어난다. field-sizing을 모르는 브라우저는 landing.js가 높이를 정한다. */
  field-sizing: content;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
}
/* 비어 있을 때는 rows 높이 그대로: 줄바꿈된 안내 문구만큼 커지지 않게 한다. */
.try-compose textarea:placeholder-shown {
  field-sizing: fixed;
}
.try-compose textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.try-compose .btn {
  min-height: 44px;
  white-space: nowrap;
}
.try-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}
@media (max-width: 960px) {
  .try-layout {
    grid-template-columns: 1fr;
  }
  .try-picks {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .try-pick {
    min-width: 240px;
  }
}
@media (max-width: 640px) {
  .try-log {
    padding: 16px;
  }
  .try-compose {
    flex-direction: column;
    align-items: stretch;
  }
}
/* 3. 사용 방법: 번호가 붙은 단계. 뒤집는 카드 대신 내용을 항상 보여준다.
   두 카드가 같은 행 트랙(subgrid)을 써서 단계 구분선 높이가 나란히 맞는다. */
.flows {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.flow {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.flow h3 {
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  letter-spacing: -0.03em;
}
.flow > p {
  margin: 0 0 20px;
  color: var(--muted);
}
.flow ol {
  display: contents;
  list-style: none;
}
/* 구분선 없이 간격으로만 단계를 나눈다. */
.flow li {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-content: start;
  gap: 4px 8px;
  padding: 14px 0;
}
.flow li:last-child {
  padding-bottom: 0;
}
.step-no {
  grid-row: span 2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: 1.0625rem;
}
.step-title {
  font-weight: 650;
  font-size: 1.0625rem;
}
.step-desc {
  text-wrap: pretty;
  color: var(--secondary);
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* 요금제: 단계별 카드. 행을 subgrid로 공유해 가격·구분선·하단 안내가 나란히 맞는다. */
.plans {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.plan {
  display: grid;
  grid-row: span 7;
  grid-template-rows: subgrid;
  row-gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
}
/* 카드 맨 위 상태 줄: 단계 순서처럼 읽히던 STEP 번호 대신 상태 배지만 둔다(#302).
   배지가 없는 카드도 이름 높이가 맞도록 한 줄 높이를 남긴다. */
.plan-status {
  min-height: 1.5rem;
  margin: 0 0 14px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.plan h3 {
  margin: 0;
  font-size: 1.625rem;
  letter-spacing: -0.02em;
}
.plan-sub {
  margin: 6px 0 16px;
  color: var(--secondary);
  font-size: 0.9375rem;
}
.plan-price {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-lead {
  margin: 18px 0 12px;
  color: var(--secondary);
  font-size: 0.9375rem;
}
.plan ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}
.plan li {
  position: relative;
  padding-left: 26px;
  line-height: 1.5;
  text-wrap: pretty;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.3em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan-note {
  align-self: end;
  margin: 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  text-wrap: pretty;
}
/* 고정 추천 플랜 없이, 커서를 올린 카드가 강조된다. */
.plan {
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.plan-status,
.plan h3,
.plan-note {
  transition:
    color 0.25s,
    background 0.25s;
}
.plan:hover {
  border-color: var(--accent);
  box-shadow:
    0 4px 12px #6548ec14,
    0 18px 44px #6548ec2e;
}
.plan:hover .plan-status,
.plan:hover h3 {
  color: var(--accent);
}
.plan:hover .plan-note {
  background: var(--tint);
  color: var(--accent);
}
@property --pricing-tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffffff;
}
#pricing {
  --pricing-tint: var(--surface);
  background: var(--pricing-tint);
  transition: --pricing-tint 0.6s var(--ease);
}
#pricing[data-scene="0"] {
  --pricing-tint: color-mix(in oklab, var(--surface) 94%, #8f8f8f);
}
#pricing[data-scene="1"] {
  --pricing-tint: color-mix(in oklab, var(--surface) 93%, #6548ec);
}
#pricing[data-scene="2"] {
  --pricing-tint: color-mix(in oklab, var(--surface) 93%, #3f6fe8);
}
#pricing[data-scene="3"] {
  --pricing-tint: color-mix(in oklab, var(--surface) 90%, #2a2145);
}
.plans-cta {
  margin-top: 40px;
  text-align: center;
}
.plan-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.plan-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.plan-badge[data-status="promotion"] {
  background: var(--tint);
  color: var(--accent);
}
.plan li,
.plan-note {
  word-break: keep-all;
}
.plans-notice {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  word-break: keep-all;
  text-wrap: balance;
}
.plans-promotion-end {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}
.plans-notice[hidden],
.plans-promotion-end[hidden] {
  display: none;
}

/* 4. 메시지 띠: 위 1/3은 어둡게 유지하고, 그 아래를 smoothstep 곡선으로 FAQ 배경(--soft)까지
   섞는다. 색 보간은 oklab이라 중간이 탁한 회색으로 꺾이지 않는다. */
.statement {
  --band: #15141c;
  background: linear-gradient(
    180deg,
    var(--band) 0%,
    var(--band) 30%,
    color-mix(in oklab, var(--band) 98%, var(--soft)) 40%,
    color-mix(in oklab, var(--band) 86%, var(--soft)) 50%,
    color-mix(in oklab, var(--band) 67%, var(--soft)) 60%,
    color-mix(in oklab, var(--band) 44%, var(--soft)) 70%,
    color-mix(in oklab, var(--band) 23%, var(--soft)) 80%,
    color-mix(in oklab, var(--band) 6%, var(--soft)) 90%,
    var(--soft) 100%
  );
  color: #fff;
  text-align: center;
}
.statement h2 {
  margin: 0;
  font-size: clamp(1.875rem, 4.5vw, 3.125rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
/* 강조어와 뒤따르는 조사("을 드립니다")는 같은 줄에 둔다. */
.statement .line {
  display: block;
}
.statement .grad {
  background: linear-gradient(90deg, #c4a6ff, #8f7bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statement p {
  margin: 18px 0 32px;
  font-size: 1.0625rem;
  opacity: 0.85;
}
.statement .btn-primary {
  background: #fff;
  color: #171717;
}

/* 4-1. 설계 자료: 공개 규격표·계산식 페이지(/guides/)로 가는 카드. 검색으로 들어온 사람이
   다음 자료로, 랜딩을 본 사람이 자료로 이어지게 한다. */
.guides-lead {
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--secondary);
  line-height: 1.7;
}
.guide-grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.guide-grid a {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.guide-grid a:hover,
.guide-grid a:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px #6548ec1f;
}
.guide-grid .card-tag {
  justify-self: start;
}
.guide-grid strong {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}
.guide-grid a > span:last-child {
  color: var(--secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.guide-grid a::after {
  content: "→";
  position: absolute;
  right: 22px;
  top: 22px;
  color: var(--muted);
  transition:
    translate 0.25s,
    color 0.25s;
}
.guide-grid a:hover::after {
  translate: 4px 0;
  color: var(--accent);
}
.guides .btn-ghost {
  color: var(--accent);
}
.guides .btn-ghost:hover {
  background: var(--tint);
}
@media (max-width: 960px) {
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

/* 5. FAQ: 한 번에 하나만 열리는 네이티브 아코디언. */
.faq {
  background: var(--soft);
}
.faq-list {
  width: min(100%, 860px);
  margin: 40px auto 0;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--muted);
}
.faq details[open] summary {
  background: var(--accent);
  color: #fff;
}
html[data-theme="dark"] .faq details[open] summary {
  color: #171717;
}
.faq details[open] summary::after {
  content: "−";
  color: inherit;
}
.faq details p {
  margin: 0;
  padding: 16px 20px 18px;
  background: var(--tint);
  line-height: 1.7;
  color: var(--secondary);
}

/* 푸터: 로그인 화면 하단과 같은 안내·정책 링크. 앱 화면은 공개 해시 경로(#help·#privacy-requests·#deletion-status 등)로 연다. */
.footer {
  background: #121217;
  color: #b4b4b4;
  font-size: 0.875rem;
  padding: 56px 0 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand p {
  margin: 14px 0 0;
  max-width: 360px;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 72px;
}
.footer-links h2 {
  margin: 0 0 14px;
  color: #ececec;
  font-size: 0.875rem;
  font-weight: 600;
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer a {
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer .brand {
  color: #ececec;
}
.footer-accessibility {
  margin: 40px 0 0;
  max-width: 720px;
  line-height: 1.7;
}
.footer-accessibility a {
  color: #ececec;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #ffffff1a;
  color: #8f8f8f;
  font-size: 0.8125rem;
}

@media (max-width: 1100px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .nav {
    height: auto;
  }
  .nav .wrap {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "menu menu";
    row-gap: 4px;
    padding: 12px 0 8px;
  }
  .nav-menu {
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -8px;
  }
  /* 스크립트가 있으면 가로로 넘기는 메뉴 대신 메뉴 단추로 접고 펼친다(#300).
     단추는 마크업에서 메뉴 바로 앞에 있어 Tab이 단추 → 펼친 메뉴 순으로 간다. */
  .js .nav .wrap {
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "brand actions toggle";
    column-gap: 8px;
    padding-bottom: 12px;
  }
  .js .nav.is-open .wrap {
    grid-template-areas:
      "brand actions toggle"
      "menu menu menu";
  }
  .js .nav:not(.is-open) .nav-menu {
    display: none;
  }
  .js .nav.is-open {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 12px 32px #0000001f;
  }
  .js .nav-menu {
    flex-direction: column;
    gap: 2px;
    margin-inline: -14px;
    padding-top: 4px;
    /* 가로로 눕힌 휴대폰처럼 낮은 화면에서도 끝 항목까지 넘겨 볼 수 있게 한다. */
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .js .nav-menu a {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .js .nav-toggle {
    display: inline-grid;
  }
}
/* 2-2. 팀 워크스페이스: 기능 카드와 같은 모양, 배경으로 앞뒤 섹션과 구분한다. */
.team {
  background: var(--soft);
}
.team-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 960px) {
  .intro-grid,
  .flows {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .cards,
  .team-cards {
    grid-template-columns: 1fr;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .flow,
  .plan {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal]:not(.is-in),
  .js .hero-quote .mode {
    opacity: 1;
  }
  .js [data-reveal]:not(.is-in) {
    translate: none;
  }
  .js [data-reveal].is-in,
  .try-answer > .is-in {
    animation: none;
  }
  .mode-bar {
    display: none;
  }
  * {
    transition: none !important;
  }
}

.tv-lead {
  margin: 16px auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--secondary);
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.7;
}
.tv-private {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 40px auto 0;
  color: var(--secondary);
  font-size: 0.9688rem;
  text-align: center;
}
.tv-private svg {
  flex: none;
  color: var(--accent);
}
.tv-private strong {
  color: var(--ink);
  font-weight: 650;
}

.team-b {
  background: var(--soft);
}
.tb-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
  margin-top: 56px;
}
.tb-tabs {
  display: grid;
  gap: 10px;
}
.tb-tab {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 18px 20px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.tb-tab .card-tag {
  justify-self: start;
}
.tb-tab b {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.tb-desc {
  display: none;
  color: var(--secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
}
.tb-tab[aria-selected="true"] {
  background: var(--surface);
  box-shadow: 0 8px 28px #0000000f;
}
.tb-tab[aria-selected="true"] .tb-desc {
  display: block;
}
.tb-frame {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 60px #00000014;
  overflow: hidden;
  min-height: 560px;
}
.tb-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.tb-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.tb-bar span {
  margin-left: 8px;
}
.tb-pane {
  animation: tb-in 0.35s var(--ease);
}
@keyframes tb-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.tb-pane[hidden] {
  display: none;
}
/* 실제 채팅 앱(chat/src/styles.css)의 공유 창·분기·산출물·의견 모양을 그대로 옮긴다. */
.tb-app {
  --ink: #0d0d0d;
  --secondary: #5d5d5d;
  --muted: #6e6e6e;
  --line: #0000001a;
  --soft: #f3f3f3;
  --app-surface: #fff;
  --app-on-ink: #fff;
  --app-switch: #d1d1d1;
  --app-ok: #1a6b3c;
  --app-ok-bg: #e6f4ec;
  --app-warn: #8a5300;
  --app-warn-bg: #fff1d1;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.tb-app .modal-header {
  padding: 20px 22px 6px;
}
.tb-app .modal-header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
}
.tb-app .modal-body {
  padding: 10px 22px 20px;
}
.tb-app .tb-stack {
  display: grid;
  gap: 10px;
  padding-top: 20px;
}
.tb-app .team-project-name {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.875rem;
}
.tb-app .team-label {
  margin: 12px 0 6px;
  font-size: 0.875rem;
  font-weight: 500;
}
.tb-app .team-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tb-app .team-between {
  justify-content: space-between;
  margin-top: 4px;
}
.tb-app .tb-input,
.tb-app .tb-select {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}
.tb-app .tb-input {
  flex: 1;
}
.tb-app .tb-select {
  color: var(--ink);
  gap: 10px;
}
.tb-app .tb-select::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.tb-app .primary-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--app-on-ink);
  font-weight: 600;
  font-size: 0.875rem;
}
.tb-app .team-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tb-app .team-radio {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tb-app .team-radio.is-on {
  border-color: var(--ink);
  background: var(--soft);
}
.tb-app .team-radio-title {
  font-size: 0.875rem;
  font-weight: 500;
}
.tb-app .team-radio-note,
.tb-app .field-note {
  color: var(--muted);
  font-size: 0.75rem;
}
.tb-app .organization-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tb-app .organization-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tb-app .organization-table td:first-child {
  padding-left: 0;
}
.tb-app .organization-table td:first-child strong,
.tb-app .organization-table td:first-child span {
  display: block;
}
.tb-app .organization-table td:first-child span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.tb-app .organization-table td:last-child {
  text-align: right;
}
.tb-app .text-button {
  color: var(--secondary);
  font-size: 0.8125rem;
}
.tb-app .switch {
  flex: none;
  width: 38px;
  height: 23px;
  border-radius: 20px;
  background: var(--app-switch);
  padding: 3px;
  display: flex;
  align-items: center;
}
.tb-app .switch span {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
}
.tb-app .switch.is-on {
  background: var(--ink);
}
.tb-app .switch.is-on span {
  transform: translateX(15px);
  background: var(--app-surface);
}
.tb-app .message {
  margin: 10px 0 14px;
}
.tb-app .message.user {
  display: flex;
  justify-content: flex-end;
}
.tb-app .user-bubble {
  padding: 10px 16px;
  background: var(--soft);
  border-radius: 16px;
  max-width: 85%;
  line-height: 1.6;
}
.tb-app .assistant-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}
.tb-app .brand-mark {
  width: 24px;
  height: 21px;
  background: url("/assets/brand/datum-mark.svg") center / contain no-repeat;
}
.tb-app .ai-generated-label {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 7px;
  color: var(--secondary);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.6;
}
.tb-app .answer {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}
.tb-app .branch-marker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 14px;
  color: var(--secondary);
  font-size: 0.8125rem;
}
.tb-app .branch-marker .icon {
  width: 14px;
  height: 14px;
}
.tb-app .branch-marker .text-button {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tb-app .team-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.tb-app .output-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--app-surface);
}
.tb-app .output-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
}
.tb-app .output-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.tb-app .output-type {
  font-size: 0.75rem;
  color: var(--secondary);
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--soft);
}
.tb-app .output-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.tb-app .output-badge-ok {
  color: var(--app-ok);
  background: var(--app-ok-bg);
}
.tb-app .output-badge-warn {
  color: var(--app-warn);
  background: var(--app-warn-bg);
}
.tb-app .output-badge-muted {
  color: var(--secondary);
  border-color: var(--line);
  font-weight: 500;
}
.tb-app .output-summary {
  margin: 0;
  color: var(--secondary);
  font-size: 0.875rem;
}
.tb-app .output-keyspecs {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: 0.8125rem;
}
.tb-app .output-keyspecs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.tb-app .output-keyspecs dt {
  color: var(--muted);
}
.tb-app .output-keyspecs dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.tb-app .output-review-line {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--app-warn);
}
.tb-app .output-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.tb-app .collab-comment {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--app-surface);
}
.tb-app .collab-replies {
  margin: 10px 0 0 16px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}
.tb-app .collab-replies .collab-comment {
  border: 0;
  padding: 4px 0;
}
.tb-app .collab-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
}
.tb-app .collab-body {
  margin: 6px 0 0;
}
.tb-app .collab-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.tb-app .collab-chip {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--secondary);
  white-space: nowrap;
}
.tb-app .collab-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-top: 6px;
}
.tb-app .collab-tab {
  padding: 6px 12px;
  border-bottom: 2px solid transparent;
  color: var(--secondary);
}
.tb-app .collab-tab.is-on {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}
/* 다크 모드에서는 실제 앱의 다크 테마 값을 쓴다. */
html[data-theme="dark"] .tb-app {
  --ink: #ececec;
  --secondary: #b4b4b4;
  --muted: #969696;
  --line: #ffffff1a;
  --soft: #2c2c2c;
  --app-surface: #212121;
  --app-on-ink: #212121;
  --app-switch: #555;
  --app-ok: #7ad6a0;
  --app-ok-bg: #1d3a2a;
  --app-warn: #f1c067;
  --app-warn-bg: #3d3014;
}
@media (max-width: 960px) {
  .tb-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .tb-app .modal-header,
  .tb-app .modal-body {
    padding-inline: 16px;
  }
  .tb-app .team-radios {
    grid-template-columns: 1fr;
  }
  .tv-private {
    align-items: flex-start;
    text-align: left;
  }
}

/* 한 화면 맞춤(데스크톱): 섹션마다 화면 높이 안에 다 보이도록 여백·제목·카드 크기를 화면 높이에 맞춘다. */
.tb-frame {
  min-height: 0;
}
.tb-panes {
  display: grid;
}
.tb-panes > .tb-pane {
  grid-area: 1 / 1;
}
.tb-panes > .tb-pane[hidden] {
  display: block;
  visibility: hidden;
}
@media (min-width: 961px) {
  section.block,
  .statement {
    padding: calc(64px + clamp(12px, 3.5vh, 48px)) 0 clamp(12px, 3vh, 72px);
  }
  .title {
    font-size: clamp(1.75rem, min(4.5vw, 6.2vh), 3.25rem);
  }
  .try-lead,
  .tv-lead {
    margin-top: clamp(6px, 1.4vh, 16px);
  }
  .try-layout,
  .tb-layout,
  .plans {
    margin-top: clamp(16px, 3.5vh, 56px);
  }
  .try-picks {
    gap: clamp(8px, 1.2vh, 12px);
  }
  .try-pick {
    padding: clamp(12px, 1.8vh, 18px) 20px;
    gap: 6px;
  }
  .try-window {
    height: clamp(340px, 50svh, 600px);
  }
  .try-note {
    margin-top: clamp(6px, 1.2vh, 14px);
  }
  .tb-tabs {
    gap: 6px;
  }
  .tb-tab {
    padding: clamp(12px, 1.8vh, 18px) 20px;
  }
  .tv-private {
    margin-top: clamp(14px, 2.6vh, 40px);
  }
  .tb-app {
    font-size: 13px;
  }
  .tb-app .modal-header {
    padding: 14px 20px 2px;
  }
  .tb-app .modal-header h2 {
    font-size: 1rem;
  }
  .tb-app .modal-body {
    padding: 6px 20px 14px;
  }
  .tb-app .tb-stack {
    padding-top: 14px;
    gap: 8px;
  }
  .tb-app .team-project-name {
    margin-bottom: 4px;
    font-size: 0.8125rem;
  }
  .tb-app .team-label {
    margin: 8px 0 4px;
    font-size: 0.8125rem;
  }
  .tb-app .tb-input,
  .tb-app .tb-select,
  .tb-app .primary-button {
    min-height: 30px;
    font-size: 0.8125rem;
  }
  .tb-app .team-radio {
    padding: 6px 10px;
  }
  .tb-app .organization-table {
    font-size: 13px;
  }
  .tb-app .organization-table td {
    padding: 5px 8px;
  }
  .tb-app .answer {
    font-size: 0.9375rem;
  }
  .plan {
    padding: clamp(16px, 2.6vh, 28px) 22px;
  }
  .plan-status {
    margin-bottom: 8px;
    font-size: 0.8125rem;
  }
  .plan h3 {
    font-size: 1.375rem;
  }
  .plan-sub {
    margin: 2px 0 10px;
    font-size: 0.875rem;
  }
  .plan-price {
    padding-bottom: 12px;
    font-size: 1.25rem;
  }
  .plan-lead {
    margin: 12px 0 8px;
    font-size: 0.875rem;
  }
  .plan ul {
    gap: 6px;
    margin-bottom: 14px;
    font-size: 0.9375rem;
  }
  .plan li {
    line-height: 1.45;
  }
  .plan-note {
    padding: 10px 14px;
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  .plans-cta {
    margin-top: clamp(14px, 2.6vh, 40px);
  }
  .plans-notice {
    margin-top: clamp(10px, 2vh, 28px);
  }
}
/* 낮은 화면: 미리보기 창과 요금제 카드를 디자인 비율 그대로 축소한다. */
@media (min-width: 961px) and (max-height: 860px) {
  .tb-frame {
    zoom: 0.84;
  }
  .plans {
    zoom: 0.9;
  }
  .plans-notice {
    max-width: 960px;
  }
}
@media (min-width: 961px) and (max-height: 760px) {
  .tb-frame {
    zoom: 0.78;
  }
  .plans {
    zoom: 0.86;
  }
}
@media (min-width: 961px) and (max-height: 690px) {
  .tb-frame {
    zoom: 0.7;
  }
  .plans {
    zoom: 0.8;
  }
  .tb-tab {
    padding-block: 10px;
  }
  .try-window {
    height: 320px;
  }
  .try-pick {
    padding-block: 10px;
  }
}
