/* Layout: one calm reading column (max 1120px), wide margins, hairline rules
   instead of cards. The only framed objects are the chat samples. */
:root {
  --ink: #1c1c1e;
  --paper: #f7f5f0;
  --accent: #2f5d50;
  --muted: #555555;

  --paper-deep: #efece5;   /* incoming bubble, quiet bands */
  --surface: #fcfbf8;      /* chat window */
  --accent-soft: #dfe8e3;  /* outgoing bubble */
  --accent-ink: #24483e;   /* accent on hover */
  --rule: rgba(28, 28, 30, 0.12);
  --rule-strong: rgba(28, 28, 30, 0.22);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 2.875rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.8vw, 4.375rem);

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1120px;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h3 { font-variation-settings: "opsz" 36, "SOFT" 50; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 20; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; max-width: 36rem; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-quiet { color: var(--ink); border-color: var(--rule-strong); background: transparent; }
.btn-quiet:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: 0.9375rem; }
.link-arrow { color: var(--accent); font-weight: 500; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand {
  font-family: var(--font-display); font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 1.625rem; letter-spacing: -0.02em; text-decoration: none; line-height: 1;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; font-size: 0.9375rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink);
  cursor: pointer; padding: 10px; margin-right: -10px;
}
.nav-toggle span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform 0.2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav { min-height: 64px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links li:last-child { border-top: 0; padding-top: 1rem; }
  .nav-links a:not(.btn) { display: block; padding: 0.9rem 0; font-size: 1.0625rem; color: var(--ink); }
  .nav-links .btn { width: 100%; min-height: 48px; }
}

/* Sections */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 1rem; max-width: 40rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { font-size: var(--step-3); }

/* Hero */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 4vw, 5.5rem); }
.hero + .section { border-top: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 350; }
.hero h1 em { color: var(--accent); font-weight: 350; }
.hero-copy { display: grid; gap: 1.75rem; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 0.25rem; }
.invite-note { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.invite-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-chat { max-width: 440px; }
}

/* Page intro (inner pages) */
.page-intro { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-intro .wrap > div { display: grid; gap: 1.25rem; max-width: 46rem; }
.page-intro h1 { font-size: var(--step-4); font-weight: 350; }

/* Chat mock */
.chat {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(28, 28, 30, 0.03), 0 24px 48px -28px rgba(28, 28, 30, 0.22);
  overflow: hidden;
  min-width: 0;
}
.chat-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--rule); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: var(--paper);
  font-family: var(--font-display); font-size: 1.05rem; line-height: 1;
}
.chat-name { font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
.chat-status { font-size: 0.8125rem; color: var(--muted); line-height: 1.2; }
.chat-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem; font-size: 0.9375rem; line-height: 1.5; }
.chat-day { align-self: center; font-size: 0.75rem; color: var(--muted); background: var(--paper-deep); padding: 0.2rem 0.7rem; border-radius: 999px; margin-bottom: 0.25rem; }
.msg { max-width: 88%; padding: 0.6rem 0.85rem 0.45rem; border-radius: 16px; overflow-wrap: anywhere; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 0.45rem; }
.msg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
.msg li { padding-left: 0.95rem; position: relative; }
.msg li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.msg-in { align-self: flex-start; background: var(--paper-deep); border-bottom-left-radius: 6px; }
.msg-out { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: 6px; }
.msg time { display: block; text-align: right; font-size: 0.6875rem; color: var(--muted); margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.agenda { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 0.75rem; margin-top: 0.45rem; }
.agenda dt { font-variant-numeric: tabular-nums; font-weight: 600; }
.agenda dd { margin: 0; }
.file {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem;
  padding: 0.55rem 0.7rem; border-radius: 10px; background: var(--surface);
  font-size: 0.8125rem;
}
.file svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.file strong { font-weight: 500; display: block; overflow-wrap: anywhere; }
.file small { color: var(--muted); }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
.benefit { display: grid; gap: 0.9rem; align-content: start; padding-top: 1.5rem; border-top: 1px solid var(--rule-strong); min-width: 0; }
@media (min-width: 861px) {
  .benefits { grid-template-rows: auto auto 1fr; row-gap: 0; }
  .benefit { grid-row: span 3; grid-template-rows: subgrid; }
  .benefit .said { align-self: end; }
}
.benefit h3 { font-size: var(--step-2); }
.benefit p { color: var(--muted); }
.benefit .said { font-family: var(--font-display); font-style: italic; font-variation-settings: "opsz" 14; color: var(--ink); font-size: 1.0625rem; }
@media (max-width: 860px) { .benefits { grid-template-columns: minmax(0, 1fr); } }

/* Proof */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.proof-intro { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.proof-intro h2 { font-size: var(--step-3); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rule { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1.1rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); }
.rule:last-child { border-bottom: 1px solid var(--rule); }
.rule-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.rule-icon svg { width: 20px; height: 20px; }
.rule h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.rule p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-text { display: contents; }
  .proof-intro { order: 1; margin-bottom: 0; }
  .proof-chat { order: 2; max-width: 480px; }
  .rules { order: 3; }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.3rem; font-size: 1.0625rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: var(--accent); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.4rem; color: var(--muted); max-width: 38rem; display: grid; gap: 0.75rem; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* Closing CTA */
.closing { background: var(--accent); color: var(--paper); }
.closing .wrap { display: grid; gap: 1.75rem; justify-items: start; padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.closing h2 { font-size: var(--step-3); max-width: 20ch; }
.closing p { color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 34rem; font-size: var(--step-1); }
.closing .btn-primary { background: var(--paper); color: var(--ink); }
.closing .btn-primary:hover { background: #ffffff; }

/* Services page */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 1rem + 4vw, 6rem); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); border-top: 1px solid var(--rule); }
.service:last-child { border-bottom: 1px solid var(--rule); }
.service-title { display: grid; gap: 0.75rem; align-content: start; }
.service-title h2 { font-size: var(--step-3); }
.service-body { display: grid; gap: 1.5rem; min-width: 0; }
.service-body > p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0.85rem; }
.checks li::before {
  content: ""; width: 18px; height: 18px; margin-top: 0.22em; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.3l2.4 2.3 5-5.2' fill='none' stroke='%232F5D50' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.phrases { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.phrase {
  font-size: 0.9375rem; padding: 0.45rem 0.85rem; border-radius: 14px 14px 14px 4px;
  background: var(--paper-deep); color: var(--ink); overflow-wrap: anywhere;
}
.phrases-label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
@media (max-width: 860px) { .service { grid-template-columns: minmax(0, 1fr); } }

.limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.limits > div { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.5rem; border-top: 1px solid var(--rule-strong); }
.limits h3 { font-size: var(--step-1); }
.limits p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .limits { grid-template-columns: minmax(0, 1fr); } }

/* About page */
.prose { display: grid; gap: 1.25rem; max-width: 38rem; font-size: 1.125rem; }
.prose p { color: var(--ink); }
.pull {
  font-family: var(--font-display); font-weight: 350; font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.015em; max-width: 24ch; text-wrap: balance;
}
.pull em { color: var(--accent); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.principles { list-style: none; margin: 0; padding: 0; display: grid; }
.principles li { display: grid; gap: 0.4rem; padding-block: 1.4rem; border-top: 1px solid var(--rule); }
.principles li:last-child { border-bottom: 1px solid var(--rule); }
.principles h3 { font-size: var(--step-1); }
.principles p { color: var(--muted); font-size: 1rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 5vw, 7rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 500; padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: #9b3b2e; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.form-foot p { font-size: var(--step--1); color: var(--muted); max-width: 26rem; }
.form-status { padding: 1rem 1.1rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.9375rem; }
.aside { display: grid; gap: 2rem; padding-top: 0.25rem; }
.aside section { display: grid; gap: 0.6rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-strong); }
.aside h2 { font-size: var(--step-1); font-variation-settings: "opsz" 36, "SOFT" 50; }
.aside p { color: var(--muted); font-size: 1rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0.6rem; color: var(--muted); font-size: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.5rem; }
.steps li::before { content: counter(s); font-family: var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: 3rem; font-size: 0.9375rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem 3rem; }
.footer-brand { display: grid; gap: 0.5rem; }
.footer-brand .brand { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Entrance: content is visible at rest; this only adds a soft rise on load. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise-2 { animation-delay: 0.08s; }
  .rise-3 { animation-delay: 0.16s; }
  .hero-chat .msg { animation: bubble 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-chat .msg:nth-child(2) { animation-delay: 0.35s; }
  .hero-chat .msg:nth-child(3) { animation-delay: 0.7s; }
  .hero-chat .msg:nth-child(4) { animation-delay: 1.1s; }
  .hero-chat .msg:nth-child(5) { animation-delay: 1.5s; }
}
@keyframes rise { from { opacity: 0.001; transform: translateY(10px); } }
@keyframes bubble { from { opacity: 0.001; transform: translateY(6px) scale(0.98); } }
.page-intro h1 em { color: var(--accent); }
.page-intro + .section { border-top: 1px solid var(--rule); }
.section-tight { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.two-col .section-head { margin-bottom: 0; }
