/* Easeful AI — Marketing site styles
   Palette matched to the app's "Colorful Calm" tokens. */

:root {
  --sage: #8CAE78;
  --sage-dark: #6E9461;
  --sage-soft: #E3ECDB;
  --cream: #F7F4EF;
  --cream-deep: #EFEAE0;
  --ink: #1F2A24;
  --ink-soft: #3B4A42;
  --muted: #6C7A72;
  --subtle: #97A49B;
  --border: #E4DFD5;
  --white: #FFFFFF;
  --warn: #C2573E;
  --amber-bg: #FFF5E6;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 6px rgba(31, 42, 36, 0.04);
  --shadow-md: 0 6px 24px rgba(31, 42, 36, 0.06);

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--sage-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

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

.narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */
.nav {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.brand:hover { text-decoration: none; }

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-sub {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14.5px;
}

.nav-links a:hover {
  color: var(--sage-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
  }
  .nav-links a:hover { background: var(--sage-soft); }
  .nav-toggle { display: inline-flex; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--sage-dark);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--cream-deep);
  text-decoration: none;
}

.btn-dark {
  background: #000;
  color: #fff;
}
.btn-dark:hover {
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
}

/* ---- Hero ---- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--cream) 0%, #FBF8F3 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.1;
  max-width: 420px;
  margin-left: auto;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(140, 174, 120, 0.30), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(239, 234, 224, 0.9), transparent 65%),
    linear-gradient(160deg, #F2EEE5, #E8EFDE);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual img {
  width: 55%;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(31, 42, 36, 0.12);
}

/* ---- Sections ---- */
section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  color: var(--sage-dark);
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
}

/* ---- Feature grid ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ---- How it works ---- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--sage);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* ---- Highlight band ---- */
.band {
  background: var(--sage-soft);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
}

.band h2 {
  color: var(--sage-dark);
}

.band p {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ---- Safety / crisis callout ---- */
.crisis {
  background: var(--amber-bg);
  border: 1px solid #F1D9B7;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 40px 0;
}

.crisis h3 {
  color: var(--warn);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.crisis p {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 15px;
}

.crisis strong {
  color: var(--ink);
}

/* ---- Content pages (legal / long-form) ---- */
.page-header {
  padding: 60px 0 30px;
  background: linear-gradient(180deg, var(--cream), #FBF8F3);
  border-bottom: 1px solid var(--border);
}

.page-body {
  padding: 48px 0 80px;
}

.page-body h2 {
  margin-top: 36px;
  font-size: 1.4rem;
}

.page-body h3 {
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.page-body p,
.page-body li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.page-body ul, .page-body ol {
  padding-left: 22px;
  margin-bottom: 1em;
}

.page-body li {
  margin-bottom: 6px;
}

.page-body .meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}

.page-body th, .page-body td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-soft);
}

.page-body th {
  background: var(--cream-deep);
  color: var(--ink);
  font-weight: 600;
}

/* ---- Callout box ---- */
.callout {
  background: var(--sage-soft);
  border-left: 3px solid var(--sage);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.callout p { margin: 0; color: var(--ink-soft); }

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  color: #C6CFC9;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer a {
  color: #DDE5DD;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.footer-tagline {
  color: #A8B3AC;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: #8A958F;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 12px; }
