:root {
  --accent: #0E7C4A;
  --accent-hover: #0B6B40;
  --tint: #E5EFE8;
  --accent-light: #92BDA1;
  --ink: #14171A;
  --ink-2: #3A4047;
  --muted: #5B6168;
  --line: #E4E4DD;
  --rule: #D6D6CE;
  --field: #CFCFC6;
  --bg: #FBFBF8;
  --bg-alt: #F3F3EE;
  --dark: #121518;
  --on-dark: #F3F2EC;
  --on-dark-2: #C9CCC6;
  --on-dark-3: #9BA09A;
  --sans: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Inter Tight", Inter, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::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(--bg); color: var(--ink); font-family: var(--sans); }
a { color: var(--ink); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.tr-h { text-wrap: balance; }
.tr-p { text-wrap: pretty; }
.accent { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; border-radius: 12px; }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
.btn-md { min-height: 52px; padding: 0 24px; font-size: 16px; justify-content: center; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-xl { min-height: 56px; padding: 0 28px; font-size: 17px; align-self: flex-start; }
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #2A2F34; color: #FFFFFF; }
.btn-ghost { padding: 0 24px; border: 1px solid var(--field); background: #FFFFFF; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-in { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.navlinks { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.navlinks a { text-decoration: none; color: var(--ink-2); }
.navlinks a:hover { color: var(--accent-hover); }
@media (max-width: 820px) { .navlinks { display: none; } }

/* Hero */
.hero { background-image: repeating-linear-gradient(0deg, transparent 0 39px, #EEEEE8 39px 40px); }
.hero-grid { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 14px; font-weight: 600; }
.hero-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(46px, 6.2vw, 84px); line-height: 0.98; letter-spacing: -0.035em; }
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 0; font-size: 15px; color: var(--muted); }

/* Receipt */
.receipt-wrap { display: flex; justify-content: center; }
.receipt-box { position: relative; width: 100%; max-width: 470px; filter: drop-shadow(0 24px 40px rgba(20, 23, 26, 0.14)); }
.receipt {
  background: #FFFFFF; padding: 32px 32px 108px; font-family: var(--mono); font-size: 14px; color: var(--ink); border-radius: 6px 6px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
}
.r-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; letter-spacing: 0.08em; }
.r-brand { font-weight: 600; }
.r-doc { color: var(--muted); }
.r-sub { margin-top: 6px; color: var(--muted); }
.r-rule { margin: 20px 0 6px; border-top: 1px solid var(--ink); }
.r-rows { display: flex; flex-direction: column; }
.r-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.r-row:last-child { border-bottom: 1px solid var(--ink); }
.r-k { display: flex; flex-direction: column; gap: 3px; font-weight: 500; }
.r-k small { color: var(--muted); font-size: 12px; font-weight: 400; }
.r-v { font-weight: 600; white-space: nowrap; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 20px; }
.r-total-k { font-weight: 600; letter-spacing: 0.06em; }
.r-total-v { font-weight: 600; font-size: 22px; color: var(--accent); white-space: nowrap; }
.r-link { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.stamp { position: absolute; right: 30px; bottom: 34px; transform: rotate(-9deg); border: 2.5px solid var(--accent); color: var(--accent); border-radius: 8px; padding: 8px 14px; font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; background: rgba(255, 255, 255, 0.86); pointer-events: none; }

/* Sections */
.section .wrap { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.bt { border-top: 1px solid var(--line); }
.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-stack { display: flex; flex-direction: column; gap: 48px; }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.sec-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* What we automate */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.card h3 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--ink); }
.step-num { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--accent); }
.steps h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.steps p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* Why us */
.why { background: var(--dark); color: var(--on-dark); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(40px, 6vw, 80px); }
.why-left { display: flex; flex-direction: column; gap: 20px; }
.why .eyebrow { color: var(--accent-light); }
.why .h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.02; }
.why-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--on-dark-2); }
.founder { display: flex; align-items: center; gap: 16px; padding-top: 8px; }
.avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; background: #2A2F34; border: 2px solid var(--accent-light); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--on-dark); }
.founder-text { display: flex; flex-direction: column; gap: 3px; }
.founder-text strong { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--on-dark); }
.founder-text span { font-size: 15px; color: var(--on-dark-3); }
.founder-text a { color: var(--accent-light); text-underline-offset: 3px; }
.founder-text a:hover { color: #FFFFFF; }
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; align-self: center; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-list svg { flex: none; margin-top: 3px; color: var(--accent-light); }
.why-list li > div { display: flex; flex-direction: column; gap: 6px; }
.why-list h3 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; }
.why-list p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--on-dark-2); }

/* Cases */
.grid-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.case { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; }
.case-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.case h3 { margin: 0; font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; }
.case p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.case p strong { color: var(--ink); }
.case-metric { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--rule); display: flex; flex-direction: column; gap: 4px; }
.metric-big { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.metric-sub { font-size: 14px; color: var(--muted); }
.hl { color: var(--accent); font-weight: 600; }

/* Testimonials */
.quotes-grid { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; }
.quotes figure { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.quotes blockquote { margin: 0; font-family: var(--display); font-size: 21px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.quotes figcaption { font-size: 15px; color: var(--muted); }
.quotes figcaption strong { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-left { display: flex; flex-direction: column; gap: 24px; }
.contact-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.0; letter-spacing: -0.035em; }
.contact-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 520px; }
.contact-meta { display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--ink-2); }
.contact-meta a { font-weight: 600; text-underline-offset: 4px; }
.write-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 36px); background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; }
.write-title { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.write-intro { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.write-list { margin: 0; padding: 0; list-style: none; counter-reset: w; display: flex; flex-direction: column; gap: 12px; }
.write-list li { counter-increment: w; display: flex; gap: 14px; align-items: baseline; font-size: 16px; line-height: 1.5; color: var(--ink); padding-bottom: 12px; border-bottom: 1px dashed var(--rule); }
.write-list li::before { content: counter(w, decimal-leading-zero); font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--accent); flex: none; }
.write-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.write-note a { color: var(--muted); text-underline-offset: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-in { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }

/* Legal and 404 pages */
.page-main .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 112px); }
.prose { max-width: 720px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prose h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
.prose h2 { margin: 40px 0 10px; font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; color: var(--ink); }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose a { text-underline-offset: 3px; }
.updated { font-size: 15px; color: var(--muted); margin-bottom: 32px !important; }
.nf { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 640px; }
.nf-code { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; color: var(--accent); }
.nf h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1.0; letter-spacing: -0.035em; }
.nf p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
