@import url('/shared/typography.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fff;
  --fg: #111;
  --accent: #FD6845;
  --accent-light: rgba(253, 104, 69, 0.12);
  --accent-muted: rgba(253, 104, 69, 0.08);
  --accent-soft: rgba(253, 104, 69, 0.07);
  --gray: #888;
  --border: #e8e8e8;
  --card-bg: #f5f5f5;
  --surface: #fafafa;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'NanumSquareRound', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 1.4rem 2.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.sep { color: var(--border); font-size: var(--font-sep); }

.page-name {
  font-size: var(--font-body-plus);
  color: var(--fg);
  font-weight: 700;
}

.header-nav {
  display: flex;
  gap: 0.4rem;
}

.header-nav a {
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--gray);
  text-decoration: none;
  padding: 0.38rem 0.85rem;
  border-radius: 99px;
  transition: background-color 0.1s ease, color 0.1s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.header-nav a:hover,
.header-nav a.active {
  background: var(--fg);
  color: #fff;
}

main {
  flex: 1;
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
  padding: 4rem 2.5rem 5rem;
}

/* ── Landing ── */
.hero { margin-bottom: 3rem; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-sm-plus);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-app {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: contain;
}

.hero h1 {
  font-size: var(--font-hero);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 0.3rem;
  color: var(--fg);
}

.hero-sub {
  font-size: var(--font-base);
  color: var(--gray);
  font-weight: 600;
}

.notion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--card-bg);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-size: var(--font-sm);
  font-weight: 700;
  color: #444;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.notion-badge svg { width: 14px; height: 14px; stroke-width: 1.5; }

.hero-desc {
  font-size: var(--font-content-body);
  color: #6a6a6a;
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 2rem;
}

.text-note {
  margin-top: 1rem;
  font-size: var(--font-sm-plus);
  color: var(--gray);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--font-2xs);
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  background: var(--card-bg);
  color: #555;
}

.pill--accent {
  background: var(--accent-light);
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fg);
  color: #fff;
  font-family: inherit;
  font-size: var(--font-base-sm);
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: 99px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.cta-btn--compact {
  font-size: var(--font-sm);
  padding: 0.45rem 0.95rem;
}

.cta-btn--compact svg {
  width: 14px;
  height: 14px;
}

.cta-btn--outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--fg);
}

.cta-btn--outline:hover { background: var(--card-bg); }

.cta-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #fff;
}

.cta-btn--outline svg {
  color: var(--fg);
}

.coming-soon {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
}

.coming-soon p {
  font-size: var(--font-md-plus);
  color: var(--gray);
  font-weight: 600;
}

/* ── Guide ── */
.page-title {
  font-size: var(--font-content-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  color: var(--fg);
}

.guide-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.guide-nav {
  position: sticky;
  top: 1.5rem;
}

.guide-nav-title {
  font-size: var(--font-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 1rem;
}

.guide-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.guide-nav-close,
.guide-toc-drawer,
.guide-top-btn,
.guide-nav-backdrop {
  display: block;
}

.guide-nav-close[hidden],
.guide-toc-drawer[hidden],
.guide-top-btn[hidden],
.guide-nav-backdrop[hidden] {
  display: none !important;
}

.guide-nav-close {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--gray);
  font-size: var(--font-body-plus);
  line-height: 1;
  cursor: pointer;
}

.guide-toc-drawer {
  display: none;
}

.guide-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.guide-top-btn svg {
  width: 22px;
  height: 22px;
}

.guide-nav-sheet {
  display: none;
}

.guide-nav-sheet ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.guide-nav-sheet a {
  display: block;
  font-size: var(--font-content-caption);
  font-weight: 600;
  color: #666;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}

.guide-nav-sheet a:hover,
.guide-nav-sheet a.active {
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 700;
}

.guide-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.35);
}

body.guide-nav-open {
  overflow: hidden;
}

.guide-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.guide-nav a {
  display: block;
  font-size: var(--font-content-caption);
  font-weight: 600;
  color: #666;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}

.guide-nav a:hover,
.guide-nav a.active {
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 700;
}

.guide-content section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 1.5rem;
}

