/* ============================================================
   Deadline 365 — Paper in Motion (2026-11-01)
   Depth, 3D paper, product imagery, choreography.
   Loaded after kit.css/site.css. No dependencies.
   ============================================================ */

:root{
  --pm-ink-shadow: 28,26,23;
  --pm-lift-1: 0 1px 2px rgba(var(--pm-ink-shadow),.06), 0 10px 26px -20px rgba(var(--pm-ink-shadow),.45);
  --pm-lift-2: 0 2px 4px rgba(var(--pm-ink-shadow),.05), 0 26px 60px -34px rgba(var(--pm-ink-shadow),.55);
  --pm-edge: inset 0 1px 0 rgba(255,255,255,.55);
  --pm-edge-dark: inset 0 1px 0 rgba(255,255,255,.06);
  --pm-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  --pm-ease: cubic-bezier(.22,.8,.24,1);
  --pm-perspective: 1400px;
}
html[data-theme="dark"]{
  --pm-ink-shadow: 0,0,0;
  --pm-lift-1: 0 1px 2px rgba(0,0,0,.35), 0 12px 30px -20px rgba(0,0,0,.8);
  --pm-lift-2: 0 2px 6px rgba(0,0,0,.35), 0 30px 70px -34px rgba(0,0,0,.9);
  --pm-edge: inset 0 1px 0 rgba(255,255,255,.05);
}

/* ---------- 1. shared depth uplift ---------- */
.pm-lift{
  box-shadow: var(--pm-lift-1) !important;
  transition: transform .28s var(--pm-ease), box-shadow .28s var(--pm-ease), border-color .2s ease;
  will-change: transform;
}
.pm-lift:hover{ transform: translateY(-2px); box-shadow: var(--pm-lift-2) !important; }
@media (hover:none){ .pm-lift:hover{ transform:none; } }

/* buttons get a quiet sheen + press */
.btn-primary{ position:relative; overflow:hidden; }
.btn-primary::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.24),transparent 46%);
  opacity:.7; mix-blend-mode:soft-light;
}
.btn-primary:active{ transform: translateY(1px) scale(.995); }

/* proof / stat numbers get tabular comfort */
.proof-strip b,.dfy-strip b,.docs-stats b,.kpi b,.lib-stats b{ font-variant-numeric: tabular-nums; }

/* section kickers get a hairline tick */
.panel-kicker::before,.kicker::before{
  content:""; display:inline-block; width:14px; height:1px; margin-right:8px;
  background:currentColor; opacity:.45; vertical-align:middle;
}

/* footer "works with" strip (injected) */
.pm-works-with{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:14px 0 6px; margin-top:6px; border-top:1px solid var(--line);
}
.pm-works-with span{ font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); font-weight:650; }
.pm-works-with img{ width:18px; height:18px; opacity:.9; }
.pm-works-with b{ font-size:12.5px; color:var(--muted); font-weight:600; }

/* ---------- 2. load choreography ---------- */
@keyframes pm-rise{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
@keyframes pm-fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes pm-float{ 0%,100%{ transform:translateY(0) rotate(var(--pm-rot,0deg)); } 50%{ transform:translateY(-7px) rotate(var(--pm-rot,0deg)); } }
@media (prefers-reduced-motion:no-preference){
  .hero-copy .eyebrow,.hero-copy .display,.hero-copy .lede,.hero-copy .hero-actions,.hero-copy .hero-note,
  .dfy-hero .hero-copy>*, .pricing-hero>*, .lib-hero>*{
    animation: pm-rise .62s var(--pm-ease) both;
  }
  .hero-copy .eyebrow{ animation-delay:.02s }
  .hero-copy .display,.dfy-hero h1,.pricing-hero h1,.lib-hero h1{ animation-delay:.07s }
  .hero-copy .lede,.dfy-hero .lede,.pricing-hero .lede,.lib-hero .lede{ animation-delay:.14s }
  .hero-copy .hero-actions,.hero-copy .hero-note{ animation-delay:.21s }
  .pm-scene{ animation: pm-rise .8s var(--pm-ease) .24s both; }
}

/* scroll reveal */
.pm-reveal{ opacity:0; transform:translateY(14px); transition:opacity .55s var(--pm-ease), transform .55s var(--pm-ease); transition-delay:calc(var(--pm-i,0) * 55ms); }
.pm-reveal.pm-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .pm-reveal{ opacity:1 !important; transform:none !important; transition:none !important; } }

