:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #5b6472;
  --border: #dbe2ee;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --accent: #155e75;
  --soft: #eef6f5;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(21, 94, 117, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page {
  min-height: 100vh;
  padding: 20px;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.85);
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  color: var(--muted);
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(21, 94, 117, 0.02)),
    var(--panel);
}

.hero-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-weight: 600;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}
.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.hero-side {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.side-card {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(246,247,251,0.92));
  border: 1px solid var(--border);
}

.side-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.section {
  margin-top: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}
.section-header h3 {
  margin: 0;
  font-size: 18px;
}
.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 14px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
}

.tool-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-title {
  margin: 0;
  font-size: 16px;
}

.tool-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tool-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tiny {
  font-size: 12px;
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 12px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}
.check strong {
  display: block;
  font-size: 14px;
}
.check span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.summary-box {
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  color: #334155;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.footer {
  margin: 26px 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.theme-hero {
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(12, 18, 28, 0.22), rgba(12, 18, 28, 0.76)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16), transparent 36%),
    linear-gradient(135deg, #184e77, #0f766e 55%, #0f172a);
}

.theme-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.12) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.12) 75%, transparent 75%, transparent);
  background-size: 28px 28px;
  opacity: 0.22;
  mix-blend-mode: screen;
}

.theme-hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
}

.theme-hero h2 {
  margin: 0;
  font-size: 30px;
}

.theme-hero p {
  color: rgba(255,255,255,0.88);
}

.stack {
  display: grid;
  gap: 12px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-row .btn {
  flex: 1 1 auto;
}

@media (max-width: 960px) {
  .hero,
  .grid-2,
  .grid-3,
  .grid-5 {
    grid-template-columns: 1fr;
  }
  .hero h2 {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .page { padding: 14px; }
  .hero-main, .hero-side, .card { padding: 16px; }
  .hero h2, .theme-hero h2 { font-size: 24px; }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
