/* klea-site: static, no build step. Colours come from the Klea dashboard (klea-board/app/globals.css). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f5f6f4;
  --panel: #ffffff;
  --ink: #17211e;
  --muted: #58635f;
  --line: #e2e6e3;
  --accent: #2f6f62;
  --accent-ink: #2f6f62;      /* accent used as text/link colour */
  --accent-soft: #e3f0eb;
  --band: #2f6f62;
  --band-ink: #f3faf7;
  --amber: #ffefd6;
  --amber-ink: #7a4300;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1613;
    --panel: #18221e;
    --ink: #e9f0ed;
    --muted: #9db0a9;
    --line: #26332e;
    --accent: #3d8a79;
    --accent-ink: #86cbb9;
    --accent-soft: #1d3a33;
    --band: #1c3a33;
    --band-ink: #e9f0ed;
    --amber: #3a2c14;
    --amber-ink: #f1c98a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 16px; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); margin: 0; font-weight: 650; letter-spacing: -0.02em; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 20px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { font-family: var(--display); font-weight: 750; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand i { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--accent); margin-left: .12em; }
.top a.mail { font-size: .95rem; color: var(--muted); }

/* hero */
.hero { display: grid; gap: 44px; padding: 28px 0 72px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.1rem); line-height: 1.04; margin-bottom: 22px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin-bottom: 28px; }
.hero .turn { font-family: var(--display); font-weight: 650; font-size: clamp(1.4rem, 3.2vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--accent-ink); margin: 0; }
@media (min-width: 50rem) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 72px; padding: 56px 0 104px; }
}

/* the one memorable thing: a WhatsApp-style conversation */
.phone { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 30px; padding: 14px; max-width: 24rem; width: 100%; justify-self: center; box-shadow: 0 18px 50px rgba(23, 33, 30, .10); }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; border-bottom: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.phone-head b { display: block; font-size: 1rem; line-height: 1.2; }
.phone-head small { color: var(--muted); font-size: .8rem; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 18px 6px 8px; font-size: .97rem; line-height: 1.45; }
.msg { margin: 0; max-width: 86%; padding: 10px 14px; border-radius: 18px; }
.msg.me { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: 6px; }
.msg.klea { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg span { display: block; }
.msg .who { font-weight: 650; }
.example { text-align: center; color: var(--muted); font-size: .8rem; margin: 6px 0 2px; }

@media (prefers-reduced-motion: no-preference) {
  .msg { opacity: 0; transform: translateY(8px); animation: rise .5s ease forwards; }
  .msg:nth-child(1) { animation-delay: .5s; }
  .msg:nth-child(2) { animation-delay: 1.5s; }
  .msg:nth-child(3) { animation-delay: 2.9s; }
  .msg:nth-child(4) { animation-delay: 3.9s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* what it does */
.section { padding: 8px 0 80px; }
.section h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.1; margin-bottom: 18px; max-width: 22ch; }
.section .intro { color: var(--muted); max-width: 38rem; font-size: 1.1rem; margin-bottom: 44px; }
.does { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.does li { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.does h3 { font-size: 1.35rem; }
.does p { margin: 0; color: var(--muted); max-width: 34rem; }
@media (min-width: 48rem) {
  .does li { grid-template-columns: 17rem 1fr; gap: 40px; padding: 30px 0; }
}

/* trust band */
.band { background: var(--band); color: var(--band-ink); padding: 64px 0; margin-bottom: 72px; }
.band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 14px; }
.band p { max-width: 38rem; margin-bottom: 20px; opacity: .92; }
.band a { color: var(--band-ink); font-weight: 600; margin-right: 22px; }

/* contact */
.contact { padding-bottom: 72px; }
.contact h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 16px; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1.05rem; }
.btn:hover { filter: brightness(1.08); }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 24px 0 44px; color: var(--muted); font-size: .875rem; }
footer.site p { margin: 0 0 8px; }
footer.site nav a { margin-right: 18px; }

/* legal pages */
main.legal { max-width: 42rem; padding-bottom: 12px; }
main.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; margin: 28px 0 10px; }
main.legal h2 { font-size: 1.15rem; margin: 34px 0 8px; font-weight: 650; }
main.legal ul { padding-left: 1.2rem; margin: 0 0 16px; }
main.legal li { margin-bottom: 6px; }
.legal-meta { color: var(--muted); font-size: .95rem; }
.legal-summary { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .95rem; }
