/* ============================================
   CRENO — global stylesheet
   ============================================ */

:root {
  --green: #16a34a;
  --green-dark: #15803d;
  --green-light: #dcfce7;
  --green-tint: #f0fdf4;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --gray-900: #0f172a;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.10);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--gray-700); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section {
  padding: 88px 0;
}
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark p { color: var(--gray-300); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-300);
}
.btn-secondary:hover { border-color: var(--navy); background: var(--gray-100); }
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
}
.brand .mark { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.nav-links a:hover { color: var(--green-dark); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; border-top: 1px solid var(--border); }
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.6rem; color: var(--navy); }
.hero-stat span { font-size: 0.88rem; color: var(--gray-500); }

/* Phone mock chat */
.phone-mock {
  background: var(--navy);
  border-radius: 32px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  margin: 0 auto;
}
.phone-screen {
  background: #e5ddd5;
  border-radius: 22px;
  overflow: hidden;
}
.phone-topbar {
  background: var(--green-dark);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
}
.phone-topbar .dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.phone-chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; color: var(--gray-900); }
.bubble.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; color: var(--gray-900); }

/* Pain points / feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.pain-card { border-left: 4px solid #ef4444; }
.pain-card .icon { background: #fee2e2; color: #dc2626; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
th, td { padding: 16px 20px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 700; color: var(--gray-900); }
td { color: var(--gray-700); }
tr:last-child td { border-bottom: none; }
.col-highlight { background: var(--green-tint); font-weight: 600; color: var(--navy); }
.check { color: var(--green-dark); font-weight: 700; }
.cross { color: var(--gray-500); }

/* Pricing */
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.pricing-card.featured {
  border: 2px solid var(--green);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 30px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.price { font-size: 2.3rem; font-weight: 800; color: var(--navy); margin: 6px 0 4px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--gray-500); }
.pricing-card ul { list-style: none; padding: 0; margin: 20px 0 28px; }
.pricing-card li { padding: 8px 0; font-size: 0.94rem; color: var(--gray-700); display: flex; gap: 10px; }
.pricing-card li::before { content: "✓"; color: var(--green-dark); font-weight: 700; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 24px;
  padding: 60px 48px;
  color: #fff;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 28px; }

/* Forms */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-900); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  background: #fff;
  color: var(--gray-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}
.hidden-field { position: absolute; left: -9999px; }

/* Contact info cards */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-info p { margin: 0; font-size: 0.94rem; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--gray-300);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: var(--gray-500); max-width: 320px; font-size: 0.92rem; }
.footer-col h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--gray-300); font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--navy-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Simple page hero (inner pages) */
.page-hero {
  padding: 64px 0 48px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p { font-size: 1.05rem; max-width: 620px; }

/* Legal content */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 0 96px;
}
.legal h2 { margin-top: 40px; font-size: 1.35rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 20px; color: var(--gray-700); }
.legal li { margin-bottom: 8px; }
.legal p { color: var(--gray-700); }
.legal .updated { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 40px; }

/* Success page */
.success-box {
  text-align: center;
  padding: 120px 0;
}
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
