/* ---------------------------------------------------------------------
   A Line's prompt page (J, 1 November): the share page of every Line, and
   the example pages linked from the sales pages. One component, served from
   the marketing docroot, so the app's real share pages (/app/...) load the
   same file and look the same as the examples.

   THE LOOK follows J's five reference images (1 November; kept locally in
   the app repo's docs/reference/): the name large and warm, years in spaced
   capitals, a small ornament; prompt cards on a soft cream fill, each theme
   with a line icon; the focused prompt as a large serif question between
   thin rules, two buttons side by side; "Call anytime" as a floating pill on
   a desktop and a full-width bar on a phone. Not taken from them, by J's
   brief: their names, their black button (Vividly's terracotta instead) and
   their thank-you screen.

   Loaded after home-2026.css. Markup is rendered on the server (or written
   out on an example page); assets/prompts.js adds the focused view. With no
   script the prompts are plain text and "Call anytime" still dials.
   --------------------------------------------------------------------- */

.pp, .pp-focus, .pp-callbar { --pp-card: #FBF7F1; --pp-card-line: #E9DFD1; --pp-warm: #8C5A3C; --pp-soft: #7A6F66; }
.pp {
  background: var(--cream); color: var(--ink); padding-bottom: 140px; }
.pp-wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.pp-example-flag { background: var(--cream-deep); border-bottom: 1px solid var(--rule); text-align: center;
  padding: 12px 20px; font-size: 1rem; margin: 0; }
.pp-example-flag b { color: var(--terracotta-dark); }

/* ---------- the header ---------- */
.pp-head { text-align: center; padding: 64px 0 8px; }
.pp-head h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; color: var(--pp-warm);
  font-size: clamp(2.4rem, 6.5vw, 3.8rem); line-height: 1.08; margin: 0 0 10px; letter-spacing: -.01em; }
.pp-years { font-family: "DM Sans", system-ui, sans-serif; font-size: 1rem; letter-spacing: .28em;
  color: var(--pp-soft); margin: 0 0 16px; }
.pp-line { font-size: 1.125rem; max-width: 30em; margin: 0 auto 6px; color: var(--ink); }
.pp-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 18px;
  color: var(--pp-warm); opacity: .8; }
.pp-ornament::before, .pp-ornament::after { content: ""; width: 64px; height: 1px; background: var(--pp-card-line); }
.pp-ornament svg { width: 22px; height: 22px; }
.pp-how { font-size: 1rem; color: var(--pp-soft); margin: 0 auto; max-width: 34em; }
.pp-how b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- the themes and their prompts ---------- */
.pp-group { margin-top: 44px; }
.pp-group h2 { display: flex; align-items: center; gap: 10px; font-family: "DM Sans", system-ui, sans-serif;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pp-soft); margin: 0 0 14px; }
.pp-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: #F3EBE0; color: var(--pp-warm); flex-shrink: 0; }
.pp-icon svg { width: 18px; height: 18px; }
.pp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pp-prompt { display: block; width: 100%; height: 100%; text-align: left; background: var(--pp-card); font-weight: 500;
  border: 1px solid var(--pp-card-line); border-radius: 12px; padding: 20px 46px 20px 20px; font-family: "Playfair Display", Georgia, serif;
  font-size: 1.125rem; line-height: 1.45; color: var(--ink); cursor: pointer; position: relative;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.pp-prompt::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid var(--pp-soft); border-top: 1.5px solid var(--pp-soft); transform: translateY(-50%) rotate(45deg); }
.pp-prompt:hover { border-color: #D9C6AE; box-shadow: 0 4px 16px rgba(60,40,20,.06); }
.pp-prompt:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
html:not(.js) .pp-prompt { cursor: default; padding-right: 20px; }
html:not(.js) .pp-prompt::after { content: none; }

.pp-close-line { text-align: center; color: var(--pp-soft); font-size: 1rem; margin: 44px auto 0; max-width: 30em; }
.pp-review { font-size: 1rem; color: var(--pp-soft); text-align: center; margin: 14px auto 0; max-width: 30em; }

/* ---------- "Call anytime": a floating pill on a desktop, a bar on a phone ---------- */
.pp-callbar { position: fixed; right: 24px; bottom: 24px; z-index: 70; }
.pp-callbar .hp-btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 15px 26px;
  box-shadow: 0 8px 28px rgba(60,40,20,.18); }
.pp-callbar svg, .pp-acts svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 40em) {
  .pp-callbar { left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(247,242,234,.96); border-top: 1px solid var(--rule); }
  .pp-callbar .hp-btn { width: 100%; justify-content: center; box-shadow: none; }
}

/* ---------- the focused view ---------- */
.pp-focus { position: fixed; inset: 0; z-index: 60; background: var(--cream); overflow-y: auto;
  padding: 24px 20px 160px; }
.pp-focus[hidden] { display: none; }
.pp-focus-in { max-width: 720px; margin: 0 auto; text-align: center; }
.pp-back { display: block; background: none; border: 0; font: inherit; font-size: 1rem; color: var(--terracotta-dark);
  cursor: pointer; padding: 10px 0; min-height: 44px; text-align: left; }
.pp-back:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.pp-rule { display: flex; align-items: center; gap: 12px; color: #CBB9A3; margin: 36px 0 0; }
.pp-rule::before, .pp-rule::after { content: ""; flex: 1; height: 1px; background: var(--pp-card-line); }
.pp-rule svg { width: 10px; height: 10px; }
.pp-focus-q { font-family: "Playfair Display", Georgia, serif; font-weight: 500;
  font-size: clamp(1.9rem, 5.4vw, 3rem); line-height: 1.18; margin: 30px auto 30px; max-width: 16em; color: var(--ink); }
.pp-focus-q:focus { outline: none; }
.pp-acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.pp-acts .hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; min-width: 210px; }
.pp-quiet { background: #FFFDFA !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px #D9CCBB; }
.pp-quiet:hover { background: #F6EFE6 !important; }
.pp-notes { margin-top: 30px; text-align: left; }
.pp-notes[hidden] { display: none; }
.pp-notes label { display: block; font-weight: 600; margin-bottom: 4px; }
.pp-notes-hint { font-size: 1rem; color: var(--pp-soft); margin: 0 0 12px; }
.pp-notes textarea { width: 100%; min-height: 200px; font: inherit; font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: #FFFDFA; border: 1px solid #DCCFBF; border-radius: 12px; padding: 16px 18px; resize: vertical; }
.pp-notes textarea:focus { outline: 3px solid rgba(169,85,46,.3); outline-offset: 1px; border-color: var(--terracotta); }
.pp-notes .pp-acts { justify-content: flex-start; margin-top: 16px; }
.pp-clear { background: none; border: 0; font: inherit; font-size: .9375rem; color: var(--pp-soft);
  text-decoration: underline; cursor: pointer; padding: 10px 0; margin-top: 4px; min-height: 44px; }
.pp-example-msg { background: var(--cream-deep); border: 1px solid var(--rule); border-radius: 10px;
  padding: 14px 16px; margin: 18px auto 0; font-size: 1rem; text-align: left; max-width: 34em; }
.pp-example-msg[hidden] { display: none; }
@media (max-width: 40em) {
  .pp-acts .hp-btn { flex: 1 1 100%; min-width: 0; }
  .pp-head { padding-top: 44px; }
  .pp-list { grid-template-columns: 1fr; }
}
body.pp-locked { overflow: hidden; }
