:root {
  --indigo: #1E2A78;
  --indigo-2: #2c3aa0;
  --indigo-dark: #141d5a;
  --saffron: #FF9A00;
  --saffron-dark: #c87800;
  --lilac: #E9E9F7;
  --lilac-soft: #F7F7FC;
  --gray: #F3F4F8;
  --white: #fff;
  --ink: #171b2e;
  --muted: #5e6478;
  --line: #dfe2ee;
  --line-strong: #cfd4e5;
  --success: #176b45;
  --danger: #a32b34;
  --max: 1180px;
  --content: 780px;
  --radius: 20px;
  --shadow-sm: 0 8px 26px rgba(30,42,120,.06);
  --shadow: 0 18px 50px rgba(30,42,120,.11);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
.skip { position: fixed; left: 1rem; top: .75rem; z-index: 9999; transform: translateY(-180%); background: var(--white); color: var(--indigo); padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-weight: 800; text-decoration: none; }
.skip:focus { transform: translateY(0); }
.wrap { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
.content-wrap { width: min(var(--content), calc(100% - 3rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.985); border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(23,27,46,.035); backdrop-filter: blur(12px); }
.nav { min-height: 78px; display: flex; align-items: center; gap: 1rem; position: relative; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 216px; height: 49px; max-height: 49px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: .28rem; margin-left: auto; white-space: nowrap; }
.nav-links > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .56rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 750; }
.nav-links > a:not(.btn):hover { background: var(--gray); color: var(--indigo); }
.nav-links a[aria-current="page"] { color: var(--indigo); background: var(--lilac-soft); box-shadow: inset 0 -2px 0 var(--saffron); }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 44px; padding: .55rem .78rem; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--white); color: var(--indigo); font-weight: 800; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.05rem; border: 2px solid transparent; border-radius: 12px; text-decoration: none; font-weight: 820; line-height: 1.2; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--indigo); color: white !important; box-shadow: 0 7px 18px rgba(30,42,120,.14); }
.btn-primary:hover { background: var(--indigo-dark); }
.btn-secondary { background: white; border-color: var(--indigo); color: var(--indigo) !important; }
.btn-secondary:hover { background: var(--lilac-soft); }
.btn-light { background: white; color: var(--indigo) !important; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.hero { padding: clamp(4rem, 7vw, 6.2rem) 0 clamp(3.6rem, 6vw, 5rem); background: radial-gradient(circle at 88% 16%, rgba(255,154,0,.14), transparent 23rem), linear-gradient(180deg, #f3f3fb 0%, #fff 86%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(330px, .93fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { display: inline-flex; margin: 0 0 .7rem; padding: .36rem .62rem; border: 1px solid #e1e3f0; border-radius: 999px; background: rgba(255,255,255,.72); color: var(--indigo); font-size: .78rem; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
h1, h2, h3 { color: var(--indigo); line-height: 1.12; text-wrap: balance; }
h1 { margin: .45rem 0 1rem; font-size: clamp(2.5rem, 4.4vw, 3.9rem); max-width: 14ch; letter-spacing: -.035em; }
h2 { margin: 0 0 1rem; font-size: clamp(1.8rem, 3vw, 2.65rem); letter-spacing: -.02em; }
h3 { margin: 0 0 .58rem; font-size: 1.17rem; }
p, ul, ol { overflow-wrap: anywhere; }
.lead { max-width: 61ch; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.25rem); line-height: 1.55; }
.trust { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.35rem; }
.trust span { padding: .42rem .72rem; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .9rem; }
.demo { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 1.3rem; box-shadow: var(--shadow); }
.demo-card { border-left: 5px solid var(--saffron); background: var(--gray); padding: 1.05rem; border-radius: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .75rem 0; }
.chip { display: inline-flex; padding: .31rem .62rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: .84rem; font-weight: 750; }
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--gray); }
.section-intro { max-width: 72ch; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; align-items: stretch; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); min-width: 0; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card h2 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .9rem; border-radius: 12px; background: var(--lilac); color: var(--indigo); font-weight: 900; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; counter-reset: step; }
.step { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; box-shadow: var(--shadow-sm); min-width: 0; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: .85rem; border-radius: 50%; background: var(--saffron); color: #241600; font-weight: 900; }
.note-timeline { display: grid; gap: .8rem; }
.note-entry { position: relative; padding: 1rem 1rem 1rem 1.15rem; border-left: 4px solid var(--indigo); border-radius: 0 14px 14px 0; background: white; }
.note-entry small { color: var(--muted); }
.price { font-size: clamp(2.1rem, 4vw, 2.75rem); font-weight: 900; color: var(--indigo); white-space: nowrap; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.callout { padding: clamp(2rem, 5vw, 3.2rem); border-radius: 24px; background: linear-gradient(135deg, var(--indigo-dark), var(--indigo)); color: white; box-shadow: var(--shadow); }
.callout h2 { color: white; max-width: 20ch; }
.callout p { max-width: 64ch; color: #eef0ff; }
details { margin: .75rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 4px 16px rgba(30,42,120,.035); }
summary { cursor: pointer; color: var(--indigo); font-weight: 820; }
.notice { padding: 1rem 1.05rem; border-left: 4px solid var(--saffron); border-radius: 0 12px 12px 0; background: #fff7e8; }
.status { padding: 1rem; border-radius: 12px; background: var(--lilac); }
.legal { color: var(--muted); font-size: .92rem; }
.prose { font-size: 1.02rem; }
.prose h1 { max-width: 18ch; font-size: clamp(2.2rem, 3.8vw, 3.25rem); }
.prose h2 { margin-top: 2.35rem; font-size: clamp(1.45rem, 2.5vw, 1.75rem); }
.prose h3 { margin-top: 1.65rem; }
.prose p, .prose li { color: #34394e; }
.prose li { margin: .42rem 0; }
.table-scroll { overflow-x: auto; border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: .82rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--indigo); background: var(--lilac); }
.footer { padding: 3.2rem 0 2rem; background: #11162f; color: #e8e9f4; }
.footer a { color: white; }
.footer .brand { display: inline-flex; padding: .38rem .52rem; border-radius: 10px; background: #fbfbfd; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.footer .brand img { width: 176px; height: 40px; max-height: 40px; object-fit: contain; object-position: left center; filter: none; opacity: 1; }
.footer-grid { display: grid; grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(130px, .72fr)); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.footer-brand p { max-width: 34ch; color: #c8cce0; margin: .65rem 0; }
.footer-title { display: block; margin-bottom: .8rem; color: white; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-list a { color: #e8e9f4; text-decoration: none; }
.footer-list a:hover { color: white; text-decoration: underline; }
.publisher { color: #9fa6c4 !important; font-size: .84rem; }
.social { margin-top: 1.15rem; }
.social-title { display: block; margin-bottom: .55rem; color: #c8cce0; font-size: .82rem; font-weight: 750; }
.social-links { display: flex; align-items: center; gap: .6rem; }
.social-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22); border-radius: 11px; background: rgba(255,255,255,.07); color: white !important; text-decoration: none; transition: background .15s ease, transform .15s ease, border-color .15s ease; }
.social-link:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.45); transform: translateY(-1px); }
.social-glyph { display: grid; place-items: center; width: 24px; height: 24px; color: white; font-weight: 900; line-height: 1; }
.social-facebook { font-family: Arial, sans-serif; font-size: 1.35rem; padding-top: .12rem; }
.social-linkedin { font-family: Arial, sans-serif; font-size: .78rem; letter-spacing: -.03em; }
.social-youtube { position: relative; width: 25px; height: 17px; border-radius: 5px; background: currentColor; }
.social-youtube::after { content: ""; position: absolute; left: 10px; top: 5px; border-left: 7px solid #11162f; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); color: #aab0c8; font-size: .84rem; }
.form label, [data-partner-apply] label, [data-partner-signin] label, [data-partner-admin-call] label { display: block; margin-top: 1rem; font-weight: 800; color: var(--ink); }
.form input, .form textarea, .form select, [data-partner-root] input, [data-partner-root] textarea, [data-partner-root] select { width: 100%; padding: .82rem; margin-top: .35rem; border: 1px solid #aeb4ca; border-radius: 10px; background: #fff; color: var(--ink); }
.form textarea, [data-partner-root] textarea { min-height: 120px; }
[data-partner-root] pre { max-width: 100%; overflow: auto; padding: 1rem; border-radius: 12px; background: #101528; color: #eef0ff; white-space: pre-wrap; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.measurement-consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1000; margin: auto; max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgba(30,42,120,.18); padding: 1rem 1.15rem; }
.measurement-consent p { margin: .15rem 0 .8rem; color: #34394e; }
.measurement-consent div { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.measurement-consent button { min-height: 42px; border-radius: 999px; padding: .6rem .95rem; border: 1px solid var(--indigo); background: var(--indigo); color: #fff; font-weight: 780; cursor: pointer; }
.measurement-consent button[data-essential] { background: #fff; color: var(--indigo); }
.measurement-consent a { font-weight: 750; }
@media (max-width: 1040px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px); flex-direction: column; align-items: stretch; gap: .25rem; margin: 0; padding: .85rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 15px 15px; background: white; box-shadow: var(--shadow); white-space: normal; }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { width: 100%; padding: .65rem .75rem; }
  .nav-links .btn { width: 100%; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .grid.four, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .wrap, .content-wrap { width: min(100% - 2rem, var(--max)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3.6rem; }
  .hero h1 { max-width: 13ch; }
  .demo { max-width: 650px; }
  .grid, .grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2 / 4; }
}
@media (max-width: 600px) {
  .wrap, .content-wrap { width: min(100% - 1.5rem, var(--max)); }
  .nav { min-height: 64px; }
  .brand img { width: 166px; height: 38px; max-height: 38px; }
  .hero { padding: 3rem 0 3.4rem; }
  h1 { font-size: clamp(2.2rem, 11vw, 2.75rem); }
  .grid, .grid.two, .grid.four, .flow, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :last-child { grid-column: auto; }
  .section { padding: 3.2rem 0; }
  .actions .btn { width: 100%; }
  .price { white-space: normal; }
  .measurement-consent { left: .6rem; right: .6rem; bottom: .6rem; }
  .measurement-consent div > * { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Partner Program: release-grade plain-language portal */
.partner-hero { padding: clamp(3rem, 6vw, 5rem) 0; background: linear-gradient(180deg, #f3f3fb, #fff); }
.partner-journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1.4rem 0; counter-reset: partner-step; }
.partner-journey .partner-step { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.partner-journey .partner-step::before { counter-increment: partner-step; content: counter(partner-step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: .65rem; border-radius: 50%; background: var(--lilac); color: var(--indigo); font-weight: 900; }
.partner-journey strong { display: block; color: var(--indigo); }
.partner-journey small { color: var(--muted); }
.partner-status-line { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--lilac-soft); color: #34394e; }
.partner-status-line[data-status="success"] { border-color: #b9dac9; background: #eef9f3; color: var(--success); }
.partner-status-line[data-status="error"] { border-color: #ecc3c7; background: #fff3f4; color: var(--danger); }
.partner-dashboard { display: grid; gap: 1rem; }
.partner-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.partner-metric { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--lilac-soft); }
.partner-metric small { display: block; margin-bottom: .25rem; color: var(--muted); font-weight: 750; }
.partner-metric strong { display: block; color: var(--indigo); font-size: 1.2rem; overflow-wrap: anywhere; }
.partner-stage { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .7rem; border-radius: 999px; background: var(--lilac); color: var(--indigo); font-weight: 850; }
.partner-help { padding: 1rem; border-radius: 14px; background: #fff7e8; border-left: 4px solid var(--saffron); }
.partner-referral { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.partner-referral code { flex: 1 1 280px; min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--gray); color: var(--ink); overflow-wrap: anywhere; }
.partner-inline-auth { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .75rem 0; }
.partner-field-error { margin: .35rem 0 0; color: var(--danger); font-size: .9rem; font-weight: 700; }
[data-partner-apply] [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(166, 35, 51, .12); }
.partner-history-list { display: grid; gap: .5rem; padding-left: 1.2rem; }
.partner-dashboard table { min-width: 680px; }
.partner-dashboard td { vertical-align: top; }
.partner-checklist { padding-left: 1.2rem; }
.partner-checklist li { margin: .5rem 0; }
.partner-terms-version { display: inline-flex; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .86rem; font-weight: 800; }
.partner-terms-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 1rem 0 1.5rem; }
.partner-terms-summary .card { padding: 1rem; }

/* Authentication-only Partner shell; authenticated workspaces retain their full layout. */
[data-partner-root] > .section:has(.content-wrap > [data-unauthenticated]:not([hidden])) {
  display: flex;
  min-height: calc(100svh - 78px);
  align-items: center;
  padding: clamp(2.5rem, 7vh, 5rem) 0;
  background: var(--gray);
}
[data-partner-root] .content-wrap:has(> [data-unauthenticated]:not([hidden])) {
  width: min(520px, calc(100% - 3rem));
  text-align: center;
}
[data-partner-root] .content-wrap:has(> [data-unauthenticated]:not([hidden])) > h1 {
  max-width: none;
  margin-inline: auto;
  font-size: clamp(2rem, 3vw, 2.65rem);
}
[data-partner-root] .content-wrap:has(> [data-unauthenticated]:not([hidden])) > p:not(.eyebrow) {
  text-align: left;
}
[data-partner-root] [data-unauthenticated]:not([hidden]) {
  padding: clamp(1.35rem, 3vw, 1.75rem);
  text-align: left;
  box-shadow: var(--shadow);
}
[data-partner-root] [data-unauthenticated]:not([hidden]) h2 {
  text-align: center;
}
[data-partner-root] [data-unauthenticated]:not([hidden]) [data-partner-signin] label {
  margin-top: .75rem;
}
[data-partner-root] [data-unauthenticated]:not([hidden]) [data-partner-signin] input {
  padding: .7rem;
}
[data-partner-root] [data-unauthenticated]:not([hidden]) .actions {
  margin: 1rem 0 0;
}
[data-partner-root] [data-unauthenticated]:not([hidden]) .btn-primary {
  width: 100%;
}
@media (max-width: 820px) {
  .partner-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .partner-journey, .partner-dashboard-grid, .partner-terms-summary { grid-template-columns: 1fr; }
  [data-partner-root] > .section:has(.content-wrap > [data-unauthenticated]:not([hidden])) {
    min-height: calc(100svh - 64px);
    align-items: flex-start;
    padding: 2rem 0 3rem;
  }
  [data-partner-root] .content-wrap:has(> [data-unauthenticated]:not([hidden])) {
    width: min(100% - 1.5rem, 520px);
  }
}
