/* Kulwant Smart Docs – Collabs Portal
   Brand: red #E32129 / deep red #C81922 / ink #0D0D0D / white */

:root {
  --brand: #e32129;
  --brand-dark: #c81922;
  --ink: #0d0d0d;
  --line: #e5e5e5;
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; color: #1a1a1a; background: #fafafa; }
h1, h2, h3, h4, .font-display { font-family: 'Poppins', 'Inter', sans-serif; }
::selection { background: rgba(227, 33, 41, .18); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .75rem; padding: .7rem 1.25rem; font-weight: 600; font-size: .925rem;
  line-height: 1.25rem; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer; white-space: nowrap; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn.is-loading { opacity: .7; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(227, 33, 41, .7); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(227, 33, 41, .8); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262626; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border-color: #d4d4d4; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: #3a3a3a; }
.btn-ghost:hover { background: #f3f3f3; color: var(--brand); }
.btn-sm { padding: .45rem .85rem; font-size: .8rem; border-radius: .6rem; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #fef2f2; transform: translateY(-1px); }

/* ---------- Forms ---------- */
.field-label { display: block; font-size: .825rem; font-weight: 600; color: #262626; margin-bottom: .4rem; }
.field-label .req { color: var(--brand); }
.field {
  width: 100%; border: 1px solid #d9d9d9; background: #fff; border-radius: .75rem;
  padding: .7rem .95rem; font-size: .925rem; color: #1a1a1a;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field::placeholder { color: #a3a3a3; }
.field:hover { border-color: #bdbdbd; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(227, 33, 41, .12); }
.field.has-icon { padding-left: 2.6rem; }
.field-icon { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: #a3a3a3; pointer-events: none; transition: color .2s; }
.field-wrap:focus-within .field-icon { color: var(--brand); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
textarea.field { resize: vertical; min-height: 7rem; }
.field-error { border-color: var(--brand) !important; background: #fffafa; }
.field-hint { font-size: .75rem; color: #737373; margin-top: .35rem; }
input[type="checkbox"].check { width: 1.05rem; height: 1.05rem; accent-color: var(--brand); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid #ececec; border-radius: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card-hover { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(13,13,13,.25); border-color: #fbc8ca; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; } .reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; } .reveal-delay-4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Decorative ---------- */
.bg-grid {
  background-image: linear-gradient(rgba(13,13,13,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(13,13,13,.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.blob { position: absolute; border-radius: 9999px; filter: blur(60px); opacity: .45; animation: floaty 12s ease-in-out infinite; pointer-events: none; }
@keyframes floaty { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-24px) scale(1.06); } }
.float-card { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.text-gradient { background: linear-gradient(90deg, #e32129, #a6141c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stripe-accent { position: relative; }
.stripe-accent::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 6px; width: 100%; background: rgba(227,33,41,.18); border-radius: 4px; z-index: -1; }

/* ---------- Header ---------- */
.site-header { transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease; }
.site-header.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); box-shadow: 0 6px 24px -14px rgba(0,0,0,.25); border-color: #ececec; }
.nav-link { position: relative; font-weight: 500; color: #3a3a3a; transition: color .2s; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .25s ease; border-radius: 2px; }
.nav-link:hover { color: var(--brand); }
.nav-link:hover::after { transform: scaleX(1); }

.mobile-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.mobile-panel.is-open { max-height: 80vh; }

/* ---------- FAQ ---------- */
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-body > div { overflow: hidden; }
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-item .faq-icon { transition: transform .3s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); color: var(--brand); }

/* ---------- App layout ---------- */
.sidebar { transition: transform .3s ease; }
.side-link { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: .75rem; color: #d4d4d4; font-weight: 500; font-size: .9rem; transition: background-color .2s, color .2s; }
.side-link i { width: 1.1rem; text-align: center; }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-link.is-active { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(227,33,41,.9); }
.backdrop { transition: opacity .3s ease; }

/* ---------- Toasts ---------- */
#toastStack { position: fixed; z-index: 80; top: 1rem; right: 1rem; left: 1rem; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; pointer-events: none; }
.toast { pointer-events: auto; width: 100%; max-width: 380px; display: flex; gap: .75rem; align-items: flex-start; background: #fff; border: 1px solid #ececec; border-left: 4px solid var(--brand); border-radius: .9rem; padding: .85rem 1rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); animation: toastIn .35s ease both; }
.toast.is-leaving { animation: toastOut .3s ease both; }
.toast-success { border-left-color: #16a34a; } .toast-success .toast-icon { color: #16a34a; }
.toast-error .toast-icon { color: var(--brand); }
.toast-info { border-left-color: #0d0d0d; } .toast-info .toast-icon { color: #0d0d0d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Misc ---------- */
.spinner { width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-fade { animation: pageIn .45s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.scroll-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll-thin::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 6px; }
.strength-bar { height: 4px; border-radius: 4px; background: #ececec; overflow: hidden; }
.strength-bar span { display: block; height: 100%; width: 0; transition: width .3s ease, background-color .3s ease; }
.bubble-me { background: var(--brand); color: #fff; border-bottom-right-radius: .3rem; }
.bubble-them { background: #f3f3f3; color: #1a1a1a; border-bottom-left-radius: .3rem; }

/* =====================================================================
   PUBLIC WEBSITE (body.site) – clean, sharp-cornered agency look
   ===================================================================== */
.site { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; background: #fff; color: #10161d; }
.site :where(h1, h2, h3, h4, .font-display) { font-family: inherit; font-weight: 800; letter-spacing: -0.01em; }
.site :where(h3, h4) { font-weight: 700; }
.site :where(p) { line-height: 1.7; }
.site :where(.text-ink-500) { color: #404040; }   /* paragraph grey, a bit darker for readability */
.site { --r: 5px; }
.site .btn, .site .field, .site .card, .site .toast, .site .mock, .site .choice-box, .site .dropdown-menu { border-radius: var(--r); }
.site .btn { padding: .85rem 1.5rem; font-weight: 700; }
.site .btn-primary { box-shadow: none; }
.site .btn-primary:hover { box-shadow: 0 12px 24px -14px rgba(227,33,41,.9); }
.site .btn-outline { border-color: var(--brand); color: var(--brand); }
.site .btn-outline:hover { background: var(--brand); color: #fff; }
.site .field { padding: .9rem 1rem; border-color: #e3e3e3; }
.site .field.has-icon { padding-left: 2.75rem; }
.site .card { border-color: #ececec; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.site .card-hover:hover { border-color: var(--brand); box-shadow: 0 22px 40px -26px rgba(227,33,41,.45); }

.accent { font-family: inherit; font-style: normal; font-weight: 800; color: var(--brand); letter-spacing: inherit; }

/* Footer: bold headings, readable light text */
.site-footer, .site-footer a, .site-footer p, .site-footer span { font-family: inherit; }
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; font-weight: 800; }
.site-footer p, .site-footer li a, .site-footer .text-ink-300, .site-footer .text-ink-400 { color: #d4d4d4; font-weight: 500; }
.site-footer li a { font-weight: 600; }
.site-footer li a:hover { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--brand); }
.tint-bg { background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%); }
.tint-bg-2 { background: #fbf7f7; }
.rule { height: 1px; background: #ececec; }

.site-nav-link { position: relative; font-weight: 500; font-size: .95rem; color: #10161d; transition: color .2s; padding: .25rem 0; }
.site-nav-link::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; border-radius: 9999px; background: var(--brand); transform: translateX(-50%) scale(0); transition: transform .25s ease; }
.site-nav-link:hover, .site-nav-link.is-active { color: var(--brand); }
.site-nav-link.is-active::after, .site-nav-link:hover::after { transform: translateX(-50%) scale(1); }

/* Floating side contact buttons */
.side-contact { position: fixed; right: 0; bottom: 18%; z-index: 45; display: flex; flex-direction: column; }
.side-contact a { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; transition: width .25s ease, filter .2s; }
.side-contact a:hover { width: 62px; filter: brightness(1.05); }

/* Number cards */
.num-card { position: relative; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.num-card .num { font-size: .8rem; font-weight: 700; color: #b8b8b8; }
.num-card:hover { transform: translateY(-4px); }
.num-card .arrow { transition: transform .25s ease, color .25s ease; }
.num-card:hover .arrow { transform: translate(3px,-3px); color: var(--brand); }

/* Mock UI tiles in the hero */
.mock { background: #fff; border: 1px solid #f0e3e3; box-shadow: 0 24px 50px -28px rgba(13,13,13,.35); }
.bar { width: 14%; background: linear-gradient(180deg, #ef5f65, #c81922); transform-origin: bottom; animation: grow 1.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Pricing */
.plan.is-popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 30px 60px -30px rgba(227,33,41,.45); background: linear-gradient(180deg, #fff6f6 0%, #ffffff 38%); }
.plan-flag { position: absolute; top: -1px; left: 50%; transform: translate(-50%, -100%); background: var(--brand); color: #fff; font-size: .65rem; font-weight: 700; letter-spacing: .15em; padding: .3rem .7rem; text-transform: uppercase; }

/* Wizard */
.step-item { display: flex; gap: .85rem; align-items: flex-start; padding: .65rem 0; }
.step-item .step-no { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; border: 1px solid #e3e3e3; color: #9a9a9a; background: #fff; transition: all .25s ease; }
.step-item.is-active .step-no { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-item.is-done .step-no { background: #10161d; border-color: #10161d; color: #fff; }
.step-item .step-title { font-weight: 600; color: #9a9a9a; font-size: .95rem; transition: color .25s; }
.step-item.is-active .step-title, .step-item.is-done .step-title { color: #10161d; }
.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: pageIn .4s ease both; }
.progress-track { height: 4px; background: #f1e4e4; }
.progress-fill { height: 100%; background: var(--brand); transition: width .45s ease; }

.choice { cursor: pointer; display: block; position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-box { display: flex; align-items: center; gap: .7rem; border: 1px solid #e3e3e3; padding: .85rem 1rem; font-weight: 500; font-size: .9rem; background: #fff; transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s; }
.choice:hover .choice-box { border-color: #f69ca0; }
.choice input:checked + .choice-box { border-color: var(--brand); background: #fff5f5; color: #a6141c; box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + .choice-box { outline: 3px solid rgba(227,33,41,.25); outline-offset: 2px; }
.choice .tick { margin-left: auto; opacity: 0; transform: scale(.6); transition: all .2s; color: var(--brand); }
.choice input:checked + .choice-box .tick { opacity: 1; transform: scale(1); }
.field-msg { display: none; font-size: .75rem; color: var(--brand); margin-top: .35rem; }
.has-error .field-msg { display: block; }
.has-error .field, .has-error .choice-box { border-color: var(--brand); }

/* Code input */
.otp-input { letter-spacing: .6em; font-size: 1.5rem; text-align: center; font-weight: 700; }

/* =====================================================================
   UI polish v2 – 5px corners + light refinements (public site)
   ===================================================================== */
/* Corners on smaller parts */
.site .step-item .step-no { border-radius: var(--r); }
.site .plan-flag { border-radius: var(--r) var(--r) 0 0; }
.site .progress-track, .site .progress-fill { border-radius: 99px; }
.site .bar { border-radius: 4px 4px 0 0; }
.site .eyebrow::before { border-radius: 2px; }
.side-contact a:first-child { border-top-left-radius: var(--r, 5px); }
.side-contact a:last-child { border-bottom-left-radius: var(--r, 5px); }
.side-contact { box-shadow: 0 12px 30px -12px rgba(0,0,0,.35); border-radius: 5px 0 0 5px; }
.site .faq-item { border-radius: 0; }
.site .field-wrap .field-icon { left: 1rem; }
.site select.field { background-position: right 1rem center; }

/* Softer borders & shadows */
.site .card { border-color: #eeeaea; box-shadow: 0 1px 2px rgba(16,22,29,.04), 0 6px 18px -14px rgba(16,22,29,.18); }
.site .card-hover:hover { transform: translateY(-5px); border-color: #f4b7ba; box-shadow: 0 22px 44px -24px rgba(227,33,41,.45); }
.site .mock { border-color: #f2e6e6; box-shadow: 0 26px 50px -30px rgba(16,22,29,.4); }

/* Buttons: gentle lift + clearer focus */
.site .btn { letter-spacing: .01em; }
.site .btn:hover { transform: translateY(-2px); }
.site .btn:focus-visible, .site a:focus-visible, .site button:focus-visible { outline: 3px solid rgba(227,33,41,.35); outline-offset: 2px; }
.site .btn-ghost:hover { background: #fff1f1; }
.site .btn-white { box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); }

/* Inputs */
.site .field { background: #fff; border-color: #e4dfdf; }
.site .field:hover { border-color: #d3c9c9; }
.site .field:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(227,33,41,.1); }

/* Choice tiles */
.site .choice .choice-box { border-color: #e4dfdf; }
.site .choice:hover .choice-box { transform: translateY(-1px); box-shadow: 0 10px 20px -16px rgba(227,33,41,.6); }
.site .choice .choice-box { transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s, transform .2s; }

/* Header: thin line + blur once scrolled */
.site .site-header { border-bottom: 1px solid transparent; }
.site .site-header.is-scrolled { border-color: #f0e9e9; }

/* Pricing hover */
.site .plan { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.site .plan:hover { transform: translateY(-6px); }
.site .plan.is-popular:hover { transform: translateY(-6px); }

/* Section labels a bit bolder, accent words a touch larger */
.site .eyebrow { font-size: .74rem; }
.site h2 .accent, .site h1 .accent { font-size: 1.06em; }

/* Mobile: keep the hero mock tidy */
@media (max-width: 640px) {
  .site .mock { box-shadow: 0 18px 36px -26px rgba(16,22,29,.4); }
}

/* Photos: slow zoom on hover, gentle zoom-in on load */
.photo-zoom { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.photo-frame:hover .photo-zoom { transform: scale(1.04); }
section:has(> .photo-zoom) .photo-zoom { animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Home hero: static, no animation */
.hero-photo { animation: none !important; transform: none !important; transition: none !important; }

/* Pricing: highlighted plan (kept last so it wins over .site .card) */
.site .plan.is-popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 30px 60px -30px rgba(227,33,41,.45); }
.site .plan.is-popular:hover { box-shadow: 0 0 0 1px var(--brand), 0 34px 64px -28px rgba(227,33,41,.55); }

/* =====================================================================
   Footer (public site)
   ===================================================================== */
.site-footer .footer-title { font-size: .85rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #fff; position: relative; padding-bottom: .75rem; }
.site-footer .footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--brand); }
.site-footer .footer-link { position: relative; display: inline-flex; align-items: center; gap: 0; color: #b5b5b5; transition: color .2s ease, transform .2s ease; }
.site-footer .footer-link::before { content: ''; width: 0; margin-right: 0; height: 2px; border-radius: 2px; background: var(--brand); transition: width .25s ease; }
.site-footer .footer-link:hover { color: #fff; transform: translateX(2px); }
.site-footer .footer-link:hover::before { width: 12px; margin-right: .5rem; }
.site-footer .footer-link::before { transition: width .25s ease, margin-right .25s ease; }
.site-footer .footer-icon { display: inline-flex; width: 42px; height: 42px; flex: none; align-items: center; justify-content: center; border-radius: 5px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: background-color .2s, border-color .2s, transform .2s; }
.site-footer a.footer-icon:hover, .site-footer a:hover .footer-icon { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.site-footer .footer-icon-sm { width: 38px; height: 38px; font-size: .85rem; color: #ef5f65; }
.site-footer a:hover .footer-icon-sm { color: #fff; }
.site-footer .footer-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.site-footer .footer-btn-ghost:hover { border-color: #25D366; background: #25D366; }
.site-footer .footer-top-btn { width: 38px; height: 38px; border-radius: 5px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s, background-color .2s; }
.site-footer .footer-top-btn:hover { background: var(--brand-dark); transform: translateY(-3px); }
.hero-static *, .hero-static *::before, .hero-static *::after { animation: none !important; transition: none !important; }
.hero-static .btn:hover, .hero-static .btn:active { transform: none !important; }
