﻿:root {
  --bg: #f6f2e9;
  --paper: #fffdf8;
  --paper-alt: #f1eadf;
  --ink: #1c241f;
  --muted: #667164;
  --line: #dbcfbc;
  --brand: #2f6b49;
  --brand-dark: #244f37;
  --accent: #ae8250;
  --danger: #934d3f;
  --warning: #8b6b29;
  --success: #2f6b49;
  --shadow-sm: 0 10px 24px rgba(28, 36, 31, 0.04);
  --shadow-md: 0 26px 54px rgba(28, 36, 31, 0.08);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    linear-gradient(180deg, rgba(174,130,80,0.05), transparent 220px),
    linear-gradient(180deg, #faf7f1 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 242, 233, 0.95);
  border-bottom: 1px solid rgba(219, 207, 188, 0.8);
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a {
  position: relative;
  padding-bottom: 3px;
}
.nav-links a.active,
.nav-links a:hover { color: var(--brand-dark); }
.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand);
}
.nav-actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 28px rgba(47, 107, 73, 0.18);
}
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
}

.hero,
.page-hero { padding: 80px 0 34px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.panel,
.card,
.form-shell,
.table-shell,
.footer-card,
.plan-card,
.prose-shell,
.matrix-head,
.matrix-cell,
.info-item,
.callout,
.hero-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.panel {
  border-radius: var(--radius-lg);
  padding: 44px;
}
.page-hero .panel { padding: 36px 40px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 107, 73, 0.08);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  font-family: "Aptos Display", "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  margin: 24px 0 18px;
  max-width: 11ch;
}
.page-hero h1 { max-width: none; }
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 62ch;
}
.hero-actions,
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-copy p:last-child { margin-bottom: 0; }
.hero-summary {
  border-radius: 22px;
  padding: 30px;
}
.hero-summary h3 {
  margin: 0 0 14px;
  font-size: 1.42rem;
}
.hero-summary p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}
.hero-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.hero-summary li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.76;
}
.hero-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.stats-grid,
.cards-3,
.cards-2,
.plans-grid,
.account-grid,
.footer-grid,
.plan-matrix,
.info-strip,
.dual-columns {
  display: grid;
  gap: 20px;
}
.stats-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}
.stat-pill {
  padding: 18px 18px 16px;
  border-top: 3px solid var(--brand);
  background: #fbf7ef;
}
.stat-pill strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.stat-pill span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.section { padding: 38px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: 2.2rem;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.78;
}

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2,
.dual-columns { grid-template-columns: repeat(2, 1fr); }
.card {
  border-radius: 20px;
  padding: 28px;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 1.32rem;
}
.card p,
.card li,
.prose-shell p,
.prose-shell li {
  color: var(--muted);
  line-height: 1.78;
  margin: 0;
}
.card-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.card-list li {
  position: relative;
  padding-left: 18px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.prose-shell {
  border-radius: 22px;
  padding: 34px;
}
.prose-shell h3 {
  margin: 0 0 12px;
  font-size: 1.34rem;
}
.prose-stack {
  display: grid;
  gap: 24px;
}

.info-strip { grid-template-columns: repeat(3, 1fr); }
.info-item {
  padding: 18px 20px;
  border-top: 3px solid var(--brand);
}
.info-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}
.info-item span {
  color: var(--muted);
  line-height: 1.72;
  font-size: 14px;
}

.callout {
  border-radius: 20px;
  padding: 28px;
  background: var(--paper-alt);
}
.callout h3 { margin: 0 0 12px; font-size: 1.34rem; }
.callout p { color: #5f675f; line-height: 1.78; margin: 0; }

.plans-grid { grid-template-columns: repeat(3, 1fr); }
.plan-card {
  border-radius: 22px;
  padding: 30px;
}
.plan-card.featured {
  background: var(--brand);
  color: #fff;
  border-color: rgba(47,107,73,0.9);
  box-shadow: 0 24px 50px rgba(47, 107, 73, 0.18);
}
.plan-card .tag {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(47,107,73,0.08);
  color: var(--brand-dark);
}
.plan-card.featured .tag {
  background: rgba(255,255,255,0.16);
  color: #fff;
}
.price {
  font-size: 2.45rem;
  font-weight: 900;
  margin: 20px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
}
.muted { color: var(--muted); }
.plan-card.featured .muted { color: rgba(255,255,255,0.78); }
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.plan-card li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(29,38,31,0.08);
}
.plan-card.featured li { border-bottom-color: rgba(255,255,255,0.16); }
.plan-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.plan-card.featured .plan-summary {
  color: rgba(255,255,255,0.82);
}

