/* app/static/css/portal.css — Partner Portal (customer-facing).
   "Faceted VIXN": a deep-teal header band carrying the VIXN fox as a faint
   watermark, clean white cards that sit into it, one amber "action needed"
   strip. Light-touch type (headings 600, labels 500, hairline 1px lines,
   tinted pills). Plus Jakarta Sans, self-hosted (SIL OFL 1.1: static/fonts/OFL.txt);
   no third-party requests, because the sign-in confirm page's URL holds a token. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --pp-teal: #087b8b; --pp-teal-dark: #066a77; --pp-teal-soft: #dcf0f2;
  --pp-deep: #04434b; --pp-deep-2: #075e69;
  --pp-bg: #f1f2f4; --pp-card: #ffffff; --pp-border: #e4e7eb; --pp-line: #eef0f2;
  --pp-text: #1b2328; --pp-muted: #5b6470;
  --pp-green: #15803d; --pp-blue: #1d4ed8; --pp-grey: #eef0f3;
  --pp-amber-bg: #fdf3dc; --pp-amber-text: #8a5a00; --pp-amber: #d99a06;
  --pp-radius: 16px;
  --pp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px -12px rgba(16, 24, 40, .12);
}
* { box-sizing: border-box; }
/* The page behind the cards: a faint teal wash under the band, easing into cool grey. */
body.pp { margin: 0; min-height: 100vh; background-color: var(--pp-bg);
  background-image: radial-gradient(900px 520px at 100% 420px, rgba(8, 123, 139, .07), transparent 70%),
    radial-gradient(800px 480px at 0 100%, rgba(8, 123, 139, .05), transparent 70%),
    linear-gradient(180deg, #f7f9fa 0%, var(--pp-bg) 45%, #e6eaed 100%);
  color: var(--pp-text); font-size: 15px; line-height: 1.55; letter-spacing: .006em;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.pp strong { font-weight: 600; }
.pp a { color: var(--pp-teal-dark); text-decoration: none; }
.pp a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pp a:focus-visible, .pp button:focus-visible, .pp textarea:focus-visible, .pp input:focus-visible {
  outline: 2px solid var(--pp-teal-dark); outline-offset: 2px; }
/* Text fields: one teal edge and a soft halo instead of a second ring. The transparent
   outline still shows in Windows high-contrast mode. */
.pp input:focus-visible, .pp textarea:focus-visible { outline: 2px solid transparent;
  border-color: var(--pp-teal-dark); box-shadow: 0 0 0 3px rgba(8, 123, 139, .18); }
/* On the dark band the teal ring disappears; use the gold one there. */
.pp-top a:focus-visible, .pp-top button:focus-visible { outline-color: #f5c542; }
.pp-preview-banner { background: #fff4cc; color: #6b4e00; padding: 8px 28px; font-size: 14px;
  border-bottom: 1px solid #f0dc8a; }

/* ─── Header band ─────────────────────────────────────────── */
.pp-top { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(125deg, var(--pp-deep) 0%, var(--pp-deep-2) 55%, var(--pp-teal) 100%); }
.pp-top::after { content: ""; position: absolute; top: -40px; right: -70px; width: 440px; height: 452px;
  background: url("../img/vixn-emblem-white.svg") no-repeat center / contain; opacity: .06; pointer-events: none; }
.pp-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: 1180px; margin: 0 auto; padding: 20px 32px; }
.pp-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.pp .pp-brand, .pp .pp-brand:hover { color: #fff; text-decoration: none; }
.pp-logo { width: 30px; height: 31px; display: block; }
.pp-user { display: flex; align-items: center; gap: 16px; }
.pp-user-text { display: flex; flex-direction: column; align-items: flex-end; font-size: 13.5px; line-height: 1.35; }
.pp-user-text strong { font-weight: 600; }
.pp-user-text span { color: rgba(255, 255, 255, .75); font-size: 12.5px; }
.pp-signout { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.pp-signout:hover { background: rgba(255, 255, 255, .12); }
.pp-signout:disabled, .pp-button:disabled { cursor: not-allowed; opacity: .6; }
.pp-signout:disabled:hover { background: transparent; }
.pp-button:disabled:hover { background: var(--pp-teal); }
.pp-message textarea:disabled { background: #f6f7f8; cursor: not-allowed; }
.pp-preview-note { margin: 2px 0 0; font-size: 13px; }
.pp-hero { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 22px 32px 76px; }
.pp-hero .pp-h1 { color: #fff; }
.pp-hero-sub { margin: 8px 0 0; color: rgba(255, 255, 255, .8); font-size: 17px; font-weight: 300; }
.pp-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.pp-hero-meta li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 500; letter-spacing: .01em; }
.pp-hero-meta li.pp-hero-warn { background: var(--pp-amber-bg); border-color: var(--pp-amber-bg); color: var(--pp-amber-text); }
.pp-hero .pp-back { color: rgba(255, 255, 255, .85); margin-bottom: 16px; }
.pp-hero .pp-back:hover { color: #fff; }
.pp-hero-dates { margin: 10px 0 0; color: rgba(255, 255, 255, .78); font-size: 14.5px; font-weight: 300; }
.pp-hero .pp-desc { margin: 16px 0 0; max-width: 64ch; color: rgba(255, 255, 255, .9); font-size: 16px; font-weight: 300; }

/* ─── Page body ───────────────────────────────────────────── */
.pp-main { max-width: 1180px; margin: 0 auto; padding: 36px 32px 64px; }
.pp-main--lifted { position: relative; z-index: 2; margin-top: -48px; padding-top: 0; }
.pp-h1 { font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.pp-h2 { font-size: 16px; font-weight: 600; margin: 0 0 14px; letter-spacing: -.005em; }
.pp-sub { margin: 4px 0 28px; color: var(--pp-muted); font-size: 17px; font-weight: 300; }
.pp-muted { color: var(--pp-muted); margin: 4px 0; }
.pp-panel, .pp-card, .pp-contact, .pp-message, .pp-attn, .pp-empty {
  background: var(--pp-card); border: 1px solid var(--pp-border); border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow); }

/* Action needed */
.pp-attn { margin: 0 0 28px; padding: 20px 26px; }
.pp-attn-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.pp-attn-title span { color: var(--pp-amber); font-size: 13px; }
.pp-attn ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pp-attn li { color: var(--pp-muted); padding-left: 21px; position: relative; }
.pp-attn li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--pp-amber); }
.pp-attn li strong { color: var(--pp-text); font-weight: 500; }
.pp-attn li a { font-weight: 500; }

/* Project cards */
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.pp-card { position: relative; display: flex; flex-direction: column; padding: 26px 26px 24px;
  color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.pp .pp-card, .pp .pp-card:hover { color: inherit; text-decoration: none; }
.pp-card:hover { border-color: #cfe3e6; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -14px rgba(8, 123, 139, .28); }
.pp-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.pp-card-head h2 { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; margin: 0; }
.pp-card-target { margin: 6px 0 0; color: var(--pp-muted); font-size: 13.5px; }
.pp-badge { border: 1px solid var(--pp-teal); color: var(--pp-teal); border-radius: 999px;
  padding: 2px 10px; font-size: 12px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  /* Own white fill: on the grey detail-page background the text was 4.45:1 (teal) / 4.48:1 (green). */
  background: var(--pp-card); }
.pp-badge-complete { border-color: var(--pp-green); color: var(--pp-green); }
.pp-badge-not-started { border-color: var(--pp-muted); color: var(--pp-muted); }
.pp-progress { margin: 22px 0 18px; }
/* In a card the progress and next step sit at the bottom, so they line up across a row. */
.pp-card .pp-progress { margin: auto 0 0; padding-top: 24px; }
.pp-progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13.5px;
  color: var(--pp-muted); }
.pp-progress-label strong { font-weight: 600; color: var(--pp-text); }
.pp-bar { height: 5px; background: var(--pp-teal-soft); border-radius: 999px; overflow: hidden; }
.pp-bar-fill { height: 100%; border-radius: 999px; background: var(--pp-teal); }
.pp-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--pp-line); font-size: 14px; }
.pp-next strong { font-weight: 500; }
.pp-pill { border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; letter-spacing: .01em;
  white-space: nowrap; }
.pp-pill-not_started { background: var(--pp-grey); color: #3f4854; }
.pp-pill-in_progress { background: #e8effd; color: var(--pp-blue); }
.pp-pill-complete { background: #e3f4ea; color: #166534; }
.pp-pill-waiting { background: var(--pp-amber-bg); color: var(--pp-amber-text); }
.pp-draft { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--pp-amber-text);
  background: #fff4cc; border-radius: 6px; padding: 2px 8px; align-self: flex-start; }
.pp-empty { padding: 30px; display: grid; gap: 20px; }
.pp-back { display: inline-block; color: var(--pp-teal-dark); text-decoration: none; font-weight: 500; }

/* Contact card + Contact Fermata */
.pp-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; margin-top: 32px;
  align-items: start; }
.pp-side { display: grid; gap: 24px; align-content: start; }
.pp-contact { padding: 24px 26px; }
.pp-eyebrow { font-size: 12.5px; font-weight: 500; color: var(--pp-muted); margin: 0 0 14px; letter-spacing: .01em; }
.pp-contact-who { display: flex; align-items: center; gap: 14px; }
.pp-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pp-teal-soft); color: var(--pp-teal-dark); font-weight: 600; font-size: 15px; letter-spacing: .03em; }
.pp-contact-name { font-size: 16px; font-weight: 600; margin: 0; }
.pp-contact-who .pp-muted { margin: 2px 0 0; font-size: 14px; }
.pp-contact-links { display: grid; gap: 4px; margin-top: 16px; font-size: 14px; }
.pp-contact-links p { margin: 0; }
.pp-teams { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--pp-teal); color: var(--pp-teal-dark); font-weight: 500;
  text-decoration: none; font-size: 13.5px; }
.pp .pp-teams { color: var(--pp-teal-dark); }
.pp .pp-teams:hover { background: var(--pp-teal-soft); text-decoration: none; }
.pp-message { padding: 24px 28px; scroll-margin-top: 24px; }
.pp-message .pp-form { margin-top: 2px; }
.pp-message textarea { font: inherit; width: 100%; min-height: 112px; resize: vertical; padding: 12px 14px;
  border: 1px solid var(--pp-border); border-radius: 10px; background: #fcfdfd; color: var(--pp-text); }
.pp-message textarea:focus { border-color: var(--pp-teal); }
.pp-message-alt { margin: 14px 0 0; font-size: 13.5px; color: var(--pp-muted); }
.pp-message .pp-button { justify-self: start; padding: 10px 22px; }
.pp-sent { background: #e6f5ec; color: #14532d; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }

/* Project detail */
.pp-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.pp-panel { padding: 28px 30px; }
.pp-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.pp-step { position: relative; display: flex; gap: 16px; padding: 10px 12px 20px; margin: 0 -12px; border-radius: 12px; }
.pp-step:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 42px; bottom: -2px;
  width: 1px; background: var(--pp-border); }
.pp-step-complete:not(:last-child)::before { background: #a7d8b8; }
.pp-step-current { background: #f2f9fa; }
.pp-step-dot { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff; background: #fff; border: 1px solid #c5ccd4; }
.pp-step-complete .pp-step-dot { background: var(--pp-green); border-color: var(--pp-green); }
.pp-step-in_progress .pp-step-dot { background: var(--pp-blue); border-color: var(--pp-blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }
.pp-step-title { margin: 3px 0 2px; font-size: 15.5px; font-weight: 500; display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px; }
.pp-step .pp-muted { margin: 0; font-size: 13px; }
.pp-panel > .pp-progress:first-child { margin-top: 0; }
.pp-updated { color: var(--pp-muted); font-size: 12.5px; margin: 8px 0 0; }

/* Sign-in pages */
.pp-auth { max-width: 440px; margin: 48px auto; background: var(--pp-card); border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius); box-shadow: var(--pp-shadow); padding: 34px; }
.pp-auth-branded { padding: 0; overflow: hidden; }
.pp-auth-brand { background: linear-gradient(125deg, var(--pp-deep) 0%, var(--pp-teal) 100%);
  display: grid; place-items: center; padding: 30px 0 24px; }
.pp-auth-brand img { display: block; height: 84px; width: auto; }
.pp-auth-body { padding: 30px 34px 34px; }
.pp-auth .pp-h1 { font-size: 26px; }
.pp-form { display: grid; gap: 10px; margin-top: 18px; }
.pp-form label { font-weight: 500; font-size: 13.5px; }
.pp-form input { font: inherit; padding: 11px 13px; border: 1px solid var(--pp-border); border-radius: 10px; }
.pp-form input:focus { border-color: var(--pp-teal); }
.pp-button { font: inherit; font-weight: 600; background: var(--pp-teal); color: #fff; border: 0;
  border-radius: 10px; padding: 11px 18px; cursor: pointer; letter-spacing: .005em; }
.pp-button:hover { background: var(--pp-teal-dark); }
.pp-notice { background: var(--pp-amber-bg); color: var(--pp-amber-text); border-radius: 10px;
  padding: 10px 14px; }

@media (max-width: 900px) {
  .pp-detail, .pp-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pp-header { padding: 14px 16px; }
  .pp-hero { padding: 14px 16px 64px; }
  .pp-main { padding: 24px 16px 44px; }
  .pp-main--lifted { padding-top: 0; }
  .pp-grid { grid-template-columns: 1fr; gap: 16px; }
  .pp-card { padding: 22px 20px 20px; }
  .pp-user-text { display: none; }
  .pp-h1 { font-size: 27px; }
  .pp-top::after { width: 260px; height: 268px; right: -80px; }
}
@media (prefers-reduced-motion: reduce) { .pp * { transition: none !important; } }
