/* AnotherPlayer landing — vanilla CSS, framework 0
   developed by external observation only, no decompilation. */

/* ---------- Color tokens (palette 외부 라벨 X) ---------- */
:root {
  --bg-base: #303446;
  --bg-elevated: #292c3c;
  --text-primary: #c6d0f5;
  --text-subtle: #a5adce;
  --text-faint: #838ba7;
  --accent-grad-start: #a6d189;
  --accent-grad-end: #ef9f76;
  --accent-hover: #ef9f76;
  --border-subtle: rgba(65, 69, 89, 0.4);
  --grid-dot: rgba(198, 208, 245, 0.06);
  --cta-text-on-grad: #232634;

  /* 8px grid spacing */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;
  --sp-9: 192px;
}

/* ---------- Geist Sans self-host (static 4 weight, SIL OFL) ---------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/geist-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/geist-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/geist-700.woff2') format('woff2');
}

/* ---------- Reset + base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

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

a:focus-visible {
  outline: 2px solid var(--accent-grad-start);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-4);
}

.nav-brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.2;
}

/* Nav Pricing CTA — primary marketing entry point.
   Download CTA 와 동일한 Evergreen → Peach gradient + dark text 로 강조. */
.nav-pricing {
  font-size: 13px;
  font-weight: 600;
  color: var(--cta-text-on-grad);
  padding: 8px 16px;
  background: linear-gradient(to right, var(--accent-grad-start), var(--accent-grad-end));
  border-radius: 8px;
  transition: filter 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
  text-decoration: none;
}

.nav-pricing:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 159, 118, 0.25);
}

.nav-pricing:focus-visible {
  outline: 2px solid var(--accent-grad-end);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .nav-pricing {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ---------- Layout main ---------- */
main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: var(--sp-6) 0 var(--sp-7);
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-3);
}

.toggle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-subtle);
  line-height: 1;
  margin-top: var(--sp-3);
  text-align: center;
}

.toggle-link {
  color: var(--text-subtle);
  text-decoration: none;
  cursor: pointer;
  transition: color 120ms ease;
}

.toggle-link:hover,
.toggle-link.active {
  color: var(--accent-hover);
}

.toggle-dot {
  margin: 0 var(--sp-1);
  color: var(--text-subtle);
  opacity: 0.6;
}

/* ---------- Pricing cards (M-4b /pricing 카드 비교 layout) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  max-width: 720px;
  width: 100%;
}

.pricing-card {
  min-width: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pricing-card-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(to right, var(--accent-grad-start), var(--accent-grad-end)) border-box;
  box-shadow: 0 8px 24px rgba(239, 159, 118, 0.12);
}

.page-content h2.pricing-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.pricing-tagline {
  font-size: 14px;
  color: var(--text-subtle);
  margin: 0;
}

.pricing-price {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--sp-1) 0;
  line-height: 1;
}

.pricing-price .unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-subtle);
  margin-left: var(--sp-1);
  vertical-align: super;
}

/* Specificity bump — .page-content a (0,2,0) override 회피, dark text 유지 */
.page-content a.pricing-cta {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: filter 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
}

.page-content a.pricing-cta-primary {
  background: linear-gradient(to right, var(--accent-grad-start), var(--accent-grad-end));
  color: var(--cta-text-on-grad);
}

.page-content a.pricing-cta-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 159, 118, 0.25);
  color: var(--cta-text-on-grad);
}

.page-content a.pricing-cta-secondary {
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.page-content a.pricing-cta-secondary .cta-arrow {
  margin-right: var(--sp-1);
  color: var(--accent-hover);
  font-weight: 700;
}

.page-content a.pricing-cta-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-grad-end);
  color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Pricing OS toggle — .page-content a override 차단 (default text-subtle, hover/active Peach) */
.page-content a.toggle-link {
  color: var(--text-subtle);
  text-decoration: none;
  cursor: pointer;
  transition: color 120ms ease;
}

.page-content a.toggle-link:hover,
.page-content a.toggle-link.active {
  color: var(--accent-hover);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-subtle);
  padding-left: var(--sp-3);
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-hover);
  font-weight: 600;
}

.pricing-os-toggle {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-subtle);
  line-height: 1;
  margin: var(--sp-1) 0 0;
  text-align: center;
}

/* /pricing 페이지 nav [Pricing] 버튼 자기참조 hide — build-time body class scope, flash 0 */
.page-pricing .nav-pricing {
  display: none;
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.hero-subhead {
  font-size: clamp(18px, 2.5vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-subtle);
  margin-bottom: var(--sp-5);
}

/* ---------- CTA gradient button ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  justify-content: center;
  max-width: 100%;
  padding: var(--sp-2) var(--sp-4);
  font-size: 18px;
  font-weight: 500;
  color: var(--cta-text-on-grad);
  background: linear-gradient(
    90deg,
    var(--accent-grad-start) 0%,
    var(--accent-grad-end) 100%
  );
  border-radius: 12px;
  transition: transform 200ms ease, filter 200ms ease, box-shadow 200ms ease;
  margin-bottom: var(--sp-3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  color: var(--cta-text-on-grad);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.cta:focus-visible {
  outline: 2px solid var(--accent-grad-end);
  outline-offset: 4px;
}

.cta-arrow {
  font-size: 16px;
  font-weight: 700;
}

/* ---------- Divider ---------- */
.divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: var(--sp-7) auto;
  max-width: 200px;
}

