/*
 * SecureEdge DPDP — public pages (landing + sign-in flow).
 * Self-contained design system scoped to body.pub so the signed-in application theme is untouched.
 * Light + dark (html.dark, shared toggle with the app). Respects prefers-reduced-motion.
 */

/* ---------- Tokens ---------- */
.pub {
  --p-bg: #f6f7fb;
  --p-bg-2: #eef1f8;
  --p-surface: #ffffff;
  --p-surface-2: #f9fafd;
  --p-ink: #0b1324;
  --p-text: #263247;
  --p-muted: #5f6c83;
  --p-line: #e3e7f0;
  --p-line-2: #d5dbe7;
  --p-brand: #3056d3;
  --p-brand-600: #2443b0;
  --p-brand-50: #eef2ff;
  --p-teal: #0ea5a4;
  --p-teal-50: #e6f7f6;
  --p-amber: #d97706;
  --p-amber-50: #fff6e6;
  --p-green: #16a34a;
  --p-green-50: #e9f8ee;
  --p-red: #dc2626;
  --p-red-50: #fdeeee;
  --p-grad: linear-gradient(120deg, #3056d3 0%, #4f6cf0 45%, #0ea5a4 100%);
  --p-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --p-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .16);
  --p-shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 30px 60px -20px rgba(30, 50, 120, .28);
  --p-radius: 16px;
  --p-radius-lg: 22px;
  --p-max: 1180px;
  --p-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --p-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html.dark .pub {
  --p-bg: #070c18;
  --p-bg-2: #0a1122;
  --p-surface: #0e1628;
  --p-surface-2: #111b31;
  --p-ink: #f2f5fc;
  --p-text: #d3dbea;
  --p-muted: #93a1bb;
  --p-line: #1c2741;
  --p-line-2: #26334f;
  --p-brand: #7d98ff;
  --p-brand-600: #9ab0ff;
  --p-brand-50: rgba(125, 152, 255, .12);
  --p-teal: #2dd4bf;
  --p-teal-50: rgba(45, 212, 191, .12);
  --p-amber: #fbbf24;
  --p-amber-50: rgba(251, 191, 36, .12);
  --p-green: #4ade80;
  --p-green-50: rgba(74, 222, 128, .12);
  --p-red: #f87171;
  --p-red-50: rgba(248, 113, 113, .12);
  --p-grad: linear-gradient(120deg, #6d8bff 0%, #8b7dff 45%, #2dd4bf 100%);
  --p-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  --p-shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .75);
}

/* ---------- Base ---------- */
html:has(body.pub) { scroll-behavior: smooth; background: var(--p-bg, #f6f7fb); }
html.dark:has(body.pub) { background: #070c18; }
body.pub {
  margin: 0; min-height: 100vh; background: var(--p-bg); color: var(--p-text);
  font-family: var(--p-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
.pub *, .pub *::before, .pub *::after { box-sizing: border-box; }
.pub h1, .pub h2, .pub h3, .pub h4 { font-family: var(--p-display); color: var(--p-ink); margin: 0; letter-spacing: -.02em; line-height: 1.15; }
.pub p { margin: 0; }
/* The app's base sheet fixes the size of every a/p/span/td; on public pages they inherit instead.
   :where() keeps this at class-level specificity so component rules (e.g. the logo) still win. */
.pub :where(a, p, span, td, li) { font-size: inherit; line-height: inherit; }
.pub a { color: inherit; text-decoration: none; }
.pub img, .pub svg { max-width: 100%; }
.pub :focus-visible { outline: 3px solid color-mix(in srgb, var(--p-brand) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
.pub .p-container { width: 100%; max-width: var(--p-max); margin: 0 auto; padding: 0 24px; }
.pub .p-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--p-surface); padding: 8px 14px; border-radius: 10px; box-shadow: var(--p-shadow); }
.pub .p-skip:focus { left: 12px; }
.pub .p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pub .p-grad-text { background: var(--p-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub .dp-logo { color: var(--p-ink); }
.pub .dp-logo-text span { color: var(--p-muted); }

/* ---------- Buttons ---------- */
.pub .p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--p-body); cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.pub .p-btn i { font-size: 18px; }
.pub .p-btn-primary { background: var(--p-brand); color: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 8px 20px -8px color-mix(in srgb, var(--p-brand) 70%, transparent); }
html.dark .pub .p-btn-primary { color: #0b1324; }
.pub .p-btn-primary:hover { background: var(--p-brand-600); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(15, 23, 42, .12), 0 14px 28px -10px color-mix(in srgb, var(--p-brand) 75%, transparent); }
.pub .p-btn-ghost { background: var(--p-surface); color: var(--p-ink); border-color: var(--p-line-2); }
.pub .p-btn-ghost:hover { border-color: var(--p-brand); color: var(--p-brand); transform: translateY(-1px); }
.pub .p-btn-light { background: #fff; color: #0b1324; }
.pub .p-btn-light:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); }
.pub .p-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.pub .p-btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.pub .p-btn-block { width: 100%; height: 50px; font-size: 15.5px; }
.pub .p-btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.pub .p-icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--p-line-2); background: var(--p-surface); color: var(--p-text); cursor: pointer;
  transition: border-color .18s, color .18s;
}
.pub .p-icon-btn:hover { border-color: var(--p-brand); color: var(--p-brand); }
.pub .p-icon-btn i { font-size: 19px; }
.pub .p-show-dark { display: none; }
html.dark .pub .p-show-dark { display: inline; }
html.dark .pub .p-show-light { display: none; }

/* ---------- Pills / chips ---------- */
.pub .p-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--p-surface); border: 1px solid var(--p-line); box-shadow: var(--p-shadow-sm);
  font-size: 13.5px; font-weight: 500; color: var(--p-text);
}
.pub .p-pill b { background: var(--p-brand-50); color: var(--p-brand); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.pub .p-kicker { display: inline-block; font: 700 12.5px/1 var(--p-body); letter-spacing: .14em; text-transform: uppercase; color: var(--p-brand); margin-bottom: 14px; }

/* ---------- Header ---------- */
.pub .p-header { position: sticky; top: 0; z-index: 50; transition: background-color .25s, box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
.pub .p-header.is-scrolled { background: color-mix(in srgb, var(--p-bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom-color: var(--p-line); }
.pub .p-header-inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.pub .p-nav { display: flex; gap: 4px; margin-left: 8px; }
.pub .p-nav a { padding: 8px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--p-muted); transition: color .15s, background-color .15s; }
.pub .p-nav a:hover { color: var(--p-ink); background: var(--p-bg-2); }
.pub .p-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pub .p-menu-btn { display: none; }
.pub .p-mobile-nav { display: none; }

/* ---------- Hero ---------- */
.pub .p-hero { position: relative; padding: 56px 0 96px; isolation: isolate; }
.pub .p-hero-bg { position: absolute; inset: -72px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.pub .p-hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--p-line) 1px, transparent 1px), linear-gradient(90deg, var(--p-line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.pub .p-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.pub .p-blob-1 { width: 520px; height: 520px; background: #4f6cf0; top: -160px; right: -80px; animation: p-drift 18s ease-in-out infinite alternate; }
.pub .p-blob-2 { width: 420px; height: 420px; background: #14b8a6; top: 180px; right: 260px; opacity: .28; animation: p-drift 22s ease-in-out infinite alternate-reverse; }
.pub .p-blob-3 { width: 360px; height: 360px; background: #818cf8; top: 40px; left: -160px; opacity: .22; animation: p-drift 26s ease-in-out infinite alternate; }
html.dark .pub .p-blob { opacity: .28; }
@keyframes p-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }

.pub .p-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pub .p-hero h1 { font-size: clamp(2.35rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -.028em; line-height: 1.06; margin: 22px 0 20px; }
.pub .p-lead { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--p-muted); max-width: 560px; }
.pub .p-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pub .p-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; }
.pub .p-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--p-muted); font-weight: 500; }
.pub .p-trust i { color: var(--p-teal); font-size: 18px; }

/* Product preview (illustrative, CSS-built) */
.pub .p-preview { position: relative; }
.pub .p-window {
  position: relative; border-radius: var(--p-radius-lg); background: var(--p-surface);
  border: 1px solid var(--p-line); box-shadow: var(--p-shadow-lg); overflow: hidden;
  transform: perspective(1600px) rotateY(-6deg) rotateX(3deg); transform-origin: left center;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.pub .p-preview:hover .p-window { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.pub .p-window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--p-line); background: var(--p-surface-2); }
.pub .p-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--p-line-2); }
.pub .p-window-bar em { margin-left: 10px; font-style: normal; font-size: 12.5px; color: var(--p-muted); font-weight: 500; }
.pub .p-window-body { padding: 18px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; }
.pub .p-card { background: var(--p-surface-2); border: 1px solid var(--p-line); border-radius: 14px; padding: 14px; }
.pub .p-card h4 { font-family: var(--p-body); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); margin-bottom: 10px; }
.pub .p-score { display: flex; align-items: center; gap: 14px; }
.pub .p-ring {
  --v: 82; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--p-brand) calc(var(--v) * 1%), var(--p-line) 0);
  animation: p-ring 1.6s cubic-bezier(.2, .7, .2, 1) both .3s;
}
.pub .p-ring::before { content: ''; grid-area: 1 / 1; width: 64px; height: 64px; border-radius: 50%; background: var(--p-surface-2); }
.pub .p-ring b { grid-area: 1 / 1; position: relative; font: 800 19px/1 var(--p-display); color: var(--p-ink); }
@property --v { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes p-ring { from { --v: 0; } }
.pub .p-score small { display: block; font-size: 12.5px; color: var(--p-muted); line-height: 1.4; }
.pub .p-score strong { display: block; font-size: 14px; color: var(--p-ink); }
.pub .p-clock { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.pub .p-clock-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--p-amber-50); color: var(--p-amber); font-size: 20px; flex: none; }
.pub .p-clock-text { flex: 1; min-width: 0; }
.pub .p-clock-text strong { display: block; font-size: 13.5px; color: var(--p-ink); }
.pub .p-clock-text small { font-size: 12.5px; color: var(--p-muted); }
.pub .p-meter { height: 6px; border-radius: 99px; background: var(--p-line); overflow: hidden; margin-top: 8px; }
.pub .p-meter span { display: block; height: 100%; width: 43%; border-radius: inherit; background: linear-gradient(90deg, var(--p-amber), #f59e0b); animation: p-grow 1.4s cubic-bezier(.2, .7, .2, 1) both .5s; }
@keyframes p-grow { from { width: 0; } }
.pub .p-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pub .p-tag-amber { background: var(--p-amber-50); color: var(--p-amber); }
.pub .p-tag-green { background: var(--p-green-50); color: var(--p-green); }
.pub .p-tag-red { background: var(--p-red-50); color: var(--p-red); }
.pub .p-tag-blue { background: var(--p-brand-50); color: var(--p-brand); }
.pub .p-rows { display: grid; gap: 8px; }
.pub .p-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--p-text); }
.pub .p-row code { font: 500 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--p-muted); margin-left: auto; }
.pub .p-mini-bars { display: flex; align-items: stretch; gap: 6px; height: 54px; }
.pub .p-mini-bars span { flex: 1; height: 100%; border-radius: 5px 5px 2px 2px; background: var(--p-brand-50); position: relative; overflow: hidden; }
.pub .p-mini-bars span::after { content: ''; position: absolute; inset: auto 0 0; height: var(--h); background: var(--p-grad); border-radius: inherit; animation: p-rise 1.2s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 80ms + .4s); }
@keyframes p-rise { from { height: 0; } }
.pub .p-mini-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--p-muted); margin-top: 6px; }
.pub .p-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px;
  background: var(--p-surface); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); font-size: 13px;
  animation: p-bob 6s ease-in-out infinite;
}
.pub .p-float strong { display: block; color: var(--p-ink); font-size: 13px; }
.pub .p-float small { color: var(--p-muted); font-size: 12px; }
.pub .p-float i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; flex: none; }
.pub .p-float-1 { left: -34px; bottom: -48px; }
.pub .p-float-1 i { background: var(--p-green-50); color: var(--p-green); }
.pub .p-float-2 { right: -22px; top: -24px; animation-delay: -3s; }
.pub .p-float-2 i { background: var(--p-teal-50); color: var(--p-teal); }
@keyframes p-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Stats strip ---------- */
.pub .p-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--p-line); border-radius: var(--p-radius-lg); background: var(--p-surface); box-shadow: var(--p-shadow-sm); overflow: hidden; }
.pub .p-stat { padding: 26px 24px; border-left: 1px solid var(--p-line); }
.pub .p-stat:first-child { border-left: 0; }
.pub .p-stat strong { display: block; font: 800 clamp(1.7rem, 3vw, 2.2rem)/1 var(--p-display); letter-spacing: -.03em; color: var(--p-ink); margin-bottom: 8px; }
.pub .p-stat span { font-size: 14px; color: var(--p-muted); }

