:root {
  --green-900: #093d33;
  --green-700: #0f5c4d;
  --green-500: #1c8a73;
  --green-100: #e3f2ee;
  --amber: #f2a93b;
  --ink: #15201d;
  --muted: #55625e;
  --line: #dfe7e4;
  --bg: #ffffff;
  --bg-alt: #f5f8f7;
  --chat-bg: #ece5dd;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(9, 61, 51, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--green-700); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85em 1.4em; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 8px 20px -8px rgba(15, 92, 77, 0.6); }
.btn-primary:hover { background: var(--green-900); }
.btn-ghost { color: var(--green-700); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--green-500); }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.92rem; }
.btn-lg { padding: 1em 2em; font-size: 1.1rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--green-700); }

/* Hero */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 400px at 85% 10%, var(--green-100), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, #fdf1dd, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600; color: var(--green-700); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
.accent { color: var(--green-500); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.fine { font-size: 0.9rem; color: var(--muted); }
.fine.light { color: rgba(255, 255, 255, 0.75); margin-top: 28px; }

/* Phone mockup */
.phone {
  background: var(--chat-bg); border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow); border: 8px solid #1b2522; max-width: 380px; justify-self: center; width: 100%;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--green-700); color: #fff; }
.phone-top img { border-radius: 50%; background: #fff; padding: 4px; }
.phone-top small { display: block; opacity: 0.8; font-size: 0.78rem; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 20px; font-size: 0.9rem; }
.msg {
  position: relative; max-width: 85%; padding: 8px 12px 18px; border-radius: 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); line-height: 1.45;
}
.msg .t { position: absolute; right: 10px; bottom: 3px; font-size: 0.68rem; color: #7b8784; }
.msg.me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.msg.bot { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.msg.doc { align-self: flex-start; background: #fff; border-left: 4px solid var(--amber); font-weight: 600; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; text-align: center; }
.section-lead { text-align: center; color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0 auto 48px; }

.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; }
.icon { font-size: 1.8rem; margin-bottom: 12px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.step-n {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-700); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 28px; background: var(--bg-alt); border-radius: var(--radius); display: grid; gap: 16px; }
.checklist li { position: relative; padding-left: 34px; color: var(--muted); }
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-500); color: #fff; font-size: 0.75rem; font-weight: 800;
}

/* Principle */
.principle { background: linear-gradient(160deg, var(--green-900), var(--green-700)); color: #fff; }
.principle h2 { text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 40px; }
.principle-inner { text-align: center; }
.card.dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); text-align: left; }
.card.dark h3 { color: #fff; }
.card.dark p { color: rgba(255, 255, 255, 0.8); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; background: #fff; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--green-500); font-weight: 600;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA */
.cta { background: var(--green-100); }
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; }
.cta p { color: var(--muted); font-size: 1.1rem; }
.cta .btn { margin: 12px 0 20px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer p { margin: 0; color: var(--muted); }
.footer .fine { margin-left: auto; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .steps, .cards.two { grid-template-columns: 1fr; }
  .footer .fine { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Pascalia home */
.brand .by { display: block; font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: -2px; }
.brand span { line-height: 1.1; }
.brand b.cf { color: #13795f; font-weight: 800; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden; max-width: 440px; width: 100%; justify-self: center;
}
.panel-head { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.panel-head strong { margin-left: 8px; font-size: 0.9rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.panel-list { list-style: none; margin: 0; padding: 8px 18px 14px; }
.panel-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.panel-list li:last-child { border-bottom: 0; }
.tag {
  flex: none; min-width: 88px; text-align: center; padding: 4px 10px; border-radius: 8px;
  background: var(--green-100); color: var(--green-700); font-size: 0.75rem; font-weight: 800;
}
.tag.accent-tag { background: #fdf1dd; color: #9a5b00; }
.card.big { padding: 36px; }
.card.big p { margin-bottom: 18px; }
.link { font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.spaced { margin-top: 36px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.product { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.product h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.product .btn { margin-top: 8px; }
@media (max-width: 960px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cards.four { grid-template-columns: 1fr; }
  .tag { min-width: 76px; }
}
