/* Client page: full-bleed scene, profile header, "All Projects" pill and a frosted card on the left. */

.pr { --brand: #007aff; --on-brand: #fff; min-height: 100dvh; background: #8fa0e8 var(--bg-img, none) center / cover fixed no-repeat; position: relative; }
.pr.plain { background: var(--surface); }
.pr.plain .pr-top, .pr.plain .pr-top a, .pr.plain .pr-foot, .pr.plain .pr-foot a { color: var(--ink); text-shadow: none; }
.pr.plain .pr-top span { color: var(--ink-3); }

.pr-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 40px 0; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.12); flex-wrap: wrap; }
.pr-who { display: flex; align-items: center; gap: 12px; }
.pr-av { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 600; font-size: 14px; box-shadow: 0 0 0 2px rgba(255,255,255,.7); text-shadow: none; }
.pr-who strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.2; }
.pr-who span { font-size: 13px; color: rgba(255,255,255,.8); }
.pr-links { display: flex; gap: 28px; align-items: center; }
.pr-links a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.pr-links a:hover { opacity: .75; color: #fff; }
.pr-demo { display: flex; gap: 8px; align-items: center; }

.pr-wrap { padding: 16px 40px 80px 80px; }
.pr-all { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--ink); font-size: 13px; font-weight: 600; border: 0; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); margin: 0 0 14px -16px; }
.pr-all svg { width: 14px; height: 14px; }

.pr-card { width: 520px; max-width: 100%; background: rgba(255,255,255,.62); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); border-radius: 30px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), inset 0 1px 0 rgba(255,255,255,.8), 0 30px 60px rgba(20,24,60,.2); padding: 36px 36px 40px; display: grid; gap: 16px; }
.pr-title { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: 0; margin-bottom: 8px; }

.pr-in { background: rgba(255,255,255,.62); border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); }
.pr-status { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; padding: 18px 20px; }
.pr-state { display: grid; grid-template-columns: 14px 1fr; gap: 0 8px; align-content: start; }
.pr-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-top: 9px; box-shadow: 0 0 0 3px rgba(52,199,89,.18); }
.pr-dot.blue { background: var(--blue); box-shadow: 0 0 0 3px rgba(0,122,255,.18); }
.pr-dot.orange { background: var(--orange); box-shadow: 0 0 0 3px rgba(255,149,0,.2); }
.pr-dot.gray { background: #8e8e93; box-shadow: 0 0 0 3px rgba(142,142,147,.2); }
.pr-state strong { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0; line-height: 1.3; }
.pr-state small { grid-column: 2; font-size: 12px; color: var(--ink-3); }
.pr-status p { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }

.pr-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
.pr-info { padding: 16px 18px; display: grid; gap: 14px; align-content: start; }
.pr-info div { display: grid; }
.pr-info b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.pr-info span { font-size: 12px; color: var(--ink-3); }
.pr-totals { padding: 4px 18px; }
.pr-totals div { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.pr-totals div:last-child { border-bottom: 0; }
.pr-totals b { font-weight: 600; color: var(--ink); font-size: 14px; }

.pr-cta { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.pr-pay { flex: 1; height: 52px; border-radius: 999px; border: 0; background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: filter .25s var(--ease), transform .2s var(--ease); }
.pr-pay:hover { filter: brightness(.93); color: var(--on-brand); }
.pr-pay:active { transform: scale(.985); }
.pr-pay:disabled { opacity: .5; cursor: default; filter: none; }
.pr-pay svg { width: 18px; height: 18px; }
.pr-more { width: 52px; height: 52px; }
.pr-note { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.klarna { width: 22px; height: 22px; border-radius: 6px; background: #ffb3c7; color: #0b051d; display: grid; place-items: center; font-weight: 800; font-size: 12px; }

.pr-sec { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 8px; }
.pr-sec h2 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: 0; }
.pr-sec > p { color: var(--ink-2); font-size: 15px; }
.pr-sec h3 { font-size: 15px; font-weight: 600; margin-top: 6px; }
.pr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pr-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.pr-foot { padding: 0 40px 32px 80px; color: rgba(255,255,255,.85); font-size: 12px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.pr-foot a { color: #fff; }
.pr-foot img { width: 16px; height: 16px; }

/* Signature box */
.sig-box { min-height: 86px; border-radius: 14px; background: #eef5ff; box-shadow: inset 0 0 0 1px #c9defc; display: grid; align-items: center; padding: 6px 16px; font-family: "Caveat", "Segoe Script", cursive; font-size: 40px; color: #1a2b4a; letter-spacing: 0; overflow: hidden; white-space: nowrap; }
.sig-box:empty::before { content: "Your signature"; font-family: var(--sans); font-size: 13px; color: #8aa6cc; letter-spacing: -.02em; }
.audit { font-size: 12px; color: var(--ink-3); }

/* Tips */
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tips label { cursor: pointer; }
.tips input { position: absolute; opacity: 0; }
.tips span { display: grid; place-items: center; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.tips input:checked + span { box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); }
.tips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Project list in the "All Projects" sheet */
.plist { display: grid; gap: 8px; }
.plist a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); }
.plist a:hover { background: #fafafa; color: var(--ink); }
.plist a[aria-current] { box-shadow: inset 0 0 0 2px var(--brand); }
.plist strong { font-weight: 600; }
.plist small { color: var(--ink-3); font-size: 12px; }

/* Menu sheet rows */
.menu { display: grid; gap: 6px; }
.menu button, .menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 0; background: var(--surface); text-align: left; cursor: pointer; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--ink); }
.menu button:hover, .menu a:hover { background: #efefef; color: var(--ink); }
.menu small { color: var(--ink-3); font-size: 13px; }

@media (max-width: 860px) {
  .pr-wrap { padding: 16px 16px 48px; }
  .pr-all { margin-left: 0; }
  .pr-top { padding: 18px 16px 0; }
  .pr-links { gap: 16px; }
  .pr-foot { padding: 0 16px 24px; }
  .pr { background-attachment: scroll; }
}
@media (max-width: 520px) {
  .pr-card { padding: 24px 18px 28px; border-radius: 26px; }
  .pr-title { font-size: 30px; }
  .pr-status, .pr-grid { grid-template-columns: 1fr; }
  .pr-links { display: none; }
}

.pr-card .tier, .pr-card .addon, .pr-card .schedule, .pr-card .clauses details, .pr-card .file, .pr-card .cmt { background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.pr-card .tier.on { box-shadow: inset 0 0 0 2px var(--brand); }
.pr-card .round-btn { background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }

.pr-empty { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.pr-empty .es-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.75); color: var(--brand); margin: 0; }
.pr-empty .es-ic svg { width: 18px; height: 18px; }
.pr-empty p { font-size: 13px; color: var(--ink-2); }

/* Live preview inside the landing page */
html.preview .pr-foot, html.preview .skip { display: none; }
html.preview, html.preview body { overflow: hidden; }
