:root {
    --ink: #082f3c;
    --muted: #607580;
    --line: #dbe6e8;
    --paper: #f7faf9;
    --white: #ffffff;
    --aqua: #20d8c2;
    --aqua-dark: #087e78;
    --navy: #003c55;
    --lime: #dcff75;
    --danger: #a93535;
    --shadow: 0 24px 70px rgba(5, 51, 66, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: inherit; }
button, input, textarea { font: inherit; }

.partner-header {
    min-height: 76px;
    padding: 16px clamp(20px, 4vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
}
.partner-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; }
.partner-brand img { display: block; }
.partner-brand span { padding-left: 12px; border-left: 1px solid var(--line); color: var(--aqua-dark); }
.partner-topnav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; }
.partner-topnav a, .link-button { text-decoration: none; }
.partner-topnav form { margin: 0; }
.link-button { border: 0; background: none; color: var(--ink); cursor: pointer; padding: 0; font-weight: 700; }

.button {
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: white;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,60,85,.2); }
.button-small { padding: 9px 16px; }
.button-secondary { background: transparent; color: var(--navy); border: 1px solid rgba(0,60,85,.25); }
.button-full { width: 100%; }
.text-link { color: var(--aqua-dark); font-weight: 800; text-decoration: none; }

.partner-hero {
    min-height: 690px;
    padding: clamp(70px, 9vw, 130px) clamp(20px, 6vw, 100px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: clamp(44px, 8vw, 120px);
    align-items: center;
    background:
        radial-gradient(circle at 80% 15%, rgba(32,216,194,.2), transparent 30%),
        linear-gradient(145deg, #f8fff8, #ecf7f5 55%, #e5f2f3);
}
.partner-hero-copy { max-width: 760px; }
.eyebrow, .card-kicker { margin: 0 0 14px; color: var(--aqua-dark); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
.partner-hero h1 { margin-bottom: 24px; font-size: clamp(42px, 6vw, 78px); line-height: 1.01; letter-spacing: -.055em; }
.hero-lead { max-width: 700px; color: #365862; font-size: clamp(18px, 2vw, 23px); }
.hero-support { max-width: 700px; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 18px; }
.microcopy { color: var(--muted); font-size: 13px; }
.partner-hero-card { padding: 34px; border-radius: 28px; color: white; background: var(--navy); box-shadow: var(--shadow); }
.partner-hero-card .card-kicker { color: var(--lime); }
.partner-hero-card ol { margin: 0; padding: 0; list-style: none; }
.partner-hero-card li { padding: 22px 0; display: grid; gap: 5px; border-bottom: 1px solid rgba(255,255,255,.15); }
.partner-hero-card li:last-child { border-bottom: 0; }
.partner-hero-card strong { font-size: 18px; }
.partner-hero-card span { color: rgba(255,255,255,.75); }
.partner-model-note { margin: 18px 0 0; padding-top: 20px; color: rgba(255,255,255,.78); border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; }

.partner-section { padding: clamp(70px, 8vw, 118px) clamp(20px, 6vw, 100px); }
.partner-section-tint { background: #eaf5f2; }
.section-heading { max-width: 800px; margin-bottom: 44px; }
.section-heading h2, .partner-cta h2 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.08; letter-spacing: -.04em; }
.feature-grid, .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card, .steps-grid article { padding: 30px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.feature-card h3, .steps-grid h3 { margin-bottom: 8px; font-size: 21px; }
.feature-card p, .steps-grid p { margin: 0; color: var(--muted); }
.steps-grid { grid-template-columns: repeat(4, 1fr); }
.steps-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps-grid article > span { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 28px; border-radius: 50%; color: var(--navy); background: var(--lime); font-weight: 900; }
.account-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.account-grid div { min-height: 150px; padding: 24px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.account-grid strong { font-size: 18px; }
.account-grid span { color: var(--muted); font-size: 14px; }
.partner-value .section-heading { margin-bottom: 0; }
.partner-value .section-heading p { max-width: 760px; color: var(--muted); font-size: 18px; }
.partner-value .partner-value-signoff { margin-bottom: 0; color: var(--navy); font-weight: 900; }
.trust-boundary { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; color: white; background: var(--navy); }
.trust-boundary h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.04em; }
.trust-boundary .eyebrow { color: var(--lime); }
.trust-boundary-copy { color: rgba(255,255,255,.72); }
.trust-boundary-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-self: start; }
.trust-boundary-card { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.trust-boundary-card h3 { margin-bottom: 10px; font-size: 22px; }
.trust-boundary-card p, .trust-boundary-privacy { margin: 0; color: rgba(255,255,255,.72); }
.trust-boundary-privacy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; }
.trust-boundary ul { margin: 0; padding: 0; list-style: none; }
.trust-boundary li { padding: 18px 0 18px 30px; border-bottom: 1px solid rgba(255,255,255,.15); position: relative; }
.trust-boundary li:before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 900; }
.partner-cta { padding: 100px 20px; text-align: center; background: var(--lime); }
.partner-cta h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.partner-cta p { max-width: 680px; margin: 0 auto 28px; }
.partner-cta-actions { justify-content: center; margin-bottom: 0; }

.auth-shell { min-height: calc(100vh - 150px); padding: 70px clamp(20px, 6vw, 100px); display: grid; grid-template-columns: minmax(260px,.7fr) minmax(480px,1.3fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.auth-shell-compact { max-width: 1180px; margin: 0 auto; grid-template-columns: 1fr 1fr; }
.auth-intro { padding-top: 28px; position: sticky; top: 120px; }
.auth-intro h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -.045em; }
.auth-intro p, .check-list { color: var(--muted); }
.check-list { padding: 0; list-style: none; }
.check-list li { padding: 8px 0 8px 26px; position: relative; }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: var(--aqua-dark); font-weight: 900; }
.auth-card, .dashboard-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.partner-form { display: grid; gap: 20px; }
.partner-form label, .inline-form label { display: grid; gap: 7px; color: #284b57; font-size: 14px; font-weight: 800; }
.partner-form input, .partner-form textarea, .inline-form input {
    width: 100%; border: 1px solid #c9d8dc; border-radius: 12px; padding: 13px 14px; color: var(--ink); background: #fbfdfd; outline: none;
}
.partner-form input:focus, .partner-form textarea:focus, .inline-form input:focus { border-color: var(--aqua-dark); box-shadow: 0 0 0 3px rgba(32,216,194,.13); }
.partner-form textarea { resize: vertical; }
.form-grid { display: grid; gap: 16px; }
.two-columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
.location-columns { grid-template-columns: 140px minmax(0,1fr); }
.checkbox-row { grid-template-columns: 20px 1fr !important; align-items: start; font-weight: 500 !important; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; }
.field-error { color: var(--danger); font-size: 12px; font-weight: 700; }
.field-hint, .form-footnote, .muted { color: var(--muted); font-size: 13px; }
.form-footnote { margin: 0; text-align: center; }
.flash { padding: 14px 16px; margin-bottom: 22px; border-radius: 12px; font-weight: 700; }
.flash-error { color: #772323; background: #fff0f0; border: 1px solid #f3c7c7; }
.flash-success { color: #095a50; background: #e7fbf5; border: 1px solid #afeadd; }

.dashboard-shell { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 270px minmax(0,1fr); }
.dashboard-sidebar { padding: 28px 20px; color: white; background: var(--navy); }
.organization-switcher { display: flex; gap: 12px; align-items: center; padding: 8px 8px 24px; border-bottom: 1px solid rgba(255,255,255,.14); }
.organization-switcher > div { min-width: 0; display: grid; }
.organization-switcher strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.organization-switcher span:not(.org-avatar) { color: rgba(255,255,255,.6); font-size: 11px; }
.org-avatar { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; color: var(--navy); background: var(--lime); font-weight: 900; }
.dashboard-nav { display: grid; gap: 5px; margin: 24px 0; }
.dashboard-nav a { padding: 11px 13px; border-radius: 10px; color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; font-weight: 700; }
.dashboard-nav a:hover, .dashboard-nav a.active { color: white; background: rgba(255,255,255,.12); }
.sidebar-boundary { margin-top: 32px; padding: 18px; display: grid; gap: 6px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; }
.sidebar-boundary span { color: rgba(255,255,255,.62); font-size: 12px; }
.dashboard-main { width: 100%; max-width: 1300px; padding: clamp(30px, 5vw, 70px); }
.dashboard-heading { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 30px; }
.dashboard-heading h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.08; }
.partner-welcome-card { display: grid; gap: 12px; }
.partner-welcome-card p { max-width: 920px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.partner-welcome-card .partner-welcome-lead { color: var(--ink); font-size: clamp(22px, 2.5vw, 30px); font-weight: 850; line-height: 1.25; }
.partner-welcome-card .pilot-notice { padding: 14px 16px; border-left: 4px solid var(--lime); border-radius: 8px; background: #f4f8e7; }
.partner-welcome-card .partner-welcome-signoff { color: var(--navy); font-weight: 850; }
.status-pill { display: inline-flex; padding: 7px 11px; border-radius: 999px; color: #31515a; background: #e9f0f1; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.status-approved { color: #08665b; background: #dff8f2; }
.status-pending_review { color: #76570a; background: #fff3c7; }
.status-rejected, .status-suspended { color: #8d2929; background: #ffe6e6; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.metric-grid-three { grid-template-columns: repeat(3,1fr); }
.metric-grid article { padding: 22px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.metric-grid article > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.metric-grid strong { font-size: 32px; line-height: 1.2; }
.metric-grid small { color: var(--muted); }
.dashboard-card { margin-bottom: 22px; box-shadow: 0 12px 35px rgba(5,51,66,.06); }
.card-heading { margin-bottom: 26px; display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.card-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.card-heading > span { color: var(--muted); font-size: 13px; }
.activation-list { display: grid; }
.activation-item { padding: 18px 0; display: grid; grid-template-columns: 42px 1fr; gap: 15px; border-top: 1px solid var(--line); }
.activation-item > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #6b7d83; background: #e9eff0; font-weight: 900; }
.activation-item.complete > span { color: var(--navy); background: var(--lime); }
.activation-item p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.split-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; }
.boundary-box, .notice { padding: 20px; border-radius: 16px; color: #31515a; background: #edf8f5; }
.boundary-box p { margin: 7px 0 0; font-size: 14px; }
.detail-list { margin: 0; display: grid; }
.detail-list > div { padding: 13px 0; display: grid; grid-template-columns: 190px 1fr; gap: 20px; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
code { padding: 3px 6px; border-radius: 6px; color: #154956; background: #edf3f4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.code-block { margin: 20px 0; padding: 18px; display: grid; grid-template-columns: 70px 1fr; gap: 10px; border-radius: 14px; background: #f1f6f6; }
.code-block span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.inline-form { margin-bottom: 22px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.empty-state { padding: 28px; display: grid; gap: 5px; text-align: center; color: var(--muted); border: 1px dashed #bdcfd3; border-radius: 15px; }
.empty-state strong { color: var(--ink); }
.empty-state.large { min-height: 230px; place-content: center; max-width: 720px; margin: 0 auto; }
.success-copy { color: #087e64; font-weight: 800; }
.embed-code { width:100%; min-height:150px; padding:18px; resize:vertical; border:1px solid #c9d8dc; border-radius:14px; color:#154956; background:#f1f6f6; font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace; }
.embed-code-actions { margin-top:14px; display:flex; align-items:center; gap:14px; }
.embed-preview-card { padding:22px; display:flex; align-items:center; justify-content:space-between; gap:22px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(135deg,#f6fbfa,#fbfdea); }
.embed-preview-card > div { display:grid; gap:5px; }
.embed-preview-card span,.embed-preview-card small { color:var(--muted); font-size:12px; }
.embed-preview-card strong { font-size:19px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.partner-footer { min-height: 74px; padding: 20px clamp(20px, 4vw, 64px); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); background: white; border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 980px) {
    .partner-hero, .auth-shell, .trust-boundary { grid-template-columns: 1fr; }
    .partner-hero { min-height: auto; }
    .auth-intro { position: static; }
    .steps-grid, .account-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-shell { grid-template-columns: 210px minmax(0,1fr); }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .split-card { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .partner-header { padding-inline: 16px; align-items: center; gap: 12px; }
    .partner-topnav > a:first-child { display: none; }
    .partner-topnav { gap: 8px; font-size: 12px; }
    .partner-topnav .button-small { padding: 8px 11px; }
    .partner-brand span { display: none; }
    .partner-hero h1 { font-size: 42px; }
    .feature-grid, .steps-grid, .account-grid, .two-columns, .location-columns, .metric-grid, .metric-grid-three { grid-template-columns: 1fr; }
    .trust-boundary-columns { grid-template-columns: 1fr; }
    .auth-shell { padding-top: 40px; }
    .dashboard-shell { display: block; }
    .dashboard-sidebar { padding: 14px; }
    .organization-switcher, .sidebar-boundary { display: none; }
    .dashboard-nav { margin: 0; display: flex; overflow-x: auto; }
    .dashboard-nav a { white-space: nowrap; }
    .dashboard-main { padding: 28px 18px; }
    .dashboard-heading { display: grid; }
    .detail-list > div, .code-block, .inline-form { grid-template-columns: 1fr; }
    .embed-preview-card { align-items:stretch; flex-direction:column; }
    .partner-footer { display: grid; }
}
