@import url('/curated-fonts.css');

:root {
  color-scheme: light only;
  --selection-bg: rgba(24, 24, 27, 0.16);
  --selection-text: rgb(24, 24, 27);
  --theme-page: #f4f4f5;
  --theme-shell: #ffffff;
  --theme-surface: #ffffff;
  --theme-soft: #fafafa;
  --border-dotted: #d4d4d8;
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;
  --header-bg: rgba(255, 255, 255, 0.75);
  --header-border: #e4e4e7;
  --footer-bg: #fafafa;
  --btn-primary-bg: #18181b;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #3f3f46;
  --btn-secondary-border: #e4e4e7;
  --link-underline: rgba(161, 161, 170, 0.7);
}

* {
  box-sizing: border-box;
}

html,
html.guide-light {
  letter-spacing: 0;
  scrollbar-gutter: stable;
  color-scheme: light;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  margin: 0;
  font-family: 'Snapdeck Sans', Satoshi, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--theme-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body.lang-ko {
  font-family: 'Snapdeck Sans', 'Noto Sans KR', Satoshi, system-ui, -apple-system, sans-serif;
}

::selection {
  background-color: var(--selection-bg);
  color: var(--selection-text);
  text-shadow: none;
}

::-moz-selection {
  background-color: var(--selection-bg);
  color: var(--selection-text);
  text-shadow: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.guide-page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--theme-page);
  color: var(--text-primary);
}

.guide-shell {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--theme-shell);
  border-left: 1px dotted var(--border-dotted);
  border-right: 1px dotted var(--border-dotted);
}

.guide-announcement {
  width: 100%;
  border-bottom: 1px dotted var(--border-dotted);
  background: #f4f4f5;
}

.guide-announcement p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.625rem 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
}

.guide-announcement span {
  flex: 0 0 auto;
  color: var(--text-faint);
}

.guide-announcement a {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.guide-announcement a:hover {
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .guide-announcement p {
    font-size: 0.8125rem;
  }
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  font-family: 'Snapdeck Sans', Satoshi, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  backdrop-filter: blur(12px);
}

.guide-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.5rem 1rem;
}

@media (min-width: 768px) {
  .guide-header-inner {
    gap: 2rem;
    min-height: 3.5rem;
    padding: 0.625rem 1.5rem;
  }
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.75rem;
  min-width: 0;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.guide-brand:hover {
  opacity: 0.8;
}

.guide-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .guide-brand img {
    width: 32px;
    height: 32px;
  }
}

.guide-brand span {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .guide-brand span {
    font-size: 1.5rem;
  }
}

.guide-nav {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
  margin-left: auto;
  padding-bottom: 1px;
  overflow-x: auto;
  scrollbar-width: none;
}

.guide-nav::-webkit-scrollbar {
  display: none;
}

.guide-nav a {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  padding: 0.25rem 0.125rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 transparent;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.guide-nav a:hover,
.guide-nav a.is-active {
  color: var(--text-primary);
}

.guide-nav a.is-active::before {
  position: absolute;
  z-index: -1;
  top: 44%;
  left: -0.25rem;
  width: calc(100% + 0.5rem);
  height: max(46%, 11px);
  border-radius: 2px;
  background: rgba(253, 224, 71, 0.9);
  box-shadow: 0 1px 0 rgba(250, 204, 21, 0.35);
  content: '';
  transform: skewX(-6deg);
}

.guide-tab-label {
  transition: font-weight 0.2s ease;
}

.guide-nav a.is-active .guide-tab-label {
  font-weight: 500;
}

.guide-tab-count {
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.guide-nav a.is-active .guide-tab-count {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .guide-nav {
    gap: 2rem;
  }

  .guide-nav a {
    font-size: 0.875rem;
  }
}

@media (max-width: 767.98px) {
  .guide-nav {
    width: auto;
    margin-left: auto;
  }

  .guide-nav a {
    font-size: 0.8125rem;
  }

  .guide-nav a.mobile-hidden {
    display: none;
  }
}

.guide-main {
  flex: 1;
  background: var(--theme-surface);
}

.guide-content {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
}

@media (min-width: 768px) {
  .guide-content {
    padding: 3rem 1.5rem 2.5rem;
  }
}

.guide-intro h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

body.lang-ko .guide-intro h1 {
  word-break: keep-all;
}

.guide-lead {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

body.lang-ko .guide-lead {
  word-break: keep-all;
}

.guide-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.guide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  transition: background-color 0.2s ease;
}

.guide-cta:hover {
  background: var(--btn-primary-hover);
}

.guide-cta-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--btn-secondary-border);
}

.guide-cta-secondary:hover {
  background: var(--theme-soft);
}

.guide-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.guide-block {
  padding: 1rem;
  border-radius: 2px;
  background: var(--theme-soft);
}