/* ---------- 3. 3D scenes shell ---------- */
.pm-scene{
  position:absolute; pointer-events:none; z-index:0;
  perspective: var(--pm-perspective); transform-style:preserve-3d;
  filter: drop-shadow(0 30px 40px rgba(var(--pm-ink-shadow),.16));
}
.pm-scene img{ display:block; width:100%; height:auto; }
.pm-scene .pm-3d{ transform-style:preserve-3d; transition:transform .4s var(--pm-ease); }
.pm-chip{
  position:absolute; display:inline-flex; align-items:center; gap:7px;
  background:var(--surface); border:1px solid var(--line); border-radius:999px;
  padding:7px 11px; font-size:11.5px; font-weight:650; color:var(--body);
  box-shadow: var(--pm-lift-1); white-space:nowrap;
}
.pm-chip img{ width:14px; height:14px; border-radius:3px; }
.pm-chip .dot{ width:7px; height:7px; border-radius:50%; background:var(--ok); }
.pm-chip.hot .dot{ background:var(--accent); }
.pm-chip.warn .dot{ background:var(--warn); }
.pm-float{ animation: pm-float 7s ease-in-out infinite; }
.pm-float.d2{ animation-duration:9s; animation-delay:-2s; }
.pm-float.d3{ animation-duration:11s; animation-delay:-4s; }
@media (prefers-reduced-motion:reduce){ .pm-float{ animation:none; } }

/* home hero: product windows + connector orbit */
.pm-home-scene{ right:-26px; top:24px; width:min(46vw,560px); }
.pm-home-scene .pm-browser{
  border-radius:16px; overflow:hidden; border:1px solid var(--line);
  background:var(--surface); box-shadow:var(--pm-lift-2);
  transform: rotateY(-7deg) rotateX(3deg) translateZ(0);
}
.pm-home-scene .pm-browser img{ width:100%; }
.pm-home-scene .pm-phone{
  position:absolute; right:2%; bottom:-46px; width:132px; border-radius:18px; overflow:hidden;
  border:1px solid var(--line); background:var(--surface); box-shadow:var(--pm-lift-2);
  transform: rotateY(-10deg) rotateX(2deg) translateZ(60px);
}
.pm-home-scene .pm-phone img{ width:100%; }
.pm-orbit{ position:absolute; inset:0; }
.pm-orbit .pm-logo{
  position:absolute; width:34px; height:34px; border-radius:10px; background:var(--surface);
  border:1px solid var(--line); display:grid; place-items:center; box-shadow:var(--pm-lift-1);
  --pm-rot:0deg;
}
.pm-orbit .pm-logo img{ width:19px; height:19px; }
.pm-orbit .pm-logo.l1{ left:-18px; top:8%; }
.pm-orbit .pm-logo.l2{ left:-6%; top:46%; }
.pm-orbit .pm-logo.l3{ right:-4%; top:18%; }
.pm-orbit .pm-logo.l4{ right:-2%; bottom:6%; }

/* hide busy scenes on small screens */
@media (max-width:1080px){
  .pm-home-scene,.pm-pricing-scene,.pm-lib-scene,.pm-dfy-scene,.pm-app-scene,.pm-slab-scene{ display:none !important; }
}
@media (max-width:1080px){
  .pm-hero-spacer{ display:none; }
}

/* ---------- 4. pricing tier stack ---------- */
.pm-pricing-scene{ right:0; top:120px; width:min(30vw,360px); opacity:.96; }
.pm-tier{
  position:absolute; width:280px; height:86px; border-radius:14px; border:1px solid var(--line);
  background:var(--surface); box-shadow:var(--pm-lift-1); padding:14px 16px;
  transform: rotateX(52deg) rotateZ(-42deg) translateZ(var(--z,0));
  display:flex; flex-direction:column; justify-content:center;
}
.pm-tier b{ font-family:var(--serif); font-size:19px; color:var(--ink); }
.pm-tier span{ font-size:11px; color:var(--muted); letter-spacing:.04em; }
.pm-tier.t1{ left:0; top:0; --z:0; }
.pm-tier.t2{ left:24px; top:52px; --z:20px; }
.pm-tier.t3{ left:48px; top:104px; --z:40px; }
.pm-tier.t4{ left:72px; top:156px; --z:60px; background:var(--accent-soft); border-color:var(--accent-line); }
.pm-tier.t4 b{ color:var(--accent-text); }