/* ---------- Features ---------- */
.features {
  text-align: center;
  padding: 0 0 var(--sp-7);
}

.features h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
}

.features h2:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-4) var(--sp-4);
  text-align: center;
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: var(--sp-7);
}

footer a {
  color: var(--text-subtle);
}

footer a:hover {
  color: var(--accent-hover);
}

/* ---------- A11y: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Mobile responsive ---------- */
@media (max-width: 600px) {
  .nav {
    padding: var(--sp-2) var(--sp-3);
  }
  .hero {
    padding: var(--sp-6) 0 var(--sp-6);
  }
  .hero-title {
    font-size: 34px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-subhead {
    font-size: 17px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta {
    width: min(100%, 320px);
    padding: var(--sp-2) var(--sp-3);
    font-size: 16px;
  }
  main {
    padding: 0 var(--sp-3);
  }
  .features h2 {
    font-size: 28px;
    margin-bottom: var(--sp-5);
  }
  .divider {
    margin: var(--sp-6) auto;
  }
}

/* M-6b modal — Frappé palette 일관성 */
#buy-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 460px;
  width: 92%;
}
#buy-modal::backdrop {
  background: rgba(35, 38, 52, 0.78);
  backdrop-filter: blur(4px);
}
.modal-card {
  background: #292c3c;
  color: #c6d0f5;
  border: 1px solid #51576d;
  border-radius: 12px;
  padding: 24px 28px;
  font-family: inherit;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.modal-header h2 {
  font-size: 18px;
  margin: 0;
  color: #f4b8e4;
}
.modal-close {
  background: transparent;
  border: none;
  color: #c6d0f5;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}
.step-indicator {
  font-size: 12px;
  color: #a5adce;
  margin: 8px 0 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.modal-step label {
  display: block;
  margin: 10px 0;
  font-size: 14px;
}
.modal-step input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  background: #232634;
  color: #c6d0f5;
  border: 1px solid #51576d;
  border-radius: 6px;
  font: inherit;
}
.modal-step input:focus {
  outline: 2px solid #f4b8e4;
  outline-offset: 1px;
}
.modal-help {
  font-size: 12px;
  color: #a5adce;
  margin: 8px 0;
}
.modal-error {
  color: #e78284;
  font-size: 13px;
  min-height: 18px;
  margin: 8px 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.modal-actions button {
  padding: 9px 18px;
  background: #232634;
  color: #c6d0f5;
  border: 1px solid #51576d;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.modal-actions button[data-action="send-otp"],
.modal-actions button[data-action="verify-otp"],
.modal-actions button[data-action="continue-checkout"] {
  background: linear-gradient(90deg, #a6d189, #ef9f76);
  color: #232634;
  border-color: transparent;
  font-weight: 600;
}
.modal-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#resend-btn {
  display: block;
  margin: 12px 0;
  padding: 6px 12px;
  background: transparent;
  color: #a5adce;
  border: 1px dashed #51576d;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

/* M-4b 4 페이지 공통 layout */
.page {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Geist", -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* policy 페이지 nav — hero .nav 와 스코프 분리 (.page body class 한정) */
.page .nav {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  max-width: unset;
  margin: unset;
  justify-content: flex-start;
}
.page .nav-brand {
  flex: 0 0 auto;
}
.page-content {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-4) var(--sp-6);
  line-height: 1.7;
}
.page-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.page-content h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}
.page-content a {
  color: var(--accent-hover);
  text-decoration: underline;
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-2) 0;
}
.page-content th, .page-content td {
  border: 1px solid var(--border-subtle);
  padding: var(--sp-1) 12px;
  text-align: left;
}
.footer {
  padding: var(--sp-4);
  text-align: center;
  font-size: 14px;
  color: var(--text-subtle);
  border-top: 1px solid var(--border-subtle);
}
.footer a {
  color: var(--text-subtle);
  text-decoration: none;
}
.footer a:hover {
  color: var(--accent-hover);
}
.footer .dot {
  margin: 0 var(--sp-1);
}
.footer .copyright {
  margin-top: var(--sp-2);
  opacity: 0.7;
}

@media (max-width: 600px) {
  .page .nav {
    padding: var(--sp-2) var(--sp-3);
  }
  .page-content {
    padding: 40px var(--sp-3) var(--sp-6);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    margin: var(--sp-5) 0;
  }
  .pricing-card {
    padding: var(--sp-4);
  }
}
