/* EBIS-Pro public website. Brand colours match the app's "EndorseOn Blue"
   theme (EBIS.App/Themes/ThemeEndorseOnBlue.xaml). No external fonts or
   scripts: everything is served from this folder. */

:root {
  --blue: #009cde;
  --blue-dark: #0077aa;
  --blue-light: #cfeafb;
  --navy: #04293a;
  --navy-2: #0a3a50;
  --ink: #0b2436;
  --muted: #5b7a8c;
  --page: #eff6fc;
  --card: #ffffff;
  --line: #c3dce8;
  --green: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(4, 41, 58, .06), 0 8px 24px rgba(4, 41, 58, .08);
  --wrap: 1140px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: #fff; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.tint { background: var(--page); }
.section.dark { background: var(--navy); color: #d8e8f1; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 12px; }
.dark .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: #7fd3f5; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--navy); background: #e8f6fd; }
.hero .btn-ghost, .dark .btn-ghost, .page-head .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover, .dark .btn-ghost:hover, .page-head .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid #e3eef5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; }
.brand-name { font-family: var(--font-display); font-weight: 750; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-name span { color: var(--blue); }
.brand-by { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-top: -3px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 550; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-dark); }
.nav .btn { color: #fff; padding: 10px 18px; }
.nav .btn:hover, .nav .btn:focus-visible { color: #fff; background: var(--navy); box-shadow: 0 6px 16px rgba(4,41,58,.18); }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 8px; margin-right: -8px; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; width: 24px; height: 2px; background: var(--ink); position: relative; border-radius: 2px;
}
.nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid #e3eef5; box-shadow: 0 12px 24px rgba(4,41,58,.08); }
  .nav a { padding: 12px 0; border-bottom: 1px solid #eef4f8; }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #d8e8f1;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(0,156,222,.35), transparent 60%),
              linear-gradient(180deg, var(--navy) 0%, #062f43 100%);
  padding: 80px 0 0;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em { font-style: normal; color: #5cc8f2; }
.hero .lead { color: #b9d3e1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero-cta { margin: 28px 0 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0 0 48px; font-size: .95rem; color: #b9d3e1; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: rgba(92,200,242,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235cc8f2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero-shot { margin-bottom: -2px; }

/* Screenshot frame: a Windows 11 style window (title on the left,
   minimize / maximize / close on the right). */
.frame { background: #fff; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.28), 0 0 0 1px rgba(4,41,58,.08); overflow: hidden; }
.frame-bar { display: flex; align-items: center; height: 32px; padding: 0 0 0 12px; background: #f3f3f3; border-bottom: 1px solid #e5e5e5; }
.frame-icon { width: 18px; height: auto; flex: none; }
.frame-bar b { margin-left: 9px; font-size: .75rem; font-weight: 400; color: #1b1b1b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-controls { margin-left: auto; display: flex; height: 100%; flex: none; }
.frame-controls span { position: relative; width: 46px; height: 100%; display: block; }
.frame-controls span::before, .frame-controls span::after { content: ""; position: absolute; left: 50%; top: 50%; }
.win-min::before { width: 10px; height: 1px; background: #1b1b1b; transform: translate(-50%, -50%); }
.win-max::before { width: 9px; height: 9px; border: 1px solid #1b1b1b; border-radius: 1px; transform: translate(-50%, -50%); }
.win-close::before, .win-close::after { width: 13px; height: 1px; background: #1b1b1b; }
.win-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.win-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.hero .frame { border-radius: 8px 8px 0 0; }
.section .frame { box-shadow: var(--shadow), 0 0 0 1px rgba(4,41,58,.06); }

/* Cards and grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid #dcebf3; border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(4,41,58,.04); }
.card h3 { margin-top: 14px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue-dark); }
.icon svg { width: 24px; height: 24px; }
.dark .card { background: var(--navy-2); border-color: rgba(255,255,255,.08); }
.dark .card p { color: #a9c4d3; }
.dark .icon { background: rgba(92,200,242,.15); color: #5cc8f2; }

.section-head { margin-bottom: 48px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 44px 0; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; } .feature.flip .feature-text { order: 0; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230077aa' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.dark .checks li::before { background-color: rgba(92,200,242,.18); }

/* Cost comparison */
.compare { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.bar-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: center; }
.bar-label { font-weight: 600; color: #fff; line-height: 1.3; }
.bar-label small { display: block; font-weight: 400; color: #a9c4d3; font-size: .85rem; }
.bar { height: 44px; border-radius: 8px; background: rgba(255,255,255,.1); position: relative; }
.bar span { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: #3f6a80; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; font-weight: 700; color: #fff; min-width: 88px; white-space: nowrap; }
.bar.ours span { background: var(--blue); }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr; gap: 6px; } }

/* Pricing */
.price-card { background: #fff; border-radius: 20px; border: 2px solid var(--blue); box-shadow: var(--shadow); padding: 36px; max-width: 520px; margin: 0 auto; position: relative; }
.price-card .tag { position: absolute; top: -14px; left: 36px; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 4px; }
.price strong { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.price span { color: var(--muted); font-weight: 600; }
.currency-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--page); border-radius: 10px; padding: 4px; margin: 6px 0 14px; }
.currency-switch button { font: inherit; font-size: .88rem; font-weight: 650; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.currency-switch button[aria-pressed="true"] { background: #fff; color: var(--blue-dark); box-shadow: 0 1px 3px rgba(4,41,58,.12); }
.price-card .btn { width: 100%; margin-top: 18px; }
.guarantee { display: flex; gap: 18px; align-items: flex-start; background: #f2fbf5; border: 1px solid #bfe6cc; border-radius: var(--radius); padding: 22px 24px; }
.guarantee .seal {
  flex: none; width: 68px; height: 68px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px rgba(255,255,255,.55);
  text-align: center; line-height: 1;
}
.guarantee .seal-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.guarantee .seal-lbl { font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.guarantee h3 { margin: 0 0 4px; }
.guarantee p { margin: 0; color: #2f5a3f; }

table.simple { width: 100%; border-collapse: collapse; font-size: .98rem; }
table.simple th, table.simple td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e3eef5; vertical-align: top; }
table.simple th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid #dcebf3; border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--blue-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #eaf7fd; border-radius: 22px; padding: 56px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--blue-dark); }
.cta-band .btn-primary:hover { background: var(--navy); color: #fff; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { color: var(--blue-dark); background: #fff; border-color: #fff; }

/* Page header (inner pages) */
.page-head { background: linear-gradient(180deg, var(--navy), #062f43); color: #b9d3e1; padding: 64px 0 56px; }
.page-head h1 { color: #fff; }
.page-head .lead { color: #b9d3e1; }

/* Legal prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.note { background: var(--page); border-left: 4px solid var(--blue); padding: 14px 18px; border-radius: 6px; }

/* Footer */
.site-footer { background: var(--navy); color: #a9c4d3; padding: 64px 0 36px; font-size: .95rem; }
.site-footer a { color: #d8e8f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.footer-logo { width: 190px; margin-bottom: 16px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; font-size: .82rem; color: #86a6b8; }
.footer-legal p { margin: 4px 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .price-card { padding: 30px 22px; }
  .cta-band { padding: 44px 22px; }
  .guarantee { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }

/* Price card tweaks for narrow screens */
.price span { white-space: nowrap; }
@media (max-width: 480px) {
  .price strong { font-size: 2.8rem; }
  .currency-switch { display: flex; }
  .currency-switch button { flex: 1 1 0; padding: 6px 4px; }
}

/* Feature highlight callout (e.g. scheduled email campaigns) */
.highlight { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--blue-light); border-left: 4px solid var(--blue); border-radius: 12px; padding: 16px 18px; margin-top: 20px; box-shadow: 0 1px 2px rgba(4,41,58,.05); }
.highlight .icon { flex: none; width: 40px; height: 40px; }
.highlight .icon svg { width: 22px; height: 22px; }
.highlight strong { display: block; color: var(--ink); margin-bottom: 2px; }
.highlight p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Release notes page (added 2026-10-01) -- filled in by assets/js/site.js. */
.release { border-top: 1px solid var(--line, #dcebf3); padding-top: 8px; margin-top: 28px; scroll-margin-top: 90px; }
.release:first-child { border-top: none; margin-top: 0; }
.release h2 { margin-top: .6em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-latest { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #e2f6ea; color: #1c7c3e; padding: 3px 10px; border-radius: 999px; }
