/* Fonts are served from Loup itself (no Google) — SIL Open Font License, see /fonts */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
/* Loup — public website */
:root {
  --ink: #0d1b2a; --ink2: #33415c; --muted: #5c677d; --line: #e3e8ef; --soft: #f5f7fa; --paper: #fff;
  --brand: #0f6e66; --brand-dark: #0a524c; --brand-soft: #e7f4f2; --gold: #c8963e; --night: #0b1d2b;
  --radius: 16px; --shadow: 0 1px 2px rgba(13,27,42,.05), 0 8px 24px rgba(13,27,42,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--paper); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--ink2); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo-word { font-family: "Fraunces", Georgia, serif; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--ink2); font-weight: 500; font-size: 15px; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--soft); }
.actions { margin-left: auto; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
@media (max-width: 1180px) { .nav { margin-left: 6px; gap: 0; } .nav a { padding: 8px 8px; } .actions { gap: 8px; } }
@media (max-width: 1000px) {
  .nav, .actions { display: none; }
  .menu-btn { display: block; }
  .site-header.open .nav, .site-header.open .actions { display: flex; }
  .site-header.open .bar { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; row-gap: 4px; }
  .site-header.open .nav, .site-header.open .actions { order: 3; }
  .site-header.open .nav { flex-direction: column; width: 100%; margin: 6px 0 0; }
  .site-header.open .actions { width: 100%; margin: 6px 0 4px; }
  .site-header.open .actions .btn { flex: 1; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15.5px; text-decoration: none; border-radius: 11px; padding: 11px 20px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c5ced9; }
.btn-light { background: #fff; color: var(--night); }
.btn-lg { padding: 14px 26px; font-size: 17px; }

/* Sections */
section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--night); color: #e6edf3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted { color: #9fb0c0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }

/* Hero */
.hero { padding: 84px 0 72px; background: radial-gradient(1200px 500px at 85% -10%, #dff1ee 0%, rgba(223,241,238,0) 60%), linear-gradient(#fff, #fbfcfd); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero .assure { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.hero .assure span::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 6px; }
.page-hero { padding: 72px 0 56px; background: linear-gradient(#f4faf9, #fff); border-bottom: 1px solid var(--line); }

/* Mock dashboard */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(13,27,42,.25); overflow: hidden; }
.mock-top { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: #dfe4ea; display: block; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.mock-side { background: #12324a; padding: 14px 10px; }
.mock-side b { display: block; color: #fff; font-size: 12px; margin-bottom: 12px; }
.mock-side span { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.16); margin: 10px 0; }
.mock-main { padding: 16px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.kpi small { display: block; font-size: 10.5px; color: var(--muted); }
.kpi strong { font-size: 20px; }
.mock-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.pill { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.pill.g { background: #dcfce7; color: #166534; } .pill.a { background: #fef3c7; color: #92400e; } .pill.r { background: #fee2e2; color: #991b1b; }
.bar-mini { flex: 1; height: 6px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.bar-mini div { height: 6px; background: var(--brand); }

/* Cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%230f6e66' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.feature-block + .feature-block { margin-top: 80px; }

/* Regulators strip */
.regs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.reg { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 9px 18px; font-weight: 600; font-size: 14.5px; color: var(--ink2); }
.reg small { color: var(--muted); font-weight: 500; }

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 62px; margin-bottom: 26px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
.step h3 { font-size: 19px; margin-bottom: 4px; }

/* Pricing */
.toggle { display: inline-flex; background: #e9eef3; border-radius: 12px; padding: 4px; }
.toggle button { border: 0; background: none; font: inherit; font-weight: 600; padding: 8px 20px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--brand); position: relative; }
.price-card .tag { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.price { font-family: "Fraunces", Georgia, serif; font-size: 40px; font-weight: 600; margin: 8px 0 2px; }
.price small { font-family: "Inter", sans-serif; font-size: 15px; color: var(--muted); font-weight: 500; }
.price-card .btn { margin-top: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; }
table.compare th, table.compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; width: 22%; }
table.compare thead th { background: var(--soft); font-size: 14px; }
.yes { color: var(--brand); font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; color: var(--ink2); }

/* Forms */
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink2); margin-bottom: 14px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-weight: 400; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; margin-top: 5px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,110,102,.15); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; }
.msg { padding: 12px 14px; border-radius: 10px; margin: 10px 0; font-weight: 500; }
.msg.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.msg.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #0f6e66, #0b4f5c); color: #fff; border-radius: 22px; padding: 56px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5ece9; max-width: 600px; margin: 0 auto 26px; }

/* Notice */
.notice { font-size: 13.5px; color: var(--muted); border-left: 3px solid var(--gold); padding: 6px 0 6px 14px; margin-top: 18px; }

/* Footer */
.site-footer { background: var(--night); color: #9fb0c0; padding: 64px 0 28px; font-size: 14.5px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: .03em; }
.site-footer a { color: #c4d1dc; text-decoration: none; display: block; margin: 7px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Legal pages */
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { font-size: 18px; margin-top: 1.3em; }
.prose li { margin: 6px 0; }

/* Announcement bar (set on the admin page) */
.announce { background: var(--night); color: #e2ece9; font-size: 14px; text-align: center; padding: 9px 0; }
.announce a { color: #7fd3c7; font-weight: 600; white-space: nowrap; }

/* News & articles */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.post-card:hover { transform: translateY(-2px); border-color: #c5ced9; }
.post-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0f6e66, #0b4f5c); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover-blank { color: #fff; font-family: "Fraunces", Georgia, serif; font-size: 24px; opacity: .9; }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 20px; margin: 6px 0 8px; }
.post-body p { color: var(--ink2); font-size: 15px; }
.post-meta { font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: .02em; }
.post-more { margin-top: auto; font-weight: 600; color: var(--brand); font-size: 15px; }
.post-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.post-chips a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink2); font-size: 14.5px; font-weight: 600; background: #fff; }
.post-chips a.on, .post-chips a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-pages { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; }
.post-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 30px; display: block; }
.post-article { font-size: 17.5px; line-height: 1.7; }
.post-article img { border-radius: 12px; margin: 10px 0; height: auto; }
.post-article blockquote { border-left: 4px solid var(--brand); margin: 1.4em 0; padding: 4px 0 4px 20px; color: var(--ink2); font-style: italic; }
.post-article figure { margin: 1.4em 0; } .post-article figcaption { font-size: 14px; color: var(--muted); }
.post-article hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-share { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; font-size: 15px; }
.post-share span { color: var(--muted); }
.post-preview { background: #fffbeb; border-bottom: 1px solid #fcd34d; color: #78350f; text-align: center; padding: 10px 16px; font-size: 14.5px; font-weight: 600; }

/* Pictures added from the admin page */
.site-pic { margin: 22px 0; }
.site-pic img { display: block; max-width: 100%; height: auto; border-radius: 14px; }
.center .site-pic img { margin: 0 auto; }