.guide-block h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.guide-block-intro {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

body.lang-ko .guide-block-intro {
  word-break: keep-all;
}

.guide-block ul,
.guide-block ol {
  margin: 0.625rem 0 0;
  padding-left: 1.25rem;
}

.guide-block li {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.guide-block li + li {
  margin-top: 0.5rem;
}

body.lang-ko .guide-block li {
  word-break: keep-all;
}

.guide-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dotted var(--border-dotted);
}

.guide-related h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.guide-related nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.guide-related a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.guide-related a:hover {
  color: var(--text-primary);
}

.guide-footer {
  margin-top: auto;
  width: 100%;
  padding: 3.5rem 1rem 0;
  background: var(--footer-bg);
}

@media (min-width: 768px) {
  .guide-footer {
    padding: 4rem 2rem 0;
  }
}

.guide-footer-note {
  max-width: 48rem;
  margin: 0 auto;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

body.lang-ko .guide-footer-note {
  word-break: keep-all;
}

.guide-footer-grid {
  display: grid;
  gap: 3rem;
  max-width: 72rem;
  margin: 2rem auto 0;
}

@media (min-width: 640px) {
  .guide-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .guide-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.guide-footer-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.guide-footer-group nav {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.guide-footer-group nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.guide-footer-group nav a:hover {
  color: var(--text-primary);
}

.guide-footer-copy {
  max-width: 64rem;
  margin: 3.5rem auto 0;
  padding: 2rem 0;
  border-top: 1px dotted var(--border-dotted);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@font-face {
  font-family: 'Gmarket Sans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gmarket Sans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jalnan';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/JalnanOTF00.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.guide-examples {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dotted var(--border-dotted);
}

.guide-examples-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.guide-examples-header p {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

body.lang-ko .guide-examples-header p {
  word-break: keep-all;
}

.guide-examples-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.guide-example {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--header-border);
  border-radius: 4px;
  background: #fff;
}

.guide-example-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.guide-example-caption {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.guide-example-body {
  margin-top: 0.875rem;
  padding: 1rem;
  border-radius: 4px;
  background: var(--theme-soft);
  border: 1px solid var(--header-border);
}

.guide-example-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

body.lang-ko .guide-example-note {
  word-break: keep-all;
}

.guide-preview-text {
  display: block;
  color: var(--text-primary);
}

body.lang-ko .guide-preview-text {
  word-break: keep-all;
}

.guide-preview-gap-xs {
  margin-top: 0.25rem;
}

.guide-preview-gap-sm {
  margin-top: 0.5rem;
}

.guide-preview-gap-md {
  margin-top: 0.75rem;
}

.guide-preview-spec {
  margin: 0.75rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.guide-preview-meta-label {
  color: var(--text-faint);
}

.guide-preview-pair .guide-preview-text:first-child {
  margin-top: 0;
}

.guide-preview-compare {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .guide-preview-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.guide-preview-compare-col {
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--header-border);
  background: #fff;
}

.guide-preview-compare-good {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.guide-preview-compare-bad {
  border-color: #fecaca;
  background: #fef2f2;
}

.guide-preview-compare-tag {
  margin: 0 0 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.guide-preview-compare-label {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.guide-preview-ui-card-inner {
  padding: 0.875rem;
  border-radius: 4px;
  border: 1px solid var(--header-border);
  background: #fff;
}

.guide-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4375rem 0.875rem;
  border-radius: 4px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.guide-preview-button-block {
  display: flex;
  width: 100%;
  margin-top: 0.75rem;
}

.guide-preview-dashboard {
  padding: 0.875rem;
  border-radius: 4px;
  border: 1px solid var(--header-border);
  background: #fff;
}

.guide-preview-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.guide-preview-dashboard-top .guide-preview-text {
  display: inline;
}

.guide-preview-dashboard-stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-top: 0.5rem;
}

.guide-preview-stat-label .guide-preview-text,
.guide-preview-stat-value .guide-preview-text {
  display: inline;
}

.guide-preview-price {
  padding: 0.875rem;
  border-radius: 4px;
  border: 1px solid var(--header-border);
  background: #fff;
}

.guide-preview-price-features {
  margin: 0.75rem 0 0;
  padding-left: 1.125rem;
}

.guide-preview-price-features li {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.guide-preview-price-features li + li {
  margin-top: 0.375rem;
}

.guide-preview-ppt-slide {
  padding: 1.25rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--header-border);
  background: #fff;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
}

.guide-preview-ppt-bullets {
  margin: 0.75rem 0 0;
  padding-left: 1.125rem;
  flex: 1;
}

.guide-preview-ppt-bullets li {
  line-height: 1.55;
}

.guide-preview-ppt-bullets li + li {
  margin-top: 0.375rem;
}

.guide-preview-ppt-footnote {
  margin: auto 0 0;
}

.guide-preview-ppt-footnote .guide-preview-text {
  display: inline;
}

.guide-preview-scale-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.375rem 0;
}

.guide-preview-scale-row + .guide-preview-scale-row {
  border-top: 1px dashed var(--header-border);
}

.guide-preview-scale-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.guide-preview-code {
  margin: 0;
  padding: 0.875rem;
  border-radius: 4px;
  border: 1px solid var(--header-border);
  background: #18181b;
  overflow-x: auto;
}

.guide-preview-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: #e4e4e7;
  white-space: pre;
}

.guide-preview-table-wrap {
  overflow-x: auto;
}

.guide-preview-table {
  width: 100%;
  border-collapse: collapse;
}

.guide-preview-table th,
.guide-preview-table td {
  padding: 0.5rem 0.625rem;
  text-align: left;
  border-bottom: 1px solid var(--header-border);
}

.guide-preview-table tbody tr:last-child td {
  border-bottom: 0;
}
