/* Junbiku: shared styles for every page */
:root {
  --brand: #0f766e;
  --brand-ink: #115e59;
  --brand-soft: #ccfbf1;
  --brand-tint: #f0fdfa;
  --accent: #f59e0b;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --bg: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a.btn-primary { color: #fff; }
@media (max-width: 640px) { .nav .nav-link { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Type */
h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 16px; }
h2 { font-size: clamp(25px, 3.4vw, 34px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 700; letter-spacing: 0.03em; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head .eyebrow + h2 { margin-top: 12px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }
.tag + h3 { margin-top: 10px; }

/* Layout */
section { padding: 64px 0; }
.soft { background: var(--soft); border-block: 1px solid var(--line); }
.hero { padding: 56px 0 48px; background: linear-gradient(180deg, var(--brand-tint), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.checks li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 6px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-feature { border-color: var(--brand); box-shadow: var(--shadow); }
.card h3 + p { margin-top: 4px; }
.tick-list { list-style: none; padding: 0; margin: 14px 0 18px; }
.tick-list li { position: relative; padding-left: 28px; margin: 8px 0; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
.soon-list { list-style: none; padding: 0; margin: 12px 0 16px; }
.soon-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.soon-list li:last-child { border-bottom: 0; }

/* Pricing */
.price-card { max-width: 520px; margin: 0 auto; text-align: center; }
.price { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 0; line-height: 1.1; }
.price-note { color: var(--muted); margin: 4px 0 18px; }
.price-card .tick-list { text-align: left; display: inline-block; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Spreadsheet mock-ups */
.mock { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; flex: none; }
.mock-top b { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; overflow: hidden; }
.mock-tabs span { padding: 8px 10px; color: var(--muted); }
.mock-tabs .on { color: var(--brand-ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); }
.mock-body { padding: 16px; }
.mock-caption { padding: 0 16px 14px; text-align: center; font-size: 13px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { background: var(--brand-tint); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.kpi small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi strong { font-size: 17px; letter-spacing: -0.01em; }
.kpi strong.good { color: var(--brand); }
.chart { display: flex; align-items: flex-end; justify-content: center; gap: 48px; height: 150px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.chart .col { display: flex; flex-direction: column; align-items: center; height: 100%; }
.chart .pair { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.chart .bar { width: 28px; border-radius: 6px 6px 0 0; }
.chart small { font-size: 12px; color: var(--muted); padding: 6px 0 4px; }
.bar.in { background: var(--brand); }
.bar.out { background: var(--accent); }
.legend { display: flex; gap: 16px; justify-content: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .in { background: var(--brand); }
.legend .out { background: var(--accent); }
.table-scroll { overflow-x: auto; }
.sheet { width: 100%; border-collapse: collapse; font-size: 13px; }
.sheet th { background: var(--brand); color: #fff; font-weight: 700; text-align: left; padding: 8px; white-space: nowrap; }
.sheet th.auto { background: #475569; }
.sheet td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet td.auto { background: #f1f5f9; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip { display: inline-block; min-width: 56px; padding: 3px 8px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 700; }
.chip.ok { background: #dcfce7; color: #166534; }
.chip.part { background: #fef3c7; color: #92400e; }
.chip.no { background: #fee2e2; color: #991b1b; }

/* Articles */
.article { padding: 48px 0 64px; }
.article h1 { font-size: clamp(30px, 4.6vw, 44px); }
.article h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 40px; }
.article h3 { margin-top: 24px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 6px 0; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.summary-box { background: var(--brand-tint); border: 1px solid var(--brand-soft); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.summary-box ol { margin: 8px 0 0; }
.formula { font-weight: 800; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 15px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--soft); font-size: 14px; }
.data-table .num { text-align: right; }
.cta-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px; margin: 36px 0; }
.cta-box h3 { color: #fff; margin-top: 0; }
.cta-box p { color: #cbd5e1; }
.cta-box .btn-primary { background: #fff; color: var(--ink); }
.cta-box .btn-primary:hover { background: var(--brand-soft); }
.post-list { display: grid; gap: 16px; margin-top: 28px; }
.post-card { display: block; text-decoration: none; color: inherit; }
.post-card:hover h3 { color: var(--brand); }

/* Forms */
.form label { display: block; font-weight: 700; margin-bottom: 16px; }
.form input {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; color: var(--ink); background: #fff;
}
.form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form .btn { width: 100%; }
.form-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fee2e2; color: #991b1b; font-size: 15px; }

/* Calculators and message examples in articles */
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.calc-result { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 0; }
.calc-result div { background: var(--brand-tint); border-radius: 12px; padding: 10px 12px; }
.calc-result dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.calc-result dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; }
@media (max-width: 560px) { .calc-grid, .calc-result { grid-template-columns: 1fr; } }
.message { background: var(--soft); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 12px 0; font-size: 15px; }
.message strong { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }

/* Buyer area */
.notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 14px 16px; color: #78350f; font-size: 15px; margin: 20px 0 8px; }
.download { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.article .card { margin-top: 16px; }

/* Footer */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
