/* =============================================
   VSCO × CLOUDFLARE — CF for SaaS POV Plan
   styles.css
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cf:      #F6821F;
  --cf-lt:   #FBAD41;
  --cf-dk:   #d96b10;
  --vsco:    #1a1a1a;

  /* Document palette — clean, professional, printable */
  --bg:      #f8f7f5;
  --white:   #ffffff;
  --border:  #e8e5e0;
  --border2: #d0cbc4;

  --text:    #1a1a1a;
  --muted:   #6b6560;
  --faint:   #9e9890;
  --label:   #c8c0b8;

  --orange-bg:  rgba(246,130,31,.06);
  --orange-border: rgba(246,130,31,.2);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'SF Mono', 'Fira Code', monospace;
  --doc-w: 800px;
  --r: 8px;
  --t: 0.2s ease;
}

html { font-size: 15px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cf); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: .82em; background: rgba(0,0,0,.06); padding: .1em .3em; border-radius: 3px; }
p { color: var(--muted); font-size: .9rem; line-height: 1.8; }
h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin-bottom: 1rem; }
h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; }
h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }

/* ====================== COVER ====================== */
.cover {
  background: var(--text);
  color: #fff;
  padding: 4rem 3rem 3rem;
  max-width: var(--doc-w);
  margin: 0 auto;
  border-bottom: 4px solid var(--cf);
}
.cover__logos { display: flex; align-items: center; gap: .75rem; margin-bottom: 2.5rem; }
.cover__vsco { font-size: 1.4rem; font-weight: 900; letter-spacing: .12em; color: #fff; }
.cover__sep { color: rgba(255,255,255,.3); font-size: 1.2rem; }
.cover__title { font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-bottom: .5rem; }
.cover__subtitle { font-size: 1rem; color: rgba(255,255,255,.65); margin-bottom: 1.5rem; }
.cover__meta { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; font-size: .78rem; color: rgba(255,255,255,.45); }
.cover__products { display: flex; flex-wrap: wrap; gap: .4rem; }
.cpill {
  font-size: .68rem; font-weight: 700; padding: .22rem .6rem;
  background: rgba(246,130,31,.15); border: 1px solid rgba(246,130,31,.3);
  color: var(--cf-lt); border-radius: 50px; letter-spacing: .03em;
}

/* ====================== SIDE NAV ====================== */
.sidenav {
  position: fixed;
  top: 0; left: calc(50% - 520px);
  width: 180px;
  padding: 2rem 1.25rem;
  font-size: .78rem;
}
.sidenav__label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: .75rem; }
.sidenav ul { list-style: none; display: flex; flex-direction: column; gap: .2rem; }
.snav-link {
  display: block; padding: .3rem .5rem; border-radius: 5px;
  color: var(--muted); font-size: .75rem; transition: var(--t);
  border-left: 2px solid transparent;
}
.snav-link:hover, .snav-link.active {
  color: var(--text); background: rgba(0,0,0,.04);
  border-left-color: var(--cf); text-decoration: none;
}
.sidenav__status { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .35rem; }
.sidenav__status-row { display: flex; justify-content: space-between; font-size: .7rem; color: var(--faint); }
.status-badge { font-size: .62rem; font-weight: 700; padding: .12rem .45rem; border-radius: 4px; }
.status-in-progress { background: rgba(246,130,31,.1); color: var(--cf); border: 1px solid var(--orange-border); }

/* ====================== MAIN DOC ====================== */
.doc {
  max-width: var(--doc-w);
  margin: 0 auto;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.doc-section {
  padding: 3rem 3rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.doc-section--last { border-bottom: none; }
.doc-section__label {
  position: absolute;
  top: 2.75rem; right: 3rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--label);
}
.doc-section > p { margin-bottom: .85rem; }
.doc-section > p:last-of-type { margin-bottom: 1.5rem; }

/* Info boxes */
.info-box {
  background: rgba(0,0,0,.03); border: 1px solid var(--border);
  border-left: 3px solid var(--border2);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.25rem; margin-top: 1.25rem;
}
.info-box--orange { border-left-color: var(--cf); background: var(--orange-bg); }
.info-box__label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: .5rem; }
.info-box p { font-size: .82rem; color: var(--muted); line-height: 1.65; }
.info-box strong { color: var(--text); }

