/* Hallmark · shape: workbench · genre: playful · theme: Hum (by request) · job: try · draw: warm-pixel-art-desktop-companion-09eb·c9068d8d·2026-11-07·r0
 * hero: settled · nav: top-bar · footer: quiet-colophon · imagery: the product · signature: card-stock controls that press down
 * axes: light/rounded-sans/chromatic-yellow · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P9 H9 E9 S9 R9 V9 · weakest: S, tightened vertical rhythm and kept Korean keep-all line breaks */
@import url("./tokens.css");
@import url("./base.css");

*, *::before, *::after {
  box-sizing: border-box;
  word-break: keep-all;
  overflow-wrap: break-word;
}

html {
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Malgun Gothic", var(--font-body), sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-paper);
  color: var(--color-ink);
  line-height: 2.0;
  -webkit-font-smoothing: antialiased;
}

p, li, td, th, dd, blockquote {
  line-height: 2.0;
  margin-top: 0;
  margin-bottom: var(--space-lg);
}

h1, h2, h3, h4 {
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", var(--font-display), sans-serif;
  color: var(--color-ink);
  letter-spacing: var(--tracking-display);
  font-weight: 700;
  margin-top: 0;
}

.site-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-edge);
  padding: var(--space-md) 0;
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
  font-size: var(--text-lg);
  white-space: nowrap;
}

.brand-badge {
  display: inline-block;
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-edge);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-input);
  white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background-color: var(--color-paper-2);
  color: var(--color-ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: transparent;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-edge);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

/* Settled Workbench Hero */
.hero-section {
  padding: var(--space-2xl) 0;
  border-bottom: var(--rule-hair) solid var(--color-edge);
}

.aeo-lead-banner {
  background: var(--color-card);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-stock);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.aeo-lead-banner p {
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-paper-2);
  border: 1px solid var(--color-edge);
  padding: var(--space-2xs) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-ink-2);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: var(--text-display-s);
  line-height: 1.32;
  margin-bottom: var(--space-lg);
}

.hero-lead {
  font-size: var(--text-lead);
  color: var(--color-ink-2);
  margin-bottom: var(--space-lg);
}

.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.press-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-input);
  border: 2px solid var(--color-ink);
  background: transparent;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--color-ink);
  transition: transform var(--dur-micro) var(--ease-snap), box-shadow var(--dur-micro) var(--ease-snap), background-color var(--dur-micro) var(--ease-out);
}

.press-btn:hover {
  background: var(--color-paper-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--color-ink);
}

.press-btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.press-btn:active,
.press-btn.is-active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--color-ink);
}

.press-btn:disabled,
.press-btn[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

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

.four-pillars-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

@media (max-width: 680px) {
  .four-pillars-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar-link {
  display: block;
  text-align: center;
  padding: var(--space-xs) var(--space-sm);
  background: transparent;
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-input);
  color: var(--color-ink);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
  transition: border-color var(--dur-micro), background-color var(--dur-micro);
}

.pillar-link:hover,
.pillar-link:focus-visible {
  background: var(--color-paper-2);
  border-color: var(--color-ink);
}

/* Interactive Pet Workbench Stage */
.workbench-card {
  background: var(--color-card);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-edge);
  margin-bottom: var(--space-md);
}

.pet-status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--color-hill-1);
  color: var(--color-ink);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-edge);
  white-space: nowrap;
}

.stage-screen {
  position: relative;
  background: var(--color-paper-2);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-stock);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.pet-bubble {
  background: var(--color-card);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-stock);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  max-width: 92%;
  text-align: center;
  margin-bottom: var(--space-sm);
  box-shadow: 0 2px 0 var(--color-ink);
}

.pixel-canvas {
  width: 168px;
  height: 168px;
  image-rendering: pixelated;
  cursor: pointer;
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.control-group-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
  display: block;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.action-row .press-btn {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
}

/* Live Chat Box inside Workbench */
.chat-box {
  background: var(--color-paper);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-stock);
  padding: var(--space-md);
}

.chat-log {
  max-height: 168px;
  overflow-y: auto;
  margin-bottom: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.chat-msg {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-input);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: 0;
}

.chat-msg.pet {
  background: var(--color-card);
  border: 1px solid var(--color-edge);
  color: var(--color-ink);
}

.chat-msg.user {
  background: var(--color-sugar);
  color: var(--color-ink);
  align-self: flex-end;
}

.chat-form {
  display: flex;
  gap: var(--space-xs);
}

.chat-input {
  flex: 1;
  padding: var(--space-xs) var(--space-sm);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-input);
  background: var(--color-card);
  color: var(--color-ink);
  font-family: inherit;
  font-size: var(--text-sm);
}

.chat-input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Content Sections */
.content-section {
  padding: var(--space-2xl) 0;
  border-bottom: var(--rule-hair) solid var(--color-edge);
  margin-bottom: var(--space-xl);
}

.section-header {
  max-width: 780px;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: var(--text-section);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

/* Species Showcase Roster */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .roster-grid {
    grid-template-columns: 1fr;
  }
}

.roster-card {
  background: var(--color-card);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.roster-canvas {
  width: 112px;
  height: 112px;
  image-rendering: pixelated;
  margin-bottom: var(--space-sm);
}

/* Clinical Table */
.table-wrap {
  overflow-x: auto;
  background: var(--color-card);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.clinical-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.clinical-table th,
.clinical-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-edge);
}

.clinical-table th {
  background: var(--color-paper-2);
  font-weight: 700;
  color: var(--color-ink);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-stock);
  padding: var(--space-lg);
}

.faq-item summary {
  font-weight: 700;
  font-size: var(--text-md);
  cursor: pointer;
  color: var(--color-ink);
}

.faq-item p {
  margin-top: var(--space-md);
  margin-bottom: 0;
  color: var(--color-ink-2);
}

/* Footer */
.site-footer {
  padding: var(--space-2xl) 0;
  background: var(--color-paper-2);
  border-top: 2px solid var(--color-ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
