:root {
  --bg: #FAF8F3;
  --ink: #0F1410;
  --ink-soft: #4D4D48;
  --ink-faint: #6E6E68;
  --green: #469F10;
  --green-dark: #3C8A0D;
  --green-light: #7FC44A;
  --green-tint: #E6F3D9;
  --green-tint-2: #F4F9EC;
  --line: rgba(15, 20, 16, 0.10);
  --dark: #0F1410;
  --dark-card: #2A302C;
  --container: 1240px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }

::selection { background: var(--green-tint); }

img { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.logo svg { color: var(--green); display: block; }

.logo-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo-text .dot { color: var(--green); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-actions .login-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 12px;
}

.header-toggle {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn--solid {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 28px rgba(70, 159, 16, 0.3);
}
.btn--solid:hover { background: var(--green-dark); color: #fff; }

.btn--outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--outline:hover { background: #F2F1EC; color: var(--ink); }

.btn--small {
  height: 44px;
  padding: 0 20px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(70, 159, 16, 0.28);
}

/* Hero */

.hero {
  padding-top: 96px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  display: block;
}

.hero h1 {
  margin: 24px 0 0;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-lead {
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 30em;
  text-wrap: pretty;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green);
}

.stat-label {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-media {
  position: relative;
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(15, 20, 16, 0.05), 0 24px 64px rgba(15, 20, 16, 0.10);
  background: #fff;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder image slot (design has no photo chosen yet) */

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: repeating-linear-gradient(135deg, #F2F1EC, #F2F1EC 12px, #ECEAE2 12px, #ECEAE2 24px);
  border: 1px dashed rgba(15, 20, 16, 0.22);
  color: var(--ink-faint);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

/* How it works */

.how {
  background: var(--green);
  color: #fff;
}

.how .container {
  padding: 96px 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.how h2 {
  margin: 16px 0 0;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.how p {
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 26em;
}
.how p + p { margin-top: 16px; }

.how-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.how-step {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(15, 20, 16, 0.12);
}

.how-step.offset { margin-top: 32px; }

.how-step-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green);
}

.how-step-text {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

/* Chat demo */

.chat-section { background: var(--bg); }

.chat-section .container { padding: 96px 32px; }

.chat-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}

.chat-intro h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

.chat-intro p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.chat-card {
  margin-top: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(15, 20, 16, 0.05), 0 20px 48px rgba(15, 20, 16, 0.07);
  overflow: hidden;
}

.chat-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #2F6E0A;
  flex-shrink: 0;
}

.chat-title { font-size: 15px; font-weight: 700; }
.chat-status { font-size: 13px; color: var(--ink-faint); }

.chat-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  background: var(--bg);
}

.chat-msg { display: flex; }
.chat-msg--user { justify-content: flex-end; }

.chat-bubble {
  max-width: 70%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.55;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.chat-bubble--user {
  background: var(--green);
  border-color: transparent;
  color: #fff;
}
.chat-bubble--typing { opacity: 0.55; }

.login-link.is-logged-in { color: var(--green); font-weight: 700; }

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
}

.chat-input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(15, 20, 16, 0.16);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.chat-input:focus { border-color: var(--green); }

.chat-send {
  height: 48px;
  padding: 0 26px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(70, 159, 16, 0.28);
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.chat-send:hover { background: var(--green-dark); }
.chat-send:active { transform: scale(0.98); }

.chat-footnote {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
}

/* Method */

.method {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method .container {
  padding: 96px 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.method h2 {
  margin: 16px 0 0;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

.method-lead {
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 34em;
  text-wrap: pretty;
}

.method-quote {
  margin: 40px 0 0;
  padding: 28px 32px;
  border-left: 2px solid var(--green);
  background: var(--green-tint-2);
  border-radius: 0 16px 16px 0;
}

.method-quote p {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink);
}

.method-phone {
  justify-self: center;
  width: 320px;
  height: 640px;
  border-radius: 40px;
  padding: 12px;
  background: var(--dark);
  box-shadow: 0 24px 64px rgba(15, 20, 16, 0.22);
}

.method-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg);
}

.method-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reviews */

.reviews { background: var(--dark); color: var(--bg); }

.reviews .container { padding: 96px 32px; }

.reviews h2 {
  margin: 16px 0 0;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.reviews-kicker { color: rgba(250, 248, 243, 0.55); }

.review-grid {
  margin-top: 48px;
  columns: 3;
  column-gap: 24px;
}

.review-card {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--dark-card);
  border: 1px solid rgba(250, 248, 243, 0.10);
  border-radius: 20px;
  padding: 28px;
}

.review-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bg);
}

.review-author {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(250, 248, 243, 0.7);
}

.reviews-cta {
  margin-top: 48px;
  background: var(--dark-card);
  border: 1px solid rgba(250, 248, 243, 0.10);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.reviews-cta h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.reviews-cta p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(250, 248, 243, 0.75);
  max-width: 44em;
  text-wrap: pretty;
}

/* Author */

.author { background: var(--bg); }

.author .container {
  padding: 96px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.author h2 {
  margin: 16px 0 0;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

.author-lead {
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 32em;
  text-wrap: pretty;
}

.author-stats {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.author-stats .stat-num { font-size: 26px; }
.author-stats .stat-label { color: var(--ink-soft); }

.author-media {
  position: relative;
  height: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(15, 20, 16, 0.05), 0 24px 64px rgba(15, 20, 16, 0.10);
  background: #fff;
}

.author-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */

.site-footer { background: var(--dark); color: var(--bg); }

.site-footer .container { padding: 64px 32px 48px; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.footer-logo { color: var(--bg); }
.footer-logo svg { color: var(--green-light); }
.footer-logo .dot { color: var(--green-light); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 15px;
}

.footer-nav a { color: rgba(250, 248, 243, 0.75); }
.footer-nav a:hover { color: #fff; }

.footer-nav .num { color: var(--green); font-weight: 700; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 248, 243, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(250, 248, 243, 0.55);
}

.footer-bottom a { color: rgba(250, 248, 243, 0.55); }
.footer-bottom a:hover { color: #fff; }

/* Responsive */

@media (max-width: 900px) {
  .hero,
  .how .container,
  .chat-intro,
  .method .container,
  .author .container {
    grid-template-columns: 1fr;
  }

  .hero-media { order: -1; height: 380px; }
  .author-media { height: 380px; }

  .how-steps { margin-top: 8px; }

  .method-phone { width: 240px; height: 480px; justify-self: start; }

  .reviews-cta { grid-template-columns: 1fr; }

  .review-grid { columns: 2; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-toggle { display: none; }

  .container { padding: 0 20px; }
  .site-header .container { padding-top: 12px; padding-bottom: 12px; }

  .hero { padding-top: 56px; padding-bottom: 48px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 22px; }

  .how .container,
  .chat-section .container,
  .method .container,
  .reviews .container,
  .author .container,
  .site-footer .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .how h2, .chat-intro h2, .method h2, .reviews h2, .author h2 {
    font-size: 32px;
  }

  .how-steps { grid-template-columns: 1fr; }
  .how-step.offset { margin-top: 0; }

  .review-grid { columns: 1; }

  .reviews-cta { padding: 28px; }
  .reviews-cta h3 { font-size: 24px; }

  .method-quote p { font-size: 19px; }

  .chat-bubble { max-width: 88%; }
  .chat-card-head, .chat-input-row, .chat-body { padding-left: 18px; padding-right: 18px; }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 420px) {
  .hero-actions .btn,
  .btn--small { flex: 1 1 auto; }
  .header-actions { gap: 8px; }
  .btn--small { padding: 0 14px; font-size: 12px; }
}
