/* Presora public site — component styles that Tailwind utilities can't express. */

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font-sans);
  color: var(--ink-700-hex);
  background: var(--surface-hex);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink-900-hex); letter-spacing: -.02em; }
::selection { background: var(--brand-100-hex); color: var(--ink-900-hex); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .9375rem; line-height: 1;
  padding: .8125rem 1.375rem; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgb(var(--brand-600) / .25); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--brand-hex); color: #fff; box-shadow: var(--sh-xs); }
.btn-primary:hover { background: var(--brand-hover-hex); }
.btn-primary:active { background: var(--brand-active-hex); }
.btn-secondary { background: #fff; color: var(--ink-900-hex); border-color: var(--line-hex); box-shadow: var(--sh-xs); }
.btn-secondary:hover { border-color: var(--ink-400-hex); background: var(--surface-muted-hex); }
.btn-ghost { background: transparent; color: var(--ink-700-hex); }
.btn-ghost:hover { background: var(--surface-muted-hex); color: var(--ink-900-hex); }
.btn-soft { background: var(--brand-soft-hex); color: var(--brand-hover-hex); }
.btn-soft:hover { background: var(--brand-100-hex); }
.btn-sm { padding: .5625rem 1rem; font-size: .875rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 1.125rem; }
.field-label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-900-hex); margin-bottom: .4rem; }
.field-hint { font-size: .8125rem; color: var(--ink-500-hex); margin-top: .35rem; }
.field-error { font-size: .8125rem; color: var(--danger-hex); margin-top: .35rem; }
.input {
  display: block; width: 100%; font: inherit; font-size: .9375rem; color: var(--ink-900-hex);
  background: #fff; border: 1px solid var(--line-strong, #CBD5E1); border-radius: var(--r-md);
  padding: .75rem .9375rem; transition: border-color .15s, box-shadow .15s; appearance: none;
}
.input::placeholder { color: var(--ink-400-hex); }
.input:hover { border-color: var(--ink-400-hex); }
.input:focus { outline: none; border-color: var(--brand-hex); box-shadow: 0 0 0 4px rgb(var(--brand-600) / .12); }
.input.is-invalid { border-color: var(--danger-hex); }
.input-group { position: relative; }
.input-group .input { padding-right: 2.75rem; }
.input-group > .input-icon { position: absolute; left: .9375rem; top: 50%; transform: translateY(-50%); color: var(--ink-400-hex); pointer-events: none; }
.input-group.has-icon .input { padding-left: 2.625rem; }
.input-addon {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--ink-500-hex); background: transparent; border: 0; cursor: pointer;
}
.input-addon:hover { background: var(--surface-muted-hex); color: var(--ink-900-hex); }
textarea.input { min-height: 8rem; resize: vertical; }
.checkbox { width: 1.05rem; height: 1.05rem; border-radius: 5px; border: 1.5px solid var(--ink-400-hex); accent-color: var(--brand-hex); cursor: pointer; flex: none; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1rem; border-radius: var(--r-md); font-size: .9rem; border: 1px solid; }
.alert i { margin-top: .15rem; }
.alert ul { margin: 0; padding-left: 1rem; }
.alert-success { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.alert-error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.alert-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* ---------- Navbar ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .85); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-nav.is-scrolled { border-bottom-color: var(--line-hex); box-shadow: var(--sh-xs); }
.nav-link { font-size: .9375rem; font-weight: 500; color: var(--ink-700-hex); padding: .5rem .75rem; border-radius: var(--r-sm); transition: color .15s, background .15s; }
.nav-link:hover { color: var(--ink-900-hex); background: var(--surface-muted-hex); }
.nav-link.is-active { color: var(--brand-hex); }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgb(15 23 42 / .4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(20rem, 85vw); background: #fff; z-index: 70; transform: translateX(100%); transition: transform .25s cubic-bezier(.4,0,.2,1); box-shadow: var(--sh-lg); display: flex; flex-direction: column; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer .nav-link { display: block; padding: .8rem .9rem; font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 6.5rem 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-hex); }
.eyebrow::before { content: ""; width: 1.25rem; height: 2px; background: currentColor; border-radius: 2px; }
.card { background: #fff; border: 1px solid var(--line-hex); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.card-hover { transition: box-shadow .2s, border-color .2s, transform .2s; }
.card-hover:hover { box-shadow: var(--sh-md); border-color: var(--ink-300, #CBD5E1); transform: translateY(-2px); }
.icon-tile { width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft-hex); color: var(--brand-hex); font-size: 1.125rem; }
.hero-grid { background-image: linear-gradient(to right, rgb(15 23 42 / .04) 1px, transparent 1px), linear-gradient(to bottom, rgb(15 23 42 / .04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at top, #000 40%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at top, #000 40%, transparent 75%); }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .375rem .75rem; border-radius: 999px; font-size: .8125rem; font-weight: 500; background: var(--surface-muted-hex); color: var(--ink-700-hex); border: 1px solid var(--line-hex); }
.chip i { color: var(--brand-hex); }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink-900-hex); line-height: 1; }
.step-number { width: 2.5rem; height: 2.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink-900-hex); color: #fff; font-weight: 700; }

/* Pricing */
.plan-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.plan-card.is-popular { border-color: var(--brand-hex); box-shadow: 0 0 0 1px var(--brand-hex), var(--sh-md); }
.plan-badge { position: absolute; top: -.8rem; left: 1.5rem; padding: .3rem .75rem; border-radius: 999px; background: var(--brand-hex); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.plan-price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink-900-hex); line-height: 1; }
.plan-features li { display: flex; gap: .625rem; align-items: flex-start; font-size: .9rem; color: var(--ink-700-hex); }
.plan-features li i { color: var(--brand-hex); margin-top: .2rem; font-size: .8rem; }
/* Plan descriptions come from the admin WYSIWYG with legacy classes baked in — normalise them here. */
.plan-description > * { margin: 0 !important; }
.plan-description > * + * { margin-top: .75rem !important; }
.plan-description ul { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: .5rem; }
.plan-description ul:empty { display: none; }
.plan-description li { display: flex !important; gap: .625rem; align-items: flex-start; font-size: .9rem !important; color: var(--ink-700-hex) !important; line-height: 1.5; }
.plan-description li i { color: var(--brand-hex) !important; font-size: .8rem !important; margin-top: .3rem; flex: none; }
.plan-description p:empty, .plan-description p > br:only-child { display: none; }
.plan-description p { font-size: .875rem; color: var(--ink-500-hex); }
.plan-description p span[style] { color: var(--ink-900-hex); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line-hex); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.125rem 0; font-weight: 600; color: var(--ink-900-hex); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--ink-400-hex); transition: transform .2s; flex: none; }
.faq-item[open] summary i { transform: rotate(45deg); color: var(--brand-hex); }
.faq-item .faq-body { padding: 0 0 1.25rem; color: var(--ink-700-hex); line-height: 1.7; max-width: 60ch; }

/* ---------- Static page prose ---------- */
.prose { color: var(--ink-700-hex); line-height: 1.75; font-size: 1rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--line-hex); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 600; margin-top: 2em; }
.prose h4 { font-size: 1rem; font-weight: 600; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--brand-hex); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink-900-hex); font-weight: 600; }
.prose table { width: 100%; font-size: .9rem; border-collapse: collapse; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line-hex); vertical-align: top; }
.prose th { color: var(--ink-900-hex); font-weight: 600; background: var(--surface-muted-hex); }
.prose .callout { background: var(--brand-soft-hex); border: 1px solid var(--brand-100-hex); border-radius: var(--r-md); padding: 1rem 1.25rem; }
.prose .callout p { margin: 0; }
.toc a { display: block; font-size: .875rem; color: var(--ink-500-hex); padding: .35rem 0 .35rem .9rem; border-left: 2px solid var(--line-hex); transition: color .15s, border-color .15s; }
.toc a:hover, .toc a.is-active { color: var(--brand-hex); border-left-color: var(--brand-hex); }

