:root {
  --bg: #faf6f0;
  --bg-soft: #f3ebe0;
  --surface: #ffffff;
  --surface-alt: #f7f1e8;
  --text: #2a2318;
  --muted: #6d5f4f;
  --accent: #5f7a62;
  --accent-deep: #4a6350;
  --accent-warm: #b87855;
  --accent-soft: #e8ddd0;
  --line: rgba(42, 35, 24, 0.08);
  --shadow: 0 12px 40px rgba(90, 70, 50, 0.08);
  --radius: 16px;
  --font: "Nunito Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-warm); }

/* Page shell + ambient layers */
.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(184, 120, 85, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 20%, rgba(95, 122, 98, 0.1), transparent 50%),
    var(--bg);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.14;
  z-index: -1;
  pointer-events: none;
}
.bg-glow-1 {
  width: min(480px, 70vw);
  height: min(480px, 70vw);
  top: -8%;
  left: -5%;
  background: radial-gradient(circle, rgba(184, 120, 85, 0.55), transparent 70%);
}
.bg-glow-2 {
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  bottom: 10%;
  right: -8%;
  background: radial-gradient(circle, rgba(95, 122, 98, 0.45), transparent 70%);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.35rem;
}

.section {
  padding: 2.5rem 0;
}
@media (min-width: 768px) {
  .section { padding: 3.75rem 0; }
}

.section-soft {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-warm);
  margin: 0 0 0.65rem;
}

.section h2,
.section-intro {
  font-family: var(--font);
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 0 2rem;
}

.pricing-subtitle {
  margin-bottom: 2rem;
}

/* Sticky nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }

.brand-logo {
  display: block;
  flex-shrink: 0;
}

.brand-wordmark { font-family: var(--font); }
.brand-ai {
  color: var(--accent);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-height: 44px;
}

.btn-primary,
.btn-gradient {
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 4px 16px rgba(74, 99, 80, 0.25);
}
.btn-primary:hover,
.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 99, 80, 0.3);
  color: #fff;
}

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--surface-alt);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-full { width: 100%; }

.btn-nav {
  flex-shrink: 0;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}

/* Hero */
.hero-section {
  position: relative;
  padding: 2.75rem 0 2.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-section { padding: 4rem 0 3.25rem; }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.5), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(var(--text) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 30%, transparent 85%);
}

.hero-center {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-warm);
  margin: 0 0 0.85rem;
}

.hero-section h1 {
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.8vw, 3.25rem);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 1.1rem;
  color: var(--text);
}

.hero-section h1 em {
  font-style: italic;
  font-weight: 500;
}

.text-primary { color: var(--accent); }

.hero-text {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.65rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: center;
  text-align: left;
}
.hero-metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 6.5rem;
}
.hero-metrics strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
}
.hero-metrics span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Trust strip (FR-015) */
.trust-strip {
  max-width: 44rem;
  margin: 0 auto;
  padding-top: 0.25rem;
}
.trust-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-strip__list li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.45rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Bento */
.bento-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bento-card {
  padding: 1.5rem 1.45rem;
  display: grid;
  gap: 0.65rem;
}
.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.bento-accent {
  border-color: rgba(95, 122, 98, 0.28);
  box-shadow: var(--shadow), inset 4px 0 0 0 var(--accent);
}

.bento-ai-layer {
  border-color: var(--line);
}

.bento-icon {
  font-size: 28px;
  color: var(--accent-deep);
  line-height: 1;
}

.bento-label {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}

/* Steps */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.15rem;
  max-width: 52rem;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); max-width: none; }
}

.steps > li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 4px 20px rgba(90, 70, 50, 0.04);
}
.steps > li p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.steps > li strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  position: relative;
  padding: 1.65rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-badge {
  position: absolute;
  top: -0.65rem;
  left: 1.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

.pricing-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0.35rem 0 0.25rem;
}

.pricing-price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}

.pricing-period {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-setup {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pricing-features {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.pricing-features li { margin-bottom: 0.35rem; }

.pricing-card-featured {
  border-color: rgba(95, 122, 98, 0.35);
  box-shadow: var(--shadow);
}

/* Contact */
.section-contact {
  padding-bottom: 5.5rem;
}
@media (max-width: 640px) {
  .section-contact { padding-bottom: 6.5rem; }
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.contact-copy h2 {
  margin-bottom: 0.65rem;
}

.contact-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.contact-alt {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.form {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.form input,
.form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  min-height: 44px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form textarea {
  min-height: 5rem;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 122, 98, 0.15);
}

.form-msg {
  font-size: 0.9rem;
  margin: 0;
}
.form-msg.ok { color: var(--accent-deep); }
.form-msg.err { color: #b54a3a; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent-deep);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
}
.link-btn:hover { color: var(--accent-warm); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0;
  color: var(--muted);
  font-size: 0.875rem;
  background: var(--surface-alt);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

/* Beacon web chat */
.chat-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 3.5rem;
  height: 3.5rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(145deg, var(--accent-warm), #a06848);
  color: #fff;
  box-shadow: 0 8px 28px rgba(184, 120, 85, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
  display: grid;
  place-items: center;
  padding: 0;
}

.chat-fab:hover { transform: translateY(-2px); }

.chat-fab__pulse {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(184, 120, 85, 0.35);
  animation: fab-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { opacity: 0; }
}

.chat-fab__avatar {
  position: relative;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--serif);
}

.chat-fab[aria-expanded="true"] {
  visibility: hidden;
  pointer-events: none;
}

.chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(520px, calc(100vh - 2rem - env(safe-area-inset-bottom, 0px)));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: var(--radius) var(--radius) 0 0;
}

.chat-panel__identity { display: flex; gap: 0.65rem; align-items: center; }

.chat-panel__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--serif);
}

.chat-panel__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
}

.chat-panel__sub { margin: 0; font-size: 0.78rem; color: var(--muted); }

.chat-panel__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.chat-panel__close:hover { background: var(--bg-soft); color: var(--text); }

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 180px;
}

.chat-msg {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.chat-msg--assistant {
  align-self: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--text);
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
}

.chat-msg--system {
  align-self: center;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.chat-typing {
  display: none;
  align-self: flex-start;
  gap: 4px;
  padding: 0.5rem 0.75rem;
}

.chat-typing.is-visible { display: inline-flex; }

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
  animation: chat-dot 0.9s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-dot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.chat-panel__input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
}

.chat-panel__input-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  min-height: 44px;
  font: inherit;
  background: var(--bg);
}

.chat-panel__input-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 122, 98, 0.15);
}

.chat-panel__send {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-panel__send:disabled { opacity: 0.55; cursor: wait; }

/* Mobile nav */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-section { padding-top: 2.25rem; }
}
