* {
  box-sizing: border-box;
}

:root {
  --bayleaf-green: #1f4d3a;
  --bayleaf-cream: #f4f1ea;
  --text: #152018;
  --muted: #4f5a52;
  --border: #cfd8d2;
  --surface: #ffffff;
  --danger: #b00020;
  --success: #19693a;
  --warning: #8a6300;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bayleaf-cream);
  color: var(--text);
}

a {
  color: var(--bayleaf-green);
}

.container {
  width: min(1080px, 100% - 32px);
  margin: 0 auto;
}

.section {
  padding: 48px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--bayleaf-green);
  border-color: var(--bayleaf-green);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  border-color: var(--bayleaf-green);
  color: var(--bayleaf-green);
}

.btn-small {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.badge-green,
.badge-yellow,
.badge-red {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-green {
  background: #e2f4e8;
  color: var(--success);
}

.badge-yellow {
  background: #fff4d7;
  color: var(--warning);
}

.badge-red {
  background: #ffe4e7;
  color: #a2192f;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-logo {
  color: var(--bayleaf-green);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover {
  text-decoration: underline;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-email {
  font-size: 0.8rem;
  color: var(--muted);
  display: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 24px 0;
  margin-top: 40px;
}

.site-footer p {
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  padding: 72px 0 40px;
}

.hero h1 {
  margin: 0 0 12px;
  color: var(--bayleaf-green);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.list-grid,
.steps-grid,
.faq-grid,
.articles-grid {
  display: grid;
  gap: 14px;
}

.list-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.steps-grid,
.faq-grid,
.articles-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.demo-stat {
  margin: 6px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
}

.demo-stat:last-of-type {
  border-bottom: 0;
}

.cta-box {
  background: #eaf2ed;
  border: 1px solid #b8cdc1;
  border-radius: 12px;
  padding: 20px;
}

.auth-page {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.auth-card h1 {
  margin: 0;
  font-size: 1.4rem;
}

.muted {
  margin: 0;
  color: var(--muted);
}

form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
button {
  border: 1px solid #b8c3bc;
  border-radius: 8px;
  padding: 10px;
  font-size: 1rem;
}

button {
  background: var(--bayleaf-green);
  color: #fff;
  border-color: var(--bayleaf-green);
  font-weight: 700;
}

button:disabled {
  opacity: 0.75;
  cursor: default;
}

.error,
.success,
.info {
  margin: 0;
  font-size: 0.9rem;
}

.error {
  color: var(--danger);
}

.success {
  color: var(--success);
}

.info {
  color: var(--muted);
}

.auth-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-links a {
  color: var(--bayleaf-green);
}

.beta-shell {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}

.beta-topbar {
  min-height: 50px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.beta-title {
  font-weight: 800;
  color: var(--bayleaf-green);
}

.beta-email {
  font-size: 0.86rem;
  color: var(--muted);
}

.beta-frame-wrap {
  flex: 1;
  min-height: 0;
}

.beta-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.article {
  max-width: 760px;
}

.article h1,
.article h2,
.article h3 {
  color: var(--bayleaf-green);
}

.article p,
.article li {
  line-height: 1.55;
}

@media (max-width: 780px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .site-nav,
  .nav-auth {
    width: 100%;
  }

  .nav-auth {
    justify-content: flex-start;
  }
}
