:root {
  --bg: #0f0f12;
  --bg-1: #16161c;
  --bg-2: #1e1e26;
  --bg-3: #2a2a34;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f1f1f5;
  --muted: #a2a2ae;
  --accent: #ff6f61;
  --accent-2: #ffb86b;
  --grad: linear-gradient(135deg, #ff5f6d, #ffc371);
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #f87171;
  --code-bg: #23232c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf9f7;
    --bg-1: #ffffff;
    --bg-2: #f3f1ee;
    --bg-3: #e9e6e1;
    --line: rgba(0, 0, 0, 0.09);
    --text: #1d1b1a;
    --muted: #6b6661;
    --accent: #e24c3d;
    --accent-2: #c96a12;
    --ok: #15803d;
    --warn: #b45309;
    --err: #b91c1c;
    --code-bg: #f1eee9;
    --shadow: 0 10px 30px rgba(60, 40, 20, 0.1);
    color-scheme: light;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, kbd {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.logo {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topbar nav { margin-left: auto; display: flex; gap: 4px; }
.topbar nav a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
}
.topbar nav a.on, .topbar nav a:hover { color: var(--text); background: var(--bg-2); text-decoration: none; }

/* hero */
.hero { padding: 56px 0 32px; }
.hero .eyebrow { color: var(--accent-2); font-weight: 700; font-size: 14px; letter-spacing: 0.4px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.2; margin: 10px 0 14px; letter-spacing: -1px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.primary { background: var(--grad); color: #1a1010; border: 0; }

section { padding: 28px 0; }
h2 { font-size: 25px; margin: 0 0 14px; letter-spacing: -0.4px; line-height: 1.3; }
h3 { font-size: 18px; margin: 24px 0 8px; line-height: 1.4; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
}
.card .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.card h3 { margin: 0 0 6px; font-size: 16.5px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* screenshots */
.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.shots figure { margin: 0; flex: none; width: 210px; scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* figure next to text */
.split { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: start; }
.split img { border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 640px) {
  .split { grid-template-columns: 1fr; }
  .split img { max-width: 240px; margin: 0 auto; }
}

/* flow diagram */
.flow { display: grid; gap: 10px; }
.flow .node {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.flow .node b { display: block; margin-bottom: 4px; }
.flow .node ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.flow .arrow { text-align: center; color: var(--muted); font-size: 13.5px; }
.flow .arrow::before { content: "↓"; display: block; font-size: 18px; color: var(--accent-2); line-height: 1.2; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); font-weight: 700; white-space: nowrap; }
td code, th code { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
table.wide { min-width: 640px; }
tr:last-child td { border-bottom: 0; }

/* steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 12px; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 12px 40px; }
ol.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad);
  color: #1a1010;
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
ul.plain { padding-left: 20px; margin: 0 0 12px; }
ul.plain li { margin-bottom: 4px; }

/* callouts */
.note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  background: var(--bg-1);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0 16px;
  font-size: 15px;
}
.note.warn { border-left-color: var(--warn); }
.note.ok { border-left-color: var(--ok); }
.note b:first-child { display: block; margin-bottom: 2px; }

/* status legend */
.legend { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; font-size: 15px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.chip.ok { color: var(--ok); }
.chip.err { color: var(--err); }
.chip.warn { color: var(--warn); }
.chip.muted { color: var(--muted); }

/* table of contents */
.toc {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  columns: 2 220px;
  column-gap: 24px;
}
.toc a { display: block; padding: 3px 0; color: var(--text); font-size: 15px; }
.toc a span { color: var(--accent-2); font-weight: 700; margin-right: 6px; }

details {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; color: var(--accent-2); font-weight: 800; margin-right: 10px; }
details[open] summary::before { content: "−"; }
details > div { padding-bottom: 12px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .shots { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 36px; }
  .topbar nav a { padding: 6px 9px; }
  th, td { padding: 9px 10px; }
}

/* ---------- MyLoop additions ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; background: none; color: var(--text); }
.logo svg { flex: none; display: block; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo:hover { text-decoration: none; }
.topbar nav { align-items: center; }
.topbar nav a.open { background: var(--grad); color: #1a1010; }
.topbar nav a.open:hover { filter: brightness(1.06); }
.topbar nav a.lang { font-weight: 500; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; align-items: center; }
.hero-grid .phone { border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero .fine { color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .phone { max-width: 240px; margin: 4px auto 0; }
}

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

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plan { background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.plan.pro { border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 19px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.1; }
.plan .price s { font-size: 18px; color: var(--muted); font-weight: 600; margin-left: 8px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 15px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "–"; color: var(--muted); }
.plan .btn { justify-content: center; margin-top: auto; }
.plan .note-line { font-size: 13.5px; color: var(--muted); margin: 0; }

.legal h2 { font-size: 21px; margin-top: 8px; }
.legal h3 { font-size: 17px; }
.legal section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.legal section:last-of-type { border-bottom: 0; }
.legal .summary { background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.legal .summary ul { margin: 0; padding-left: 20px; }
.meta-line { color: var(--muted); font-size: 14px; }
.topbar .wrap { gap: 10px; }
.logo, .topbar nav a { white-space: nowrap; }
.topbar nav a .short { display: none; }
footer .links { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 560px) {
  .topbar nav { gap: 2px; }
  .topbar nav a { padding: 6px 9px; font-size: 14px; }
  .topbar nav a.nav-intro { display: none; }
  .topbar nav a .long { display: none; }
  .topbar nav a .short { display: inline; }
  .logo { font-size: 19px; }
}
.legal table { min-width: 680px; }
.legal td:first-child { white-space: nowrap; font-weight: 600; }
