/* CLIPARY free distribution + optional support. */

:root {
  --bg: #0b0d12;
  --surface: #14171f;
  --surface-2: #1c2030;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ecedef;
  --muted: rgba(236, 237, 239, 0.6);
  --muted-2: rgba(236, 237, 239, 0.4);
  --accent: #a855f7;
  --accent-2: #ec4899;
  --emerald: #10b981;
  --danger: #ef4444;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Pretendard, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-brand {
  font-weight: 700;
  font-size: 17px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.hero {
  text-align: center;
  padding: 72px 24px 48px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s, transform 0.05s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 4px 24px rgba(168, 85, 247, 0.3);
}
.btn-primary:hover { filter: brightness(1.1); text-decoration: none; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 32px 0 56px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature h2 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; }

.pricing {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.06));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price-card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.price-amount {
  font-size: 40px;
  font-weight: 700;
  margin: 8px 0 4px;
}
.price-strike {
  color: var(--muted-2);
  text-decoration: line-through;
  font-size: 14px;
  margin-left: 6px;
}
.price-tag {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}
.price-perks {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.price-perks li {
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
}
.price-perks li::before {
  content: '✓';
  color: var(--emerald);
  font-weight: 700;
  margin-right: 8px;
}

.faq { padding: 48px 0 80px; }
.faq h2 { text-align: center; margin: 0 0 24px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
}
.faq-item h3 { margin: 0 0 6px; font-size: 15px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 14px; }

footer {
  padding: 32px 24px 56px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
footer a { color: var(--muted); }

[hidden] { display: none !important; }
.muted { color: var(--muted); }
.download { padding: 56px 24px; text-align: center; }
.footer-contact { margin-top: 8px; }
.checkout h1 { font-size: 24px; line-height: 1.4; margin: 0 0 16px; }
.checkout p { overflow-wrap: anywhere; }
.btn:disabled { cursor: not-allowed; opacity: 0.65; }
.btn:disabled:active { transform: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.alert-info { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
@media (max-width: 600px) {
  .nav { position: static; flex-wrap: wrap; gap: 12px; }
  .nav-links { flex-wrap: wrap; gap: 8px 16px; }
  .nav-links a { min-height: 36px; display: inline-flex; align-items: center; }
  .hero { padding: 48px 16px 32px; }
  .hero h1 { font-size: 34px; }
  .features { padding: 24px; }
  .checkout { margin: 32px auto; padding: 0 16px; }
  .checkout-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* Buy / success pages */
.checkout {
  max-width: 520px;
  margin: 56px auto;
  padding: 0 24px;
}
.checkout-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}
.checkout label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.checkout input[type='email'] {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
}
.checkout input[type='email']:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
}
.checkout small { color: var(--muted-2); }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin: 16px 0;
}
.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Legal page */
.legal {
  max-width: 720px;
  margin: 56px auto;
  padding: 0 24px 80px;
}
.legal h1 { font-size: 28px; }
.legal h2 { font-size: 18px; margin-top: 28px; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.legal th { background: var(--surface); }
.legal blockquote {
  border-left: 3px solid var(--accent);
  margin: 16px 0;
  padding-left: 14px;
  color: var(--muted);
}

.kakaopay-support { margin: 16px 0; }
.kakaopay-support > summary { width: fit-content; margin: 0 auto; cursor: pointer; }
.kakaopay-support > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Ranked product guide: readable on desktop and narrow screens. */
:root { --guide-muted: #b9bfce; --guide-link: #cba6ff; }
html { scroll-padding-top: 100px; }
body { font-size: 16px; }
a { color: var(--guide-link); }
a:focus-visible { outline: 3px solid var(--guide-link); outline-offset: 5px; }
.nav-links { flex-wrap: wrap; gap: 8px 20px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.hero .eyebrow, .eyebrow { color: var(--guide-link); font-weight: 700; font-size: 14px; letter-spacing: .06em; margin: 0 0 12px; }
.hero-preview { margin: 36px auto 0; max-width: 900px; }
.hero-preview img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); }
.hero-preview figcaption { margin-top: 12px; font-size: 15px; }
.hero p, .section-intro, .story-card p, figcaption, .howto-item li, .usage-note, .muted { color: var(--guide-muted); }
.story-section { padding-top: 48px; padding-bottom: 32px; }
.story-section h2 { font-size: clamp(25px, 4vw, 32px); line-height: 1.35; margin: 0 0 16px; text-wrap: balance; }
.section-intro { margin: 0 0 26px; max-width: 70ch; }
.story-grid, .quick-start { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.story-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.story-card h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.45; text-wrap: balance; }
.story-card p { margin: 0 0 14px; }
.story-card a { display: inline-flex; align-items: center; min-height: 44px; }
.screen-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.screen-grid figure { margin: 0; min-width: 0; }
.screen-grid img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.screen-grid figcaption { margin-top: 12px; font-size: 15px; }
.screen-grid strong { color: var(--text); font-size: 17px; }
.quick-start { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 26px 0 48px; }
.quick-start li { background: var(--surface-2); padding: 22px; border-radius: 14px; line-height: 1.9; }
kbd { font: .9em Consolas, monospace; border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; }
.howto-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 30px; }
.howto-item { border-top: 1px solid var(--line); padding: 12px 0; scroll-margin-top: 110px; }
.howto-item h3 { font-size: 19px; line-height: 1.5; }
.howto-item ol { padding-left: 24px; }
.howto-item li { margin: 8px 0; }
.usage-note { padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; margin-top: 24px; }
.usage-note h3 { color: var(--text); margin-top: 0; }
.usage-note li { margin: 12px 0; }
@media (max-width: 640px) { .nav { align-items: flex-start; gap: 12px; padding: 12px 16px; } .nav-brand { padding-top: 10px; } .nav-links { gap: 0 12px; justify-content: flex-end; } .hero { padding: 48px 0 24px; } .hero h1 { font-size: 38px; } .story-grid,.screen-grid,.howto-grid,.quick-start { grid-template-columns: 1fr; } .story-card { padding: 22px; } .container { padding-left: 20px; padding-right: 20px; } .story-section { padding-top: 32px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
