@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

/* Design tokens — mirror ui-modern.css */
:root {
  --border: #d5d8dd;
  --border-strong: #bcc2cb;
  --text: #2a2f36;
  --text-soft: #666f7b;
  --accent: #3a7bd5;
  --shadow: 0 4px 12px rgba(38, 45, 56, 0.10);
  --radius: 14px;
}

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

html, body {
  min-height: 100%;
  margin: 0;
  background: linear-gradient(180deg, #f6f7f8 0%, #fafafa 100%);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
em { font-style: italic; }
strong { font-weight: 700; }

/* ─── Top bar ─────────────────────────────────────── */
#topbar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fcfcfd 0%, #f2f3f5 100%);
  box-shadow: 0 2px 10px rgba(35, 40, 49, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 50px;
}

#topbar .logo a {
  font-size: 1.7em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #3a414d;
  text-decoration: none;
}

#topbar .nav-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #edf0f4 100%);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

#topbar .nav-back:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #ffffff 0%, #e3e7ed 100%);
  text-decoration: none;
  color: var(--text);
}

/* ─── Page layout ──────────────────────────────── */
#wrap {
  padding: 32px 16px 48px;
}

#container {
  max-width: 700px;
  margin: 0 auto;
}

/* ─── Section cards ────────────────────────────── */
#content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.section > header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f3;
}

h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

.text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.text p + p { margin-top: 12px; }

.mindix-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: start;
}

.mindix-copy {
  min-width: 0;
}

.mindix-figure {
  margin: 0;
  padding: 12px;
  border: 1px solid #e3e7ed;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
}

.mindix-figure img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto;
}

.mindix-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.text ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 8px;
}

.text li { margin-bottom: 4px; }

.text .feature {
  background: #f0f5fb;
  border: 1px solid #ccdaf0;
  border-radius: 8px;
  padding: 12px 18px;
  text-align: center;
  margin: 14px 0;
}

/* ─── Footer ────────────────────────────────────── */
#footer {
  margin-top: 20px;
  padding: 16px 4px 0;
  border-top: 1px solid var(--border);
}

#copyright {
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.7;
}

#copyright a { color: var(--text-soft); }
#copyright a:hover { color: var(--text); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 600px) {
  #topbar { padding: 0 14px; }
  .section { padding: 18px 16px; border-radius: 10px; }
  #topbar .logo a { font-size: 1.4em; }
}

@media (max-width: 760px) {
  .mindix-intro {
    grid-template-columns: 1fr;
  }

  .mindix-figure {
    max-width: 320px;
    margin: 4px auto 0;
  }
}