/* ---------- Sections ---------- */
.pub .p-section { padding: 104px 0; }
.pub .p-section-alt { background: var(--p-surface); border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }
.pub .p-section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.pub .p-section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; }
.pub .p-section-head p { margin-top: 16px; font-size: 1.06rem; color: var(--p-muted); }

/* Features */
.pub .p-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pub .p-feature {
  position: relative; padding: 26px; border-radius: var(--p-radius); background: var(--p-surface);
  border: 1px solid var(--p-line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; overflow: hidden;
}
.pub .p-section-alt .p-feature { background: var(--p-bg); }
.pub .p-feature::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--p-grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.pub .p-feature:hover { transform: translateY(-4px); box-shadow: var(--p-shadow); border-color: var(--p-line-2); }
.pub .p-feature:hover::before { transform: scaleX(1); }
.pub .p-feature-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 23px; margin-bottom: 18px; background: var(--p-brand-50); color: var(--p-brand); }
.pub .p-feature:nth-child(3n+2) .p-feature-icon { background: var(--p-teal-50); color: var(--p-teal); }
.pub .p-feature:nth-child(3n) .p-feature-icon { background: var(--p-amber-50); color: var(--p-amber); }
.pub .p-feature h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.pub .p-feature p { font-size: 14.5px; color: var(--p-muted); }
.pub .p-feature ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pub .p-feature li { font-size: 13.5px; color: var(--p-text); display: flex; gap: 8px; align-items: baseline; }
.pub .p-feature li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--p-teal); flex: none; transform: translateY(-2px); }
.pub .p-ref { display: inline-block; margin-top: 16px; font: 600 11.5px/1 var(--p-body); letter-spacing: .04em; color: var(--p-muted); padding: 5px 9px; border-radius: 7px; background: var(--p-bg-2); }

