/* Public pages (sign-in, pricing, sign-up, verify, try the demo): Booknip AuditPro look on top of app.css tokens. Light and dark. */
:root {
  /* Booknip brand: navy night into Booknip Blue, with cyan and gold accents (on-dark values). */
  --pub-hero-from: #061226;
  --pub-hero-mid: #0A1F3F;
  --pub-hero-to: #0349A9;
  --pub-hero-ink: #FFFFFF;
  --pub-hero-soft: rgba(255, 255, 255, .78);
  --pub-hero-line: rgba(255, 255, 255, .16);
  --pub-card-shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --pub-surface: #FFFFFF;
  --pub-accent: #E0BE45;
  --pub-cyan: #2CCBE6;
}
[data-bs-theme="dark"] {
  --pub-hero-from: #050D1B;
  --pub-hero-mid: #081A35;
  --pub-hero-to: #02347A;
  --pub-card-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --pub-surface: #151E29;
}
html, body { overflow-x: hidden; }
body.pub { background: var(--ap-bg); min-height: 100vh; }

/* Top bar of the public pages */
.pub-bar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; }
.pub-bar .ap-brand, .pub-logo { color: inherit; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; }
.pub-mark { width: 34px; height: 34px; flex: none; }
/* Booknip logo + AuditPro wordmark (logo at least 100px wide; clear space kept by the gap) */
.pub-brand-logo { width: 108px; height: auto; display: block; }
.pub-brand-name { font-weight: 600; font-size: 18px; padding-left: .7rem; border-left: 1.5px solid rgba(255, 255, 255, .35); line-height: 1.15; }
.pub-logo { gap: .75rem !important; }
.pub-brand-sm { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; font-weight: 600; }
.pub-brand-sm img { width: 100px; height: auto; display: block; }
.pub-brand-sm span { padding-left: .6rem; border-left: 1.5px solid var(--ap-line); }
.pub-logo-dark { display: none !important; }
[data-bs-theme="dark"] .pub-logo-light { display: none !important; }
[data-bs-theme="dark"] .pub-logo-dark { display: block !important; }
.pub-logo small { font-weight: 500; opacity: .75; }
.pub-bar.pub-solid { background: var(--ap-navy); color: #fff; }
[data-bs-theme="dark"] .pub-bar.pub-solid { background: #023A87; } /* stays a strong blue, so the white logo applies */
.pub-bar .btn-theme { --bs-btn-padding-y: .2rem; --bs-btn-padding-x: .5rem; }

/* Sign-in: features half + form half. Phones: the form comes first. */
.pub-split { display: flex; min-height: 100vh; }
.pub-hero {
  flex: 1 1 55%; min-width: 0; color: var(--pub-hero-ink); position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at -10% -20%, rgba(255, 255, 255, .10), transparent 60%),
    radial-gradient(800px 420px at 110% 110%, rgba(5, 173, 203, .32), transparent 60%),
    linear-gradient(140deg, var(--pub-hero-from) 0%, var(--pub-hero-mid) 48%, var(--pub-hero-to) 100%);
  padding: 2.25rem clamp(1rem, 4vw, 3.5rem) 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.pub-hero::after { /* a faint ledger grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--pub-hero-line) 1px, transparent 1px), linear-gradient(90deg, var(--pub-hero-line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 70%); -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 70%);
}
.pub-hero > * { position: relative; z-index: 1; }
.pub-hero h1 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.pub-hero .lead { color: var(--pub-hero-soft); font-size: 1.02rem; max-width: 40rem; margin: .6rem 0 0; }
.pub-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--pub-accent); }
.pub-ai-chip {
  display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .2rem .7rem; font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; white-space: nowrap;
}
.pub-ai-panel { border-radius: 14px; padding: 1rem 1.1rem; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(4px); }
.pub-ai-panel .bi-stars { color: #CDBEFF; }
.pub-ai-panel p { color: var(--pub-hero-soft); margin: .25rem 0 0; font-size: 13.5px; }
.pub-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.pub-feature { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .75rem; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.pub-feature .pub-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-size: 17px; }
.pub-feature b { display: block; font-size: 13.5px; }
.pub-feature span { display: block; font-size: 12.5px; color: var(--pub-hero-soft); line-height: 1.35; }
.pub-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: 12.5px; color: var(--pub-hero-soft); margin-top: auto; }
.pub-trust i { color: var(--pub-cyan); }

.pub-form-side { flex: 1 1 45%; min-width: 0; max-width: 640px; display: flex; flex-direction: column; background: var(--bs-body-bg); }
.pub-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem 2rem; }
.pub-form { width: 100%; max-width: 400px; }
.pub-form h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem; }
.pub-divider { display: flex; align-items: center; gap: .75rem; color: var(--ap-muted); font-size: 12px; margin: 1rem 0; }
.pub-divider::before, .pub-divider::after { content: ""; flex: 1; border-top: 1px solid var(--ap-line); }
.pub-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pub-foot { font-size: 12px; color: var(--ap-muted); padding: 0 1rem 1rem; text-align: center; }
.pub-ms { display: inline-grid; grid-template-columns: 8px 8px; gap: 1px; margin-right: .4rem; vertical-align: -1px; }
.pub-ms i { width: 8px; height: 8px; display: block; }

@media (max-width: 991.98px) {
  .pub-split { flex-direction: column; min-height: 0; }
  .pub-form-side { order: 1; max-width: none; }
  .pub-hero { order: 2; padding-top: 1.75rem; }
  .pub-form-wrap { padding-top: .5rem; }
}
@media (max-width: 575.98px) {
  .pub-features { grid-template-columns: minmax(0, 1fr); }
  .pub-cta { grid-template-columns: minmax(0, 1fr); }
}

/* Pricing */
.pub-page { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.pub-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.01em; }
.pub-plan { background: var(--bs-body-bg); border: 1px solid var(--ap-line); border-radius: 16px; padding: 1.4rem; height: 100%; display: flex; flex-direction: column; box-shadow: var(--pub-card-shadow); position: relative; }
.pub-plan.pub-hl { border: 2px solid var(--ap-navy); }
[data-bs-theme="dark"] .pub-plan.pub-hl { border-color: #5E9BD6; }
.pub-plan .pub-badge { position: absolute; top: -12px; left: 1.4rem; background: var(--ap-navy); color: #fff; font-size: 11.5px; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; }
.pub-price { font-size: 2.1rem; font-weight: 700; line-height: 1; }
.pub-price small { font-size: .9rem; font-weight: 500; color: var(--ap-muted); }
.pub-facts { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .45rem; font-size: 13.5px; }
.pub-facts li { display: flex; gap: .5rem; align-items: flex-start; }
.pub-facts i { color: var(--ap-ok); }
.pub-facts .pub-no i { color: var(--ap-muted); }
.pub-compare { font-size: 13.5px; }
.pub-compare th, .pub-compare td { white-space: nowrap; }
.pub-compare td:first-child, .pub-compare th:first-child { white-space: normal; min-width: 11rem; }

/* Sign-up, verify, try the demo */
.pub-narrow { max-width: var(--pub-narrow-max, 760px); margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.pub-card { background: var(--bs-body-bg); border: 1px solid var(--ap-line); border-radius: 16px; padding: clamp(1rem, 3vw, 1.75rem); box-shadow: var(--pub-card-shadow); }
.pub-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.pub-steps { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: 13px; color: var(--ap-muted); }
.pub-steps i { color: var(--ap-ok); }
.pub-plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .5rem; }
.pub-plan-pick label { border: 1px solid var(--ap-line); border-radius: 12px; padding: .7rem .8rem; cursor: pointer; display: block; height: 100%; }
.pub-plan-pick input:checked + label { border-color: var(--ap-navy); box-shadow: 0 0 0 .2rem rgba(3, 73, 169, .15); }
.pub-plan-pick input:focus-visible + label { outline: 2px solid var(--ap-navy); outline-offset: 2px; }
[data-bs-theme="dark"] .pub-plan-pick input:checked + label { border-color: #5E9BD6; box-shadow: 0 0 0 .2rem rgba(94, 155, 214, .25); }

/* Signed-in banners (trial, read-only, verify e-mail, onboarding) and the onboarding wizard / training centre */
.ap-acct-banner { border-radius: 10px; }
.ob-steps { display: flex; gap: .35rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1rem; }
.ob-steps li { flex: 1 1 7rem; min-width: 0; }
.ob-steps button { width: 100%; text-align: left; border: 1px solid var(--ap-line); background: var(--bs-body-bg); border-radius: 10px; padding: .45rem .6rem; font-size: 12.5px; color: inherit; }
.ob-steps button .ob-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ap-line); font-size: 11px; font-weight: 700; margin-right: .3rem; }
.ob-steps button.active { border-color: var(--ap-navy); box-shadow: 0 0 0 .15rem rgba(3, 73, 169, .15); font-weight: 600; }
.ob-steps button.done .ob-n { background: var(--ap-ok); color: #fff; }
.ob-steps button.active .ob-n { background: var(--ap-navy); color: #fff; }
.tc-video { aspect-ratio: 16 / 9; border-radius: 10px; display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(140deg, #0349A9, #061226); }
.tc-video i { font-size: 2rem; opacity: .85; }

/* Phase 30 – large screens: sign-up and Try the demo put the form beside the product overview (the sign-in page's text),
   so a 27-inch or ultrawide screen is not a narrow column in an empty page. Tablets and phones keep the form alone. */
.pub-aside { display: none; }
.pub-aside-title { font-size: clamp(1.6rem, 2.4vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0; color: var(--pub-hero-ink); }
@media (min-width: 1200px) {
  .pub-with-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 56px); }
  .pub-with-aside > .pub-aside { display: flex; justify-content: center; }
  .pub-with-aside > .pub-narrow { width: 100%; max-width: calc(var(--pub-narrow-max, 760px) + 2rem); align-self: center; padding-inline: clamp(1rem, 3vw, 3rem); }
}
@media (min-width: 2200px) {
  .pub-with-aside { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .pub-aside .pub-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pub-with-aside > .pub-narrow { max-width: calc(var(--pub-narrow-max, 760px) * 1.25); font-size: 1.05rem; }
}
/* Pricing and other wide public pages: fluid, more columns on large screens instead of a fixed 1180 px column. */
.pub-page { max-width: min(100%, 2400px); padding-inline: clamp(1rem, 3vw, 3rem); }
