:root {
  color-scheme: light dark;
  --bg: #f6f4ee;
  --ink: #21232a;
  --muted: #5b5f6b;
  --accent: #2f4fd6;
  --accent-strong: #1d34a0;
  --surface: #ffffff;
  --surface-soft: #ebe7db;
  --line: #dfdccd;
  --shadow: 0 18px 48px rgb(33 35 42 / 10%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1c21;
    --ink: #f1efe6;
    --muted: #a9adb8;
    --accent: #7c8dff;
    --accent-strong: #a4b0ff;
    --surface: #23262c;
    --surface-soft: #2a2d34;
    --line: #383b44;
    --shadow: 0 18px 48px rgb(0 0 0 / 32%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgb(47 79 214 / 12%), transparent 38rem),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.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-weight: 800;
  font-size: 18px;
  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-size: 14px;
  text-decoration: none;
}

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

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

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

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

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

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

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

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

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: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.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;
  box-shadow: var(--shadow);
}

.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-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.principle strong {
  display: block;
  margin-bottom: 4px;
}

.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;
  box-shadow: var(--shadow);
}

.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-soft);
  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-size: 13px;
}

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

/* Breadcrumb — 화면 표시와 BreadcrumbList 스키마를 1:1로 맞춘다. */
.breadcrumb { font-size: 13px; 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-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

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

.msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 13px;
  margin-bottom: 8px;
  font-size: 14px;
}

.msg.user {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg.ai {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.msg.sys {
  max-width: 100%;
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.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(--bg);
  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: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 11px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.support-form button:hover {
  background: var(--accent-strong);
}

.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-strong);
}

#form-status[data-state="error"] {
  color: #c0453a;
}

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

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