.plan-matrix { grid-template-columns: 1.3fr 1fr 1fr 1fr; align-items: start; }
.matrix-head,
.matrix-cell {
  border-radius: 16px;
  padding: 18px;
}
.matrix-head {
  font-weight: 800;
  color: var(--brand-dark);
}
.matrix-cell strong {
  display: block;
  margin-bottom: 6px;
}
.matrix-cell span {
  color: var(--muted);
  line-height: 1.68;
  font-size: 14px;
}
.matrix-check {
  color: var(--brand-dark);
  font-weight: 700;
}
.matrix-muted {
  color: var(--muted);
}

.feature-stack {
  display: grid;
  gap: 14px;
}
.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.feature-copy h2 {
  margin: 0 0 6px;
  font-size: 1.18rem;
}
.feature-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.feature-access {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fbf7ef;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.feature-pill.is-on {
  border-color: rgba(47,107,73,0.18);
  background: rgba(47,107,73,0.1);
  color: var(--brand-dark);
}
.feature-pill.is-off {
  background: #fffdfa;
  color: var(--muted);
}
.feature-pill.is-limited {
  border-color: rgba(139,107,41,0.18);
  background: rgba(139,107,41,0.1);
  color: #6e5318;
}

.form-shell,
.table-shell {
  border-radius: 22px;
  padding: 30px;
}
.form-shell h2,
.table-shell h2 {
  margin: 0 0 18px;
  font-size: 1.55rem;
}
.form-grid { display: grid; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}
input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffdf9;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(47,107,73,0.4);
  box-shadow: 0 0 0 4px rgba(47,107,73,0.08);
}

.note,
.status-box {
  padding: 15px 17px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fcf7ef;
  color: var(--muted);
  line-height: 1.72;
}
.status-success {
  border-color: rgba(47,107,73,0.20);
  background: rgba(47,107,73,0.08);
  color: var(--brand-dark);
}
.status-error {
  border-color: rgba(147,77,63,0.18);
  background: rgba(147,77,63,0.08);
  color: #6f3328;
}
.status-warning {
  border-color: rgba(139,107,41,0.18);
  background: rgba(139,107,41,0.08);
  color: #674d18;
}

.account-grid { grid-template-columns: 1.15fr 0.85fr; }
.stack { display: grid; gap: 18px; }
.data-list { display: grid; gap: 14px; }
.data-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(219,207,188,0.8);
}
.data-row strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}
.data-row span {
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  align-items: start;
}
.account-sidebar,
.account-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.account-sidebar {
  border-radius: 24px;
  padding: 30px;
  position: sticky;
  top: 100px;
  display: grid;
  gap: 22px;
}
.account-identity h1 {
  margin: 18px 0 10px;
  font-size: clamp(2.2rem, 3vw, 3.1rem);
  line-height: 1;
}
.account-identity p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.account-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(47,107,73,0.08);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.account-sidebar-card {
  padding-top: 4px;
}
.account-sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}
.account-main {
  display: grid;
  gap: 18px;
}
.account-panel {
  border-radius: 24px;
  padding: 28px;
}
.account-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}
.account-panel-head h2 {
  margin: 10px 0 0;
  font-size: 1.5rem;
}
.account-form {
  display: grid;
  gap: 16px;
}
.account-panel-danger {
  border-color: rgba(147,77,63,0.18);
}

.site-footer {
  margin-top: 48px;
  padding: 48px 0 62px;
  background: #1f2b22;
  color: #f4efe5;
}
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.footer-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: none;
}
.footer-card h4 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}
.footer-card p,
.footer-card li,
.footer-card a {
  color: rgba(244,239,229,0.78);
  line-height: 1.72;
}
.footer-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.auth-wrap {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}
.auth-intro {
  max-width: 760px;
  margin-bottom: 26px;
}
.auth-intro h1 {
  max-width: none;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.auth-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
  align-self: start;
}
.auth-card h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}
.auth-card .auth-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}
.auth-divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0 2px;
}
.auth-card .btn {
  justify-self: start;
  min-width: 160px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .cards-3,
  .cards-2,
  .dual-columns,
  .plans-grid,
  .account-grid,
  .footer-grid,
  .plan-matrix,
  .info-strip {
    grid-template-columns: 1fr;
  }
  .stats-grid,
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
  .feature-band,
  .account-shell {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    position: static;
  }
  h1 { max-width: none; }
}

@media (max-width: 700px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links,
  .nav-actions {
    width: 100%;
  }
  .nav-actions { flex-wrap: wrap; }
  .panel,
  .card,
  .plan-card,
  .form-shell,
  .table-shell,
  .footer-card,
  .prose-shell,
  .callout,
  .hero-summary,
  .auth-card {
    padding: 22px;
  }
  .stats-grid,
  .form-row-2,
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
