/* Photo Booking Hub — homepage center stage (v3.6). Loaded after index.html's own styles. */
:root { --coach: #e0313b; --wall: #efe9e1; }

/* Logo doubles as the Home button */
.logo-area { background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; }
.link-item.on { background: #e7e7e3; font-weight: 600; }

/* ---------- Adaptive bubbles ---------- */
.kw-context {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 24px 2px; font-size: 13px;
  -webkit-mask-image: none; mask-image: none;
}
.kw-context[hidden] { display: none; }
.kw-context b { color: var(--primary); }
.kw-context span { color: var(--text-muted); }
.kw-context button {
  margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px;
  font-size: 12px; cursor: pointer; color: var(--text-main);
}
.kw-context button:hover { background: var(--surface); }
.keywords { gap: 8px; -webkit-mask-image: none; mask-image: none; }
.kw-rows { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.kw-rows { display: flex; flex-direction: column; gap: 8px; }
.kw-rows.kw-in .marquee { animation: kwIn .45s ease both; }
.kw-rows.kw-in .marquee:nth-child(2) { animation-delay: .07s; }
.kw-rows.kw-in .marquee:nth-child(3) { animation-delay: .14s; }
@keyframes kwIn { from { opacity: 0; transform: translateY(-10px) scale(.98); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Fly-to-chat + smoke puff ---------- */
.fly-pill {
  position: fixed; z-index: 300; pointer-events: none; white-space: nowrap;
  background: var(--primary); color: #fff; border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 24px rgba(17,24,39,.25); transform-origin: left center;
}
.puff {
  position: fixed; z-index: 299; width: 14px; height: 14px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(148,163,184,.75), rgba(148,163,184,0) 70%);
}
.chat-bar.chat-catch { animation: chatCatch .5s ease; }
@keyframes chatCatch { 0% { transform: none; } 35% { transform: scale(1.025); box-shadow: 0 0 0 5px rgba(47,111,237,.18), var(--shadow); } 100% { transform: none; } }
.chip.tag { background: #eef3ff; border-color: #cddcff; color: #1e3a8a; }
.chip.tag.occ { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.chip.tag.occ button { color: rgba(255,255,255,.75); }
.chip-new { animation: chipPop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes chipPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.attachments { max-height: 72px; overflow-y: auto; }

/* ---------- Red coach arrows ---------- */
#coach { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 45; overflow: visible; }
.coach-line { fill: none; stroke: var(--coach); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 2px 3px rgba(224,49,59,.25)); }
.coach-glow { position: relative; animation: coachGlow 1.6s ease-in-out infinite; border-radius: 14px; }
@keyframes coachGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(224,49,59,0); } 50% { box-shadow: 0 0 0 4px rgba(224,49,59,.35); } }
.chat-bar.coach-glow { border-radius: 28px; }
.menu-btn.coach-glow { border-radius: 10px; }

/* ---------- Stage (shared) ---------- */
.view[hidden] { display: none !important; }
.stage.stage-in > * { animation: stageIn .45s ease both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.stage-top { max-width: 1040px; margin: 0 auto 10px; }
.stage-home { background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; padding: 4px 0; }
.stage-home:hover { color: var(--primary); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--coach); margin-bottom: 8px; }
.eyebrow.light { color: #ffd6d8; }
.stage-title { font-size: clamp(24px, 3.2vw, 36px); font-weight: 750; letter-spacing: -.6px; line-height: 1.12; color: var(--primary); margin-bottom: 10px; }
.stage-lede { color: var(--text-muted); font-size: 15px; margin-bottom: 22px; max-width: 620px; }
.stage-note { color: var(--text-muted); font-size: 13px; text-align: center; margin-top: 22px; }
.how-stage, .pricing-stage, .print-stage { max-width: 1040px; margin: 0 auto; }
.cta-wrap { display: flex; justify-content: center; margin: 26px 0 10px; }
.cta-fries {
  border: none; cursor: pointer; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; box-shadow: var(--shadow); transition: transform .15s;
}
.cta-fries:hover { transform: translateY(-2px); }
.cta-fries::after { content: " →"; }

/* ---------- How it works ---------- */
.how-stage { text-align: center; padding-top: 10px; }
.how-stage .stage-title { max-width: 640px; margin-left: auto; margin-right: auto; }
.coach-cards { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 330px); grid-template-areas: "menu bubbles" "gallery chat"; justify-content: space-between; gap: 64px 60px; margin: 40px auto 10px; max-width: 900px; text-align: left; }
.c-menu { grid-area: menu; } .c-bubbles { grid-area: bubbles; } .c-gallery { grid-area: gallery; } .c-chat { grid-area: chat; }
.coach-card { background: #fff; border: 2px solid #f3c4c7; border-radius: 16px; padding: 18px 18px 16px 58px; position: relative; box-shadow: var(--shadow); }
.coach-card h3 { font-size: 16px; margin-bottom: 4px; color: var(--primary); }
.coach-card p { font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.coach-num::after { content: attr(data-d); }
.mob-hint { display: none; color: var(--coach) !important; font-weight: 700; margin-top: 6px; }
.coach-num { position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--coach); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing-stage { padding-top: 6px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.price-card h3 { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.price-card .price { font-size: 30px; font-weight: 750; letter-spacing: -.5px; color: var(--primary); }
.price-card .price small { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-left: 3px; }
.price-card p { font-size: 13.5px; line-height: 1.45; color: var(--text-main); flex: 1; }
.price-card .placeholder-tag { align-self: flex-start; margin: 0; }
.ask-btn { margin-top: 8px; align-self: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.ask-btn:hover { border-color: var(--primary); }

.pkg-h { font-size: 18px; margin: 28px 0 0; color: var(--primary); }

/* ---------- Book ---------- */
.book-stage { position: relative; border-radius: 22px; overflow: hidden; min-height: 470px; display: flex; align-items: center; max-width: 1040px; margin: 0 auto; }
.book-bg { position: absolute; inset: 0; background: #111; }
.book-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease, transform 8s ease-out; transform: scale(1.06); }
.book-bg img.on { opacity: 1; transform: scale(1); }
.book-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,12,20,.82) 0%, rgba(10,12,20,.55) 55%, rgba(10,12,20,.2) 100%); }
.book-inner { position: relative; z-index: 1; padding: 44px 40px; max-width: 680px; color: #fff; }
.houdini { font-size: clamp(28px, 4vw, 46px); font-weight: 750; letter-spacing: -.8px; line-height: 1.08; margin-bottom: 14px; }
.houdini .hw { display: inline-block; white-space: nowrap; }
.houdini .hl { display: inline-block; animation: materialize .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 22ms); }
@keyframes materialize { from { opacity: 0; filter: blur(10px); transform: translateY(14px) scale(1.25) rotate(-6deg); } to { opacity: 1; filter: none; transform: none; } }
.book-sub { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.88); margin-bottom: 22px; max-width: 520px; display: inline-block; }
.book-sub .where-chat { font-weight: 700; color: #fff; }
.book-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pill.big { font-size: 14px; padding: 9px 16px; background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.pill.big:hover { background: #fff; color: var(--primary); }

.book-down { position: absolute; z-index: 1; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.book-down b { width: 38px; height: 38px; border-radius: 50%; background: var(--coach); display: grid; place-items: center; font-size: 20px; box-shadow: 0 6px 18px rgba(224,49,59,.45); animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.book-inner { padding-bottom: 90px !important; }
.chat-bar.chat-beacon { animation: beacon 2s ease-in-out infinite; }
@keyframes beacon { 0%,100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 0 5px rgba(224,49,59,.28), var(--shadow); } }

/* ---------- Print Shop ---------- */
.print-wall {
  position: relative; height: 300px; border-radius: 20px; margin-bottom: 26px; overflow: hidden;
  background: radial-gradient(ellipse at 50% -10%, #fffaf2 0%, var(--wall) 55%, #e2d9cd 100%);
  display: flex; align-items: center; justify-content: center; gap: 26px; padding: 30px 20px 46px;
}
.print-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(#d8cdbf, #cbbfb0); box-shadow: 0 -2px 6px rgba(0,0,0,.08); }
.frame { background: #fff; padding: 8px; box-shadow: 0 14px 26px rgba(60,40,20,.22), 0 0 0 5px #222; flex-shrink: 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.canvas { padding: 0; box-shadow: 4px 10px 22px rgba(60,40,20,.28); }
.f-lg { width: 230px; height: 160px; }
.f-tall { width: 120px; height: 170px; }
.f-md { width: 150px; height: 112px; }
.f-sq { width: 110px; height: 110px; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 6px; }
.pkg { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.pkg h3 { font-size: 15px; color: var(--primary); }
.pkg .price { font-size: 24px; font-weight: 750; color: var(--primary); }
.pkg p { font-size: 13px; color: var(--text-muted); line-height: 1.45; flex: 1; }
.pkg .placeholder-tag { align-self: flex-start; margin: 0; }
.pkg-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pkg-btns button { border-radius: 999px; padding: 7px 12px; font-size: 12.5px; cursor: pointer; border: 1px solid var(--border); background: #fff; }
.pkg-add { background: var(--primary) !important; color: #fff; border-color: var(--primary) !important; }
.pkg-add.added { background: #16a34a !important; border-color: #16a34a !important; }
.pkg-past:hover { border-color: var(--primary); }

/* ---------- Gallery sign-in popup ---------- */
.gal-input { width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; font-size: 15px; background: var(--surface); font-family: inherit; outline: none; }
.gal-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,111,237,.15); background: #fff; }
.gal-input.code { letter-spacing: 6px; font-size: 20px; text-align: center; }
#galOverlay .login-submit { cursor: pointer; }
.gal-link { display: block; margin: 14px auto 0; background: none; border: none; color: var(--accent); font-size: 13px; cursor: pointer; }
.gal-err { color: #dc2626; font-size: 13px; margin: -4px 0 8px; }
#galOverlay form[hidden] { display: none; }


/* ---------- v4.9: category scenes (the background follows the conversation) ---------- */
.scene-stage { position: relative; border-radius: 22px; overflow: hidden; max-width: 1040px; margin: 0 auto;
  min-height: clamp(360px, calc(100dvh - 330px), 640px); display: flex; align-items: flex-end; }
.scene-stage .book-bg::after { background: linear-gradient(to top, rgba(10,12,20,.86) 0%, rgba(10,12,20,.5) 45%, rgba(10,12,20,.12) 100%); }
.scene-inner { position: relative; z-index: 1; padding: 40px 40px 96px; max-width: 720px; color: #fff; }
.scene-inner .houdini { font-size: clamp(28px, 4.2vw, 48px); }
.scene-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.scene-secret .book-bg { background: radial-gradient(ellipse at 70% 20%, #3b1d2e 0%, #1a1020 45%, #0b0a10 100%); }
.secret-bg { position: absolute; inset: 0; display: grid; place-items: center; }
.secret-bg span { font-size: 180px; opacity: .06; filter: blur(1px); }
.secret-bg::before { content: "TOP SECRET"; position: absolute; top: 34px; right: -40px; transform: rotate(12deg); border: 3px solid rgba(224,49,59,.55);
  color: rgba(224,49,59,.7); font-weight: 800; letter-spacing: 4px; font-size: 22px; padding: 6px 18px; border-radius: 8px; }
/* the chat is the main thing while a scene is up: a taller thread */
body.scene-on .thread.open { max-height: min(46vh, 420px); }
body.scene-secret-on .chat-bar { border-color: #4b2a3c; }

/* ---------- v4.9: center sheets (checklists, documents, receipts, My file) ---------- */
:root { --dock-h: 120px; --top-h: 60px; }
.pbh-sheet-wrap { position: fixed; left: 0; right: 0; top: var(--top-h); bottom: calc(var(--dock-h) + 6px); z-index: 40; display: flex; justify-content: center;
  align-items: flex-start; padding: 8px 16px; pointer-events: none; }
@media (min-width: 821px) { .pbh-sheet-wrap { left: 272px; } }
.pbh-sheet { pointer-events: auto; width: 100%; max-width: 640px; max-height: 100%; overflow: auto; background: #fff; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(17,24,39,.28); border: 1px solid var(--border); padding: 22px; position: relative; animation: sheetIn .32s cubic-bezier(.2,.8,.2,1) both; }
.pbh-sheet.wide { max-width: 760px; }
.pbh-sheet.secret { background: #fffdfb; border-color: #f0d6dc; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.pbh-sheet.filing { animation: sheetFile .6s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes sheetFile { to { opacity: 0; transform: translate(var(--fx, 0px), var(--fy, -200px)) scale(.12); } }
.pbh-sheet h2 { font-size: 20px; letter-spacing: -.3px; margin: 2px 0 6px; color: var(--primary); padding-right: 36px; }
.pbh-sheet .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; line-height: 1.45; }
.pbh-sheet .x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--text-muted); }
.pbh-sheet .x:hover { background: var(--surface); }
.pbh-sheet fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px 12px; margin: 0 0 12px; }
.pbh-sheet legend { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--coach); padding: 0 6px; }
.pbh-sheet .tick { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; line-height: 1.35; cursor: pointer; }
.pbh-sheet .tick input { width: 20px; height: 20px; flex: none; margin-top: 0; accent-color: #d92d20; }
.pbh-sheet .tick small { display: block; color: var(--text-muted); font-size: 12.5px; }
.pbh-sheet .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pbh-sheet .chips label { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; user-select: none; }
.pbh-sheet .chips input { display: none; }
.pbh-sheet .chips label:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); }
.pbh-sheet textarea { width: 100%; min-height: 64px; border: 1px solid var(--border); border-radius: 12px; padding: 10px; font: inherit; font-size: 14px; }
.pbh-sheet .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.pbh-sheet .go { border: 0; background: #d92d20; color: #fff; border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.pbh-sheet .go:disabled { opacity: .5; }
.pbh-sheet .ghost { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 10px 16px; font: inherit; cursor: pointer; }
.pbh-sheet .err { color: #b42318; font-size: 13px; }
.pbh-sheet .stamp { display: inline-block; border: 2px solid rgba(224,49,59,.6); color: #c0262f; font-weight: 800; letter-spacing: 3px; font-size: 11px; padding: 2px 8px; border-radius: 6px; transform: rotate(-3deg); }
.pbh-sheet iframe { width: 100%; height: min(70vh, 900px); border: 0; border-radius: 12px; background: var(--sidebar-bg); }
.file-sec { margin: 14px 0 0; }
.file-sec h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); margin-bottom: 4px; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.file-row:first-of-type { border-top: 0; }
.file-row .meta { color: var(--text-muted); font-size: 12.5px; display: block; }
.file-row button, .file-row a { flex: none; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; cursor: pointer; color: var(--primary); text-decoration: none; }
.file-row .todo { background: #d92d20; color: #fff; border-color: #d92d20; font-weight: 700; }
.file-pill { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 8px; background: #dcfce7; color: #166534; margin-left: 6px; }
.file-pill.wait { background: #fef3c7; color: #92400e; }
.receipt { font-variant-numeric: tabular-nums; }
.receipt .line { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px dashed var(--border); font-size: 14.5px; }
.receipt .total { font-weight: 800; font-size: 17px; }
.login-cta .badge { background: #fff; color: #d92d20; border-radius: 99px; font-size: 11px; font-weight: 800; padding: 1px 7px; margin-left: 6px; }
.filed-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--dock-h) + 14px); z-index: 60; background: #111827; color: #fff; border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: sheetIn .3s ease both; }
@media (max-width: 820px) {
  .scene-stage { border-radius: 16px; min-height: clamp(300px, calc(100dvh - 300px), 560px); }
  .scene-inner { padding: 26px 20px 84px; }
  .secret-bg::before { font-size: 15px; top: 20px; right: -30px; }
  .pbh-sheet-wrap { padding: 6px 10px; }
  .pbh-sheet { padding: 18px 16px; border-radius: 18px; }
  body.scene-on .thread.open { max-height: 34vh; }
}
@media (prefers-reduced-motion: reduce) { .pbh-sheet, .pbh-sheet.filing, .filed-toast { animation: none !important; } }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .kw-context { padding: 0 16px 2px; }
  .coach-cards { grid-template-columns: 1fr; grid-template-areas: "bubbles" "menu" "chat" "gallery"; gap: 34px; margin-top: 30px; }
  .coach-card { padding-left: 54px; }
  .mob-hint { display: block; }
  .coach-num::after { content: attr(data-m); }
  .book-stage { min-height: 0; border-radius: 16px; }
  .book-inner { padding: 30px 22px; }
  .print-wall { height: 200px; gap: 12px; padding: 18px 10px 34px; }
  .print-wall::after { height: 26px; }
  .f-lg { width: 130px; height: 92px; } .f-tall { width: 70px; height: 100px; } .f-md { width: 90px; height: 68px; } .f-sq { display: none; }
  .frame { padding: 5px; box-shadow: 0 10px 18px rgba(60,40,20,.22), 0 0 0 3px #222; }
  .frame.canvas { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .houdini .hl, .book-down b, .chat-bar.chat-beacon, .kw-rows.kw-in .marquee, .stage.stage-in > *, .chip-new, .coach-glow { animation: none !important; }
}
