:root {
  --bg: #ffffff;
  --tint: #f7f7f5;
  --ink: #111111;
  --muted: #5e5e5b;
  --line: #e7e7e3;
  --green: #1b7f4c;
  --green-soft: #e8f4ed;
  --font: "Geist", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; }
p { margin: 0; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 10px; font-weight: 500; font-size: 16px;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b2b2b; transform: translateY(-1px); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--lg { padding: 16px 28px; }
.link { font-weight: 500; color: var(--muted); transition: color 0.2s; }
.link:hover { color: var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand span { font-weight: 400; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { padding: 96px 0 104px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.035em; }
.hero__sub { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 500px; }
.hero__actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; }

.assure { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--muted); }
.assure li { display: flex; align-items: center; gap: 8px; }
.assure li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231b7f4c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Demo card */
.demo { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 48px -24px rgba(0, 0, 0, 0.14); }
.demo__tabs { display: flex; gap: 4px; padding: 4px; background: var(--tint); border-radius: 10px; }
.demo__tab {
  flex: 1; font: 500 14px var(--font); color: var(--muted); background: transparent; border: 0;
  padding: 8px 10px; border-radius: 7px; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.demo__tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.demo__steps { list-style: none; margin: 14px 0 0; padding: 0; min-height: 250px; }
.demo__steps li { display: flex; align-items: center; gap: 12px; padding: 11px 8px; font-size: 15px; color: #a3a3a0; border-bottom: 1px solid #f0f0ed; transition: color 0.3s; }
.demo__steps li:last-child { border-bottom: 0; }
.demo__steps .ico { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #d6d6d2; position: relative; transition: background 0.3s, border-color 0.3s; }
.demo__steps li.is-running { color: var(--ink); }
.demo__steps li.is-running .ico { border-color: var(--ink); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.demo__steps li.is-done { color: var(--ink); }
.demo__steps li.is-done .ico { background: var(--green); border-color: var(--green); }
.demo__steps li.is-done .ico::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.demo__foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 0 8px; font-size: 14px; color: var(--muted); }
.demo__foot #flowStatus { min-width: 92px; }
.demo__meter { flex: 1; height: 4px; border-radius: 4px; background: #eeeeea; overflow: hidden; }
.demo__meter span { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.5s var(--ease); }

/* Sections */
.section { padding: 112px 0; }
.section--tint { background: var(--tint); }
.section h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.lede { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 560px; }

/* Tasks */
.tasks { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.tasks li { border-top: 1px solid var(--line); padding-top: 20px; }
.tasks h3 { font-size: 18px; margin-bottom: 6px; }
.tasks p { color: var(--muted); font-size: 16px; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.example { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.example:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.18); }
.example__who { font-size: 14px; font-weight: 500; color: var(--green); margin-bottom: 14px; }
.example h3 { font-size: 20px; margin-bottom: 8px; }
.example p:last-child { color: var(--muted); font-size: 16px; }

/* Steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.step__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 15px; }
.steps h3 { font-size: 20px; margin: 18px 0 6px; }
.steps p { color: var(--muted); font-size: 16px; }

/* About */
.about { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; max-width: 860px; }
.about__photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.about__copy h2 { margin-bottom: 20px; }
.about__copy p { color: var(--muted); font-size: 18px; margin-bottom: 14px; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.quotes figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quotes blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.quotes figcaption { font-weight: 500; font-size: 15px; display: flex; flex-direction: column; }
.quotes figcaption span { font-weight: 400; color: var(--muted); }

/* Contact */
.contact { text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact p { color: var(--muted); font-size: 19px; margin: 14px 0 32px; }
.contact .contact__mail { margin: 22px 0 0; font-size: 15px; }
.contact__mail a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ask { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ask textarea, .ask input {
  width: 100%; font: 16px var(--font); color: var(--ink); background: #fff;
  border: 1px solid #d9d9d4; border-radius: 10px; padding: 14px 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.ask textarea { resize: vertical; min-height: 120px; }
.ask textarea:focus, .ask input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06); }
.ask__row { display: flex; gap: 12px; }
.ask__row input { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand { font-size: 15px; color: var(--ink); }

/* Reveal: a gentle fade-up, only when JS is running */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .tasks, .steps, .quotes, .examples { grid-template-columns: 1fr; }
  .tasks { gap: 28px; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav__links a:not(.btn) { display: none; }
  .hero__sub, .lede { font-size: 17px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about__photo { width: 96px; height: 96px; }
  .demo__steps { min-height: 0; }
  .demo__tab { font-size: 13px; padding: 8px 6px; }
  .ask__row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Link to independent reviews under the testimonials */
.proof { margin-top: 28px; text-align: center; }
.proof a { font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); transition: text-decoration-color 0.2s; }
.proof a:hover { text-decoration-color: var(--ink); }

/* About: bigger photo, credentials, links */
.about__photo { width: 168px; height: 168px; }
.about__creds { font-size: 15px !important; color: var(--ink) !important; font-weight: 500; margin-top: 6px; }
.about__links { display: flex; gap: 20px; font-size: 15px !important; }
.about__links a, .footer__links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.about__links a:hover, .footer__links a:hover { text-decoration-color: var(--ink); }
.footer__links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .about__photo { width: 112px; height: 112px; } }

/* Watch it work: document reader */
.reader { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 48px; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 20px 40px -28px rgba(0,0,0,.25); font-size: 15px; position: relative; overflow: hidden; }
.doc__title { font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; }
.doc__title span { color: var(--muted); font-weight: 400; }
.doc__row { display: flex; justify-content: space-between; padding: 8px 6px; border-radius: 6px; margin-top: 6px; transition: background .35s, box-shadow .35s; }
.doc__row b { font-weight: 500; }
.doc__row.is-hit { background: rgba(27,127,76,.12); box-shadow: inset 0 0 0 1.5px rgba(27,127,76,.6); }
.doc__fine { height: 8px; background: #efefec; border-radius: 4px; margin: 12px 0 0; }
.doc__fine + .doc__fine { width: 70%; margin-top: 6px; }
.scanline { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--green), transparent); opacity: 0; }
.scanline.is-on { animation: scan 1.6s ease-in-out; }
@keyframes scan { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.sheet__row { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid #f0f0ed; }
.sheet__row:first-child { border-top: 0; background: var(--tint); font-weight: 500; }
.sheet__row > div { padding: 10px 14px; }
.sheet__row > div:first-child { color: var(--muted); }
.sheet__val { opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .4s; }
.sheet__val.is-in { opacity: 1; transform: none; }
.sheet__status { margin-top: 12px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #d6d6d2; }
.dot.is-on { background: var(--green); }
@media (max-width: 900px) { .reader { grid-template-columns: 1fr; } }