/* ---------- 5. library shelf ---------- */
.pm-lib-scene{ right:0; top:80px; width:min(30vw,380px); }
.pm-lib-scene .pm-book{
  position:relative; display:flex; align-items:center; gap:12px; margin-bottom:12px;
  padding:14px 16px; border-radius:12px; border:1px solid var(--line); background:var(--surface);
  box-shadow:var(--pm-lift-1); transform: rotateY(-6deg);
}
.pm-lib-scene .pm-book img{ width:26px; height:26px; }
.pm-lib-scene .pm-book b{ font-size:14px; }
.pm-lib-scene .pm-book span{ display:block; font-size:11px; color:var(--muted); }

/* ---------- 6. done-for-you conveyor ---------- */
.pm-dfy-scene{ right:0; top:110px; width:min(30vw,380px); }
.pm-dfy-scene .pm-belt{
  height:120px; border-radius:16px; border:1px solid var(--line); background:
    repeating-linear-gradient(90deg,var(--surface-2) 0 18px,var(--surface) 18px 36px);
  position:relative; transform: rotateX(46deg) rotateZ(-38deg); box-shadow:var(--pm-lift-2);
}
.pm-dfy-scene .pm-tile{
  position:absolute; width:64px; height:64px; border-radius:12px; background:var(--surface);
  border:1px solid var(--line); display:grid; place-items:center; box-shadow:var(--pm-lift-1);
}
.pm-dfy-scene .pm-tile img{ width:30px; height:30px; }

/* ---------- 7. app depth ---------- */
.pm-app-scene{ right:24px; top:88px; width:min(26vw,340px); opacity:.95; }
.pm-app-scene .pm-file{
  position:absolute; width:250px; height:130px; border-radius:14px; border:1px solid var(--line);
  background:var(--surface); box-shadow:var(--pm-lift-1);
  transform: rotateX(50deg) rotateZ(-40deg) translateZ(var(--z,0));
}
.pm-app-scene .pm-file.f1{ left:0; top:0; --z:0; opacity:.55; }
.pm-app-scene .pm-file.f2{ left:16px; top:34px; --z:18px; opacity:.75; }
.pm-app-scene .pm-file.f3{ left:32px; top:68px; --z:36px; }
.pm-app-scene .pm-file.f3::after{ content:""; position:absolute; left:18px; top:22px; width:120px; height:8px; border-radius:4px; background:var(--accent-soft); }

/* ---------- 8. jurisdiction slab ---------- */
.pm-slab-scene{ right:0; top:20px; width:min(24vw,300px); }
.pm-slab{
  height:150px; border-radius:18px; border:1px solid var(--line);
  background:linear-gradient(155deg,var(--surface),var(--surface-2));
  box-shadow:var(--pm-lift-2); transform: rotateX(46deg) rotateZ(-34deg);
  position:relative; overflow:hidden;
}
.pm-slab::before{
  content:""; position:absolute; inset:14px; border-radius:10px;
  background-image:linear-gradient(var(--line) 1px, transparent 1px),linear-gradient(90deg,var(--line) 1px, transparent 1px);
  background-size:26px 26px; opacity:.5;
}
.pm-slab i{ position:absolute; width:10px; height:10px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 18%,transparent); }

/* ---------- 9. logo marquee (marketing) ---------- */
.pm-marquee{
  position:relative; overflow:hidden; margin:26px auto 0; max-width:1100px;
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.pm-marquee-track{ display:flex; gap:46px; width:max-content; align-items:center; animation: pm-marquee 34s linear infinite; }
.pm-marquee:hover .pm-marquee-track{ animation-play-state:paused; }
.pm-marquee img{ height:24px; width:auto; opacity:.75; filter:grayscale(.15); }
.pm-marquee .pm-mq-label{ font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); font-weight:650; white-space:nowrap; }
@keyframes pm-marquee{ to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce){ .pm-marquee-track{ animation:none; } }

