/* Visual language follows 1win: graphite dark UI, blue active accents, green sign-up buttons, soft 12px corners */
:root {
  --bg: #121214;
  --surface: #1b1b1f;
  --surface-2: #232329;
  --line: #2e2e36;
  --header: #17171a;
  --footer: #0e0e10;
  --text: #f3f5f9;
  --muted: #a6aab6;
  --accent: #0f8a3b;
  --accent-hover: #13a346;
  --on-accent: #ffffff;
  --blue: #1f6bff;
  --blue-soft: #6aa3ff;
  --blue-bg: rgba(31, 107, 255, 0.14);
  --good: #3ddc84;
  --bad: #ff7a7a;
  --radius: 12px;
  --radius-sm: 8px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-logo: "Trebuchet MS", Verdana, "Noto Sans KR", sans-serif;
  --pad: max(16px, calc((100% - 1120px) / 2));
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-soft); }
a:hover { color: #9cc2ff; }

h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; margin-bottom: 20px; }
h3 { font-size: 19px; font-weight: 700; }

p { margin: 0 0 14px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn-outline { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); color: #ffffff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--pad);
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.logo { display: block; line-height: 0; }
.logo img { width: 190px; height: 40px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { background: var(--blue-bg); color: var(--blue-soft); }
.site-nav .btn { margin-left: 10px; min-height: 42px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: #ffffff; }

/* Breadcrumbs */
.crumbs { padding: 14px var(--pad); background: var(--bg); font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }

/* Sections */
main > section { padding: 52px var(--pad); border-top: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 760px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: repeat(5, auto);
  column-gap: 48px;
  align-content: center;
  background: radial-gradient(900px 420px at 90% 0%, rgba(31, 107, 255, 0.22), transparent 70%), linear-gradient(180deg, #17171c 0%, #121214 100%);
  border-top: 0;
}
.hero > * { grid-column: 1; }
.badge {
  justify-self: start;
  margin-bottom: 16px;
  padding: 4px 12px;
  background: var(--blue-bg);
  border: 1px solid rgba(31, 107, 255, 0.4);
  border-radius: 999px;
  color: var(--blue-soft);
  font-size: 14px;
  font-weight: 600;
}
.hero h1 { margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 18px; }

.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
}
.promo-code {
  padding: 6px 14px;
  background: var(--surface);
  border: 2px dashed var(--blue);
  border-radius: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}
.btn-copy { min-height: 40px; padding: 0 18px; }

.stats {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats li {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
}
.stat-num { display: block; color: #ffffff; font-size: 28px; font-weight: 800; line-height: 1.2; }
.stat-label { display: block; color: var(--muted); font-size: 15px; }

/* Intro */
.intro { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; gap: 12px 40px; align-items: start; }
.intro p { grid-column: 1; margin: 0; }
.intro img {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Table of contents */
.toc { padding-top: 28px; padding-bottom: 28px; }
.toc h2 { font-size: 18px; margin-bottom: 14px; }
.toc ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.toc a {
  display: block;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.toc a:hover { background: var(--blue); border-color: var(--blue); color: #ffffff; }

/* Offers */
.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.offer {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-areas: "icon title" "icon text" "icon cta";
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
  padding: 20px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.offer img {
  grid-area: icon;
  width: 72px;
  height: 72px;
  padding: 12px;
  background: var(--blue-bg);
  border-radius: var(--radius);
}
.offer h3 { grid-area: title; }
.offer p { grid-area: text; margin: 0 0 8px; color: var(--muted); }
.offer .btn { grid-area: cta; justify-self: start; }

.code { color: var(--blue-soft); font-weight: 800; }

/* Cards, grids */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols > h2 { grid-column: 1 / -1; margin-bottom: 4px; }
.cols > .section-lead { grid-column: 1 / -1; margin: 0 0 4px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-3 + p, .cols + p { margin-top: 18px; }
.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card ul { margin-bottom: 0; color: var(--muted); }
.card strong { color: var(--text); }
.card li { margin-bottom: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
}

/* Pros and cons */
.pros h3 { color: var(--good); }
.cons h3 { color: var(--bad); }

/* Notice */
.note {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--blue-bg);
  border: 1px solid rgba(31, 107, 255, 0.35);
  border-radius: var(--radius);
  color: var(--text);
}
.note strong { color: var(--blue-soft); }

/* Steps and tables */
.steps { padding-left: 24px; }
.steps li { margin-bottom: 8px; padding-left: 4px; }
.steps li::marker { color: var(--blue-soft); font-weight: 800; }

.start h3, .sub h3 { margin: 28px 0 12px; }

table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { width: 32%; color: var(--blue-soft); font-weight: 700; }
thead th { width: auto; background: var(--surface-2); color: #ffffff; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* FAQ */
details {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
details[open] { border-color: rgba(31, 107, 255, 0.5); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue-soft); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 20px 16px; color: var(--muted); }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1.2fr;
  gap: 32px;
  padding: 40px var(--pad) 24px;
  background: var(--footer);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.site-footer p { margin: 0 0 10px; }
.col-title { color: #ffffff; font-weight: 800; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--blue-soft); }
.age {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border: 2px solid var(--blue);
  border-radius: var(--radius-sm);
  color: var(--blue-soft);
  font-weight: 800;
}
.copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }

.sr-copy { position: fixed; left: -9999px; top: 0; }

/* Author and editors */
.byline { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.byline img { width: 44px; height: 44px; border: 2px solid var(--blue); border-radius: 50%; object-fit: cover; }
.byline strong { color: var(--text); }

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.author-card img { width: 120px; height: 120px; flex: none; border-radius: var(--radius); object-fit: cover; }
.author-name { margin: 0 0 2px; font-size: 18px; font-weight: 800; }
.author-role { margin: 0 0 10px; color: var(--blue-soft); font-weight: 600; }
.author-card p:last-child, .editor-card p:last-child { margin-bottom: 0; color: var(--muted); }

.editor-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.editor-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.editor-card img { width: 84px; height: 84px; margin-bottom: 12px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }

/* Sticky button (phones only) */
a.sticky-cta { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: var(--header);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 14px; }
  .site-nav .btn { margin: 8px 0 0; }

  .hero { grid-template-columns: 1fr; grid-template-rows: none; }
  .stats { grid-column: 1; grid-row: auto; margin-top: 28px; }

  .intro { grid-template-columns: 1fr; }
  .intro img { grid-column: 1; grid-row: auto; }

  .offers, .cols { grid-template-columns: 1fr; }
  .grid-3, .editor-list { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  a.sticky-cta {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 560px) {
  main > section { padding-top: 36px; padding-bottom: 36px; }
  .offer { grid-template-columns: 56px 1fr; column-gap: 12px; padding: 16px; }
  .offer img { width: 56px; height: 56px; padding: 8px; }
  .site-footer { grid-template-columns: 1fr; }
  th { width: 38%; }
  th, td { padding: 10px; }
  .author-card { flex-direction: column; }
}
