:root {
  --bg: #f6f1e8;
  --bg-elev: #fffdf8;
  --header: #fff9f1;
  --ink: #1c1917;
  --muted: #6b645c;
  --line: rgba(28, 25, 23, 0.1);
  --orange: #e87a1f;
  --orange-2: #c45e12;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(80, 48, 16, 0.1);
  --header-h: 72px;
  --logo-h: 132px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Outfit, system-ui, sans-serif;
  line-height: 1.55;
}

.bg-glow {
  position: fixed;
  inset: -10% auto auto 40%;
  width: min(720px, 80vw);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(232, 122, 31, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  overflow: visible;
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 21;
}

.logo img {
  height: var(--logo-h);
  width: auto;
  display: block;
  position: relative;
  /* Sit on the header’s bottom edge: half in the bar, half hanging into the page */
  top: calc(var(--header-h) / 2);
  filter: drop-shadow(0 10px 18px rgba(80, 48, 16, 0.12));
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
}

nav a:hover { color: var(--ink); }

.nav-login {
  color: var(--ink) !important;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(232, 122, 31, 0.25);
}

.btn:hover { background: var(--orange-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
}

.btn-lg { padding: 14px 24px; }

main { position: relative; z-index: 1; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  /* Clear the hanging logo (half of logo height) plus extra air */
  padding: calc(var(--logo-h) / 2 + 48px) 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }

.lead, .signup-copy p, .feature-card p, .card > p:last-child {
  color: var(--muted);
}

.lead {
  font-size: 1.15rem;
  max-width: 38ch;
  margin: 0 0 28px;
}

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

.hero-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.panel-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d2c8;
}

.panel-bar span:nth-child(1) { background: #ff5f57; }
.panel-bar span:nth-child(2) { background: #febc2e; }
.panel-bar span:nth-child(3) { background: #28c840; }
.panel-bar em { margin-left: auto; font-style: normal; }

.bubble {
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.bubble small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.7;
}

.bubble.in {
  background: #f3eee6;
  max-width: 86%;
}

.bubble.out {
  background: #fff4e8;
  border: 1px solid rgba(232, 122, 31, 0.28);
  margin-left: 14%;
}

.bubble.meta {
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 4px 6px;
}

.features, .pricing, .signup { padding: 28px 0 80px; }

.feature-grid, .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.feature-grid { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card h3, .card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card.featured {
  border-color: rgba(232, 122, 31, 0.45);
  background: linear-gradient(180deg, #fff4e8, var(--bg-elev));
  transform: translateY(-6px);
}

.badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(232, 122, 31, 0.12);
  color: var(--orange-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 8px 0 10px;
}

.price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.signup-card {
  display: grid;
  gap: 14px;
}

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

.signup input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.signup input:focus {
  outline: 2px solid rgba(232, 122, 31, 0.45);
  border-color: transparent;
}

.error { color: #b42318; margin: 0; min-height: 1.2em; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo { height: 48px; width: auto; }

footer a { color: var(--ink); }

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
    --logo-h: 96px;
  }
  .hero, .signup, .cards, .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: calc(var(--logo-h) / 2 + 28px); gap: 32px; }
  .card.featured { transform: none; }
  nav a:not(.btn):not(.nav-login) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