/* ---------- 10. native-feeling details ---------- */
::selection{ background: color-mix(in srgb,var(--accent) 24%, transparent); }
:focus-visible{ outline-offset:3px; }
@media (prefers-reduced-motion:no-preference){
  html{ scroll-behavior:smooth; }
  @view-transition{ navigation:auto; }
}
.pm-3d-tilt{ transform-style:preserve-3d; transition: transform .3s var(--pm-ease); }
.pm-3d-tilt:hover{ transform: translateZ(6px) rotateX(1.4deg) rotateY(-1.4deg); }

/* ---------- 11. scene layout + stacking ---------- */
.hero-inner,.pricing-hero,.dfy-hero,.lib-hero,.app-body,.page,.liref,.liref-h,.page-head{ position:relative; }
.hero-copy,.mock-wrap,.pricing-hero>.shell,.pricing-hero>h1,.pricing-hero>.lede,
.dfy-hero .hero-inner,.dfy-hero .shell,.lib-hero>.shell,.app-body>.shell,.page>.page-head,
.liref>.liref-h,.liref>.liref-answer,.page-head>div{ position:relative; z-index:2; }
.pm-scene{ z-index:0; pointer-events:none; }
.pm-3d{ transform-style:preserve-3d; }

/* ---------- 12. home mock: paper stack + live window ---------- */
.mock-wrap{ perspective:1400px; }
.mock-wrap .email-card{ position:relative; z-index:2; transform: rotateY(-2.2deg) rotateX(1deg); box-shadow: var(--pm-lift-2); transition: transform .45s var(--pm-ease); }
.mock-wrap:hover .email-card{ transform: rotateY(0) rotateX(0); }
.pm-home-float{
  position:absolute; right:-54px; bottom:-58px; width:min(300px,54%); z-index:1;
  transform: translateZ(50px) rotateY(-9deg) rotateX(4deg);
  filter: drop-shadow(0 26px 34px rgba(var(--pm-ink-shadow),.22));
}
.pm-window{ border-radius:14px; overflow:hidden; border:1px solid var(--line); background:var(--surface); box-shadow:var(--pm-lift-2); }
.pm-window-bar{ display:flex; align-items:center; gap:5px; padding:7px 10px; border-bottom:1px solid var(--line); background:var(--surface-2); }
.pm-window-bar i{ width:7px; height:7px; border-radius:50%; background:var(--line-strong); }
.pm-window-bar span{ margin-left:auto; font-size:9.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); font-weight:650; }
.pm-window img{ display:block; width:100%; height:auto; }
.pm-logo-chip{ position:absolute; width:30px; height:30px; border-radius:9px; background:var(--surface); border:1px solid var(--line); display:grid; place-items:center; box-shadow:var(--pm-lift-1); }
.pm-logo-chip img{ width:17px; height:17px; }
.pm-logo-chip.c1{ display:none; }
.pm-logo-chip.c2{ display:none; }
.pm-logo-chip.c3{ display:none; }
@media (max-width:900px){ .pm-home-float{ display:none; } .mock-wrap .email-card{ transform:none; } }

/* ---------- 13. scene refinements ---------- */
.app-body{ overflow-x:clip; }

.pm-tier{ height:92px; }
.pm-marquee{ margin-top:18px; }
.pm-mq-label{ display:block; text-align:center; margin:0 0 10px; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); font-weight:650; }
.pm-marquee-track > .pm-mq-label{ display:none; }

/* ---------- 14. responsive scenes ---------- */

@media (max-width:1080px){ .pm-marquee-track{ gap:30px; } .pm-marquee img{ height:20px; } }
@media (max-width:600px){ .pm-marquee-track{ gap:24px; } .pm-mq-label{ font-size:10px; } }

/* phone header is a dark bar — keep the language pill legible and compact */
@media (max-width:860px){
  .site-header .hdr-actions .lang-sel{
    width:58px!important;min-width:58px!important;
    height:44px!important;min-height:44px!important;
    padding:0 18px 0 8px!important;
    border:1px solid rgba(255,255,255,.22)!important;
    border-radius:999px!important;
    color:#f7f7f9!important;
    background-color:rgba(255,255,255,.08)!important;
    background-image:linear-gradient(45deg,transparent 50%,rgba(255,255,255,.75) 50%),linear-gradient(135deg,rgba(255,255,255,.75) 50%,transparent 50%)!important;
    background-size:4px 4px,4px 4px!important;
    background-position:calc(100% - 12px) 20px,calc(100% - 8px) 20px!important;
    background-repeat:no-repeat!important;
    appearance:none!important;-webkit-appearance:none!important;
  }
}
@media(max-width:520px){
  .site-header .hdr-actions .lang-sel{
    width:54px!important;min-width:54px!important;
    background-position:calc(100% - 11px) 20px,calc(100% - 7px) 20px!important;
  }
}

