/* Rechnora — modern SaaS marketing site. Brand tokens v1.0 */
@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-latin-variable.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --green: #087a55;
  --green-dark: #075e43;
  --green-bright: #0a9268;
  --mint: #37d39a;
  --mint-mist: #e8f7f0;
  --ink: #111827;
  --slate: #4b5563;
  --slate-light: #6b7280;
  --line: #e4ece8;
  --off-white: #f7f9fc;
  --white: #ffffff;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 3px rgb(17 24 39 / 6%), 0 1px 2px rgb(17 24 39 / 4%);
  --shadow-md: 0 8px 24px rgb(11 59 42 / 8%);
  --shadow-lg: 0 24px 60px rgb(11 59 42 / 12%);
  --maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--off-white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-dark); }
img, svg { max-width: 100%; height: auto; }

/* ---------- Nav ---------- */
.nav-outer {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 249 252 / 78%);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(228 236 232 / 70%);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; gap: 24px;
}
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 32px; width: auto; max-width: none; display: block; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--green); }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--green); transition: width .2s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 12px 22px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.nav-links .btn { padding: 10px 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: var(--white) !important;
  box-shadow: 0 4px 14px rgb(8 122 85 / 30%);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(8 122 85 / 38%); }
.btn-secondary {
  border: 1.5px solid var(--line); color: var(--ink) !important; background: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: #cdd9d3; box-shadow: var(--shadow-md); }

/* ---------- Layout ---------- */
.page { max-width: var(--maxw); margin: 0 auto; padding: 24px; }
.article { max-width: 760px; }
.breadcrumb { max-width: 760px; margin: 8px auto 0; padding: 0 24px; font-size: 14px; color: var(--slate-light); }

h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 20px; }
.article h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -1px; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.8px; margin: 12px 0; }
h3 { font-size: 19px; font-weight: 700; margin: 4px 0; letter-spacing: -0.3px; }
p, ul, ol { margin-bottom: 16px; color: var(--slate); }
.article li { margin-bottom: 8px; margin-left: 20px; }
strong { color: var(--ink); font-weight: 700; }

.eyebrow {
  display: inline-block; color: var(--green); font-weight: 700; font-size: 13px;
  letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 18px;
  padding: 6px 14px; background: var(--mint-mist); border-radius: 100px;
}
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--slate); line-height: 1.55; }

/* ---------- Hero ---------- */
.hero-wrap {
  position: relative;
  background:
    radial-gradient(1000px 500px at 78% -8%, rgb(55 211 154 / 22%), transparent 60%),
    radial-gradient(800px 500px at 0% 8%, rgb(8 122 85 / 8%), transparent 55%),
    var(--off-white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 88px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.hero-copy { max-width: 560px; }
.hero .cta-row { display: flex; gap: 14px; margin: 28px 0 24px; flex-wrap: wrap; }
.gradient-text {
  background: linear-gradient(120deg, var(--green), var(--mint));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.proof-strip {
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center;
  color: var(--slate); font-weight: 600; font-size: 14px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.proof-strip span { display: inline-flex; align-items: center; gap: 7px; }
.proof-strip span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 3px rgb(55 211 154 / 22%);
}
.hero-visual { position: relative; }
.hero-visual svg { filter: drop-shadow(0 30px 60px rgb(11 59 42 / 14%)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.section-tight { padding: 40px 24px; }
.center { text-align: center; max-width: 720px; margin: 0 auto 8px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 32px 0; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3e2db; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 15px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--mint-mist), #d6f0e6);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
}
.card-icon svg { width: 22px; height: 22px; }

/* format cards (bigger) */
.format-card { padding: 32px; }
.format-card .tag { display:inline-block; font-size:12px; font-weight:700; color:var(--green); background:var(--mint-mist); padding:4px 12px; border-radius:100px; margin-bottom:14px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; margin: 32px 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px 24px 22px 72px; position: relative;
  box-shadow: var(--shadow-sm); color: var(--slate); transition: transform .18s ease, box-shadow .18s ease;
}
.steps li:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.steps li strong { color: var(--ink); }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgb(8 122 85 / 28%);
}

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; margin: 24px 0; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--mint-mist); color: var(--ink); font-weight: 700; letter-spacing: -0.2px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fbfdfc; }
td { color: var(--slate); }
.ok { color: var(--green); font-weight: 700; white-space: nowrap; }

/* ---------- Callouts ---------- */
.note {
  background: linear-gradient(135deg, var(--mint-mist), #f0faf5);
  border: 1px solid #d3ecdf; border-left: 4px solid var(--green);
  border-radius: var(--r-md); padding: 18px 22px; margin: 24px 0; font-size: 15px; color: var(--ink);
}
.note strong { color: var(--green-dark); }
.source { font-size: 13.5px; color: var(--slate-light); }

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark), var(--green) 55%, var(--green-bright));
  color: var(--white); border-radius: var(--r-xl);
  padding: 56px; margin: 72px auto; max-width: var(--maxw);
  box-shadow: var(--shadow-lg);
}
.cta-final::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgb(55 211 154 / 40%), transparent 65%);
}
.cta-final h2 { color: var(--white); margin-top: 0; position: relative; }
.cta-final p { color: rgb(255 255 255 / 88%); font-size: 18px; max-width: 560px; position: relative; }
.cta-final .btn { background: var(--white); color: var(--green) !important; margin-top: 8px; position: relative; }
.cta-final .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgb(0 0 0 / 20%); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cbd3da; margin-top: 80px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { font-size: 14px; color: #94a3b0; margin-top: 14px; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 14px; }
.footer-col a { display: block; color: #cbd3da; font-size: 14px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--mint); }
.footer-meta { text-align: center; font-size: 13px; color: #6b7684; padding: 20px; border-top: 1px solid #1f2937; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual svg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 64px; }
  .hero-visual { order: 2; max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-final { padding: 40px 28px; }
  h1 { letter-spacing: -1px; }
}

/* fallback: header cells in tables without explicit thead */
table tr:first-child th { background: var(--mint-mist); color: var(--ink); font-weight: 700; }

/* ---------- Article readability polish ---------- */
.article h2 { margin-top: 44px; margin-bottom: 14px; }
.article h3 { margin-top: 30px; margin-bottom: 8px; }
.article > p:first-of-type { margin-top: 8px; }
.article .lead { margin-bottom: 24px; }
.article .cta-final { margin: 56px 0 8px; padding: 40px; }
.article .cta-final h2 { margin-top: 0; }
.breadcrumb { margin-top: 20px; margin-bottom: -8px; }
/* consistent list styling in articles */
.article ul { list-style: none; padding-left: 0; }
.article ul li { position: relative; padding-left: 26px; margin-left: 0; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.article ol { padding-left: 22px; }
/* tighten steps inside articles (they render as ol.steps) */
.article ol.steps { padding-left: 0; }
.article ol.steps li { padding-left: 72px; margin-left: 0; }
.article ol.steps li::before { background: linear-gradient(135deg, var(--green-bright), var(--green)); }
