:root {
  --bg: #fbfaf8;
  --fg: #1a1a1a;
  --muted: #5b5b5b;
  --line: #e6e4de;
  --accent: #0f6b4f;
  --accent-2: #0d5c44;
  --accent-soft: #e6f2ec;
  --danger: #b3261e;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.brand .logo { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 14px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14.5px; }
.nav-links a { color: var(--fg); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 9px; padding: 10px 18px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--fg); cursor: pointer;
  transition: all 0.15s ease; text-decoration: none; font-family: var(--font);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; }

/* Hero */
.hero { padding: 84px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.02em; margin: 18px 0; font-weight: 800; }
.hero .sub { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero .badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 5px 13px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Sections */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(24px, 3.5vw, 34px); letter-spacing: -0.015em; margin: 0 0 8px; }
.section .lead { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto 36px; text-align: center; }
.section-head { text-align: center; margin-bottom: 40px; }

/* Cards / grid */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Demo box */
.demo {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 28px; max-width: 760px; margin: 0 auto;
}
.demo label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
.demo textarea, .demo input, .demo select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 15px; font-family: var(--font); background: #fff; color: var(--fg);
}
.demo textarea { min-height: 96px; resize: vertical; }
.demo .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .demo .row { grid-template-columns: 1fr; } }
.output {
  margin-top: 18px; padding: 16px; border-radius: 9px; background: var(--accent-soft);
  white-space: pre-wrap; font-size: 15px; min-height: 60px; display: none;
}
.output.show { display: block; }
.demo-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* Pricing */
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.popular-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 99px;
}
.price { font-size: 40px; font-weight: 800; margin: 10px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.billing-note { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pricing-card ul { list-style: none; padding: 0; margin: 16px 0 20px; font-size: 14.5px; display: grid; gap: 9px; }
.pricing-card li::before { content: "✓  "; color: var(--accent); font-weight: 700; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 10px;
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
.faq details p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0 44px; margin-top: 40px; color: var(--muted); font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* App shell */
.app-body { background: #f5f4f1; min-height: 100vh; }
.app-main { max-width: 860px; margin: 0 auto; padding: 28px 20px 60px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 24px; margin-bottom: 18px; }
.app-card h2 { margin: 0 0 14px; font-size: 19px; }
.status-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.status-pill.gray { background: #efeeea; color: var(--muted); }
.status-pill.warn { background: #fdf3e3; color: #8a5a00; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

.alert { border-radius: 9px; padding: 12px 15px; font-size: 14px; margin-bottom: 14px; }
.alert-info { background: var(--accent-soft); color: var(--accent-2); }
.alert-err { background: #fdecea; color: var(--danger); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt-0 { margin-top: 0; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(0,0,0,0.15); border-top-color: currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