/* reserve the demo ribbon strip before first paint on app pages (?demo=1) */
html.d365-demo{ --demo-bar:34px; }
@media (max-width:520px){ html.d365-demo{ --demo-bar:52px; } }
html.d365-demo body{ padding-top:var(--demo-bar); }
html.d365-demo .site-header{ top:var(--demo-bar); }
html.d365-demo .demo-ribbon{
  position:fixed; top:0; left:0; right:0; z-index:90;
  min-height:var(--demo-bar); display:flex; align-items:center; justify-content:center;
  padding:6px 14px; text-align:center;
}

/* ---------- 15. page-family scenes ---------- */
.pm-lib-scene{ right:0; top:-8px; width:min(24vw,280px); }
.pm-lib-scene .pm-book{ margin-bottom:10px; padding:11px 13px; }
.pm-lib-scene .pm-book b{ font-size:13px; }
.pm-app-scene{ right:0; top:-10px; width:200px; opacity:.82; }
.pm-app-scene .pm-file{ width:170px; height:78px; }
.pm-app-scene .pm-file.f3::after{ width:84px; height:7px; left:14px; top:16px; }
.pm-success-scene{ position:absolute; left:50%; top:-70px; transform:translateX(-50%); width:300px; height:170px; z-index:0; }
.pm-sheet{ position:absolute; left:50%; top:30px; width:190px; height:112px; border-radius:12px; border:1px solid var(--line); background:var(--surface); box-shadow:var(--pm-lift-1); transform:translateX(-50%) rotateX(46deg) rotateZ(-32deg); }
.pm-sheet.s1{ margin-left:-34px; margin-top:18px; opacity:.5; }
.pm-sheet.s2{ margin-left:-17px; margin-top:9px; opacity:.75; }
.pm-sheet.s3{ margin:0; }
.success-wrap{ position:relative; }
.success-wrap>.check-big,.success-wrap>h1,.success-wrap>p,.success-wrap>.success-copy{ position:relative; z-index:2; }

/* ---------- 16. tactile onboarding stepper ---------- */
.wiz-rail{ gap:8px; }
.wiz-rail li{ border-radius:12px; box-shadow:var(--pm-lift-1); background:var(--surface); border:1px solid var(--line); }
.wiz-rail li .n{ box-shadow:inset 0 1px 0 rgba(255,255,255,.4); }
.wiz-rail li.is-on{ box-shadow:var(--pm-lift-2); border-color:var(--accent-line); }
.wiz-rail li.done{ background:var(--surface-2); }
@media (max-width:520px){
  .wiz-rail{ display:flex; flex-wrap:wrap; gap:6px; }
  .wiz-rail li{ padding:7px 10px; font-size:11.5px; }
}

/* ---------- 17. dashboard action row on phones ---------- */
@media (max-width:560px){
  .dash-actions{ display:flex; flex-wrap:wrap; gap:8px; }
  .dash-actions .btn{ flex:1 1 auto; white-space:nowrap; font-size:13px; padding:0 12px; min-height:42px; }
  .dash-actions .link{ flex:0 0 100%; text-align:right; }
}

/* ---------- 18. marquee + footer strip contrast ---------- */
.pm-mq-label{ color:var(--muted); }
.pm-works-with span{ color:var(--muted); }
.pm-works-with b{ color:var(--body); }

/* ---------- 19. home window at tablet ---------- */
@media (max-width:1080px){ .pm-home-float{ display:none; } }