.guide-content h2 {
  font-size: var(--font-content-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.guide-content h3 {
  font-size: var(--font-content-h3);
  font-weight: 800;
  color: var(--fg);
  margin: 1.6rem 0 0.7rem;
}

.guide-content p {
  font-size: var(--font-content-body);
  color: #555;
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

.guide-content ul,
.guide-content ol {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

.guide-content li {
  font-size: var(--font-content-list);
  color: #555;
  line-height: 1.65;
  margin-bottom: 0.35rem;
}

.guide-content a {
  color: var(--accent);
  text-decoration: none;
}

.guide-content a:hover { text-decoration: underline; }

.guide-content table {
  font-size: var(--font-content-caption);
}

.tip-box {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: var(--font-content-caption);
  color: #555;
  line-height: 1.65;
}

.tip-box strong { color: var(--accent); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.3rem;
}

.feature-card svg {
  width: 22px;
  height: 22px;
  color: var(--fg);
  margin-bottom: 0.7rem;
  stroke-width: 1.6;
}

.feature-card p {
  font-size: var(--font-md-sm);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.feature-card span {
  font-size: var(--font-md);
  color: #777;
  line-height: 1.55;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-md-sm);
  margin: 1rem 0;
}

th {
  background: var(--card-bg);
  color: var(--gray);
  font-weight: 700;
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: #555;
  vertical-align: top;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.flow-step-icon {
  flex-shrink: 0;
  width: 18px;
  margin-top: 0.35rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step-icon svg {
  width: 8px;
  height: 8px;
}

.flow-step-body {
  flex: 1;
  min-width: 0;
}

.flow-step p {
  margin: 0;
  font-size: var(--font-content-caption);
  font-weight: 400;
  color: #555;
  line-height: 1.65;
}

.flow-step p strong {
  font-weight: 700;
  color: var(--fg);
}

.flow-step-note {
  margin-top: 0.55rem;
  font-size: var(--font-md-plus);
  font-weight: 400;
  color: #888;
  line-height: 1.6;
}

.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.pricing-card {
  flex: 1 1 240px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.8rem;
}

.pricing-card.featured {
  background: var(--fg);
  color: #fff;
}

.plan-name {
  font-size: var(--font-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.pricing-card.featured .plan-name { color: rgba(255,255,255,0.55); }

.plan-price {
  font-size: var(--font-price);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.2rem;
}

.plan-period {
  font-size: var(--font-sm);
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.pricing-card.featured .plan-period { color: rgba(255,255,255,0.55); }

.plan-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-features li {
  font-size: var(--font-md);
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-card.featured .plan-features li { color: rgba(255,255,255,0.85); }

.plan-features li::before {
  content: '✓';
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-card.featured .plan-features li::before { color: #fff; }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  font-size: var(--font-content-caption);
  font-weight: 700;
  color: var(--fg);
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.12s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: var(--font-toggle);
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item summary:hover { background: var(--surface); }

.faq-answer {
  padding: 0 1.3rem 1.2rem;
  font-size: var(--font-content-body);
  color: #555;
  line-height: 1.75;
}

.faq-answer p { margin-bottom: 0.6rem; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer a {
  color: var(--accent);
  text-decoration: none;
}

.faq-answer a:hover { text-decoration: underline; }

/* ── Support ── */
.support-intro {
  font-size: var(--font-content-body);
  color: #666;
  line-height: 1.7;
  margin: -0.5rem 0 1.8rem;
  max-width: 560px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  align-items: stretch;
}

.support-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s, border-color 0.12s;
}

a.support-card:hover {
  background: var(--card-bg);
  border-color: #ddd;
}

.support-card--static {
  cursor: default;
}

.support-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
}

.support-card-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.support-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.support-card-body strong {
  font-size: var(--font-content-caption);
  font-weight: 800;
  color: var(--fg);
}

.support-card-body span {
  font-size: var(--font-content-body);
  color: #666;
  line-height: 1.6;
}

.support-card-body a {
  color: var(--accent);
  text-decoration: none;
}

.support-card-body a:hover { text-decoration: underline; }

.support-card-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--gray);
  stroke-width: 2;
}

.support-biz {
  padding: 1.4rem 1.2rem;
  background: var(--card-bg);
  border-radius: 14px;
}

.support-biz h2 {
  font-size: var(--font-sm-plus);
  font-weight: 800;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.support-biz p {
  font-size: var(--font-md-sm);
  color: #666;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.support-biz p:last-child { margin-bottom: 0; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
}

.footer-biz {
  display: none;
}

.footer-bottom {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-bottom p { font-size: var(--font-xs); color: var(--gray); }

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  font-size: var(--font-xs);
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--fg); }

@media (max-width: 820px) {
  .guide-layout { grid-template-columns: 1fr; gap: 2rem; }

  .guide-nav {
    position: static;
    background: var(--surface);
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid var(--border);
  }

  .guide-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }

  .guide-toc-drawer {
    display: block;
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 100;
    transform: translateY(-50%);
    pointer-events: none;
    --guide-drawer-bg: rgba(255, 255, 255, 0.96);
    --guide-handle-bg: rgba(255, 255, 255, 0.72);
  }

  .guide-toc-drawer-track {
    display: flex;
    align-items: stretch;
    pointer-events: auto;
    transform: translateX(calc(100% - 40px));
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
  }

  .guide-toc-handle {
    flex-shrink: 0;
    width: 40px;
    align-self: center;
    min-height: 84px;
    padding: 0.65rem 0;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 14px 0 0 14px;
    background: var(--guide-handle-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--fg);
    cursor: grab;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
  }

  .guide-toc-handle:active {
    cursor: grabbing;
  }

  .guide-toc-handle-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
  }

  .guide-toc-handle-menu {
    width: 16px;
    height: 16px;
  }

  .guide-toc-handle-text {
    font-size: var(--font-handle-label);
    font-weight: 700;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
  }

  .guide-nav-sheet {
    display: block;
    position: static;
    width: min(268px, 74vw);
    height: auto;
    margin: 0;
    padding: 1rem 0.9rem;
    background: var(--guide-drawer-bg);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 16px 0 0 16px;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    align-self: center;
  }

  .guide-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .guide-nav-sheet ul {
    overflow-y: auto;
    max-height: min(70vh, 520px);
  }

  .guide-content section {
    scroll-margin-top: 1.5rem;
  }
}

@media (max-width: 600px) {
  header, main, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  main { padding-top: 3rem; }
  .guide-nav ul { grid-template-columns: 1fr; }
  .header-nav a { font-size: var(--font-sm-plus); padding: 0.38rem 0.75rem; }
}