/* ====================== OBJECTIVES ====================== */
.objective-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.objective-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; background: rgba(0,0,0,.02); border: 1px solid var(--border); border-radius: var(--r); }
.objective-item__num { width: 26px; height: 26px; border-radius: 50%; background: var(--cf); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.objective-item strong { display: block; font-size: .875rem; margin-bottom: .3rem; }
.objective-item p { font-size: .82rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ====================== SOLUTION ====================== */
.solution-diagram {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  background: rgba(0,0,0,.02); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.75rem;
  margin: 1.25rem 0 2rem;
}
.sd-node { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; font-size: .75rem; font-weight: 600; color: var(--text); }
.sd-node small { font-size: .62rem; color: var(--muted); font-weight: 400; }
.sd-icon { width: 44px; height: 44px; background: var(--white); border: 1px solid var(--border2); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 9px; }
.sd-icon svg { width: 100%; height: 100%; }
.sd-node--cf .sd-icon { background: var(--orange-bg); border-color: var(--orange-border); }
.sd-arrow { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .6rem; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.sd-arrow svg { width: 60px; }

.section-sub-heading { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 1rem; margin-top: .5rem; }

.product-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.prod-card { background: rgba(0,0,0,.02); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.25rem; transition: var(--t); }
.prod-card:hover { border-color: var(--border2); }
.prod-card__header { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .7rem; }
.prod-card__icon { width: 34px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; padding: 8px; flex-shrink: 0; }
.prod-card__icon svg { width: 100%; height: 100%; }
.prod-card h4 { font-size: .85rem; margin: 0 0 .1rem; }
.prod-link { font-size: .65rem; color: var(--cf); }
.prod-card p { font-size: .8rem; color: var(--muted); line-height: 1.65; }

/* ====================== CRITERIA TABLE ====================== */
.table-wrap { overflow-x: auto; margin-top: 1.25rem; border-radius: var(--r); border: 1px solid var(--border); }
.criteria-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.criteria-table thead tr { background: rgba(0,0,0,.04); border-bottom: 2px solid var(--border); }
.criteria-table th { padding: .7rem 1rem; text-align: left; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.criteria-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--t); }
.criteria-table tbody tr:last-child { border-bottom: none; }
.criteria-table tbody tr:hover { background: rgba(0,0,0,.02); }
.criteria-table td { padding: 1rem; vertical-align: top; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.tc-usecase { width: 160px; }
.tc-outcome { width: 100px; text-align: center; }

.uc-badge { display: inline-block; font-size: .66rem; font-weight: 700; padding: .2rem .55rem; border-radius: 4px; white-space: nowrap; margin-bottom: .4rem; }
.uc-badge--orange { background: rgba(246,130,31,.1); color: var(--cf); border: 1px solid var(--orange-border); }
.uc-badge--blue   { background: rgba(56,189,248,.08); color: #0284c7; border: 1px solid rgba(56,189,248,.2); }
.uc-badge--purple { background: rgba(167,139,250,.08); color: #7c3aed; border: 1px solid rgba(167,139,250,.2); }
.uc-badge--green  { background: rgba(34,197,94,.08); color: #15803d; border: 1px solid rgba(34,197,94,.2); }

.criteria-list { list-style: none; display: flex; flex-direction: column; gap: .35rem; padding: 0; }
.criteria-list li { padding-left: 1rem; position: relative; font-size: .79rem; }
.criteria-list li::before { content: '✓'; position: absolute; left: 0; color: var(--cf); font-size: .7rem; font-weight: 700; }

.outcome-badge { display: inline-block; font-size: .65rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; white-space: nowrap; background: rgba(246,130,31,.1); color: var(--cf); border: 1px solid var(--orange-border); }
.outcome-badge--secondary { background: rgba(0,0,0,.05); color: var(--muted); border-color: var(--border2); }

/* ====================== TIMELINE ====================== */
.timeline { margin-top: 1.25rem; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.tl-row { display: grid; grid-template-columns: 200px 100px 1fr 130px; border-bottom: 1px solid var(--border); transition: background var(--t); }
.tl-row:last-child { border-bottom: none; }
.tl-row:hover:not(.tl-row--header) { background: rgba(0,0,0,.02); }
.tl-row--header { background: rgba(0,0,0,.04); }
.tl-row--milestone { background: rgba(246,130,31,.03); border-left: 3px solid var(--cf); }
.tl-col { padding: .75rem .9rem; font-size: .8rem; color: var(--muted); vertical-align: top; display: flex; align-items: flex-start; flex-direction: column; gap: .3rem; justify-content: center; }
.tl-col--task { font-weight: 600; color: var(--text); flex-direction: column; align-items: flex-start; gap: .3rem; }
.tl-col--date { font-family: var(--mono); font-size: .75rem; color: var(--muted); font-weight: 500; }
.tl-row--header .tl-col { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tl-badge { display: inline-block; font-size: .62rem; font-weight: 700; padding: .12rem .45rem; border-radius: 4px; }
.tl-badge { background: rgba(0,0,0,.06); color: var(--muted); }
.tl-badge--start { background: rgba(34,197,94,.1); color: #15803d; border: 1px solid rgba(34,197,94,.2); }
.tl-badge--end { background: rgba(246,130,31,.1); color: var(--cf); border: 1px solid var(--orange-border); }
.tl-badge--contract { background: rgba(56,189,248,.1); color: #0284c7; border: 1px solid rgba(56,189,248,.2); }

/* ====================== PARTICIPANTS ====================== */
.participants-grid { display: flex; flex-direction: column; gap: 2rem; margin-top: .5rem; }
.participant-group__label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--border); }
.participant-group__label--vsco { color: var(--text); border-color: var(--text); }
.participant-group__label--cf { color: var(--cf); border-color: var(--cf); }
.participant-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.p-card { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; background: rgba(0,0,0,.02); border: 1px solid var(--border); border-radius: var(--r); }
.p-card__avatar { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; flex-shrink: 0; color: #fff; }
.p-card__avatar--vsco { background: var(--text); }
.p-card__avatar--cf { background: var(--cf); }
.p-card strong { display: block; font-size: .84rem; }
.p-card span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.p-role { display: inline-block; font-size: .62rem; font-weight: 700; padding: .1rem .4rem; border-radius: 3px; margin-top: .3rem; }
.p-role--tech { background: rgba(56,189,248,.08); color: #0284c7; }
.p-role--exec { background: rgba(246,130,31,.1); color: var(--cf); }
.p-role--cf { background: var(--orange-bg); color: var(--cf); }

.cadence-box { background: rgba(0,0,0,.02); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; margin-top: 1.5rem; }
.cadence-box h3 { margin-bottom: .5rem; }
.cadence-box p { font-size: .82rem; color: var(--muted); margin-bottom: .75rem; }
.cadence-contacts { display: flex; flex-direction: column; gap: .3rem; font-size: .78rem; color: var(--muted); }

/* ====================== CONTRACTING ====================== */
.contracting-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.25rem 0; }
.contract-item { padding: 1.1rem 1.25rem; background: rgba(0,0,0,.02); border: 1px solid var(--border); border-radius: var(--r); }
.contract-item h4 { margin-bottom: .4rem; }
.contract-item p { font-size: .8rem; color: var(--muted); line-height: 1.65; }

/* ====================== SIGNATURE ====================== */
.signature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; margin-top: 2rem; }
.sig-block { display: flex; flex-direction: column; gap: .35rem; }
.sig-line { height: 1px; background: var(--border2); margin-bottom: .35rem; }
.sig-name { font-weight: 700; font-size: .9rem; }
.sig-title { font-size: .78rem; color: var(--muted); }
.sig-date { font-size: .75rem; color: var(--faint); margin-top: .5rem; }

/* ====================== FOOTER ====================== */
.doc-footer {
  max-width: var(--doc-w); margin: 0 auto;
  border-top: 2px solid var(--cf);
  background: var(--white);
  padding: .85rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; color: var(--faint);
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.doc-footer strong { color: var(--text); }

/* ====================== PRINT ====================== */
@media print {
  .sidenav { display: none; }
  .doc, .cover, .doc-footer { max-width: 100%; border: none; }
  .doc-section { break-inside: avoid; }
  body { background: #fff; }
  .cover { background: #1a1a1a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1100px) {
  .sidenav { display: none; }
}
@media (max-width: 860px) {
  .cover, .doc, .doc-footer { max-width: 100%; }
  .doc-section { padding: 2rem 1.5rem; }
  .cover { padding: 2.5rem 1.5rem 2rem; }
  .product-cards { grid-template-columns: 1fr; }
  .participant-cards { grid-template-columns: 1fr; }
  .contracting-grid { grid-template-columns: 1fr; }
  .signature-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tl-row { grid-template-columns: 160px 90px 1fr; }
  .tl-col--outcome { display: none; }
  .doc-footer { flex-direction: column; gap: .4rem; text-align: center; padding: 1rem 1.5rem; }
}
@media (max-width: 600px) {
  .tl-row { grid-template-columns: 1fr 80px; }
  .tl-col--action { display: none; }
  .criteria-table thead th:nth-child(2),
  .criteria-table td:nth-child(2) { display: none; }
}