/* Workflow */
.pub .p-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; position: relative; }
.pub .p-steps::before { content: ''; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--p-line-2) 10%, var(--p-line-2) 90%, transparent); z-index: 0; }
.pub .p-step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.pub .p-step-num {
  counter-increment: step; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 16px; display: grid; place-items: center;
  background: var(--p-surface); border: 1px solid var(--p-line-2); box-shadow: var(--p-shadow-sm); color: var(--p-brand); font-size: 24px; position: relative;
}
.pub .p-step-num::after { content: counter(step); position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--p-brand); color: #fff; font: 700 11.5px/22px var(--p-body); }
html.dark .pub .p-step-num::after { color: #0b1324; }
.pub .p-step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.pub .p-step p { font-size: 14.5px; color: var(--p-muted); }

/* Roles */
.pub .p-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pub .p-role { display: flex; gap: 18px; padding: 24px; border-radius: var(--p-radius); border: 1px solid var(--p-line); background: var(--p-surface); transition: border-color .2s, box-shadow .2s; }
.pub .p-role:hover { border-color: var(--p-line-2); box-shadow: var(--p-shadow); }
.pub .p-role-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--p-grad); }
.pub .p-role h3 { font-size: 1.06rem; margin-bottom: 4px; }
.pub .p-role small { display: inline-block; font-size: 12px; font-weight: 600; color: var(--p-brand); margin-bottom: 8px; }
.pub .p-role p { font-size: 14.5px; color: var(--p-muted); }

