:root {
  --brand: #12b5a6;
  --brand-dark: #0d9488;
  --brand-soft: #e6f8f6;
  --ink: #14181f;
  --ink-2: #4a5360;
  --line: #e5e8ec;
  --bg: #ffffff;
  --bg-alt: #f6f8f7;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(10, 40, 25, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-soft: #0e2a28;
    --ink: #f1f4f2;
    --ink-2: #aab3ad;
    --line: #26302a;
    --bg: #0d1210;
    --bg-alt: #121a16;
    --card: #161f1a;
    --shadow: 0 8px 30px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.alt { background: var(--bg-alt); }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.logo i {
  width: 28px; height: 28px; border-radius: 8px; background: var(--brand);
  display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 900; font-size: .95rem;
}
.menu { display: flex; align-items: center; gap: 28px; font-size: .95rem; color: var(--ink-2); }
.menu a:hover { color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  background: var(--brand); color: #fff; border: 2px solid var(--brand);
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn.sm { padding: 8px 16px; font-size: .88rem; }
.toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { padding: 96px 0 80px; background:
  radial-gradient(900px 400px at 85% -10%, var(--brand-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: .85rem; margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) { .badge { color: var(--brand); } }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.25; letter-spacing: -.02em; font-weight: 800; }
h1 em { font-style: normal; color: var(--brand); }
.lead { margin: 22px 0 32px; font-size: 1.12rem; color: var(--ink-2); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.stats b { display: block; font-size: 1.7rem; color: var(--brand); line-height: 1.2; }
.stats span { font-size: .88rem; color: var(--ink-2); }

.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 24px;
}
.mock-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.search {
  display: flex; align-items: center; gap: 10px; border: 2px solid var(--brand);
  border-radius: 999px; padding: 10px 18px; font-weight: 600; margin-bottom: 16px;
}
.search i { margin-left: auto; color: var(--brand); font-style: normal; }
.ad { padding: 14px 0; border-top: 1px solid var(--line); }
.ad small { display: inline-block; font-size: .7rem; font-weight: 700; color: #fff; background: var(--brand); padding: 1px 7px; border-radius: 4px; margin-right: 6px; }
.ad strong { display: block; margin-top: 4px; }
.ad p { font-size: .88rem; color: var(--ink-2); }
.ad.dim strong, .ad.dim p { opacity: .5; }

/* Section heads */
.head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.head .tag { color: var(--brand); font-weight: 800; font-size: .88rem; letter-spacing: .08em; }
.head h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.35; margin: 8px 0 12px; letter-spacing: -.01em; }
.head p { color: var(--ink-2); }

/* Cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft);
  display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .95rem; }
.card ul { margin-top: 14px; list-style: none; font-size: .9rem; color: var(--ink-2); }
.card li { padding-left: 20px; position: relative; margin-bottom: 4px; }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s);
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--ink-2); }

/* Tips */
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tip { display: flex; gap: 16px; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tip b { color: var(--brand); font-size: 1.5rem; line-height: 1; }
.tip h3 { font-size: 1.05rem; margin-bottom: 4px; }
.tip p { font-size: .93rem; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 18px; color: var(--ink-2); font-size: .95rem; }

/* CTA band */
.band {
  background: linear-gradient(135deg, var(--brand), #0d9488); color: #fff;
  border-radius: 28px; padding: 56px 32px; text-align: center;
}
.band h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 10px; }
.band p { opacity: .92; margin-bottom: 26px; }
.band .btn { background: #fff; color: var(--brand-dark); border-color: #fff; }

footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; text-align: center; }
footer p + p { margin-top: 6px; }

/* Tablet */
@media (max-width: 960px) {
  section { padding: 68px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile */
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 56px 0 48px; }
  .toggle { display: block; }
  .menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; }
  .grid3, .steps, .tips { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .cta .btn { flex: 1 1 100%; }
  .band { padding: 40px 20px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Contact form */
.contact { max-width: 680px; margin: 0 auto; display: grid; gap: 18px; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.contact .opt { font-weight: 400; color: var(--ink-2); }
.contact input, .contact select, .contact textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.contact textarea { resize: vertical; }
.contact input:focus, .contact select:focus, .contact textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.contact .btn { cursor: pointer; justify-self: start; font: inherit; font-weight: 700; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) {
  .contact .row { grid-template-columns: 1fr; }
  .contact .btn { justify-self: stretch; }
}

/* ===== Blog: list ===== */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand); }
.thumb { position: relative; height: 170px; display: grid; place-items: center; font-size: 4rem; overflow: hidden; }
.thumb::before, .thumb::after, .post-hero::before, .post-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); }
.thumb::before { width: 220px; height: 220px; right: -60px; top: -90px; }
.thumb::after { width: 140px; height: 140px; left: -40px; bottom: -70px; }
.c1 { background: linear-gradient(135deg, #12b5a6, #0b6e8a); }
.c2 { background: linear-gradient(135deg, #3b82f6, #12b5a6); }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.2rem; line-height: 1.4; margin-bottom: 8px; }
.post-card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 16px; }
.post-card .more { margin-top: auto; color: var(--brand-dark); font-weight: 700; font-size: .92rem; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: var(--ink-2); margin-bottom: 10px; }
.pill { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; padding: 3px 12px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .post-card .more, .pill { color: var(--brand); } }

/* ===== Blog: article page ===== */
.post-hero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 90px; }
.post-hero::before { width: 520px; height: 520px; right: -140px; top: -220px; }
.post-hero::after { width: 300px; height: 300px; left: -100px; bottom: -160px; }
.narrow { max-width: 780px; }
.post-hero .wrap { position: relative; z-index: 1; }
.post-hero .back a { color: rgba(255,255,255,.85); font-weight: 600; font-size: .92rem; }
.post-hero .back a:hover { color: #fff; }
.post-hero .post-meta { color: rgba(255,255,255,.85); margin-top: 28px; }
.post-hero .pill { background: rgba(255,255,255,.2); color: #fff; }
.post-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.25; margin: 6px 0 16px; }
.post-hero .lede { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 640px; }
.post-hero .art { position: absolute; z-index: 1; right: max(24px, calc(50% - 540px)); bottom: 38px; font-size: 5.5rem; line-height: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: .9rem; color: rgba(255,255,255,.9); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; }

.article { max-width: 780px; margin: -48px auto 0; position: relative; z-index: 2; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 44px 44px 36px; }
.article > p, .article li { font-size: 1.05rem; line-height: 1.85; }
.article > p { margin-bottom: 16px; color: var(--ink); }
.article h2 { font-size: 1.55rem; line-height: 1.35; margin: 44px 0 14px; letter-spacing: -.01em; }
.article h2 .num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 1rem; vertical-align: 3px; }
.article h3 { font-size: 1.12rem; margin-bottom: 6px; }

.tldr { background: var(--brand-soft); border-radius: 16px; padding: 22px 26px; margin: 0 0 8px; }
.tldr b { display: block; color: var(--brand-dark); font-size: .8rem; letter-spacing: .1em; margin-bottom: 8px; }
.tldr ul { list-style: none; }
.tldr li { padding-left: 26px; position: relative; margin-bottom: 6px; font-size: 1rem; }
.tldr li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-dark); font-weight: 800; }
@media (prefers-color-scheme: dark) { .tldr b, .tldr li::before { color: var(--brand); } }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; background: var(--bg-alt); }
.tile .ic { font-size: 1.7rem; display: block; margin-bottom: 8px; }
.tile h3 { font-size: 1.02rem; }
.tile p { font-size: .92rem; color: var(--ink-2); line-height: 1.6; }
.tile .eg { margin-top: 10px; font-size: .82rem; font-weight: 700; color: var(--brand-dark); }
@media (prefers-color-scheme: dark) { .tile .eg { color: var(--brand); } }

.pullquote { margin: 24px 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--brand); font-size: 1.2rem; font-weight: 700; line-height: 1.55; }

.dd { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.dd > div { border-radius: 16px; padding: 20px 22px; border: 1px solid var(--line); }
.dd h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dd ul { list-style: none; }
.dd li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: .98rem !important; line-height: 1.6 !important; }
.dd .do { background: var(--brand-soft); border-color: transparent; }
.dd .do li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--brand-dark); }
.dd .dont { background: #fdeeee; border-color: transparent; }
.dd .dont li::before { content: "✕"; position: absolute; left: 0; font-weight: 800; color: #d93b3b; }
@media (prefers-color-scheme: dark) { .dd .dont { background: #2a1517; } .dd .do li::before { color: var(--brand); } }

.rules { list-style: none; margin: 16px 0; counter-reset: r; }
.rules li { counter-increment: r; position: relative; padding: 14px 16px 14px 56px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-alt); font-size: 1rem !important; line-height: 1.65 !important; }
.rules li::before { content: counter(r); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: #d93b3b; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.rules.ok li::before { background: var(--brand); }
.rules small { display: block; margin-top: 4px; color: var(--ink-2); font-size: .88rem; }

.callout { display: flex; gap: 14px; margin: 22px 0; padding: 18px 20px; border-radius: 16px; background: var(--bg-alt); border: 1px solid var(--line); }
.callout .ic { font-size: 1.5rem; line-height: 1.4; }
.callout p { font-size: .98rem; line-height: 1.7; margin: 0; color: var(--ink-2); }
.callout b { color: var(--ink); }

.checklist { margin-top: 40px; padding: 26px 28px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), #0b6e8a); color: #fff; }
.checklist h2 { margin: 0 0 12px !important; font-size: 1.25rem; }
.checklist ul { list-style: none; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 8px; font-size: 1rem !important; line-height: 1.6 !important; }
.checklist li::before { content: "☑"; position: absolute; left: 0; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 700; }
.post-nav a { color: var(--brand-dark); }
@media (prefers-color-scheme: dark) { .post-nav a { color: var(--brand); } }

@media (max-width: 760px) {
  .post-hero { padding: 44px 0 76px; }
  .post-hero .art { display: none; }
  .article { margin: -40px 12px 0; padding: 28px 20px 24px; border-radius: 20px; }
  .tiles, .dd { grid-template-columns: 1fr; }
}

/* Post CTA */
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 26px 28px; border-radius: 18px; background: var(--brand-soft); border: 1px solid var(--line); }
.post-cta h2 { margin: 0 0 4px !important; font-size: 1.25rem; }
.post-cta p { margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.post-cta .btn { white-space: nowrap; }
@media (max-width: 760px) { .post-cta { flex-direction: column; align-items: stretch; text-align: center; } }

/* Shared partial placeholders (avoid layout jump while loading) */
#site-header { min-height: 65px; }
