:root {
  --ink: #032151;
  --ink-2: #334b72;
  --teal: #30aea1;
  --coral: #fd6b50;
  --paper: #f2f4f6;
  --white: #fff;
  --muted: #66758c;
  --line: #dce3ea;
  --shadow: 0 24px 70px rgba(3, 33, 81, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 11px 15px; border-radius: 9px; background: white; }
.skip-link:focus { top: 16px; }

.page-header { position: sticky; z-index: 20; top: 0; min-height: 78px; padding: 0 max(22px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(3,33,81,.08); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.page-brand-group { display: flex; align-items: center; gap: 14px; }
.page-brand { width: 164px; height: 37px; flex: 0 0 auto; display: block; }
.page-brand img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: left center; }
.page-nav { display: flex; align-items: center; gap: 24px; color: #53627a; font-size: 13px; font-weight: 650; }
.page-nav a { white-space: nowrap; }
.page-nav a:hover { color: var(--ink); }
.login-link { padding: 10px 15px; border: 1px solid #ccd6e1; border-radius: 10px; color: var(--ink); background: white; }
.login-link:hover { border-color: #aebdcb; background: #f8fafb; }
.header-cta { padding: 11px 17px; border-radius: 10px; color: white; background: var(--ink); }

.demo-hero { min-height: calc(100vh - 78px); padding: 90px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: minmax(0, .85fr) minmax(460px, 1.15fr); align-items: center; gap: clamp(55px, 8vw, 115px); overflow: hidden; background: radial-gradient(circle at 82% 18%, rgba(48,174,161,.15), transparent 32%), linear-gradient(135deg, #fff 0%, #f5f8fa 55%, #e9f4f3 100%); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 25px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
.demo-copy h1 { max-width: 680px; margin: 22px 0 24px; font-size: clamp(49px, 6vw, 78px); line-height: .98; letter-spacing: -4px; }
.demo-copy h1 em { color: var(--teal); font-style: normal; }
.demo-copy > p { max-width: 600px; margin-bottom: 28px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.access-points { margin: 0; padding: 0; display: grid; gap: 14px; list-style: none; color: #3c4e68; font-size: 14px; font-weight: 600; }
.access-points li { display: flex; align-items: center; gap: 11px; }
.access-points span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--teal); font-size: 11px; }

.portal-card { position: relative; padding: 30px; border: 1px solid rgba(3,33,81,.09); border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.portal-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.portal-head img { width: 48px; height: 40px; object-fit: contain; }
.invite-badge { padding: 8px 11px; border-radius: 999px; color: #8f493c; background: #fff0ed; font-size: 11px; font-weight: 800; }
.portal-card h2 { margin: 25px 0 9px; font-size: 31px; letter-spacing: -1.2px; }
.portal-card > p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.invite-form { margin-top: 23px; }
.invite-form label { display: block; color: #3d4d65; font-size: 13px; font-weight: 750; }
.invite-row { margin-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.invite-row input { min-width: 0; padding: 14px 15px; border: 1px solid #d5dde6; border-radius: 11px; color: var(--ink); background: white; outline: 0; text-transform: uppercase; letter-spacing: 1px; }
.invite-row input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(48,174,161,.12); }
.button { padding: 14px 18px; border: 0; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: white; background: var(--ink); font-weight: 750; }
.button:hover { background: #00183d; }
.button-coral { background: var(--coral); }.button-coral:hover { background: #ed5b41; }
.invite-status { min-height: 50px; margin: 15px 0 0; padding: 12px 13px; display: none; border-radius: 10px; color: #6e3f36; background: #fff0ed; font-size: 12px; line-height: 1.5; }
.invite-status.visible { display: block; }
.portal-divider { height: 1px; margin: 26px 0; background: var(--line); }
.portal-alt { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portal-alt p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.role-preview { padding: 95px max(24px, calc((100vw - 1180px) / 2)); background: var(--ink); color: white; }
.role-heading { max-width: 760px; margin-bottom: 42px; }
.role-heading h2 { margin: 16px 0; font-size: clamp(38px, 5vw, 58px); letter-spacing: -2px; }
.role-heading p { color: #b5c1d2; font-size: 17px; line-height: 1.7; }
.role-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
.role-tabs { display: grid; align-content: start; gap: 9px; }
.role-tab { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; cursor: pointer; color: #afbed2; background: rgba(255,255,255,.04); text-align: left; font-weight: 700; }
.role-tab span { color: #8295af; font-size: 11px; }
.role-tab.active { color: var(--ink); background: white; }
.role-tab.active span { color: var(--coral); }
.role-screen { min-height: 360px; padding: 30px; border-radius: 22px; color: var(--ink); background: white; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.screen-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.screen-top small { display: block; color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: 1px; }
.screen-top h3 { margin: 5px 0 0; font-size: 25px; }
.screen-top > span { padding: 8px 10px; border-radius: 8px; color: #207066; background: #e6f7f4; font-size: 10px; font-weight: 800; }
.screen-body { margin-top: 28px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.screen-panel { min-height: 215px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #f8fafb; }
.screen-panel b { font-size: 14px; }.screen-panel p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.screen-lines { margin-top: 23px; display: grid; gap: 10px; }
.screen-lines i { height: 13px; border-radius: 5px; background: #dce5ed; }
.screen-lines i:nth-child(2) { width: 82%; background: #c8ece8; }.screen-lines i:nth-child(3) { width: 65%; background: #ffd9d1; }

.legal-hero { padding: 90px max(24px, calc((100vw - 980px) / 2)) 55px; color: white; background: var(--ink); }
.legal-hero .eyebrow { color: var(--teal); }
.legal-hero h1 { max-width: 820px; margin: 21px 0 19px; font-size: clamp(44px, 6vw, 72px); line-height: 1.03; letter-spacing: -3px; }
.legal-hero > p { max-width: 720px; margin: 0; color: #bcc8d8; font-size: 18px; line-height: 1.7; }
.draft-banner { padding: 16px max(24px, calc((100vw - 980px) / 2)); color: #713d34; background: #fff0ed; font-size: 13px; line-height: 1.6; }
.draft-banner b { margin-right: 6px; }
.legal-layout { padding: 70px max(24px, calc((100vw - 980px) / 2)) 100px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 70px; background: white; }
.legal-side { position: sticky; top: 110px; align-self: start; }
.legal-side span { color: var(--teal); font-size: 11px; font-weight: 850; letter-spacing: 1px; }
.legal-side nav { margin-top: 15px; display: grid; gap: 9px; }
.legal-side a { color: #64748a; font-size: 13px; }.legal-side a:hover { color: var(--ink); }
.legal-content { max-width: 680px; }
.legal-content section { padding: 0 0 42px; margin: 0 0 42px; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { margin-bottom: 16px; font-size: 27px; letter-spacing: -.7px; }
.legal-content h3 { margin: 26px 0 10px; font-size: 17px; }
.legal-content p, .legal-content li { color: #596a81; font-size: 15px; line-height: 1.78; }
.legal-content ul { padding-left: 21px; }
.placeholder { padding: 2px 6px; border-radius: 5px; color: #944a3c; background: #fff0ed; font-weight: 650; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.fact-card { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafb; }
.fact-card b { display: block; margin-bottom: 7px; font-size: 14px; }.fact-card p { margin: 0; font-size: 13px; line-height: 1.55; }
.page-footer { padding: 32px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); color: #718096; background: white; font-size: 12px; }
.page-footer > a { width: 140px; height: 32px; flex: 0 0 auto; display: block; }
.page-footer img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: left center; }
.page-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }.page-footer a:hover { color: var(--ink); }

.demo-hero > *, .role-grid > *, .screen-body > *, .legal-layout > *, .fact-grid > * { min-width: 0; }

@media (max-width: 1040px) {
  .page-nav > a:not(.header-cta):not(.login-link) { display: none; }
  .demo-hero { min-height: auto; grid-template-columns: 1fr; gap: 58px; }
  .demo-copy { max-width: 760px; }
  .portal-card { width: 100%; max-width: 720px; }
}

@media (max-width: 900px) {
  .page-nav > a:not(.header-cta):not(.login-link) { display: none; }
  .demo-hero { grid-template-columns: 1fr; }
  .portal-card { max-width: 680px; }
  .role-grid { grid-template-columns: 1fr; }
  .role-tabs { grid-template-columns: repeat(3, 1fr); }
  .legal-layout { grid-template-columns: 1fr; gap: 35px; }
  .legal-side { position: static; }.legal-side nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .page-header { min-height: 68px; padding: 0 12px; gap: 8px; }.page-brand-group { min-width: 0; }.page-brand { width: 108px; height: 26px; }.page-nav { min-width: 0; gap: 5px; }.login-link, .header-cta { min-height: 42px; padding: 10px 9px; display: inline-flex; align-items: center; font-size: 11px; }
  .demo-hero { min-height: auto; padding: 70px 18px; gap: 50px; }.demo-copy h1 { font-size: clamp(39px, 11.5vw, 52px); letter-spacing: -2.5px; }.demo-copy > p { font-size: 16px; }
  .portal-card { padding: 23px 18px; border-radius: 20px; }.invite-row { grid-template-columns: 1fr; }.portal-alt { align-items: stretch; flex-direction: column; }.portal-alt .button { width: 100%; }
  .role-preview { padding: 70px 18px; }.role-tabs { grid-template-columns: 1fr; }.role-tab { min-height: 52px; }.role-screen { padding: 21px 16px; }.screen-body { grid-template-columns: 1fr; }
  .legal-hero { padding: 65px 19px 45px; }.legal-hero h1 { font-size: clamp(38px, 11vw, 50px); letter-spacing: -2px; }.legal-hero > p { font-size: 16px; }.draft-banner { padding: 15px 19px; }
  .legal-layout { padding: 50px 19px 70px; }.legal-side nav { grid-template-columns: 1fr 1fr; }.fact-grid { grid-template-columns: 1fr; }
  .page-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .page-header { padding-right: 8px; padding-left: 10px; }
  .page-brand { width: 88px; height: 22px; }
  .login-link, .header-cta { min-height: 40px; padding: 8px 7px; font-size: 10px; }
  .demo-hero { padding-right: 15px; padding-left: 15px; }
  .eyebrow { font-size: 11px; line-height: 1.35; }
  .demo-copy h1 { font-size: clamp(37px, 11.7vw, 46px); }
  .access-points { font-size: 13px; }
  .portal-card { padding-right: 15px; padding-left: 15px; }
  .portal-head { align-items: flex-start; }
  .portal-card h2 { font-size: 27px; }
  .role-preview { padding-right: 15px; padding-left: 15px; }
  .role-heading h2 { font-size: clamp(34px, 10.5vw, 44px); }
  .screen-top { align-items: flex-start; flex-direction: column; }
  .screen-top > span { align-self: flex-start; }
  .legal-side nav { grid-template-columns: 1fr; }
  .legal-layout { padding-right: 15px; padding-left: 15px; }
  .page-footer { padding-right: 15px; padding-left: 15px; }
  .page-footer nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 14px; }
}

@media (hover: none) {
  .button:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