/* paper files read as documents, not blank cards */
.pm-app-scene .pm-file{
  background-color:var(--surface);
  background-image:linear-gradient(var(--line) 0 0),linear-gradient(var(--line) 0 0);
  background-size:58% 6px,38% 6px;
  background-position:14px 16px,14px 30px;
  background-repeat:no-repeat;
}
.pm-app-scene .pm-file.f3::after{ top:46px; }
/* tactile onboarding dots (start page uses .stepper, not .wiz-rail) */
.stepper .stepdot i{ box-shadow:var(--pm-lift-1),inset 0 1px 0 rgba(255,255,255,.4); }
.stepper .stepdot.active i{ box-shadow:0 10px 24px -12px rgba(var(--pm-ink-shadow),.45); }
.stepper .stepbar{ background:linear-gradient(90deg,var(--line-strong),var(--line)); }

/* 1024–1279: keep the wider language pill from tipping the header into 2px overflow */
@media (min-width:1000px) and (max-width:1279px){
  .hdr-actions{ gap:6px; }
  .hdr-actions .lang-sel{ width:60px!important; min-width:60px!important; padding-right:22px!important; }
  .nav-links a{ padding-left:9px; padding-right:9px; }
  .shell.hdr{ padding-left:20px; padding-right:20px; }
}

/* tablet: one-row header + stacked hero so nothing clips or wraps */
@media (max-width:1279px){
  .site-header .nav-links{ display:none!important; }
  .site-header .menu-btn{ display:grid!important; }
  .hero-inner{ grid-template-columns:1fr!important; gap:44px; }
  .hero-copy{ max-width:none; }
  .hero .mock-wrap{ width:100%; max-width:680px; margin:0 auto; }
}
@media (min-width:1280px){
  .site-header .nav-links{ display:flex; }
}

/* one horizontal contract for every breakpoint; overflow is clipped, not scrolled */
html{ overflow-x:clip; }
/* plan chips: 4.25:1 -> 6.5:1 on the soft accent tint */
.plan-chip,.plan-chip.paid{ color:var(--accent-text); }

/* header control tap rings must not add scrollable width */
.icon-btn::after,.theme-toggle::after{ inset:0; }

/* dual-theme product imagery in the home hero */
.pm-window .pm-shot-dark{ display:none; }
html[data-theme="dark"] .pm-window .pm-shot-light{ display:none; }
html[data-theme="dark"] .pm-window .pm-shot-dark{ display:block; }
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .pm-window .pm-shot-light{ display:none; }
  html:not([data-theme="light"]) .pm-window .pm-shot-dark{ display:block; }
}
/* pricing paper tiers read as paper in dark, with a visible edge line */
.pm-tier{ position:relative; }
.pm-tier::after{ content:""; position:absolute; left:16px; top:18px; width:46%; height:6px; border-radius:3px; background:var(--line); opacity:.6; }
html[data-theme="dark"] .pm-tier{
  background:linear-gradient(180deg,var(--surface-2),var(--surface));
  border-color:var(--line-strong);
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset,var(--pm-lift-1);
}
html[data-theme="dark"] .pm-tier::after{ background:var(--line-strong); opacity:.8; }
html[data-theme="dark"] .pm-tier.t4{ background:var(--accent-soft); border-color:var(--accent-line); }
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .pm-tier{ background:linear-gradient(180deg,var(--surface-2),var(--surface)); border-color:var(--line-strong); box-shadow:0 1px 0 rgba(255,255,255,.04) inset,var(--pm-lift-1); }
  html:not([data-theme="light"]) .pm-tier::after{ background:var(--line-strong); opacity:.8; }
  html:not([data-theme="light"]) .pm-tier.t4{ background:var(--accent-soft); border-color:var(--accent-line); }
}

/* ---------- 20. generated paper imagery (Google Flow) ---------- */
.lien-atlas{
  position:absolute; right:0; top:84px; width:min(27vw,350px); margin:0; z-index:1;
  border-radius:18px; overflow:hidden; border:1px solid var(--line);
  box-shadow:var(--pm-lift-2); transform:rotate(1.4deg); pointer-events:none;
}
.lien-atlas img{ display:block; width:100%; height:auto; }
@media (max-width:1240px){ .lien-atlas{ display:none; } }

.docs-art{
  margin:0 0 14px; border-radius:18px; overflow:hidden; border:1px solid var(--line);
  box-shadow:var(--pm-lift-2); background:var(--surface);
}
.docs-art img{ display:block; width:100%; height:auto; }
.docs-art figcaption{ padding:10px 13px; font-size:11.5px; line-height:1.45; color:var(--muted); border-top:1px solid var(--line); background:var(--surface); }

