/* DMO Sign landing, "Paper Trail" (public/ds-landing/paper.js). Ivory paper, plum ink, Fraunces display.
   Tokens from styles.css; the hero's area positions come from /site-img/site-data.css (generated).
   Motion only under html.dsl-motion; otherwise every section shows its finished state. */

@font-face { font-family: "Mrs Saint Delafield"; src: url("/fonts/mrs-saint-delafield-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root { --paper-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 80px -40px rgba(31,22,64,.35), 0 12px 24px -12px rgba(31,22,64,.14); --ink-blue: #1b2a6b; }

/* ---------- public header: ivory, plum call to action (signed out only) ---------- */
body:not(.app-shell) .site-header {
  --side: var(--bg); --side-2: var(--brand-soft); --side-ink: var(--ink); --side-muted: var(--muted); --side-active: var(--brand-soft);
  background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--ink); --focus: #f0b400;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(12px);
}
body:not(.app-shell) .site-header .ds-brand-sub { background: var(--brand-soft); color: var(--brand); }
body:not(.app-shell) .ds-public-nav .btn-primary { background: var(--brand); color: #fff; }
body:not(.app-shell) .ds-public-nav .btn-primary:hover { background: var(--brand-hover); color: #fff; }
body:not(.app-shell) .ds-public-nav .btn-secondary { color: var(--ink); }
body:not(.app-shell) .ds-public-nav .btn-secondary:hover { background: var(--brand-soft); color: var(--ink); }

/* ---------- shared ---------- */
.pt-eyebrow { font: 650 .74rem/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin: 0 0 1rem; }
.pt-h2 { font: 360 clamp(2rem, 1.3rem + 2.4vw, 3.4rem)/1.04 var(--font-display); letter-spacing: -.025em; margin: 0 0 .9rem; max-width: 18ch; text-wrap: balance; }
.pt-sub { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--muted); max-width: 40rem; margin: 0; line-height: 1.6; }
.pt-head { margin-bottom: clamp(2rem, 1.4rem + 2.6vw, 4rem); }
.pt-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.pt-hero, .pt-how, .pt-shelf, .pt-proof, .pt-cta { border-top: 0 !important; }
.dsl-section.pt-how, .dsl-section.pt-shelf, .dsl-section.pt-proof { padding-block: clamp(4rem, 2.5rem + 5vw, 8rem); }

/* ---------- hero ---------- */
.dsl-section.pt-hero { padding: clamp(2.5rem, 1.5rem + 4vw, 6rem) 0 clamp(4rem, 2rem + 5vw, 7rem); }
.pt-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center; }
.pt-hero-text { min-width: 0; }
.pt-hero h1 { font-family: var(--font-display); font-size: clamp(2.9rem, 1.6rem + 4.4vw, 5.6rem); line-height: .98; letter-spacing: -.035em; margin: 0 0 1.6rem; text-wrap: balance; max-width: 12ch; }
.pt-h1-strong { font-weight: 620; }
.pt-h1-light { font-weight: 300; color: color-mix(in srgb, var(--ink) 78%, var(--brand)); }
.pt-lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 34rem; margin: 0 0 2.2rem; }
.pt-hint { margin: 1.4rem 0 0; color: var(--muted); font-size: .95rem; }
.pt-suite { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }

.pt-stage { position: relative; min-width: 0; padding: 3% 2% 4% 0; }
.pt-page { position: relative; background: #fff; border-radius: 6px; box-shadow: var(--paper-shadow), 0 0 0 1px rgba(31,22,64,.06); transform: rotate(1.6deg); }
.pt-page > img { display: block; width: 100%; height: auto; border-radius: 6px; }
.pt-areas { position: absolute; inset: 0; }
.pt-area { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: calc(var(--w) * 100%); height: calc(var(--h) * 100%); }
.pt-ink { position: absolute; inset: 0; overflow: hidden; }
.pt-ink img { position: absolute; max-width: none; height: auto; width: calc(100% / var(--w)); left: calc(var(--x) / var(--w) * -100%); top: calc(var(--y) / var(--h) * -100%); } /* top % is of the area's height */
.pt-glow { position: absolute; inset: -5px -7px; border-radius: 7px; border: 2px solid #e0a800; background: rgba(255, 214, 77, .26); box-shadow: 0 0 0 6px rgba(255, 214, 77, .14); opacity: 0; }
.pt-seal { position: absolute; top: -1.1rem; right: 1.5rem; margin: 0; display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1.1rem; border-radius: 999px; background: #e3f2e7; color: #1c6b3a; border: 1px solid #b5dcc1; font: 650 .82rem/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 10px 24px -10px rgba(28,107,58,.45); }
.pt-seal-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #2f9a5c; }
.pt-phone { border-radius: 2rem; padding: 6px; background: linear-gradient(160deg, #3a2c5c, #1f1640); overflow: hidden; box-shadow: 0 0 0 1px rgba(31,22,64,.12), 0 36px 60px -30px rgba(31,22,64,.5); }
.pt-phone img { display: block; width: 100%; height: auto; border-radius: 1.6rem; }

/* motion: each signed area inks in after its field glows; then the seal; then the phone */
.dsl-motion .pt-stage .pt-ink { clip-path: inset(0 100% 0 0); }
.dsl-motion .pt-stage .pt-seal { opacity: 0; transform: scale(1.5) rotate(-6deg); }
.dsl-motion .pt-stage.is-signed .pt-glow { animation: pt-glow 1.4s ease calc(var(--d)) both; }
.dsl-motion .pt-stage.is-signed .pt-ink { animation: pt-ink .75s cubic-bezier(.55,.05,.25,1) calc(var(--d) + .35s) both; }
.dsl-motion .pt-stage.is-signed .pt-seal { animation: pt-seal .5s cubic-bezier(.2,1.4,.4,1) calc(.5s + var(--n) * .55s + .7s) both; }
@keyframes pt-glow { 0% { opacity: 0; } 22%, 62% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pt-ink { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pt-seal { from { opacity: 0; transform: scale(1.5) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* ---------- how it works ---------- */
.pt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(4rem, 2.5rem + 5vw, 8rem); }
.pt-step { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr); gap: clamp(2rem, 4vw, 5rem); align-items: center; }
.pt-step:nth-child(even) { grid-template-columns: minmax(0, 1.4fr) minmax(0, .82fr); }
.pt-step:nth-child(even) .pt-step-text { order: 2; }
.pt-step-text { min-width: 0; }
.pt-step .pt-num { font: 300 clamp(4.5rem, 3rem + 5vw, 8rem)/.8 var(--font-display); color: color-mix(in srgb, var(--brand) 26%, var(--bg)); margin: 0 0 1.2rem; letter-spacing: -.04em; }
.pt-step h3 { font: 420 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.12 var(--font-display); letter-spacing: -.02em; margin: 0 0 .8rem; }
.pt-step p { color: var(--muted); font-size: 1.08rem; line-height: 1.65; margin: 0; max-width: 30rem; }
.pt-shot { margin: 0; min-width: 0; }
.pt-shot > img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--paper-shadow), 0 0 0 1px rgba(31,22,64,.07); }
.pt-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); max-width: 40rem; margin-inline: auto; align-items: start; }
.pt-phones .pt-phone:last-child { margin-top: 3rem; }
.dsl-motion .pt-step .pt-shot.dsl-reveal-item { transform: translateY(28px) scale(.985); }
.dsl-motion .pt-step.is-in .pt-shot.dsl-reveal-item { transform: none; transition-duration: 900ms; }

/* ---------- template shelf ---------- */
.pt-books { list-style: none; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 1rem max(16px, env(safe-area-inset-left, 0px)) 2rem; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(11rem, 9rem + 6vw, 14.5rem); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.pt-book { scroll-snap-align: start; }
.pt-book a { display: grid; gap: .55rem; text-decoration: none; color: var(--ink); }
.pt-book-page { display: block; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(31,22,64,.4), 0 0 0 1px rgba(31,22,64,.07); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.pt-book-page img { display: block; width: 100%; height: auto; }
.pt-book a:hover .pt-book-page, .pt-book a:focus-visible .pt-book-page { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 34px 50px -26px rgba(31,22,64,.5), 0 0 0 1px rgba(31,22,64,.08); }
.pt-book-cat { font: 650 .7rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-top: .4rem; }
.pt-book-name { font: 450 1.05rem/1.3 var(--font-display); }
.pt-book-all a { height: 100%; min-height: 12rem; place-content: center; text-align: center; border: 1.5px dashed var(--brand-line); border-radius: 10px; color: var(--brand); }
.pt-book-arrow { font-size: 1.6rem; }

/* ---------- proof ---------- */
.pt-proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 6rem); align-items: center; }
.pt-proof-text { min-width: 0; }
.pt-proof-list { list-style: none; padding: 0; margin: 2rem 0 1.5rem; display: grid; gap: 1rem; }
.pt-proof-list li { position: relative; padding-left: 2rem; line-height: 1.6; }
.pt-proof-list li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 1rem; height: .55rem; border-left: 2.5px solid #2f9a5c; border-bottom: 2.5px solid #2f9a5c; transform: rotate(-45deg); }
.pt-proof-stack { position: relative; min-width: 0; padding: 0 0 18% 6%; }
.pt-proof-doc { width: 62%; transform: rotate(-2.5deg); }
.pt-proof-doc img, .pt-proof-cert img { display: block; width: 100%; height: auto; border-radius: 5px; box-shadow: var(--paper-shadow), 0 0 0 1px rgba(31,22,64,.07); }
.pt-proof-cert { position: absolute; right: 0; bottom: 0; width: 76%; transform: rotate(1.5deg); }

/* ---------- closing call to action ---------- */
.dsl-section.pt-cta { text-align: center; padding-block: clamp(4rem, 3rem + 5vw, 8rem); display: grid; justify-items: center; gap: 1rem; }
.pt-cta-h { font: 360 clamp(2.2rem, 1.4rem + 3vw, 4.2rem)/1.02 var(--font-display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.pt-cta-block { width: min(26rem, 90%); margin: 1.5rem 0 1rem; }
.pt-cta-sig { margin: 0; font: 400 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1.1 "Mrs Saint Delafield", cursive; color: var(--ink-blue); }
.pt-cta-line { margin: 0; border-top: 1.5px solid var(--line-strong); padding-top: .5rem; font: 650 .72rem/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pt-cta-actions { justify-content: center; }
.dsl-motion .pt-cta-block .pt-cta-sig { clip-path: inset(0 100% 0 0); }
.dsl-motion .pt-cta-block.is-signed .pt-cta-sig { animation: pt-ink 1.6s cubic-bezier(.55,.05,.25,1) .2s both; }

/* ---------- pricing and FAQ on paper ---------- */
.dsl-section.dsl-pricing, .dsl-section.dsl-faq { border-top: 1px solid var(--line) !important; padding-block: clamp(4rem, 2.5rem + 5vw, 7rem); }
.dsl-pricing .dsl-h2, .dsl-faq .dsl-h2 { font-weight: 360; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.025em; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .pt-seal { right: .6rem; }
  .pt-hero-grid, .pt-proof-grid { grid-template-columns: minmax(0, 1fr); }
  .pt-stage { padding: 4% 3% 2% 0; }
  .pt-step, .pt-step:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .pt-step:nth-child(even) .pt-step-text { order: 0; }
  .pt-num { font-size: 4.5rem; margin-bottom: .6rem; }
}
@media (max-width: 480px) {
  .pt-hero h1 { font-size: clamp(2.5rem, 1.6rem + 6vw, 3.2rem); }
  .pt-actions .btn { flex: 1 1 100%; }
  .pt-seal { right: 1.2rem; top: -.9rem; font-size: .72rem; }
  .pt-page { transform: rotate(.8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-book-page { transition: none; }
}

/* ---------- the "How it works" film (site-img/film-how.*) ---------- */
.pt-film { margin: 0 0 clamp(4rem, 2.5rem + 5vw, 8rem); }
.pt-film-frame { border-radius: 16px; overflow: hidden; background: #f5f0e8; box-shadow: var(--paper-shadow), 0 0 0 1px rgba(31,22,64,.08); aspect-ratio: 16 / 9; }
.pt-film-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-film figcaption { margin-top: .9rem; color: var(--muted); font-size: .92rem; text-align: center; }