/* Guidelines page */
.pill-modern { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--ink-700-hex); background: #fff; border: 1px solid var(--line-hex); cursor: pointer; white-space: nowrap; transition: all .15s; }
.pill-modern:hover { border-color: var(--ink-400-hex); }
.pill-modern.active { background: var(--brand-hex); border-color: var(--brand-hex); color: #fff; }
.toast-modern { position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 1rem); background: var(--ink-900-hex); color: #fff; padding: .75rem 1.25rem; border-radius: var(--r-md); font-size: .9rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; box-shadow: var(--sh-lg); }
.toast-modern.show { opacity: 1; transform: translate(-50%, 0); }

/* Password strength */
.strength-bar { height: 4px; background: var(--line-hex); border-radius: 999px; overflow: hidden; }
.strength-bar > div { height: 100%; width: 0; border-radius: 999px; transition: width .3s, background-color .3s; }
.requirement { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--ink-500-hex); }
.requirement i { font-size: .7rem; width: 1rem; text-align: center; }
.requirement.met { color: var(--success-hex); }

/* Checkout */
.plan-option, .payment-option { cursor: pointer; border: 1px solid var(--line-hex); border-radius: var(--r-md); background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.plan-option:hover, .payment-option:hover { border-color: var(--ink-400-hex); }
.plan-option.is-selected, .payment-option.is-selected { border-color: var(--brand-hex); background: var(--brand-soft-hex); box-shadow: 0 0 0 1px var(--brand-hex); }

/* Misc */
.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--ink-400-hex); font-size: .8125rem; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line-hex); }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; border-radius: var(--r-sm); box-shadow: var(--sh-md); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