.dfy-desk-band{ padding:10px 0 6px; }
.dfy-desk-fig{
  position:relative; margin:0; border-radius:24px; overflow:hidden;
  border:1px solid var(--line); box-shadow:var(--pm-lift-2);
}
.dfy-desk-fig img{ display:block; width:100%; max-height:380px; object-fit:cover; }
.dfy-desk-fig figcaption{
  position:absolute; left:22px; right:22px; bottom:20px; display:grid; gap:6px; max-width:56ch;
  padding:16px 18px; border-radius:16px; color:#f8f2e6;
  background:linear-gradient(180deg,rgba(18,13,9,.10),rgba(18,13,9,.62));
  border:1px solid rgba(255,255,255,.16); backdrop-filter:blur(6px);
}
.dfy-desk-fig figcaption span{ font-size:10px; letter-spacing:.18em; text-transform:uppercase; font-weight:700; color:#f0b27f; }
.dfy-desk-fig figcaption b{ font-family:var(--serif); font-size:clamp(18px,2.2vw,26px); font-weight:500; letter-spacing:-.02em; line-height:1.15; }
@media (max-width:720px){ .dfy-desk-fig figcaption{ position:static; border-radius:0; background:var(--surface); color:var(--ink); border:0; border-top:1px solid var(--line); } .dfy-desk-fig figcaption span{ color:var(--accent-text); } }

.success-wrap{ position:relative; }
.success-seal{
  position:absolute; left:50%; top:-56px; transform:translateX(-50%); margin:0;
  width:min(380px,78vw); z-index:0; pointer-events:none; opacity:.62;
  -webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 96%);
  mask-image:linear-gradient(180deg,#000 55%,transparent 96%);
}
.success-seal img{ display:block; width:100%; height:auto; }
.success-wrap>.check-big,.success-wrap>.kicker,.success-wrap>h1,.success-wrap>.lede,
.success-wrap>.success-card,.success-wrap>.row,.success-wrap>.small,.success-wrap>.panel{ position:relative; z-index:2; }
@media (max-width:720px){ .success-seal{ top:-24px; width:min(300px,82vw); opacity:.5; } }

/* library docs band: art column should align with the copy, not centre it */
.docs-band{ align-items:start; }
.docs-copy{ padding-top:4px; }
@media (max-width:720px){ .docs-art{ display:none; } }

.docs-includes{ list-style:none; margin:18px 0 0; padding:0; display:grid; gap:9px; max-width:520px; }
.docs-includes li{ position:relative; padding-left:24px; font-size:13px; line-height:1.45; color:var(--mut); }
.docs-includes li::before{ content:"✓"; position:absolute; left:0; top:0; width:16px; height:16px; border-radius:50%; display:grid; place-items:center; font-size:9px; font-weight:800; color:var(--accent-text); background:var(--accent-soft); border:1px solid var(--accent-line); }
html[data-theme="dark"] .lien-atlas img,html[data-theme="dark"] .docs-art img,html[data-theme="dark"] .dfy-desk-fig img{ filter:brightness(.82) saturate(.95); }
@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]) .lien-atlas img,
  html:not([data-theme="light"]) .docs-art img,
  html:not([data-theme="light"]) .dfy-desk-fig img{ filter:brightness(.82) saturate(.95); }
}

