:root {
  color-scheme: dark;
  /* 앱 lib/app/theme/app_theme.dart 의 AppColors 를 그대로 옮긴 값이다.
     사이트만을 위한 색을 새로 만들지 않는다. */
  --bg: #0e0e11;
  --titlebar: #0a0a0d;
  --ink: #f2f2f5;
  --muted: #8e8e9c;
  --accent: #d9462f;
  --accent-strong: #b2331f;
  --on-accent: #f2f2f5;
  --danger: #e06a5a;
  --surface: #191920;
  --raised: #23232c;
  --line: rgb(255 255 255 / 14%);
  --shadow: 0 30px 70px -25px rgb(0 0 0 / 65%);
  --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* 터미널 창 크롬 — 페이지 전체를 macOS 터미널 창처럼 감싼다 */
.term-window {
  background: var(--bg);
}

@media (min-width: 720px) {
  .term-window {
    max-width: 1120px;
    margin: 24px auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 90px -30px rgb(0 0 0 / 65%);
  }
}

.term-titlebar {
  display: none;
}

@media (min-width: 720px) {
  .term-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--titlebar);
    border-bottom: 1px solid var(--line);
    position: relative;
  }
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.term-dot-red { background: #ff5f57; }
.term-dot-yellow { background: #febc2e; }
.term-dot-green { background: #28c840; }

.term-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.site-header {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .hero-copy .hero-icon {
    margin: 0 0 24px;
  }
  .hero-copy .cta-row {
    justify-content: flex-start;
  }
  .hero-copy p.lead {
    margin: 0 0 28px;
  }
}

.hero img.hero-icon {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 0 auto 24px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero h1::after {
  content: "_";
  color: var(--accent);
  animation: term-blink 1.1s steps(1) infinite;
}

@keyframes term-blink {
  50% { opacity: 0; }
}

.hero p.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 640px;
  margin: 0 auto 28px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* `[ 라벨 ]` 형태 — 실제 앱의 TerminalButton(lib/features/jailbreak/presentation/widgets/terminal_button.dart) 그대로 */
.btn {
  display: inline-block;
  background: transparent;
  padding: 10px 24px;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s;
}

.btn::before {
  content: "[ ";
}

.btn::after {
  content: " ]";
}

.btn-primary {
  color: var(--accent);
}

.btn-primary:hover {
  background: rgb(232 178 58 / 12%);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--accent);
  background: rgb(232 178 58 / 8%);
}

section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-tag {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  margin: 0 0 8px;
}

section h2 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

section > p.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 28px;
}

.loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.loop-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.loop-step .num {
  display: block;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.loop-step .num::before {
  content: "[";
}

.loop-step .num::after {
  content: "]";
}

.loop-step h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.loop-step p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.feature-card h3 {
  font-size: 16.5px;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.principles {
  display: grid;
  gap: 12px;
}

.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.principle strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

.principle span {
  color: var(--muted);
  font-size: 14px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.faq-list p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 14px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.contact-card a {
  font-size: 18px;
  font-weight: 700;
}

.policy h2 {
  margin-top: 36px;
}

.policy h2:first-of-type {
  margin-top: 0;
}

.policy p,
.policy li {
  color: var(--muted);
  font-size: 15px;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.policy th,
.policy td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
}

.policy th {
  background: var(--surface);
  color: var(--ink);
}

.meta-date {
  color: var(--muted);
  font-size: 13.5px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

footer a {
  color: var(--muted);
}

/* Breadcrumb — 화면 표시와 BreadcrumbList 스키마를 1:1로 맞춘다. */
.breadcrumb { font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.breadcrumb ol {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: .7;
}
.breadcrumb li + li::before { content: "/"; opacity: .5; margin-right: 6px; }
.breadcrumb a { color: inherit; }

/* ---- icantsaythat 전용 추가 ---- */

/* 채팅 미리보기 — 실제 스크린샷이 없어 진행 방식만 보여주는 목업 */
.chat-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}

.chat-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.redacted {
  display: inline-block;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: -1px;
  background: #000;
  color: #000;
  border-radius: 3px;
  padding: 0 2px;
  user-select: none;
}

.chat-mock-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.term-log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}

.log-line {
  margin: 0;
  color: var(--ink);
}

.log-line.is-sys {
  color: var(--muted);
  font-size: 12px;
}

.log-line.is-user {
  color: var(--accent);
}

.prompt {
  display: inline-block;
  font-weight: 700;
  margin-right: 6px;
}

.tag {
  display: inline-block;
  font-weight: 700;
  margin-right: 6px;
}

.tag-ai {
  color: var(--muted);
  font-weight: 400;
}

.tag-sys {
  color: var(--muted);
  font-weight: 400;
}

.mock-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 20px 0 0;
}

/* 문의·계정 삭제 폼 */
.contact-card-form {
  text-align: left;
}

.support-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.support-form input,
.support-form select,
.support-form textarea {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  width: 100%;
}

.support-form textarea {
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.support-form button {
  justify-self: start;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 10px 24px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.support-form button::before {
  content: "[ ";
}

.support-form button::after {
  content: " ]";
}

.support-form button:hover {
  background: rgb(232 178 58 / 12%);
}

.support-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#form-status {
  font-size: 14px;
  margin: 0;
  min-height: 20px;
}

#form-status[data-state="ok"] {
  color: var(--accent);
}

#form-status[data-state="error"] {
  color: var(--danger);
}

.form-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 14px;
}

/* 언어 전환 */
.lang-switch a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