/* Security band */
.pub .p-dark-band { position: relative; overflow: hidden; background: #0a1226; color: #c9d4ea; isolation: isolate; }
.pub .p-dark-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 85% 0%, rgba(79, 108, 240, .35), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(20, 184, 166, .22), transparent 70%); }
.pub .p-dark-band h2, .pub .p-dark-band h3 { color: #fff; }
.pub .p-dark-band .p-kicker { color: #8fb0ff; }
.pub .p-security { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.pub .p-security h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.pub .p-security > div > p { margin-top: 16px; color: #a9b6d0; font-size: 1.04rem; }
.pub .p-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pub .p-check { padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); transition: background-color .2s, border-color .2s; }
.pub .p-check:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.pub .p-check i { font-size: 22px; color: #5eead4; }
.pub .p-check h3 { font-size: 15px; margin: 10px 0 6px; font-family: var(--p-body); font-weight: 700; letter-spacing: 0; }
.pub .p-check p { font-size: 13.5px; color: #a3b0c9; }

/* CTA */
.pub .p-cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px; color: #fff; background: var(--p-grad);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; box-shadow: var(--p-shadow-lg); isolation: isolate;
}
html.dark .pub .p-cta { background: linear-gradient(120deg, #2443b0 0%, #4c3fb8 50%, #0f766e 100%); }
.pub .p-cta::after { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -180px; background: rgba(255, 255, 255, .12); }
.pub .p-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.pub .p-cta p { margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: 1.04rem; max-width: 560px; }
.pub .p-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.pub .p-footer { padding: 56px 0 36px; border-top: 1px solid var(--p-line); margin-top: 104px; }
.pub .p-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.pub .p-footer h4 { font-family: var(--p-body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p-ink); margin-bottom: 14px; }
.pub .p-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pub .p-footer li, .pub .p-footer a { font-size: 14.5px; color: var(--p-muted); }
.pub .p-footer a:hover { color: var(--p-brand); }
.pub .p-footer-note { margin-top: 14px; font-size: 14px; color: var(--p-muted); max-width: 340px; }
.pub .p-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--p-line); font-size: 13.5px; color: var(--p-muted); }

/* Reveal-on-scroll */
.pub .p-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.pub .p-reveal.is-in { opacity: 1; transform: none; }
.pub.no-js .p-reveal { opacity: 1; transform: none; }

/* ======================================================================
   Auth pages (sign in, register, password reset, 2FA)
   ====================================================================== */
.pub .a-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, 1.08fr); }
.pub .a-aside {
  position: relative; overflow: hidden; isolation: isolate; color: #cdd7ec; padding: 40px 56px;
  display: flex; flex-direction: column; background: #0a1226;
}
.pub .a-aside::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 380px at 100% 0%, rgba(79, 108, 240, .55), transparent 70%),
    radial-gradient(460px 360px at 0% 100%, rgba(20, 184, 166, .35), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px;
}
.pub .a-aside .dp-logo, .pub .a-aside .dp-logo-text strong { color: #fff; }
.pub .a-aside .dp-logo-text span { color: #9fb0d3; }
.pub .a-aside-body { margin: auto 0; max-width: 460px; padding: 48px 0; }
.pub .a-aside h2 { color: #fff; font-size: clamp(1.9rem, 2.8vw, 2.5rem); font-weight: 800; letter-spacing: -.022em; line-height: 1.12; }
.pub .a-aside-body > p { margin-top: 16px; color: #a9b6d0; font-size: 1.02rem; }
.pub .a-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.pub .a-points li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); }
.pub .a-points i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; flex: none; background: rgba(94, 234, 212, .12); color: #5eead4; }
.pub .a-points strong { display: block; color: #fff; font-size: 14.5px; }
.pub .a-points span { font-size: 13.5px; line-height: 1.5; color: #a3b0c9; }
.pub .a-aside-foot { font-size: 13px; color: #8392b1; display: flex; gap: 8px; align-items: center; }
.pub .a-aside-foot i { color: #5eead4; font-size: 16px; }

.pub .a-main { position: relative; display: flex; flex-direction: column; padding: 28px 40px; background: var(--p-bg); }
.pub .a-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pub .a-topbar .a-mobile-logo { display: none; }
.pub .a-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--p-muted); transition: color .15s; }
.pub .a-back:hover { color: var(--p-brand); }
.pub .a-center { flex: 1; display: grid; place-items: center; padding: 32px 0; }
.pub .a-card { width: 100%; max-width: 440px; animation: p-in .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes p-in { from { opacity: 0; transform: translateY(14px); } }
.pub .a-card-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--p-grad); box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--p-brand) 70%, transparent); margin-bottom: 22px; }
.pub .a-card h1 { font-size: clamp(1.7rem, 3vw, 2.05rem); font-weight: 800; letter-spacing: -.022em; }
.pub .a-card .a-sub { margin-top: 8px; color: var(--p-muted); font-size: 15px; }
.pub .a-form { display: grid; gap: 18px; margin-top: 28px; }
.pub .a-field { display: grid; gap: 7px; }
.pub .a-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pub .a-field label, .pub .a-label { font-size: 14px; font-weight: 600; color: var(--p-ink); }
.pub .a-link { font-size: 13.5px; font-weight: 600; color: var(--p-brand); }
.pub .a-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pub .a-input { position: relative; display: flex; align-items: center; }
.pub .a-input > i { position: absolute; left: 14px; font-size: 19px; color: var(--p-muted); pointer-events: none; transition: color .15s; }
.pub .a-input input {
  width: 100%; height: 50px; padding: 0 46px 0 44px; border-radius: 12px; border: 1px solid var(--p-line-2);
  background: var(--p-surface); color: var(--p-ink); font: 500 15px/1 var(--p-body);
  transition: border-color .15s, box-shadow .15s, background-color .15s; -webkit-appearance: none; appearance: none;
}
.pub .a-input input::placeholder { color: color-mix(in srgb, var(--p-muted) 75%, transparent); font-weight: 400; }
.pub .a-input input:hover { border-color: color-mix(in srgb, var(--p-brand) 40%, var(--p-line-2)); }
.pub .a-input input:focus { outline: none; border-color: var(--p-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-brand) 16%, transparent); }
.pub .a-input:focus-within > i { color: var(--p-brand); }
.pub .a-input.is-invalid input { border-color: var(--p-red); }
.pub .a-input.is-invalid input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-red) 16%, transparent); }
.pub .a-reveal-btn { position: absolute; right: 6px; width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--p-muted); cursor: pointer; display: grid; place-items: center; font-size: 19px; }
.pub .a-reveal-btn:hover { color: var(--p-ink); background: var(--p-bg-2); }
.pub .a-error { font-size: 13px; color: var(--p-red); display: flex; gap: 6px; align-items: center; }
.pub .a-hint { font-size: 13px; color: var(--p-muted); }
.pub .a-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--p-text); cursor: pointer; user-select: none; }
.pub .a-check input { width: 18px; height: 18px; accent-color: var(--p-brand); margin: 0; cursor: pointer; }
.pub .a-alert { display: flex; gap: 12px; padding: 13px 15px; border-radius: 12px; font-size: 14px; margin-top: 22px; border: 1px solid transparent; }
.pub .a-alert i { font-size: 20px; flex: none; }
.pub .a-alert ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.pub .a-alert-error { background: var(--p-red-50); color: var(--p-red); border-color: color-mix(in srgb, var(--p-red) 22%, transparent); }
.pub .a-alert-ok { background: var(--p-green-50); color: var(--p-green); border-color: color-mix(in srgb, var(--p-green) 22%, transparent); }
.pub .a-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; font-size: 13px; color: var(--p-muted); }
.pub .a-divider::before, .pub .a-divider::after { content: ''; flex: 1; height: 1px; background: var(--p-line); }
.pub .a-alt { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--p-muted); }
.pub .a-portal-note { margin-top: 18px; display: flex; gap: 10px; padding: 13px 15px; border-radius: 12px; background: var(--p-surface); border: 1px dashed var(--p-line-2); font-size: 13.5px; color: var(--p-muted); }
.pub .a-portal-note i { color: var(--p-teal); font-size: 18px; flex: none; }
.pub .a-foot { text-align: center; font-size: 12.5px; color: var(--p-muted); display: flex; justify-content: center; gap: 6px; align-items: center; }
.pub .a-foot i { font-size: 15px; color: var(--p-teal); }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1080px) {
  .pub .p-hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .pub .p-hero-copy { text-align: center; }
  .pub .p-lead { margin-left: auto; margin-right: auto; }
  .pub .p-hero-cta, .pub .p-trust { justify-content: center; }
  .pub .p-preview { max-width: 640px; margin: 0 auto; width: 100%; }
  .pub .p-window { transform: none; }
  .pub .p-preview:hover .p-window { transform: none; }
  .pub .p-features { grid-template-columns: repeat(2, 1fr); }
  .pub .p-security { grid-template-columns: 1fr; gap: 40px; }
  .pub .p-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .pub .p-steps::before { display: none; }
  .pub .a-shell { grid-template-columns: 1fr 1.2fr; }
  .pub .a-aside { padding: 36px 36px; }
}
@media (max-width: 900px) {
  .pub .p-nav, .pub .p-header-actions .p-hide-sm { display: none; }
  .pub .p-menu-btn { display: inline-grid; }
  .pub .p-mobile-nav { position: absolute; top: 72px; left: 12px; right: 12px; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 16px; box-shadow: var(--p-shadow-lg); padding: 10px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .pub .p-mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .pub .p-mobile-nav a { padding: 12px 14px; border-radius: 10px; font-weight: 500; color: var(--p-text); }
  .pub .p-mobile-nav a:hover { background: var(--p-bg-2); }
  .pub .p-mobile-nav .p-btn { margin-top: 6px; color: #fff; }
  html.dark .pub .p-mobile-nav .p-btn { color: #0b1324; }
  .pub .p-stats { grid-template-columns: repeat(2, 1fr); }
  .pub .p-stat:nth-child(3) { border-left: 0; }
  .pub .p-stat:nth-child(n+3) { border-top: 1px solid var(--p-line); }
  .pub .p-roles { grid-template-columns: 1fr; }
  .pub .p-cta { grid-template-columns: 1fr; padding: 48px 32px; text-align: center; }
  .pub .p-cta p { margin-left: auto; margin-right: auto; }
  .pub .p-cta-actions { justify-content: center; }
  .pub .p-footer-grid { grid-template-columns: 1fr 1fr; }
  .pub .p-footer-grid > div:first-child { grid-column: 1 / -1; }
  /* Auth: single column; brand panel becomes a slim header */
  .pub .a-shell { grid-template-columns: 1fr; }
  .pub .a-aside { display: none; }
  .pub .a-topbar .a-mobile-logo { display: inline-flex; }
  .pub .a-main { padding: 20px 20px 28px; }
}
@media (max-width: 640px) {
  .pub .p-container { padding: 0 18px; }
  .pub .p-header-inner { height: 64px; }
  .pub .p-mobile-nav { top: 64px; }
  .pub .p-hero { padding: 32px 0 72px; }
  .pub .p-hero-cta .p-btn { flex: 1 1 100%; }
  .pub .p-window-body { grid-template-columns: 1fr; padding: 14px; }
  .pub .p-float-1 { left: 8px; bottom: -30px; }
  .pub .p-float-2 { right: 8px; top: -30px; }
  .pub .p-features { grid-template-columns: 1fr; }
  .pub .p-steps { grid-template-columns: 1fr; }
  .pub .p-checks { grid-template-columns: 1fr; }
  .pub .p-section { padding: 72px 0; }
  .pub .p-section-head { margin-bottom: 40px; }
  .pub .p-stat { padding: 20px 16px; }
  .pub .p-cta { padding: 40px 22px; border-radius: 22px; }
  .pub .p-cta-actions .p-btn { flex: 1 1 100%; }
  .pub .p-footer { margin-top: 72px; }
  .pub .p-footer-grid { grid-template-columns: 1fr; }
  .pub .a-card-icon { width: 46px; height: 46px; font-size: 23px; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pub *, .pub *::before, .pub *::after { animation: none !important; transition: none !important; }
  .pub .p-reveal { opacity: 1; transform: none; }
  html:has(body.pub) { scroll-behavior: auto; }
}