/* ---------- 21. Pexels photography layer ---------- */
.quote-photo{
  margin:0 0 14px; border-radius:16px; overflow:hidden; border:1px solid var(--line);
  box-shadow:var(--pm-lift-2); background:var(--surface);
}
.quote-photo img{ display:block; width:100%; height:220px; object-fit:cover; object-position:center 42%; }
.photo-band{
  position:relative; margin:0; border-radius:22px; overflow:hidden;
  border:1px solid var(--line); box-shadow:var(--pm-lift-2); background:var(--surface);
}
.photo-band img{ display:block; width:100%; height:clamp(220px,30vw,380px); object-fit:cover; }
.photo-band figcaption{
  position:absolute; left:22px; right:22px; bottom:20px; display:grid; gap:5px; max-width:52ch;
  padding:14px 17px; border-radius:14px; color:#f8f2e6;
  background:linear-gradient(180deg,rgba(18,13,9,.12),rgba(18,13,9,.68));
  border:1px solid rgba(255,255,255,.16); backdrop-filter:blur(6px);
}
.photo-band figcaption span{ font-size:10px; letter-spacing:.18em; text-transform:uppercase; font-weight:700; color:#f0b27f; }
.photo-band figcaption b{ font-family:var(--serif); font-size:clamp(17px,2.1vw,24px); font-weight:500; line-height:1.18; letter-spacing:-.02em; }
.security-photo{ margin:22px 0 18px; }
.security-photo img{ height:clamp(200px,26vw,300px); }
.setup-photo-section{ padding-top:6px; padding-bottom:6px; }
.setup-photo img{ height:clamp(220px,28vw,340px); }
html[data-theme="dark"] .quote-photo img,html[data-theme="dark"] .photo-band img{ filter:brightness(.78) saturate(.92); }
@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]) .quote-photo img,
  html:not([data-theme="light"]) .photo-band img{ filter:brightness(.78) saturate(.92); }
}
@media (max-width:720px){
  .quote-photo img{ height:180px; }
  .photo-band figcaption{ position:static; border-radius:0; background:var(--surface); color:var(--ink); border:0; border-top:1px solid var(--line); }
  .photo-band figcaption span{ color:var(--accent-text); }
  .photo-band img{ height:220px; }
}

/* the sealed-desk photo is dark by nature; keep it readable in dark mode */
html[data-theme="dark"] .security-photo img{ filter:brightness(.92) saturate(.96); }
@media (prefers-color-scheme:dark){ html:not([data-theme="light"]) .security-photo img{ filter:brightness(.92) saturate(.96); } }

/* ---------- 22. cinematic product demos ---------- */
.demo-chapter{ display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr); gap:46px; align-items:center; padding:46px 0; border-top:1px solid var(--line); }
.demo-chapter:first-child{ border-top:0; padding-top:8px; }
.demo-chapter.reverse .demo-copy{ order:2; }
.demo-chapter.reverse .demo-frame{ order:1; }
.demo-copy .kicker{ margin-bottom:10px; }
.demo-copy .h2{ font-size:clamp(26px,3vw,36px); line-height:1.08; letter-spacing:-.03em; }
.demo-copy .lede{ margin-top:14px; font-size:15px; }
.demo-points{ list-style:none; padding:0; margin:18px 0 22px; display:grid; gap:9px; }
.demo-points li{ position:relative; padding-left:24px; font-size:13px; line-height:1.45; color:var(--mut); }
.demo-points li::before{ content:"✓"; position:absolute; left:0; top:0; width:16px; height:16px; border-radius:50%; display:grid; place-items:center; font-size:9px; font-weight:800; color:var(--accent-text); background:var(--accent-soft); border:1px solid var(--accent-line); }
.demo-frame{ margin:0; border-radius:18px; overflow:hidden; border:1px solid var(--line); box-shadow:var(--pm-lift-2); background:var(--surface); }
.demo-bar{ display:flex; align-items:center; gap:6px; padding:9px 12px; border-bottom:1px solid var(--line); background:var(--surface-2); }
.demo-bar i{ width:8px; height:8px; border-radius:50%; background:var(--line-strong); }
.demo-bar span{ margin-left:auto; font-family:var(--mono); font-size:10px; color:var(--faint); letter-spacing:.02em; }
.demo-frame video{ display:block; width:100%; height:auto; background:#0b0c10; }
.demo-hero{ padding-bottom:0; }
.demo-hero .display{ font-size:clamp(38px,5.4vw,64px); letter-spacing:-.045em; }
.demo-chapters{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:20px; }
.demo-chapters a{ display:grid; gap:4px; padding:15px 16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); text-decoration:none; color:var(--ink); box-shadow:var(--pm-lift-1); }
.demo-chapters a:hover{ border-color:var(--accent-line); }
.demo-chapters b{ font-size:12.5px; }
.demo-chapters span{ font-size:11px; color:var(--muted); }
@media (max-width:900px){
  .demo-chapter{ grid-template-columns:1fr; gap:20px; padding:34px 0; }
  .demo-chapter.reverse .demo-copy,.demo-chapter.reverse .demo-frame{ order:initial; }
}
